From cdf8bf9c942d6d19b9ce4b3073411d4dde498ae2 Mon Sep 17 00:00:00 2001 From: PQZ Date: Tue, 6 Aug 2024 17:12:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/customer/index.js | 8 + src/views/base/customer/CustomerLabelForm.vue | 178 ++++++++++++++++++ .../customer/components/PrivateCustomer.vue | 12 +- src/views/base/label/BusiLabelForm.vue | 97 ++++++++++ 4 files changed, 294 insertions(+), 1 deletion(-) create mode 100644 src/views/base/customer/CustomerLabelForm.vue create mode 100644 src/views/base/label/BusiLabelForm.vue diff --git a/src/api/base/customer/index.js b/src/api/base/customer/index.js index 420527b..711b32a 100644 --- a/src/api/base/customer/index.js +++ b/src/api/base/customer/index.js @@ -17,6 +17,14 @@ export function bindCustomerCar(data) { }) } +export function setLabelList(data) { + return request({ + url: '/base/custom/setLabel', + method: 'post', + data: data + }) +} + // 更新客户管理 export function updateCustomerMain(data) { return request({ diff --git a/src/views/base/customer/CustomerLabelForm.vue b/src/views/base/customer/CustomerLabelForm.vue new file mode 100644 index 0000000..38964a7 --- /dev/null +++ b/src/views/base/customer/CustomerLabelForm.vue @@ -0,0 +1,178 @@ + + + diff --git a/src/views/base/customer/components/PrivateCustomer.vue b/src/views/base/customer/components/PrivateCustomer.vue index 4d30ff5..7017c6d 100644 --- a/src/views/base/customer/components/PrivateCustomer.vue +++ b/src/views/base/customer/components/PrivateCustomer.vue @@ -92,6 +92,7 @@ 绑定车辆 + 打标签 @@ -104,6 +105,7 @@ + @@ -111,10 +113,11 @@ import * as CustomerMainApi from '@/api/base/customer'; import CustomerMainForm from '@/views/base/customer/CustomerMainForm.vue'; import CustomerCarForm from '@/views/base/customer/CustomerCarForm.vue'; +import CustomerLabelForm from '@/views/base/customer/CustomerLabelForm.vue'; export default { name: "PrivateCustomer", components: { - CustomerMainForm,CustomerCarForm + CustomerMainForm,CustomerCarForm,CustomerLabelForm }, props:{ typeCode: { @@ -176,10 +179,17 @@ export default { //绑定车辆信息 this.bindCar(row); break; + case 'bindLabel': + this.bindLabel(row); + break; default: break; } }, + /**打标签*/ + bindLabel(row){ + this.$refs["labelFormRef"].open(row); + }, /** 查询列表 */ async getList() { try { diff --git a/src/views/base/label/BusiLabelForm.vue b/src/views/base/label/BusiLabelForm.vue new file mode 100644 index 0000000..5166728 --- /dev/null +++ b/src/views/base/label/BusiLabelForm.vue @@ -0,0 +1,97 @@ + + +