Browse Source

修改平安客户资料表头

huangbin 4 năm trước cách đây
mục cha
commit
d47912ff99

+ 13 - 0
src/views/information/custom/list/normal-use/index.vue

@@ -18,6 +18,11 @@
         <template #expandedRowRender="{  }">
           <BtnList :btnList="forDataBtn" />
         </template>
+
+        <template v-if="isPingAnOem()"
+                  #index="{ index }">
+          <span>{{ index + 1 }}</span>
+        </template>
         <template #userinfotype="{ text }">
           <a>{{ text === 2 ? '企业' : '个人' }}</a>
         </template>
@@ -46,6 +51,9 @@ import { queryTableList, QueryCustomInfoType } from '../index';
 import { getStatusName } from '@/common/constants/enumsName';
 import { getCardTypeEnumItemName } from '@/common/constants/enumsName';
 import Middle from '@/views/information/custom/compoments/controlModal/index.vue';
+import { isPingAnOem } from '@/common/config/projectName';
+import { pingan_custom_column } from '../setup';
+
 export default defineComponent({
     name: 'custom-normal',
     components: {
@@ -68,6 +76,10 @@ export default defineComponent({
             queryTable();
             // 注册表头信息 过滤
             registerColumn('table_pcweb_userinfo', ['userinfotype', 'nickname', 'customername', 'mobile']);
+            // 平安表头
+            if (isPingAnOem()) {
+                columns.value = pingan_custom_column();
+            }
         });
         return {
             columns,
@@ -82,6 +94,7 @@ export default defineComponent({
             getStatusName,
             getCardTypeEnumItemName,
             queryTable,
+            isPingAnOem,
         };
     },
 });

+ 65 - 2
src/views/information/custom/list/setup.ts

@@ -16,5 +16,68 @@ export function queryTableList(type: QueryCustomInfoEnum) {
     return { loading, tableList, queryTable: fn }
 }
 
-
-
+// 平安 客户资料 表头
+export function pingan_custom_column() {
+    return [
+        {
+            key: '9th',
+            dataIndex: 'index',
+            title: '序号',
+            align: 'center',
+            slots: {
+                customRender: 'index',
+            },
+            width: 80
+        },
+        {
+            key: '0th',
+            dataIndex: 'status',
+            title: '状态',
+            align: 'center',
+            slots: {
+                customRender: 'status',
+            },
+            width: 120
+        },
+        {
+            key: '1th',
+            dataIndex: 'userinfotype',
+            title: '客户类型',
+            align: 'center',
+            slots: {
+                customRender: 'userinfotype',
+            },
+            width: 120
+        },
+        {
+            key: '3th',
+            dataIndex: 'customername',
+            title: '客户名称',
+            align: 'center',
+            slots: {
+                customRender: 'customername',
+            },
+            width: 120
+        },
+        {
+            key: '6th',
+            dataIndex: 'contactname',
+            title: '点价联系人',
+            align: 'center',
+            slots: {
+                customRender: 'contactname',
+            },
+            width: 120
+        },
+        {
+            key: '7th',
+            dataIndex: 'mobile',
+            title: '联系人手机号码',
+            align: 'center',
+            slots: {
+                customRender: 'mobile',
+            },
+            width: 120
+        },
+    ]
+}

+ 11 - 0
src/views/information/custom/list/stop-use/index.vue

@@ -18,6 +18,10 @@
         <template #expandedRowRender="{  }">
           <BtnList :btnList="forDataBtn" />
         </template>
+        <template v-if="isPingAnOem()"
+                  #index="{ index }">
+          <span>{{ index + 1 }}</span>
+        </template>
         <template #userinfotype="{ text }">
           <a>{{ text === 2 ? '企业' : '个人' }}</a>
         </template>
@@ -47,6 +51,8 @@ import { queryTableList, QueryCustomInfoType } from '../index';
 import { getStatusName } from '@/common/constants/enumsName';
 import { getCardTypeEnumItemName } from '@/common/constants/enumsName';
 import Middle from '@/views/information/custom/compoments/controlModal/index.vue';
+import { isPingAnOem } from '@/common/config/projectName';
+import { pingan_custom_column } from '../setup';
 
 export default defineComponent({
     name: 'custom-normal',
@@ -70,6 +76,10 @@ export default defineComponent({
             queryTable();
             // 注册表头信息 过滤
             registerColumn('table_pcweb_userinfo', ['userinfotype', 'nickname', 'contactname', 'mobile']);
+            // 平安表头
+            if (isPingAnOem()) {
+                columns.value = pingan_custom_column();
+            }
         });
         return {
             columns,
@@ -84,6 +94,7 @@ export default defineComponent({
             getStatusName,
             getCardTypeEnumItemName,
             queryTable,
+            isPingAnOem,
         };
     },
 });