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']