浏览代码

commit 客户信息

yu.jie 4 年之前
父节点
当前提交
33f6324cba

+ 4 - 0
src/common/constants/buttonType.ts

@@ -107,6 +107,10 @@ export interface ButtonType {
     /******** =========================== 千海金 =========================== *********/
     platinum_custom_info_add: string; // 千海金 客户资料 新增
     platinum_customer_info_unsubmit_check: string; // 千海金 客户资料 审核
+    platinum_custom_info_normal_modify: string; //  千海金 客户资料 正常 - 修改
+    platinum_custom_info_normal_stop: string; //  千海金 客户资料 正常 - 停用
+    platinum_customer_info_stop_resume: string; // 千海金 客户资料 停用 - 恢复
+    platinum_customer_info_stop_delete: string; // 千海金 客户资料 停用 - 删除
 
     platinum_recharge_review_confirm_payment: string; // 千海金 充值审核 确认收款
     platinum_recharge_review_refuse: string; // 千海金 充值审核 审核拒绝

+ 1 - 1
src/views/platinum/platinum_customer_info/compoments/delete/index.vue

@@ -36,7 +36,7 @@ export default defineComponent({
         },
     },
     setup(props, context) {
-        const { visible, cancel } = closeModal('custom_info_btn_delete');
+        const { visible, cancel } = closeModal('platinum_customer_info_stop_delete');
         const loading = ref<boolean>(false);
         console.log('是否确认删除客户资料');
         function submit() {

+ 1 - 1
src/views/platinum/platinum_customer_info/compoments/disable/index.vue

@@ -41,7 +41,7 @@ export default defineComponent({
         },
     },
     setup(props, context) {
-        const { visible, cancel } = closeModal('custom_info_btn_disable');
+        const { visible, cancel } = closeModal('platinum_custom_info_normal_stop');
         const maskClosableFlag = ref<boolean>(false);
         const loading = ref<boolean>(false);
 

+ 1 - 1
src/views/platinum/platinum_customer_info/compoments/modify/index.vue

@@ -323,7 +323,7 @@ export default defineComponent({
         },
     },
     setup(props, context) {
-        const { visible, cancel } = closeModal('custom_info_btn_modify');
+        const { visible, cancel } = closeModal('platinum_custom_info_normal_modify');
         const loading = ref<boolean>(false);
         // 证件类型
         const cardTypeList = ref<AllEnums[]>(getCardType());

+ 1 - 1
src/views/platinum/platinum_customer_info/compoments/recover/index.vue

@@ -40,7 +40,7 @@ export default defineComponent({
         },
     },
     setup(props, context) {
-        const { visible, cancel } = closeModal('custom_info_btn_recover');
+        const { visible, cancel } = closeModal('platinum_customer_info_stop_resume');
         const loading = ref<boolean>(false);
         // 恢复方法
         function recover() {

+ 13 - 3
src/views/platinum/platinum_customer_info/list/normal-use/index.vue

@@ -34,7 +34,16 @@
 </template>
 
 <script lang="ts">
-import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
+    import {
+        defineComponent,
+        initData,
+        getTableColumns,
+        getTableEvent,
+        getBtnList,
+        contextMenu,
+        BtnList,
+        _getBtnList
+    } from '@/common/export/table';
 
 import { filterCustomTable } from '../../compoments';
 import { queryTableList, QueryCustomInfoType } from '../index';
@@ -55,8 +64,10 @@ export default defineComponent({
         const { columns, registerColumn, updateColumn } = getTableColumns();
         // 表格事件
         const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<QhjCustomer>({});
+
         // 表格操作按钮列表
-        const { commonBtn, forDataBtn } = getBtnList('platinum_custom_info_normal', true);
+        const [commonBtn, forDataBtn] = _getBtnList('platinum_custom_info_normal', true).value;
+
         // 表格列表数据
         const { loading, tableList, queryTable } = queryTableList();
         initData(() => {
@@ -68,7 +79,6 @@ export default defineComponent({
 
         return {
             columns,
-
             expandedRowKeys,
             selectedRow,
             Rowclick,

+ 13 - 2
src/views/platinum/platinum_customer_info/list/stop-use/index.vue

@@ -34,7 +34,16 @@
 </template>
 
 <script lang="ts">
-import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
+    import {
+        defineComponent,
+        initData,
+        getTableColumns,
+        getTableEvent,
+        getBtnList,
+        contextMenu,
+        BtnList,
+        _getBtnList
+    } from '@/common/export/table';
 
 import { filterCustomTable } from '../../compoments';
 
@@ -57,8 +66,10 @@ export default defineComponent({
         const { columns, registerColumn, updateColumn } = getTableColumns();
         // 表格事件
         const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<QhjCustomer>({});
+
         // 表格操作按钮列表
-        const { commonBtn, forDataBtn } = getBtnList('platinum_customer_info_stop', true);
+        const [commonBtn, forDataBtn] = _getBtnList('platinum_customer_info_stop', true).value;
+
         // 表格列表数据
         const { loading, tableList, queryTable } = queryTableList();
         initData(() => {