Ver Fonte

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP2.0_WEB

marymelisa há 4 anos atrás
pai
commit
a4436ca92e

+ 27 - 14
src/goServiceAPI/ermcp/customInfo/index.ts

@@ -2,33 +2,46 @@
 
 import {BaseResponse, commonSearch_go, commonUpdate_go} from '@/goServiceAPI/index';
 import APP from '@/services';
-import * as type from './interface';
-import { QueryCustomInfoEnum } from './type';
+import {QueryCustomInfoEnum} from './type';
+import {AddUserInfoApplyReq, ModifyUserInfoApplyReq, QueryCustomInfoType} from "./interface";
 
 /**
  * 查询客户资料
  * @param MemberUserID  所属机构用户ID
  * @param queryType 查询类型(1:未提交 2:待审核 3:正常 4:停用)
- * @returns 
+ * @returns
  */
-export function QueryCustomInfo(queryType: QueryCustomInfoEnum): Promise<type.QueryCustomInfoType[]> {
+export function QueryCustomInfo(queryType: QueryCustomInfoEnum): Promise<QueryCustomInfoType[]> {
     const MemberUserID = APP.get('userAccount').memberuserid;
-    return commonSearch_go('/Ermcp/QueryUserInfo', { MemberUserID, queryType })
+    return commonSearch_go('/Ermcp/QueryUserInfo', {MemberUserID, queryType})
         .catch(err => {
             throw new Error(`查询客户资料: ${err.message}`);
         })
 }
 
 /**
- * 新增/修改客户申请
+ * 新增客户申请
  * @param userInfoApply
- * @param userInfoApply.userstate  1:未提交(点击草稿) 2: 待初审(点击申请)
- * @param userInfoApply.
  * @constructor
  */
-// export function QueryModifyUserInfo(userInfoApply: type.ModifyUserInfoApplyReq): Promise<BaseResponse> {
-//     return commonUpdate_go('/Ermcp/ModifyUserInfoApply',  userInfoApply )
-//         .catch(err => {
-//             throw new Error(`新增客户申请: ${err.message}`);
-//         })
-// }
+export function QueryAddUserInfoApply(userInfoApply: AddUserInfoApplyReq): Promise<BaseResponse> {
+    return commonUpdate_go('/Erms3/AddUserInfoApply', userInfoApply)
+        .catch(err => {
+            throw new Error(`新增客户申请: ${err.message}`);
+        })
+}
+
+/**
+ * 修改客户申请 /Erms3/ModifyUserInfoApply
+ * @param userInfoApply
+ * @constructor
+ */
+export function QueryModifyUserInfoApply(userInfoApply: ModifyUserInfoApplyReq): Promise<BaseResponse> {
+    return commonUpdate_go('/Erms3/ModifyUserInfoApply', userInfoApply)
+        .catch(err => {
+            throw new Error(`修改客户申请: ${err.message}`);
+        })
+}
+
+
+

+ 83 - 1
src/goServiceAPI/ermcp/customInfo/interface.ts

@@ -29,7 +29,89 @@ export interface QueryCustomInfoType {
     userinfotype: string;//客户类型
 }
 
-// 修改客户申请 (提交申请也在这)
+// 新增用户申请
+export interface AddUserInfoApplyReq{
+    accountid	:number;//交易系统帐号Id (加密存储)
+    areacode	:string;//机构代码
+    areaid	:number;//机构Id
+    attachment1	:string;//附件1
+    attachment2	:string;//附件2
+    attachment3	:string;//附件3
+    attachment4	:string;//附件4
+    attachment5	:string;//附件5
+    auditedby	:string;//审核人
+    auditime	:string;//审核时间
+    bankaccount	:string;//银行帐号 (加密存储)
+    bankaccountname	:string;//收款人名称
+    bankcardbackphotourl	:string;//银行卡背面照地址
+    bankcardfrontphotourl	:string;//银行卡正面照地址
+    bankid	:string;//银行编码
+    bankname	:string;//银行名称
+    bankpictureurl	:string;//银行卡正面地址
+    biznature	:number;//企业性质( 企业) - 1:国有控股企业 2:集体控股企业 3:私人控股企业 4:港澳台商控股企业 5:外商控股企业 6:其它
+    bizscope	:string;//企业经营范围(企业)
+    biztype	:number;//企业类型 - 1:进口/生产 2:销售 3:零售 4:运输 5:仓储
+    brokerid	:string;//经纪人ID(加密存储)
+    cardaddress	:string;//证件地址 (加密存储)
+    cardbackphotourl	:string;//背面证件照地址
+    cardfrontphotourl	:string;//正面证件照地址
+    cardnum	:string;//证件号码 (加密存储)
+    cardtype	:number;//证件类型
+    cityid	:number;//市
+    company	:string;//公司(个人)
+    contactcardbackphotourl	:string;//联系人证件背面图片地址
+    contactcardfrontphotourl	:string;//联系人证件正面图片地址
+    contactname	:string;//联系人
+    countryid	:number;//国家
+    createtime	:string;//开户申请时间
+    cusbankid	:string;//签约类型
+    cusbankname	:string;//签约类型名称
+    customername	:string;//客户名称(企业名称)
+    districtid	:number;//地区
+    email	:string;//Email地址(加密存储)
+    halfbodyphotourl	:string;//半身照地址
+    headurl	:string;//头像地址
+    ipaddress	:string;//IP地址
+    isvalidate	:string;//是否有效 (删除后标记为失效) - number;
+//:无效 1:有效
+    legalcardbackphotourl	:string;//法人身份证背面照地址
+    legalcardfrontphotourl	:string;//法人身份证正面照地址
+    legalpersonname	:string;//法人姓名(企业)
+    logincode	:string;//登录帐号 (加密存储)
+    memberareaid	:number;//所属会员ID
+    mobile2	:string;//手机号码[明文-尚志]
+    mobilephone	:string;//手机号码 (加密存储)
+    modifiedby	:number;//修改人帐号
+    modifiedtime	:string;//修改时间
+    nickname	:string;//昵称:默认为手机号脱敏(1399999) 或 名称脱敏(张)
+    openmode	:number;//开户方式 - 1:管理端开户 2:网上开户注册(会员官网-手机号) 3:微信开户 4:网页交易端注册 5:安卓手机端注册 6:苹果手机端注册 7:PC交易端注册 8:微信快速开户 9:支付宝快速开户 1number;
+//:手机号快速开户 11:网上开户注册(会员官网-微信认证) 12:网上开户注册(会员官网-支付宝认证)
+    otherurl	:string;//其它图片地址[使用分号分隔]
+    postalcode	:string;//邮政编码
+    provinceid	:number;//省
+    proxystatementurl	:string;//授权委托书
+    qq	:string;//QQ(加密存储
+    referral	:string;//推荐人编码
+    remark	:string;//备注
+    removebeforestatus	:number;//REMOVEBEFORESTATUS
+    sex	:number;//性别 - number;
+//:女 1:男
+    signedstatus	:number;//账户一号签签约状态
+    signpdfurl	:string;//签约pdf文件
+    subbranch	:string;//开户支行
+    telphone	:string;//联系电话(加密存储)
+    userid	:number;//用户ID(自增ID)
+    userinfotype	:number;//用户信息类型 - 1:个人 2:企业
+    username	:string;//用户姓名
+    userstate	:number;//开户状态 - 1:未提交 2: 待初审 3:初审拒绝 4:待复审 5:复审拒绝 6:测评不通过
+    usertype	:number;//用户类型 - 1:投资者 2:机构
+    videourl	:string;//视频地址
+    wechat	:string;//微信号 (加密存储)
+}
+
+
+
+// 修改客户申请
 export interface ModifyUserInfoApplyReq {
     accountid?: number;//交易系统帐号Id (加密存储)
     areacode?: string;//机构代码

+ 85 - 126
src/views/information/custom/compoments/addCustom/index.vue

@@ -1,22 +1,13 @@
 <template>
-  <!-- 新增客户资料 -->
-  <a-modal class="add-custom"
-           title="新增客户资料"
-           v-model:visible="visible"
-           @cancel="cancel"
-           width="890px">
-    <template #footer>
-      <a-button key="submit"
-                type="primary"
-                :loading="loading"
-                @click="submit">完成</a-button>
-    </template>
-    <a-form class="inlineForm" :form="form" @submit="handleSearch">
+    <!-- 新增客户资料 -->
+    <a-modal class="add-custom" title="新增客户资料" v-model:visible="visible" @cancel="cancel" width="890px">
+        <template #footer>
+            <a-button key="submit" type="primary" :loading="loading" @click="submit">完成</a-button>
+        </template>
+        <a-form class="inlineForm" :form="form" @submit="handleSearch">
             <a-row :gutter="24">
-                <a-col
-                :span="12"
-                >
-                    <a-form-item label="客户类型" >
+                <a-col :span="12">
+                    <a-form-item label="客户类型">
                         <a-select class="typeSelect" style="width: 200px" placeholder="请选择客户类型">
                             <a-select-option value="1">
                                 客户一
@@ -27,25 +18,19 @@
                         </a-select>
                     </a-form-item>
                 </a-col>
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="企业名称">
-                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入企业名称"/>
+                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入企业名称" />
                     </a-form-item>
                 </a-col>
             </a-row>
             <a-row :gutter="24">
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="企业简称">
-                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入企业简称"/>
+                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入企业简称" />
                     </a-form-item>
                 </a-col>
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="证件类型">
                         <a-select class="inlineFormSelect" style="width: 200px" placeholder="请选择证件类型">
                             <a-select-option value="1">
@@ -59,38 +44,27 @@
                 </a-col>
             </a-row>
             <a-row :gutter="24">
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="法定代表人">
-                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入法定代表人"/>
+                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入法定代表人" />
                     </a-form-item>
                 </a-col>
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="证件号码">
-                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入证件号码"/>
+                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入证件号码" />
                     </a-form-item>
                 </a-col>
             </a-row>
             <a-row :gutter="24">
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="纳税人识别号">
-                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入纳税人识别号"/>
+                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入纳税人识别号" />
                     </a-form-item>
                 </a-col>
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="营业执照">
                         <div class="upload">
-                            <a-upload
-                            action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
-                            :transform-file="transformFile"
-                            >
+                            <a-upload action="https://www.mocky.io/v2/5cc8019d300000980a055e76" :transform-file="transformFile">
                                 <a-button class="uploadBtn">上传</a-button>
                             </a-upload>
                             <div class="look">查看附件</div>
@@ -99,41 +73,31 @@
                 </a-col>
             </a-row>
             <a-row :gutter="24">
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="联系人">
-                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系人"/>
+                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系人" />
                     </a-form-item>
                 </a-col>
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="联系人手机号">
-                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系人手机号"/>
+                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系人手机号" />
                     </a-form-item>
                 </a-col>
             </a-row>
             <a-row :gutter="24">
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item label="联系电话">
-                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系电话"/>
+                        <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系电话" />
                     </a-form-item>
                 </a-col>
-                <a-col
-                :span="12"
-                >
+                <a-col :span="12">
                     <a-form-item>
                         &nbsp;
                     </a-form-item>
                 </a-col>
             </a-row>
             <a-row :gutter="24">
-                <a-col
-                :span="24"
-                >
+                <a-col :span="24">
                     <a-form-item label="通讯地址">
                         <a-select class="inlineFormSelect" style="width: 205px" placeholder="请选择省">
                             <a-select-option value="1">
@@ -163,82 +127,77 @@
                 </a-col>
             </a-row>
             <a-row :gutter="24">
-                <a-col
-                :span="24"
-                >
+                <a-col :span="24">
                     <a-form-item label="&nbsp;">
-                        <a-input class="dialogInput" style="width: 635px" placeholder="请输入详细地址"/>
+                        <a-input class="dialogInput" style="width: 635px" placeholder="请输入详细地址" />
                     </a-form-item>
                 </a-col>
             </a-row>
             <a-row :gutter="24">
-                <a-col
-                :span="24"
-                >
+                <a-col :span="24">
                     <a-form-item label="备注">
-                        <a-input class="dialogInput" style="width: 635px" placeholder="请输入备注"/>
+                        <a-input class="dialogInput" style="width: 635px" placeholder="请输入备注" />
                     </a-form-item>
                 </a-col>
             </a-row>
         </a-form>
-    
-  </a-modal>
+    </a-modal>
 </template>
 
 <script lang="ts">
-import { defineComponent, ref } from 'vue';
-import { closeModal } from '@/setup/controlModal/index';
-import { initData } from '@/setup/methods/index';
+    import { defineComponent, ref } from 'vue';
+    import { closeModal } from '@/setup/controlModal/index';
+    import { initData } from '@/setup/methods/index';
 
-export default defineComponent({
-    name: 'add-custom',
-    components: {},
-    setup() {
-        const { visible, cancel } = closeModal('addCustomInfo');
-        const loading = ref<boolean>(false);
-        function submit() {
-            loading.value = true;
-            setTimeout(() => {
-                loading.value = false;
-                cancel();
-            }, 2000);
-        }
-        initData(() => {});
-        return {
-            visible,
-            cancel,
-            submit,
-            loading,
-        };
-    },
-});
+    export default defineComponent({
+        name: 'add-custom',
+        components: {},
+        setup() {
+            const { visible, cancel } = closeModal('addCustomInfo');
+            const loading = ref<boolean>(false);
+            function submit() {
+                loading.value = true;
+                setTimeout(() => {
+                    loading.value = false;
+                    cancel();
+                }, 2000);
+            }
+            initData(() => {});
+            return {
+                visible,
+                cancel,
+                submit,
+                loading,
+            };
+        },
+    });
 </script>
 
 <style lang="less">
-.add-custom {
-}
-.upload {
-    display: inline-flex;
-    .ant-btn.uploadBtn {
-        width: 60px;
-        height: 30px;
-        background: @m-blue0;
-        border: 0;
-        padding: 0;
-        text-align: center;
-        font-size: 14px;
-        color: @m-white0;
-        .rounded-corners(3px);
-        &:hover {
-            background: rgba(@m-blue0, .0);
-            color: rgba(@m-white0, .8);
-        }
-    }
-    .look {
-        color: @m-blue0;
-        font-size: 14px;
-        margin-left: 10px;
-        cursor: pointer;
+    .add-custom {
     }
-}
-</style>;
+    .upload {
+        display: inline-flex;
+        .ant-btn.uploadBtn {
+            width: 60px;
+            height: 30px;
+            background: @m-blue0;
+            border: 0;
+            padding: 0;
+            text-align: center;
+            font-size: 14px;
+            color: @m-white0;
+            .rounded-corners(3px);
+            &:hover {
+                background: rgba(@m-blue0, 0);
+                color: rgba(@m-white0, 0.8);
+            }
+        }
+        .look {
+            color: @m-blue0;
+            font-size: 14px;
+            margin-left: 10px;
+            cursor: pointer;
+        }
+    }</style
+>;

+ 32 - 39
src/views/information/custom/compoments/modifyCustom/index.vue

@@ -1,47 +1,40 @@
 <template>
-  <!-- 修改客户资料-->
-  <a-modal class="modify-custom"
-           title="修改客户资料"
-           v-model:visible="visible"
-           @cancel="cancel"
-           width="890px">
-    <template #footer>
-      <a-button key="submit"
-                type="primary"
-                :loading="loading"
-                @click="submit">完成</a-button>
-    </template>
-  </a-modal>
+    <!-- 修改客户资料-->
+    <a-modal class="modify-custom" title="修改客户资料" v-model:visible="visible" @cancel="cancel" width="890px">
+        <template #footer>
+            <a-button key="submit" type="primary" :loading="loading" @click="submit">完成</a-button>
+        </template>
+    </a-modal>
 </template>
 
 <script lang="ts">
-import { defineComponent, ref } from 'vue';
-import { closeModal } from '@/setup/controlModal/index';
+    import { defineComponent, ref } from 'vue';
+    import { closeModal } from '@/setup/controlModal/index';
 
-export default defineComponent({
-    name: 'modify-custom',
-    components: {},
-    setup() {
-        const { visible, cancel } = closeModal('modifyCustomInfo');
-        const loading = ref<boolean>(false);
-        function submit() {
-            loading.value = true;
-            setTimeout(() => {
-                loading.value = false;
-                cancel();
-            }, 2000);
-        }
-        return {
-            visible,
-            cancel,
-            submit,
-            loading,
-        };
-    },
-});
+    export default defineComponent({
+        name: 'modify-custom',
+        components: {},
+        setup() {
+            const { visible, cancel } = closeModal('modifyCustomInfo');
+            const loading = ref<boolean>(false);
+            function submit() {
+                loading.value = true;
+                setTimeout(() => {
+                    loading.value = false;
+                    cancel();
+                }, 2000);
+            }
+            return {
+                visible,
+                cancel,
+                submit,
+                loading,
+            };
+        },
+    });
 </script>
 
 <style lang="less">
-.modify-custom {
-}
-</style>;
+    .modify-custom {
+    }</style
+>;

+ 82 - 90
src/views/information/custom/list/normal-use/index.vue

@@ -1,105 +1,97 @@
 <template>
-  <!-- 客户信息: 正常 -->
-  <div class="custom-normal"
-       :loading="loading">
-    <filterCustomTable @search="search">
-      <a-button class="operBtn"
-                v-if="hasPermission('custom_info_btn_add')"
-                @click="openAction">新增</a-button>
-    </filterCustomTable>
-    <contextMenu :contextMenuList="contextMenuList"
-                 :tableList="customList">
-      <a-table :columns="columns"
-               class="topTable"
-               :pagination="false"
-               rowKey="key"
-               :data-source="customList">
-        <template #userinfotype="{ text }">
-          <a>{{ text === '2' ? '企业' : '个人'}}</a>
-        </template>
-      </a-table>
-    </contextMenu>
-    <!-- 详情 -->
-    <CustomDetail />
-    <!-- 修改 -->
-    <ModifyCustom />
-    <!-- 停用 -->
-    <DisableCustom />
-  </div>
+    <!-- 客户信息: 正常 -->
+    <div class="custom-normal" :loading="loading">
+        <filterCustomTable @search="search">
+            <a-button class="operBtn" v-if="hasPermission('custom_info_btn_add')" @click="openAction">新增</a-button>
+        </filterCustomTable>
+        <contextMenu :contextMenuList="contextMenuList" :tableList="customList">
+            <a-table :columns="columns" class="topTable" :pagination="false" rowKey="key" :data-source="customList">
+                <template #userinfotype="{ text }">
+                    <a>{{ text === '2' ? '企业' : '个人' }}</a>
+                </template>
+            </a-table>
+        </contextMenu>
+        <!-- 详情 -->
+        <CustomDetail />
+        <!-- 修改 -->
+        <ModifyCustom />
+        <!-- 停用 -->
+        <DisableCustom />
+    </div>
 </template>
 
 <script lang="ts">
-import { defineComponent, onUnmounted, Ref, ref, watchEffect } from 'vue';
+    import { defineComponent, onUnmounted, Ref, ref, watchEffect } from 'vue';
 
-import { initData } from '@/setup/methods/index';
-import filterCustomTable from '@/views/information/custom/compoments/filterTable/index.vue';
-import { MenuItem } from '@/components/contextMenu/interface';
-import contextMenu from '@/components/contextMenu/index.vue';
-import { getCustomList } from '../setup';
-import { openModal } from '@/setup/controlModal/index';
-import CustomDetail from '@/views/information/custom/compoments/customDetail/index.vue';
-import ModifyCustom from '@/views/information/custom/compoments/modifyCustom/index.vue';
-import DisableCustom from '@/views/information/custom/compoments/disableCustom/index.vue';
+    import { initData } from '@/setup/methods/index';
+    import filterCustomTable from '@/views/information/custom/compoments/filterTable/index.vue';
+    import { MenuItem } from '@/components/contextMenu/interface';
+    import contextMenu from '@/components/contextMenu/index.vue';
+    import { getCustomList } from '../setup';
+    import { openModal } from '@/setup/controlModal/index';
+    import CustomDetail from '@/views/information/custom/compoments/customDetail/index.vue';
+    import ModifyCustom from '@/views/information/custom/compoments/modifyCustom/index.vue';
+    import DisableCustom from '@/views/information/custom/compoments/disableCustom/index.vue';
 
-// 处理详情
-function handleDetail(contextMenuList: Ref<MenuItem[]>) {
-    const { openAction } = openModal('customDetail');
-    contextMenuList.value.push({ lable: '详情', callback: openAction });
-}
-// 处理修改
-function handleModify(contextMenuList: Ref<MenuItem[]>) {
-    const { openAction } = openModal('modifyCustomInfo');
-    function modifyAction() {
-        contextMenuList.value.push({ lable: '修改', callback: openAction });
+    // 处理详情
+    function handleDetail(contextMenuList: Ref<MenuItem[]>) {
+        const { openAction } = openModal('customDetail');
+        contextMenuList.value.push({ lable: '详情', callback: openAction });
+    }
+    // 处理修改
+    function handleModify(contextMenuList: Ref<MenuItem[]>) {
+        const { openAction } = openModal('modifyCustomInfo');
+        function modifyAction() {
+            contextMenuList.value.push({ lable: '修改', callback: openAction });
+        }
+        return { modifyAction };
     }
-    return { modifyAction };
-}
 
-// 处理停用
-function handleDisable(contextMenuList: Ref<MenuItem[]>) {
-    const { openAction } = openModal('disableCustomInfo');
-    function disableAction() {
-        contextMenuList.value.push({ lable: '停用', callback: openAction });
+    // 处理停用
+    function handleDisable(contextMenuList: Ref<MenuItem[]>) {
+        const { openAction } = openModal('disableCustomInfo');
+        function disableAction() {
+            contextMenuList.value.push({ lable: '停用', callback: openAction });
+        }
+        return { disableAction };
     }
-    return { disableAction };
-}
-export default defineComponent({
-    name: 'custom-normal',
-    components: {
-        filterCustomTable,
-        contextMenu,
-        CustomDetail,
-        ModifyCustom,
-        DisableCustom,
-    },
-    setup() {
-        const { customList, actionQuery, columns, getColumns, search, loading, handlePermission } = getCustomList();
-        const { hasPermission } = handlePermission('custom_info_normal');
-        const contextMenuList = ref<MenuItem[]>([]);
+    export default defineComponent({
+        name: 'custom-normal',
+        components: {
+            filterCustomTable,
+            contextMenu,
+            CustomDetail,
+            ModifyCustom,
+            DisableCustom,
+        },
+        setup() {
+            const { customList, actionQuery, columns, getColumns, search, loading, handlePermission } = getCustomList();
+            const { hasPermission } = handlePermission('custom_info_normal');
+            const contextMenuList = ref<MenuItem[]>([]);
 
-        const { openAction } = openModal('addCustomInfo');
+            const { openAction } = openModal('addCustomInfo');
 
-        handleDetail(contextMenuList);
-        const { modifyAction } = handleModify(contextMenuList);
-        const { disableAction } = handleDisable(contextMenuList);
+            handleDetail(contextMenuList);
+            const { modifyAction } = handleModify(contextMenuList);
+            const { disableAction } = handleDisable(contextMenuList);
 
-        const stop = watchEffect(() => {
-            hasPermission('custom_info_btn_modify') && modifyAction();
-            hasPermission('custom_info_btn_disable') && disableAction();
-        });
-        onUnmounted(() => {
-            stop();
-        });
-        initData(() => {
-            actionQuery(3);
-            getColumns();
-        });
-        return { customList, columns, search, loading, contextMenuList, hasPermission, openAction };
-    },
-});
+            const stop = watchEffect(() => {
+                hasPermission('custom_info_btn_modify') && modifyAction();
+                hasPermission('custom_info_btn_disable') && disableAction();
+            });
+            onUnmounted(() => {
+                stop();
+            });
+            initData(() => {
+                actionQuery(3);
+                getColumns();
+            });
+            return { customList, columns, search, loading, contextMenuList, hasPermission, openAction };
+        },
+    });
 </script>
 
 <style lang="less">
-.custom-normal {
-}
-</style>;
+    .custom-normal {
+    }</style
+>;

+ 82 - 91
src/views/information/custom/list/stop-use/index.vue

@@ -1,106 +1,97 @@
 <template>
-  <!-- 客户信息: 停用 -->
-  <div class="custom-normal"
-       :loading="loading">
-    <filterCustomTable @search="search">
-      <a-button class="operBtn"
-                v-if="hasPermission('custom_info_btn_add')"
-                @click="openAction">新增</a-button>
-    </filterCustomTable>
-    <contextMenu :contextMenuList="contextMenuList"
-                 :tableList="customList">
-      <a-table :columns="columns"
-               class="topTable"
-               :pagination="false"
-               rowKey="key"
-               :data-source="customList">
-        <template #userinfotype="{ text }">
-          <a>{{ text === '2' ? '企业' : '个人'}}</a>
-        </template>
-      </a-table>
-    </contextMenu>
-    <!-- 详情 -->
-    <CustomDetail />
-    <!-- 删除 -->
-    <DeleteCustom />
-    <!-- 恢复客户资料 -->
-    <RecoverCustom />
-
-  </div>
+    <!-- 客户信息: 停用 -->
+    <div class="custom-normal" :loading="loading">
+        <filterCustomTable @search="search">
+            <a-button class="operBtn" v-if="hasPermission('custom_info_btn_add')" @click="openAction">新增</a-button>
+        </filterCustomTable>
+        <contextMenu :contextMenuList="contextMenuList" :tableList="customList">
+            <a-table :columns="columns" class="topTable" :pagination="false" rowKey="key" :data-source="customList">
+                <template #userinfotype="{ text }">
+                    <a>{{ text === '2' ? '企业' : '个人' }}</a>
+                </template>
+            </a-table>
+        </contextMenu>
+        <!-- 详情 -->
+        <CustomDetail />
+        <!-- 删除 -->
+        <DeleteCustom />
+        <!-- 恢复客户资料 -->
+        <RecoverCustom />
+    </div>
 </template>
 
 <script lang="ts">
-import { defineComponent, onUnmounted, Ref, ref, watchEffect } from 'vue';
+    import { defineComponent, onUnmounted, Ref, ref, watchEffect } from 'vue';
 
-import { initData } from '@/setup/methods/index';
-import filterCustomTable from '@/views/information/custom/compoments/filterTable/index.vue';
-import { MenuItem } from '@/components/contextMenu/interface';
-import contextMenu from '@/components/contextMenu/index.vue';
-import { getCustomList } from '../setup';
-import { openModal } from '@/setup/controlModal/index';
-import CustomDetail from '@/views/information/custom/compoments/customDetail/index.vue';
-import DeleteCustom from '@/views/information/custom/compoments/deleteCustom/index.vue';
-import RecoverCustom from '@/views/information/custom/compoments/recover/index.vue';
+    import { initData } from '@/setup/methods/index';
+    import filterCustomTable from '@/views/information/custom/compoments/filterTable/index.vue';
+    import { MenuItem } from '@/components/contextMenu/interface';
+    import contextMenu from '@/components/contextMenu/index.vue';
+    import { getCustomList } from '../setup';
+    import { openModal } from '@/setup/controlModal/index';
+    import CustomDetail from '@/views/information/custom/compoments/customDetail/index.vue';
+    import DeleteCustom from '@/views/information/custom/compoments/deleteCustom/index.vue';
+    import RecoverCustom from '@/views/information/custom/compoments/recover/index.vue';
 
-// 处理详情
-function handleDetail(contextMenuList: Ref<MenuItem[]>) {
-    const { openAction } = openModal('customDetail');
-    contextMenuList.value.push({ lable: '详情', callback: openAction });
-}
-// 处理删除
-function handleDelete(contextMenuList: Ref<MenuItem[]>) {
-    const { openAction } = openModal('deleteCustomInfo');
-    function deleteAction() {
-        contextMenuList.value.push({ lable: '删除', callback: openAction });
+    // 处理详情
+    function handleDetail(contextMenuList: Ref<MenuItem[]>) {
+        const { openAction } = openModal('customDetail');
+        contextMenuList.value.push({ lable: '详情', callback: openAction });
+    }
+    // 处理删除
+    function handleDelete(contextMenuList: Ref<MenuItem[]>) {
+        const { openAction } = openModal('deleteCustomInfo');
+        function deleteAction() {
+            contextMenuList.value.push({ lable: '删除', callback: openAction });
+        }
+        return { deleteAction };
     }
-    return { deleteAction };
-}
-// 处理恢复
-function handleRecover(contextMenuList: Ref<MenuItem[]>) {
-    const { openAction } = openModal('recoverCustomInfo');
-    function recoverAction() {
-        contextMenuList.value.push({ lable: '删除', callback: openAction });
+    // 处理恢复
+    function handleRecover(contextMenuList: Ref<MenuItem[]>) {
+        const { openAction } = openModal('recoverCustomInfo');
+        function recoverAction() {
+            contextMenuList.value.push({ lable: '删除', callback: openAction });
+        }
+        return { recoverAction };
     }
-    return { recoverAction };
-}
 
-export default defineComponent({
-    name: 'custom-normal',
-    components: {
-        filterCustomTable,
-        contextMenu,
-        CustomDetail,
-        DeleteCustom,
-        RecoverCustom,
-    },
-    setup() {
-        const { customList, actionQuery, columns, getColumns, search, loading, handlePermission } = getCustomList();
-        const { hasPermission } = handlePermission('custom_info_normal');
-        const contextMenuList = ref<MenuItem[]>([]);
+    export default defineComponent({
+        name: 'custom-normal',
+        components: {
+            filterCustomTable,
+            contextMenu,
+            CustomDetail,
+            DeleteCustom,
+            RecoverCustom,
+        },
+        setup() {
+            const { customList, actionQuery, columns, getColumns, search, loading, handlePermission } = getCustomList();
+            const { hasPermission } = handlePermission('custom_info_normal');
+            const contextMenuList = ref<MenuItem[]>([]);
 
-        const { openAction } = openModal('addCustomInfo');
+            const { openAction } = openModal('addCustomInfo');
 
-        handleDetail(contextMenuList);
-        const { deleteAction } = handleDelete(contextMenuList);
-        const { recoverAction } = handleRecover(contextMenuList);
+            handleDetail(contextMenuList);
+            const { deleteAction } = handleDelete(contextMenuList);
+            const { recoverAction } = handleRecover(contextMenuList);
 
-        const stop = watchEffect(() => {
-            hasPermission('custom_info_btn_recover') && recoverAction();
-            hasPermission('custom_info_btn_delete') && deleteAction();
-        });
-        onUnmounted(() => {
-            stop();
-        });
-        initData(() => {
-            actionQuery(4);
-            getColumns();
-        });
-        return { customList, columns, search, loading, contextMenuList, hasPermission, openAction };
-    },
-});
+            const stop = watchEffect(() => {
+                hasPermission('custom_info_btn_recover') && recoverAction();
+                hasPermission('custom_info_btn_delete') && deleteAction();
+            });
+            onUnmounted(() => {
+                stop();
+            });
+            initData(() => {
+                actionQuery(4);
+                getColumns();
+            });
+            return { customList, columns, search, loading, contextMenuList, hasPermission, openAction };
+        },
+    });
 </script>
 
 <style lang="less">
-.custom-normal {
-}
-</style>;
+    .custom-normal {
+    }</style
+>;