From 2697bf1c992f38ce865d85b825c7b0d55f7b496b Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Fri, 30 Jan 2026 17:21:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(crm):=20=E6=9B=B4=E6=96=B0=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E6=A8=A1=E5=9D=97=E7=9A=84=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E8=B7=AF=E5=BE=84=E5=92=8C=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 getCrmCustomerInfoList 的导入路径从 '@/api/oa/crm/crmCustomerInfo' 修改为 '@/api/oa/crm/customerInfo' - 将 CrmCustomerInfoVO 类型替换为 CustomerInfoVO 类型 - 移除 crmCustomerInfo/types.ts 文件中的 CrmCustomerInfoVO 相关类型定义 - 更新 edit.vue 中 customerList 的类型声明以匹配新的类型定义 --- src/api/oa/crm/crmCustomerInfo/types.ts | 65 ------------------------- src/views/oa/crm/crmGiftApply/edit.vue | 6 +-- 2 files changed, 3 insertions(+), 68 deletions(-) delete mode 100644 src/api/oa/crm/crmCustomerInfo/types.ts diff --git a/src/api/oa/crm/crmCustomerInfo/types.ts b/src/api/oa/crm/crmCustomerInfo/types.ts deleted file mode 100644 index ce0d9c9..0000000 --- a/src/api/oa/crm/crmCustomerInfo/types.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * 客户信息 类型定义 - */ -export interface CrmCustomerInfoVO { - customerId: number; - customerName: string; - mnemonicName?: string; - industryId?: number; - customerType?: number; - customerStatus?: number; - customerLevel?: number; - customerSource?: number; - ownerId?: number; - ownerName?: string; - detailedAddress?: string; - customerScale?: number; - parentCustomerId?: number; - customerRelationship?: string; - legalRepresentative?: string; - businessLicenseNumber?: string; - taxNumber?: string; - bankAccountOpening?: string; - bankNumber?: string; - ossId?: string; - remark?: string; - activeFlag?: string; - ourCompanyFlag?: string; -} - -export interface CrmCustomerInfoQuery { - pageNum?: number; - pageSize?: number; - customerName?: string; - mnemonicName?: string; - customerType?: number; - customerStatus?: number; - customerLevel?: number; - activeFlag?: string; - ourCompanyFlag?: string; -} - -export interface CrmCustomerInfoForm { - customerId?: number; - customerName?: string; - mnemonicName?: string; - industryId?: number; - customerType?: number; - customerStatus?: number; - customerLevel?: number; - customerSource?: number; - ownerId?: number; - detailedAddress?: string; - customerScale?: number; - parentCustomerId?: number; - customerRelationship?: string; - legalRepresentative?: string; - businessLicenseNumber?: string; - taxNumber?: string; - bankAccountOpening?: string; - bankNumber?: string; - ossId?: string; - remark?: string; - activeFlag?: string; - ourCompanyFlag?: string; -} diff --git a/src/views/oa/crm/crmGiftApply/edit.vue b/src/views/oa/crm/crmGiftApply/edit.vue index 2b92cde..d50394e 100644 --- a/src/views/oa/crm/crmGiftApply/edit.vue +++ b/src/views/oa/crm/crmGiftApply/edit.vue @@ -193,8 +193,8 @@ import { addCrmGiftApply, getCrmGiftApply, giftApplySubmitAndFlowStart, updateCr import { CrmGiftApplyForm } from '@/api/oa/crm/crmGiftApply/types'; import GiftSelect from '@/components/GiftSelect/index.vue'; import { CrmGiftInfoVO } from '@/api/oa/crm/crmGiftInfo/types'; -import { getCrmCustomerInfoList } from '@/api/oa/crm/crmCustomerInfo'; -import { CrmCustomerInfoVO } from '@/api/oa/crm/crmCustomerInfo/types'; +import { getCrmCustomerInfoList } from '@/api/oa/crm/customerInfo'; +import { CustomerInfoVO } from '@/api/oa/crm/customerInfo/types'; import { getInfo } from '@/api/login'; import { listUser } from '@/api/system/user'; import SubmitVerify from '@/components/Process/submitVerify.vue'; @@ -224,7 +224,7 @@ const buttonLoading = ref(false); // 礼品选择组件引用与当前行索引 const giftSelectRef = ref>(); const currentRowIndex = ref(-1); -const customerList = ref([]); +const customerList = ref([]); const userList = ref([]); // 用户列表,用于审批人选择 // 市场部ID常量