huangbin 4 lat temu
rodzic
commit
8e6a54276c

+ 0 - 92
src/views/platinum/platinum_customer_info/list/checkpending/index.vue

@@ -1,92 +0,0 @@
-<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>
-        <template #status="{ text }">
-          <a>{{ getStatusName(text) }}</a>
-        </template>
-        <template #cardtype="{ text }">
-          <a>{{ getCardTypeEnumItemName(text) }}</a>
-        </template>
-      </a-table>
-    </contextMenu>
-    <Middle :selectedRow="selectedRow"
-            @refresh="queryTable" />
-  </div>
-</template>
-
-<script lang="ts">
-import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
-
-import { filterCustomTable } from '../../compoments';
-import { queryTableList, QueryCustomInfoType } from '../index';
-import { getStatusName } from '@/common/constants/enumsName';
-import { getCardTypeEnumItemName } from '@/common/constants/enumsName';
-import Middle from '@/views/platinum/platinum_customer_info/compoments/controlModal/index.vue';
-import {getUserId} from "@/services/bus/account";
-
-export default defineComponent({
-    name: 'custom_info_checkpending',
-    components: {
-        filterCustomTable,
-        contextMenu,
-        BtnList,
-        Middle,
-    },
-    setup() {
-        // 表头数据
-        const { columns, registerColumn, updateColumn } = getTableColumns();
-        // 表格事件
-        const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<QueryCustomInfoType>({});
-        // 表格操作按钮列表
-        const { commonBtn, forDataBtn } = getBtnList('custom_info_checkpending', true);
-        // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList();
-        initData(() => {
-            // 获取列表数据
-            queryTable(2, getUserId());
-            // 注册表头信息 过滤
-            registerColumn('table_pcweb_qhj_customer_info', ['userinfotype', 'nickname', 'contactname', 'mobile']);
-        });
-
-        return {
-            columns,
-
-            expandedRowKeys,
-            selectedRow,
-            Rowclick,
-            commonBtn,
-            forDataBtn,
-            loading,
-            tableList,
-            search,
-            getStatusName,
-            getCardTypeEnumItemName,
-            queryTable,
-        };
-    },
-});
-</script>
-
-<style lang="less">
-.custom_info_checkpending {
-}
-</style>

+ 1 - 21
src/views/platinum/platinum_customer_info/list/setup.ts

@@ -1,27 +1,7 @@
-import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
 import { getUserId } from '@/services/bus/account';
 import { queryCustomerInfo } from '@/services/go/ermcp/qhj';
-import { QhjCustomer, QueryCustomerInfoReq } from "@/services/go/ermcp/qhj/interface";
-import { ref } from 'vue';
+import { QueryCustomerInfoReq } from "@/services/go/ermcp/qhj/interface";
 
-/**
- * 获取表格列表数据
- * @param type 
- * @returns 
- */
-export function queryTableList() {
-    // 加载状态
-    const loading = ref<boolean>(false);
-    // 表格数据
-    const tableList = ref<QhjCustomer[]>([]);
-    function queryTable(querytype: 1 | 2 | 3 | 4, userid: number) {
-        const param = { querytype, userid }
-        queryResultLoadingAndInfo(queryCustomerInfo, loading, param).then(res => {
-            tableList.value = res
-        })
-    }
-    return { loading, tableList, queryTable }
-}
 // 查询类型 1:未提交(网上开户表) 2:待审核(网上开户表) 3:正常 4:停用
 export function handleSearch(querytype: 1 | 2 | 3 | 4, queryTable: Function) {
     function search(value: any) {