Parcourir la source

修改 千海金 客户资料 时间 格式化

huangbin il y a 4 ans
Parent
commit
7dc4d0a910

+ 1 - 1
src/views/information/custom/compoments/add/index.vue

@@ -501,7 +501,7 @@ export default defineComponent({
             formState.cardaddress = isN(address) ? '' : address;
             formState.mobilephone = mobile;
             formState.areaid = memberuserid;
-            formState.teammanageruserid = brokerid;
+            formState.teammanageruserid = brokerid ? brokerid : undefined;
             provinceid ? getCityList(provinceid) : (formState.provinceid = undefined);
             cityid ? getDistrictList(cityid) : ((formState.cityid = undefined), (formState.districtid = undefined));
 

+ 2 - 1
src/views/information/custom/compoments/common-detail/index.vue

@@ -23,6 +23,7 @@ import { Des, DescriptionsList, handleDesList } from '@/common/components/common
 import { handlePreviewImg } from '@/common/setup/upload';
 import { isPingAnOem, isQianHaiJin } from '@/common/config/projectName';
 import { QhjCustomer } from '@/services/go/ermcp/qhj/interface';
+import { formatTime } from '@/common/methods';
 
 export default defineComponent({
     name: 'custom-detail-desc',
@@ -83,7 +84,7 @@ export default defineComponent({
                     { label: '客户类型', value: '个人' },
                     { label: '姓名', value: formatValue(data.username) },
                     { label: '性别', value: data.sex === 1 ? '男' : data.sex === 0 ? '女' : '--' },
-                    { label: '生日', value: formatValue(data.birthday) },
+                    { label: '生日', value: formatValue(formatTime(data.birthday, 'd')) },
                     { label: '身份证号码', value: formatValue(data.cardnum) },
                     { label: '手机号码', value: formatValue(data.mobile) },
                     { label: '身份证正面照', value: formatValue(getImgName(data.cardfrontphotourl)), className: 'blue' },

+ 5 - 0
src/views/information/custom/index.vue

@@ -29,6 +29,9 @@
       <template #customername="{record}">
         {{record.username}}
       </template>
+      <template #birthday="{text}">
+        {{text && text !== '--' ? formatTime(text, 'd') : '--'}}
+      </template>
       <template #nickname="{record}">
         {{record.username}}
       </template>
@@ -69,6 +72,7 @@ import { BtnListType } from '@/common/components/btnList/interface';
 import { queryCustomerInfo } from '@/services/go/ermcp/qhj';
 import { getUserId } from '@/services/bus/user';
 import { QhjCustomer } from '@/services/go/ermcp/qhj/interface';
+import { formatTime } from '@/common/methods';
 
 export default defineComponent({
     name: EnumRouterName.plan_audit,
@@ -153,6 +157,7 @@ export default defineComponent({
             getCardTypeEnumItemName,
             getColumns,
             handleBtnList,
+            formatTime,
         };
     },
 });

+ 1 - 0
src/views/information/custom/setup.ts

@@ -1,3 +1,4 @@
+
 // 平安 客户资料 表头
 export function pingan_custom_column() {
     return [