From adf392a12fab8eaa0e28ef1262cffe857c7c3c83 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 9 Oct 2024 08:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B6=E5=93=81=E5=9B=9E=E6=94=B6=E7=94=B3?= =?UTF-8?q?=E8=AF=B7---=E7=94=9F=E4=BA=A7=E7=BA=BF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BC=A0=E7=BB=99=E5=90=8E=E7=AB=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productredress/productredressRequestMain/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue index d79ad0225..4f3fd7fcd 100644 --- a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue +++ b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue @@ -176,6 +176,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => }else if('productionLineCode'==formField){ //生产线 setV['workStationCode'] = '' + }else if('workStationCode'==formField){ + //工位代码 + setV['productionLineCode1'] = val[0]['productionLineCode']//用于没选生产线代码,给后端用 } formRef.setValues(setV) } @@ -446,6 +449,9 @@ const submitForm = async (formType, submitData) => { if(data.masterId){ data.id = data.masterId } + if(!data.productionLineCode){ + data.productionLineCode = data.productionLineCode1 + } data.subList = tableData.value // 拼接子表数据参数 data.subList.forEach(item=>{ item['workStationCode'] = data['workStationCode']