|
@@ -1,47 +1,62 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 客户信息: 正常 -->
|
|
|
|
|
- <div class="custom_info_checkpending"
|
|
|
|
|
- :loading="loading">
|
|
|
|
|
- <filterCustomTable @search="search">
|
|
|
|
|
- <BtnList :btnList="commonBtn" />
|
|
|
|
|
- </filterCustomTable>
|
|
|
|
|
- <contextMenu :contextMenuList="forDataBtn">
|
|
|
|
|
- <a-table :columns="columns"
|
|
|
|
|
- class="topTable hiddenFirstCol"
|
|
|
|
|
- :pagination="false"
|
|
|
|
|
- :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
- :customRow="Rowclick"
|
|
|
|
|
- rowKey="key"
|
|
|
|
|
- :data-source="tableList">
|
|
|
|
|
- <!-- 额外的展开行 -->
|
|
|
|
|
- <template #expandedRowRender="{ }">
|
|
|
|
|
- <BtnList :btnList="forDataBtn" />
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #userinfotype="{ text }">
|
|
|
|
|
- <a>{{ text === '2' ? '企业' : '个人' }}</a>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-table>
|
|
|
|
|
- </contextMenu>
|
|
|
|
|
- <!-- 新增 -->
|
|
|
|
|
- <AddCustom />
|
|
|
|
|
- <!-- 详情 -->
|
|
|
|
|
- <CustomDetail :selectedRow="selectedRow" />
|
|
|
|
|
- <!-- 修改 -->
|
|
|
|
|
- <ModifyCustom :selectedRow="selectedRow" />
|
|
|
|
|
- <!-- 停用 -->
|
|
|
|
|
- <DisableCustom />
|
|
|
|
|
- <!-- 撤销 -->
|
|
|
|
|
- <Cancel :selectedRow="selectedRow" />
|
|
|
|
|
- <!-- 审核客户资料 -->
|
|
|
|
|
- <Check :selectedRow="selectedRow" />
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!-- 客户信息: 正常 -->
|
|
|
|
|
+ <div class="custom_info_checkpending"
|
|
|
|
|
+ :loading="loading">
|
|
|
|
|
+ <filterCustomTable @search="search">
|
|
|
|
|
+ <BtnList :btnList="commonBtn"/>
|
|
|
|
|
+ </filterCustomTable>
|
|
|
|
|
+ <contextMenu :contextMenuList="forDataBtn">
|
|
|
|
|
+ <a-table :columns="columns"
|
|
|
|
|
+ class="topTable hiddenFirstCol"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
+ :customRow="Rowclick"
|
|
|
|
|
+ rowKey="key"
|
|
|
|
|
+ :data-source="tableList">
|
|
|
|
|
+ <!-- 额外的展开行 -->
|
|
|
|
|
+ <template #expandedRowRender="{ }">
|
|
|
|
|
+ <BtnList :btnList="forDataBtn"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #userinfotype="{ text }">
|
|
|
|
|
+ <a>{{ text === '2' ? '企业' : '个人' }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #status="{ text }">
|
|
|
|
|
+ <a>{{ getStatusName(text) }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #cardtype="{ text }">
|
|
|
|
|
+ <a>{{ getCardTypeName(text) }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </contextMenu>
|
|
|
|
|
+ <!-- 新增 -->
|
|
|
|
|
+ <AddCustom/>
|
|
|
|
|
+ <!-- 详情 -->
|
|
|
|
|
+ <CustomDetail :selectedRow="selectedRow"/>
|
|
|
|
|
+ <!-- 修改 -->
|
|
|
|
|
+ <ModifyCustom :selectedRow="selectedRow"/>
|
|
|
|
|
+ <!-- 停用 -->
|
|
|
|
|
+ <DisableCustom/>
|
|
|
|
|
+ <!-- 撤销 -->
|
|
|
|
|
+ <Cancel :selectedRow="selectedRow"/>
|
|
|
|
|
+ <!-- 审核客户资料 -->
|
|
|
|
|
+ <Check :selectedRow="selectedRow"/>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ defineComponent,
|
|
|
|
|
+ initData,
|
|
|
|
|
+ getTableColumns,
|
|
|
|
|
+ getTableEvent,
|
|
|
|
|
+ getBtnList,
|
|
|
|
|
+ contextMenu,
|
|
|
|
|
+ BtnList
|
|
|
|
|
+} from '@/common/export/table';
|
|
|
|
|
|
|
|
-import { filterCustomTable, CustomDetail, ModifyCustom, DisableCustom, AddCustom, Cancel, Check } from '../../compoments';
|
|
|
|
|
-import { queryTableList, getFilterTableCB, QueryCustomInfoType } from '../index';
|
|
|
|
|
|
|
+import {filterCustomTable, CustomDetail, ModifyCustom, DisableCustom, AddCustom, Cancel, Check} from '../../compoments';
|
|
|
|
|
+import {queryTableList, getFilterTableCB, QueryCustomInfoType} from '../index';
|
|
|
|
|
+import {getCardTypeName, getStatusName} from "@/views/information/custom/setup";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'custom_info_checkpending',
|
|
name: 'custom_info_checkpending',
|
|
@@ -58,25 +73,27 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
// 表头数据
|
|
// 表头数据
|
|
|
- const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
|
|
|
|
|
|
|
+ const {columns, registerColumn, updateColumn, filteredInfo} = getTableColumns();
|
|
|
// 表格事件
|
|
// 表格事件
|
|
|
- const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<QueryCustomInfoType>({});
|
|
|
|
|
|
|
+ const {expandedRowKeys, selectedRow, Rowclick} = getTableEvent<QueryCustomInfoType>({});
|
|
|
// 表格操作按钮列表
|
|
// 表格操作按钮列表
|
|
|
- const { commonBtn, forDataBtn } = getBtnList('custom_info_checkpending', true);
|
|
|
|
|
|
|
+ const {commonBtn, forDataBtn} = getBtnList('custom_info_checkpending', true);
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList(2);
|
|
|
|
|
|
|
+ const {loading, tableList, queryTable} = queryTableList(2);
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
// 获取列表数据
|
|
// 获取列表数据
|
|
|
queryTable();
|
|
queryTable();
|
|
|
// 注册表头信息 过滤
|
|
// 注册表头信息 过滤
|
|
|
registerColumn('table_pcweb_userinfo', getFilterTableCB);
|
|
registerColumn('table_pcweb_userinfo', getFilterTableCB);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
// 查询
|
|
// 查询
|
|
|
function search(value: any) {
|
|
function search(value: any) {
|
|
|
filteredInfo.value = value;
|
|
filteredInfo.value = value;
|
|
|
// 更新表信息
|
|
// 更新表信息
|
|
|
updateColumn();
|
|
updateColumn();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
return {
|
|
return {
|
|
|
columns,
|
|
columns,
|
|
|
filteredInfo,
|
|
filteredInfo,
|
|
@@ -88,6 +105,8 @@ export default defineComponent({
|
|
|
loading,
|
|
loading,
|
|
|
tableList,
|
|
tableList,
|
|
|
search,
|
|
search,
|
|
|
|
|
+ getStatusName,
|
|
|
|
|
+ getCardTypeName,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|