From 05f5087306ecfc3c115855e0ae20f3ba0a99b9f4 Mon Sep 17 00:00:00 2001 From: wersd <1523826083@qq.com> Date: Sun, 29 Jun 2025 09:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/contract/index.ts | 10 +- src/api/crm/receivable/index.ts | 1 + src/api/crm/receivable/plan/index.ts | 2 + src/api/system/dept/index.ts | 6 + src/components/AttachmentFile/index.vue | 147 ++++++++++ src/utils/dict.ts | 1 + src/views/crm/contract/ContractForm.vue | 121 +++++--- .../components/ContractProductForm.vue | 108 +++---- .../contract/detail/ContractDetailsHeader.vue | 29 +- .../contract/detail/ContractProductList.vue | 15 +- src/views/crm/contract/detail/index.vue | 27 +- src/views/crm/contract/index.vue | 74 +++-- src/views/crm/receivable/ReceivableForm.vue | 2 +- .../receivable/components/ReceivableList.vue | 44 +-- .../receivable/plan/ReceivablePlanForm.vue | 52 ++-- .../plan/components/ReceivablePlanList.vue | 50 ++-- src/views/crm/receivable/plan/index.vue | 83 ++---- .../crm/receivable/request/RequestForm.vue | 162 ++++++++++ src/views/crm/receivable/request/index.vue | 276 ++++++++++++++++++ src/views/crm/stationsite/detail/index.vue | 83 +----- src/views/system/dept/DeptForm.vue | 20 +- src/views/system/dept/index.vue | 14 +- 22 files changed, 969 insertions(+), 358 deletions(-) create mode 100644 src/components/AttachmentFile/index.vue create mode 100644 src/views/crm/receivable/request/RequestForm.vue create mode 100644 src/views/crm/receivable/request/index.vue diff --git a/src/api/crm/contract/index.ts b/src/api/crm/contract/index.ts index 3d64c4256..6434b95a7 100644 --- a/src/api/crm/contract/index.ts +++ b/src/api/crm/contract/index.ts @@ -5,14 +5,18 @@ export interface ContractVO { id: number name: string no: string - customerId: number[] - customer?:{ + customerId: number + customerName?: string + otherCustomerId: number[] + otherCustomer?:{ id: number name: string } businessId: number businessName: string + deptId: number + deptName?: string contactLastTime: Date ownerUserId: number ownerUserName?: string @@ -38,6 +42,8 @@ export interface ContractVO { creator: string creatorName: string updateTime?: Date + picUrls?: string[] + fileUrls?: string[] products?: [ { id: number diff --git a/src/api/crm/receivable/index.ts b/src/api/crm/receivable/index.ts index 32ecd25aa..dff6dfd72 100644 --- a/src/api/crm/receivable/index.ts +++ b/src/api/crm/receivable/index.ts @@ -4,6 +4,7 @@ export interface ReceivableVO { id: number no: string planId?: number + period?: number // 期数 customerId?: number customerName?: string contractId?: number diff --git a/src/api/crm/receivable/plan/index.ts b/src/api/crm/receivable/plan/index.ts index 770b3477b..60344ffef 100644 --- a/src/api/crm/receivable/plan/index.ts +++ b/src/api/crm/receivable/plan/index.ts @@ -11,6 +11,8 @@ export interface ReceivablePlanVO { remindTime: Date customerId: number customerName?: string + deptId: number + deptName?: string contractId?: number contractNo?: string ownerUserId: number diff --git a/src/api/system/dept/index.ts b/src/api/system/dept/index.ts index 04d5c8807..0f5de12f0 100644 --- a/src/api/system/dept/index.ts +++ b/src/api/system/dept/index.ts @@ -10,6 +10,7 @@ export interface DeptVO { phone: string email: string createTime: Date + type: number } // 查询部门(精简)列表 @@ -17,6 +18,11 @@ export const getSimpleDeptList = async (): Promise => { return await request.get({ url: '/system/dept/simple-list' }) } +// 查询部门(精简)列表 +export const querySimpleDeptList = async () => { + return await request.get({ url: '/system/dept/query-list?type=2'}) +} + // 查询部门列表 export const getDeptPage = async (params: PageParam) => { return await request.get({ url: '/system/dept/list', params }) diff --git a/src/components/AttachmentFile/index.vue b/src/components/AttachmentFile/index.vue new file mode 100644 index 000000000..8a71aed0e --- /dev/null +++ b/src/components/AttachmentFile/index.vue @@ -0,0 +1,147 @@ + + + + + \ No newline at end of file diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 03ee71489..81b951fad 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -129,6 +129,7 @@ export enum DICT_TYPE { SYSTEM_MAIL_SEND_STATUS = 'system_mail_send_status', SYSTEM_NOTIFY_TEMPLATE_TYPE = 'system_notify_template_type', SYSTEM_SOCIAL_TYPE = 'system_social_type', + SYSTEM_DEPT_TYPE = 'system_dept_type', // ========== INFRA 模块 ========== INFRA_BOOLEAN_STRING = 'infra_boolean_string', diff --git a/src/views/crm/contract/ContractForm.vue b/src/views/crm/contract/ContractForm.vue index e63fcb4cf..7bc470ffe 100644 --- a/src/views/crm/contract/ContractForm.vue +++ b/src/views/crm/contract/ContractForm.vue @@ -14,7 +14,12 @@ --> - + + + + + + + + + + + + + - + - - - - - - - - - - - - @@ -147,7 +151,7 @@ - + @@ -167,7 +171,7 @@ - + - + + + + + + +