From 2e559fc7d9c2e07d6aeec1155095ee7ddd394b0a Mon Sep 17 00:00:00 2001 From: PQZ Date: Fri, 2 Aug 2024 18:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/customer/index.js | 9 +- src/views/base/customer/CustomerMainForm.vue | 46 +++- .../base/customer/components/CorpCustomer.vue | 245 ++++++++++++++++++ .../customer/components/PrivateCustomer.vue | 46 ++-- .../base/customer/components/TodoCustomer.vue | 40 +-- src/views/base/customer/index.vue | 7 +- 6 files changed, 346 insertions(+), 47 deletions(-) create mode 100644 src/views/base/customer/components/CorpCustomer.vue diff --git a/src/api/base/customer/index.js b/src/api/base/customer/index.js index d6a6200..e745be9 100644 --- a/src/api/base/customer/index.js +++ b/src/api/base/customer/index.js @@ -34,7 +34,14 @@ export function getCustomerMain(id) { }) } -// 获得客户管理分页 +// 获取经办人信息 +export function getCustomerMainAttn(deptCode) { + return request({ + url: '/base/custom/getAttn?deptCode=' + deptCode, + method: 'get' + }) +} + export function getCustomerMainPage(params) { return request({ url: '/base/custom/page', diff --git a/src/views/base/customer/CustomerMainForm.vue b/src/views/base/customer/CustomerMainForm.vue index 2cff6b1..631f7ea 100644 --- a/src/views/base/customer/CustomerMainForm.vue +++ b/src/views/base/customer/CustomerMainForm.vue @@ -31,7 +31,7 @@ - + {{ dict.label }} @@ -96,9 +96,9 @@ 服务内容 @@ -158,6 +158,7 @@ + diff --git a/src/views/base/customer/components/PrivateCustomer.vue b/src/views/base/customer/components/PrivateCustomer.vue index cac8651..fc05d25 100644 --- a/src/views/base/customer/components/PrivateCustomer.vue +++ b/src/views/base/customer/components/PrivateCustomer.vue @@ -34,49 +34,57 @@ - - - - - - - + + - - + + + + + + + + + - - - - + - + @@ -178,7 +186,7 @@ export default { /** 删除按钮操作 */ async handleDelete(row) { const id = row.id; - await this.$modal.confirm('是否确认删除客户管理编号为"' + id + '"的数据项?') + await this.$modal.confirm('是否确认删除客户名称为"' + row.cusName + '"的数据项?') try { await CustomerMainApi.deleteCustomerMain(id); await this.getList(); diff --git a/src/views/base/customer/components/TodoCustomer.vue b/src/views/base/customer/components/TodoCustomer.vue index 8c8f2fb..353692f 100644 --- a/src/views/base/customer/components/TodoCustomer.vue +++ b/src/views/base/customer/components/TodoCustomer.vue @@ -34,42 +34,46 @@ - - - - - - - + + - - + + + + + + + + + - - - - + - +