From 7e7904fb591a51784015cfcc8055939303af8a8f Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Tue, 9 Jul 2024 11:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processproduction/processproductionRequest/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue b/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue index 8f1767579..9979429f2 100644 --- a/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue +++ b/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue @@ -114,7 +114,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => nextTick(() => { if (type == 'tableForm') { if(formField === 'productionLine'){ - row['productionLine']=val[0]['productionLineCode'] + val.forEach(item=>{ + // if(tableData.value.find(item1=>item1['productionLine'] == item['productionLineCode'])) return + const newRow = JSON.parse(JSON.stringify(tableFormKeys)) + newRow['productionLine'] = item['productionLineCode'] + tableData.value.push(newRow) + }) } if(formField === 'processCode'){ row['processCode']=val[0]['code']