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/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/layout/components/CarBrandSelector/index.vue b/src/layout/components/CarBrandSelector/index.vue new file mode 100644 index 0000000..9ee6d50 --- /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/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 @@ }} - + + + + + diff --git a/src/views/base/carmain/CarMainForm.vue b/src/views/base/carmain/CarMainForm.vue index f794e16..17462b2 100644 --- a/src/views/base/carmain/CarMainForm.vue +++ b/src/views/base/carmain/CarMainForm.vue @@ -71,6 +71,7 @@ 确 定 取 消 + @@ -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..ddc21f4 --- /dev/null +++ b/src/views/base/carmain/components/CustomerCarForm.vue @@ -0,0 +1,189 @@ + + + + + + + 车辆基本信息 + + + + + 车牌号 + + {{formData.licenseNumber}} + + + + 车辆品牌 + + + {{formData.carBrand}} + + + + 车辆型号 + + + {{formData.carModel }} + + + + 车架号 + + {{formData.vin}} + + + + 发动机号码 + + {{formData.engineNumber}} + + + + 车辆注册日期 + + {{ parseTime(formData.carRegisterDate,'{y}-{m}-{d}') }} + + + + 车辆性质 + + + + + + 车辆类别 + + + + + + 最近办理业务 + + + + + + + + + 客户信息 + 选择客户 + + + + + + + + {{item.cusName}}({{ getDictDataLabel(DICT_TYPE.DICT_SYS_USER_SEX,item.sex) }}) + + + + {{item.phoneNumber}} + + + + + + + + + + + + + + diff --git a/src/views/base/carmain/index.vue b/src/views/base/carmain/index.vue index bf1b9a1..52065ea 100644 --- a/src/views/base/carmain/index.vue +++ b/src/views/base/carmain/index.vue @@ -171,17 +171,17 @@ 删除 - handleCommand(command, scope.$index, scope.row)" - v-hasPermi="['base:car-main:update']"> - 更多 - - 绑定客户 - 打标签 - - - + handleCommand(command, scope.$index, scope.row)" + v-hasPermi="['base:car-main:update']"> + 更多 + + 绑定客户 + 打标签 + + + @@ -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 @@ + + + + + + + + + + + + + 实例:{{ labelData.labelName }} + + + + + + + + + + +