Kaynağa Gözat

pcweb菜单6期改版

chen.zujie 4 yıl önce
ebeveyn
işleme
e33a17db37

+ 18 - 0
src/common/constants/enumsName.ts

@@ -90,6 +90,24 @@ export function getStatusName(state: number): string {
 }
 
 /**
+ * 获取客户类型
+ * @param state
+ */
+export function getUserInfoTypeName(state: number): string {
+    let result = "--";
+    switch (state) {
+        case 1:
+            result = "个人";
+            break
+        case 2:
+            result = "企业";
+            break
+    }
+    return result
+}
+
+
+/**
  * 网上开户表里面的状态枚举
  * @param state
  */

+ 3 - 0
src/views/business/exposure/list/realTime/index.vue

@@ -16,6 +16,9 @@
             <template v-if="isPingAnOem()" #index="{ index }">
                 <span>{{ index + 1 }}</span>
             </template>
+            <template #MiddleGoodsName="{ record }">
+                    <span>{{`${record.MiddleGoodsName}/${record.MiddleGoodsCode}`}}</span>
+                </template>
         </a-table>
         <!-- 明细 -->
         <Description v-if="visible" @close="closeDrawer" @changeTab="changeTab" :tabList="tabList">

+ 14 - 7
src/views/information/custom/index.vue

@@ -9,11 +9,17 @@
             <template #expandedRowRender="{ record }">
                 <mtp-table-button class="btn-list-sticky" :buttons="buttons" :record="record" @click="openComponent" />
             </template>
-            <template #contracttype="{ text }">
-                <a>{{ getPlanContractType(text) }}</a>
+            <template #status="{ text }">
+                <a>{{ getStatusName(text) }}</a>
             </template>
-            <template #hedgeplanstatus="{ text }">
-                <a>{{ getPlanStatusName(text) }}</a>
+            <template #userinfotype="{ text }">
+                <a>{{ getUserInfoTypeName(text) }}</a>
+            </template>
+            <template #attachment1="{ text,record }">
+                <a>{{ text }}</a><a>{{ record.attachment2 }}</a>
+            </template>
+            <template #cardtype="{ text }">
+                <a>{{ getCardTypeEnumItemName(text) }}</a>
             </template>
         </a-table>
         <!-- 右键 -->
@@ -29,7 +35,7 @@ import { ComposeTableParam, contextMenu, defineAsyncComponent, defineComponent,
 import { getTableButton } from '@/common/setup/table/button';
 import { QueryCustomInfo } from '@/services/go/ermcp/customInfo';
 import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
-import { getPlanContractType, getPlanStatusName } from '@/views/business/plan/setup';
+import { getUserInfoTypeName, getStatusName ,getCardTypeEnumItemName} from '@/common/constants/enumsName';
 import Filter from './compoments/filterTable/index.vue';
 import { pingan_custom_column } from './setup';
 
@@ -84,12 +90,13 @@ export default defineComponent({
             ...handleComposeTable<QueryCustomInfoType>(param),
             loading,
             tableList,
-            getPlanStatusName,
-            getPlanContractType,
+            getStatusName,
             buttons,
             addButton,
             pingan_custom_column,
             isPingAnOem,
+            getUserInfoTypeName,
+            getCardTypeEnumItemName
         };
     },
 });