From 8453a6889869a647768c209b0e2a66e8cb08a62f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chhk=E2=80=9D?= <“hhk@mail.com”> Date: Tue, 6 Aug 2024 16:59:06 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=AE=A2=E6=88=B7=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/carmain/index.js | 8 + src/views/base/carbrand/index.vue | 6 +- src/views/base/carmain/CarMainForm.vue | 5 +- .../carmain/components/ChooseCustomerDraw.vue | 267 ++++++++++++++++++ .../carmain/components/CustomerCarForm.vue | 189 +++++++++++++ src/views/base/carmain/index.vue | 59 ++-- 6 files changed, 504 insertions(+), 30 deletions(-) create mode 100644 src/views/base/carmain/components/ChooseCustomerDraw.vue create mode 100644 src/views/base/carmain/components/CustomerCarForm.vue diff --git a/src/api/base/carmain/index.js b/src/api/base/carmain/index.js index cb809a3..054ef13 100644 --- a/src/api/base/carmain/index.js +++ b/src/api/base/carmain/index.js @@ -34,6 +34,14 @@ export function getCarMain(id) { }) } +export function bindCustomerCar(data) { + return request({ + url: '/base/carMain/bindCustomerCar', + method: 'post', + data: data + }) +} + // 获得车辆信息分页 export function getCarMainPage(params) { return request({ diff --git a/src/views/base/carbrand/index.vue b/src/views/base/carbrand/index.vue index 645ee3b..d5f8aac 100644 --- a/src/views/base/carbrand/index.vue +++ b/src/views/base/carbrand/index.vue @@ -57,7 +57,11 @@ }} - + + + @@ -78,11 +79,13 @@ + diff --git a/src/views/base/carmain/components/CustomerCarForm.vue b/src/views/base/carmain/components/CustomerCarForm.vue new file mode 100644 index 0000000..7a5f681 --- /dev/null +++ b/src/views/base/carmain/components/CustomerCarForm.vue @@ -0,0 +1,189 @@ + + + diff --git a/src/views/base/carmain/index.vue b/src/views/base/carmain/index.vue index bf1b9a1..0e85950 100644 --- a/src/views/base/carmain/index.vue +++ b/src/views/base/carmain/index.vue @@ -171,17 +171,17 @@ 删除 - - 更多 - - + 更多 + + 绑定客户 - 打标签 - - - + + + @@ -191,10 +191,12 @@ @pagination="getList" /> + 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 @@ + + + From 857d522b828136a920f0b871aa9ebc0e23182759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chhk=E2=80=9D?= <“hhk@mail.com”> Date: Tue, 6 Aug 2024 17:20:19 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=BC=8F=E6=8F=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/CarBrandSelector/index.vue | 104 ++++++++++++++++++ .../carmain/components/CustomerCarForm.vue | 2 +- 2 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 src/layout/components/CarBrandSelector/index.vue diff --git a/src/layout/components/CarBrandSelector/index.vue b/src/layout/components/CarBrandSelector/index.vue new file mode 100644 index 0000000..f3590a6 --- /dev/null +++ b/src/layout/components/CarBrandSelector/index.vue @@ -0,0 +1,104 @@ + + + + \ No newline at end of file diff --git a/src/views/base/carmain/components/CustomerCarForm.vue b/src/views/base/carmain/components/CustomerCarForm.vue index 7a5f681..ddc21f4 100644 --- a/src/views/base/carmain/components/CustomerCarForm.vue +++ b/src/views/base/carmain/components/CustomerCarForm.vue @@ -73,7 +73,7 @@ - +