diff --git a/src/api/base/customer/index.js b/src/api/base/customer/index.js index 378f6a5..420527b 100644 --- a/src/api/base/customer/index.js +++ b/src/api/base/customer/index.js @@ -42,13 +42,6 @@ export function getCustomerMain(id) { }) } -// 获取经办人信息 -export function getCustomerMainAttn(deptCode) { - return request({ - url: '/base/custom/getAttn?deptCode=' + deptCode, - method: 'get' - }) -} export function getCustomerMainPage(params) { return request({ diff --git a/src/views/base/customer/ChooseCarDraw.vue b/src/views/base/customer/ChooseCarDraw.vue index 5f1a0d4..cf0d7e9 100644 --- a/src/views/base/customer/ChooseCarDraw.vue +++ b/src/views/base/customer/ChooseCarDraw.vue @@ -140,7 +140,7 @@ export default { const res = await CarMainApi.getCarMainPage(this.queryParams); this.list = res.data.records; this.total = res.data.total; - this.multipleSelection = multipleSelection + this.multipleSelection = JSON.parse(JSON.stringify(multipleSelection)) this.defaultChecked(multipleSelection) } finally { this.formLoading = false; @@ -148,18 +148,19 @@ export default { }, /**标签删除事件*/ tagClose(row){ - console.log(row) + const that = this; let id1 = this.multipleSelection.findIndex(item => { if (item.id == row.id) { + this.$nextTick(() => { + that.$refs.multipleTable.toggleRowSelection( + this.list.find( // 这是弹框表格的数据 + carItem => item.id === carItem.id + ), false); + }); return true } }) this.multipleSelection.splice(id1, 1) - const that = this; - this.$nextTick(() => { - that.$refs.multipleTable.toggleRowSelection(row, false); - }); - }, /**选中*/ diff --git a/src/views/base/customer/CustomerCarForm.vue b/src/views/base/customer/CustomerCarForm.vue index 04afeb4..bffe1be 100644 --- a/src/views/base/customer/CustomerCarForm.vue +++ b/src/views/base/customer/CustomerCarForm.vue @@ -63,6 +63,7 @@ {{item.licenseNumber}} @@ -121,6 +122,15 @@ export default { this.formLoading = false; } }, + /**删除卡片*/ + deleteCar(row){ + this.formData.carList.forEach((item,index) => { + if (item.id == row.id){ + this.formData.carList.splice(index,1) + } + }) + }, + /**重置*/ reset(){ this.formData={ diff --git a/src/views/base/customer/components/CorpCustomer.vue b/src/views/base/customer/components/CorpCustomer.vue index 7851a54..99237f4 100644 --- a/src/views/base/customer/components/CorpCustomer.vue +++ b/src/views/base/customer/components/CorpCustomer.vue @@ -33,13 +33,14 @@ -