From 0240145cb5e65e5d179190a01bae8f161c6204e9 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Thu, 30 Nov 2023 16:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/aftersales/VueTemp.vue | 21 +++-- .../checkInventoryTask/createTask.vue | 85 +++++++++---------- 2 files changed, 55 insertions(+), 51 deletions(-) diff --git a/src/views/aftersales/VueTemp.vue b/src/views/aftersales/VueTemp.vue index 553e9a9e..d024d6df 100644 --- a/src/views/aftersales/VueTemp.vue +++ b/src/views/aftersales/VueTemp.vue @@ -1425,8 +1425,8 @@ const AddInfo = () => { // 首页新增表单确定 const ConfirmForm = () => { - console.log(warehouseData.value,'准备好的数据'); - console.log(Indexform.value.duty,'要筛选的数据'); + console.log(warehouseData.value, '准备好的数据'); + console.log(Indexform.value.duty, '要筛选的数据'); let filteredB = warehouseData.value.filter(item => Indexform.value.duty.includes(item.id)); console.log(filteredB); // 匹配司机名字 @@ -1438,14 +1438,23 @@ const ConfirmForm = () => { FromDisabled.value = false; //启用输入框 let processorEntityList = []; + const matchingObjects = warehouseData.value.filter(obj => + Indexform.value.processor.includes(obj.value) + ); + let name = matchingObjects.map(item => item.label); + name = name.join(','); - const matchingObjects = warehouseData.value.filter(obj => Indexform.value.duty.includes(obj.id)); - console.log(matchingObjects, '名字'); + const matchingObjectsT = warehouseData.value.filter(obj => + Indexform.value.duty.includes(obj.value) + ); + let nameS = matchingObjectsT.map(item => item.label); + nameS = nameS.join(','); + let ProcessingParty = { //处理方 - // businessName: result, + businessName: name, businessId: Indexform.value.processor.join(','), conditions: 1, typesOf: 2, @@ -1453,7 +1462,7 @@ const ConfirmForm = () => { processorEntityList.push(ProcessingParty); let ResponsibleParty = { //责任方 - // businessName:resultT, + businessName:nameS, businessId: Indexform.value.duty.join(','), conditions: 1, typesOf: 1, diff --git a/src/views/distribution/checkInventoryTask/createTask.vue b/src/views/distribution/checkInventoryTask/createTask.vue index 6c2e3c59..d662841f 100644 --- a/src/views/distribution/checkInventoryTask/createTask.vue +++ b/src/views/distribution/checkInventoryTask/createTask.vue @@ -235,22 +235,18 @@ /> - - - - - - + +