Procházet zdrojové kódy

修改客户资料

huangbin před 4 roky
rodič
revize
9c16b2f2e8

+ 0 - 1
src/views/information/custom/compoments/addCustom/index.vue

@@ -16,7 +16,6 @@ import { closeModal } from '@/setup/controlModal/index';
 import NoticeContent from './components/noticeContent.vue';
 import { initData } from '@/setup/methods/index';
 import { queryNotice } from '@/goServiceAPI/commonService/index';
-import { queryNoticeRsp } from '@/goServiceAPI/commonService/interface';
 
 export default defineComponent({
     name: 'add-custom',

+ 2 - 8
src/views/information/custom/list/normal-use/index.vue

@@ -23,7 +23,6 @@ import { QueryCustomInfo } from '@/goServiceAPI/ermcp/customInfo/index';
 import { QueryCustomInfoType } from '@/goServiceAPI/ermcp/customInfo/interface';
 import filterCustomTable from '@/views/information/custom/compoments/filterTable/index.vue';
 import { getTableHead, ColumnType } from '@/services/bus/table';
-import { TableState, TableStateFilters } from 'ant-design-vue/es/table/interface';
 import { message } from 'ant-design-vue';
 import { useRouter } from 'vue-router';
 
@@ -64,13 +63,8 @@ function getCustomList() {
                 item.filteredValue = filtered.nickname || null;
             }
             if (e.columntitle === '客户名称') {
-                // 注意:这里绑定值 待确认
-                item.onFilter = (value: string, record: QueryCustomInfoType) => {
-                    // 用户信息类型 - 1:个人 2:企业
-                    const name = String(record.userinfotype) === '1' ? record.contactname : record.customername;
-                    name.includes(value);
-                    item.filteredValue = filtered.contactname || null;
-                };
+                item.onFilter = (value: string, record: QueryCustomInfoType) => record.contactname.includes(value);
+                item.filteredValue = filtered.contactname || null;
             }
             if (e.columntitle === '手机号码') {
                 item.onFilter = (value: string, record: QueryCustomInfoType) => record.mobile.includes(value);