|
@@ -21,6 +21,7 @@ import { formatValue } from '@/common/methods';
|
|
|
import { getCardTypeEnumItemName } from '@/common/constants/enumsName';
|
|
import { getCardTypeEnumItemName } from '@/common/constants/enumsName';
|
|
|
import { Des, DescriptionsList, handleDesList } from '@/common/components/commonDes';
|
|
import { Des, DescriptionsList, handleDesList } from '@/common/components/commonDes';
|
|
|
import { handlePreviewImg } from '@/common/setup/upload';
|
|
import { handlePreviewImg } from '@/common/setup/upload';
|
|
|
|
|
+import { isOemByEnum, OemType } from '@/common/config/projectName';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'custom-detail-desc',
|
|
name: 'custom-detail-desc',
|
|
@@ -57,38 +58,56 @@ export default defineComponent({
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
|
// if (props.selectedRow.customername) {
|
|
// if (props.selectedRow.customername) {
|
|
|
const data = props.selectedRow;
|
|
const data = props.selectedRow;
|
|
|
- // 个人
|
|
|
|
|
- const person = [
|
|
|
|
|
- { label: '客户类型', value: '个人' },
|
|
|
|
|
- { label: '姓名', value: formatValue(data.username) },
|
|
|
|
|
- { label: '身份证号码', value: formatValue(data.cardnum) },
|
|
|
|
|
- { label: '手机号码', value: formatValue(data.mobile) },
|
|
|
|
|
- { label: '身份证正面照', value: formatValue(getImgName(data.cardfrontphotourl)), className: 'blue' },
|
|
|
|
|
- { label: '身份证反面照', value: formatValue(getImgName(data.cardbackphotourl)), className: 'blue' },
|
|
|
|
|
- { label: '邮箱', value: formatValue(data.email) },
|
|
|
|
|
- { label: '联系电话', value: formatValue(data.telphone) },
|
|
|
|
|
- { label: '通讯地址', value: formatValue(data.provincename + data.cityname + data.districtname + data.address) },
|
|
|
|
|
- { label: '备注', value: formatValue(data.remark) },
|
|
|
|
|
- ];
|
|
|
|
|
- // 企业
|
|
|
|
|
- const company = [
|
|
|
|
|
- { label: '客户类型', value: '企业' },
|
|
|
|
|
- { label: '企业名称', value: data.customername },
|
|
|
|
|
- { label: '企业简称', value: formatValue(data.nickname) },
|
|
|
|
|
- { label: '证件类型', value: getCardTypeEnumItemName(data.cardtype) },
|
|
|
|
|
- { label: '法定代表人', value: formatValue(data.legalpersonname) },
|
|
|
|
|
- { label: '证件号码', value: formatValue(data.cardnum) },
|
|
|
|
|
- { label: '纳税人识别号', value: formatValue(data.taxpayernum) },
|
|
|
|
|
- { label: '营业执照', value: formatValue(getImgName(data.cardfrontphotourl)), className: 'blue' },
|
|
|
|
|
- { label: '联系人', value: formatValue(data.contactname) },
|
|
|
|
|
- { label: '联系人手机号', value: formatValue(data.mobile) },
|
|
|
|
|
- { label: '联系电话', value: formatValue(data.telphone) },
|
|
|
|
|
- { label: '状态', value: getStatusName(data.status), className: 'green' },
|
|
|
|
|
- { label: '通讯地址', value: formatValue(data.provincename + data.cityname + data.districtname + data.address) },
|
|
|
|
|
- { label: '备注', value: formatValue(data.remark) },
|
|
|
|
|
- ];
|
|
|
|
|
- getDesList(isPersonal() ? person : company);
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (isOemByEnum(OemType.pingan)) {
|
|
|
|
|
+ const person = [
|
|
|
|
|
+ { label: '客户类型', value: '个人' },
|
|
|
|
|
+ { label: '姓名', value: formatValue(data.username) },
|
|
|
|
|
+ { label: '点价联系人', value: formatValue(data.contactname) },
|
|
|
|
|
+ { label: '联系人手机号', value: formatValue(data.mobile) },
|
|
|
|
|
+ { label: '状态', value: getStatusName(data.status), className: 'green' },
|
|
|
|
|
+ ];
|
|
|
|
|
+ const company = [
|
|
|
|
|
+ { label: '客户类型', value: '企业' },
|
|
|
|
|
+ { label: '企业名称', value: formatValue(data.customername) },
|
|
|
|
|
+ { label: '点价联系人', value: formatValue(data.contactname) },
|
|
|
|
|
+ { label: '联系人手机号', value: formatValue(data.mobile) },
|
|
|
|
|
+ { label: '状态', value: getStatusName(data.status), className: 'green' },
|
|
|
|
|
+ ];
|
|
|
|
|
+ getDesList(isPersonal() ? person : company);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 个人
|
|
|
|
|
+ const person = [
|
|
|
|
|
+ { label: '客户类型', value: '个人' },
|
|
|
|
|
+ { label: '姓名', value: formatValue(data.username) },
|
|
|
|
|
+ { label: '身份证号码', value: formatValue(data.cardnum) },
|
|
|
|
|
+ { label: '手机号码', value: formatValue(data.mobile) },
|
|
|
|
|
+ { label: '身份证正面照', value: formatValue(getImgName(data.cardfrontphotourl)), className: 'blue' },
|
|
|
|
|
+ { label: '身份证反面照', value: formatValue(getImgName(data.cardbackphotourl)), className: 'blue' },
|
|
|
|
|
+ { label: '邮箱', value: formatValue(data.email) },
|
|
|
|
|
+ { label: '联系电话', value: formatValue(data.telphone) },
|
|
|
|
|
+ { label: '通讯地址', value: formatValue(data.provincename + data.cityname + data.districtname + data.address) },
|
|
|
|
|
+ { label: '备注', value: formatValue(data.remark) },
|
|
|
|
|
+ ];
|
|
|
|
|
+ // 企业
|
|
|
|
|
+ const company = [
|
|
|
|
|
+ { label: '客户类型', value: '企业' },
|
|
|
|
|
+ { label: '企业名称', value: data.customername },
|
|
|
|
|
+ { label: '企业简称', value: formatValue(data.nickname) },
|
|
|
|
|
+ { label: '证件类型', value: getCardTypeEnumItemName(data.cardtype) },
|
|
|
|
|
+ { label: '法定代表人', value: formatValue(data.legalpersonname) },
|
|
|
|
|
+ { label: '证件号码', value: formatValue(data.cardnum) },
|
|
|
|
|
+ { label: '纳税人识别号', value: formatValue(data.taxpayernum) },
|
|
|
|
|
+ { label: '营业执照', value: formatValue(getImgName(data.cardfrontphotourl)), className: 'blue' },
|
|
|
|
|
+ { label: '联系人', value: formatValue(data.contactname) },
|
|
|
|
|
+ { label: '联系人手机号', value: formatValue(data.mobile) },
|
|
|
|
|
+ { label: '联系电话', value: formatValue(data.telphone) },
|
|
|
|
|
+ { label: '状态', value: getStatusName(data.status), className: 'green' },
|
|
|
|
|
+ { label: '通讯地址', value: formatValue(data.provincename + data.cityname + data.districtname + data.address) },
|
|
|
|
|
+ { label: '备注', value: formatValue(data.remark) },
|
|
|
|
|
+ ];
|
|
|
|
|
+ getDesList(isPersonal() ? person : company);
|
|
|
|
|
+ // }
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
return {
|
|
return {
|
|
|
desList,
|
|
desList,
|