From 2b6fecb79beddc05ac3616eedb9029aa54a0fad1 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 11 Jul 2024 18:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E6=94=B6=E8=B4=A7=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E3=80=81=E5=88=B6=E5=93=81=E6=8B=86=E8=A7=A3=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productdismantle/productdismantleRequestMain/index.vue | 5 ++++- .../productreceiptscrapRequestMain/index.vue | 5 ++++- .../productreceiptscrapRequestMain.data.ts | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index 8f9c31ca3..9cd07b365 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -286,12 +286,15 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['bomVersion'] = res.list[0].version } }) - } else { + } else if(formField == 'productionLineCode'){ val.forEach(item=>{ const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) newRow[formField] = item[searchField] tableData.value.push(newRow) }) + }else{ + row[formField] = val[0][searchField] + } } else { const setV = {} diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue index e9a80a163..c053bb4b0 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue @@ -220,7 +220,7 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro row['bomVersion'] = res.list[0].version } }) - }else{ + }else if(formField == 'productionLineCode'){ //添加明细 val.forEach(item=>{ const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) @@ -228,6 +228,9 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro newRow[formField] = item[searchField] tableData.value.push(newRow) }) + }else{ + row[formField] = val[0][searchField] + } } else { const setV = {} diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts index 668c03dbc..95d6f73fa 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts @@ -523,8 +523,9 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive width: 150 }, tableForm:{ + disabled:true, multiple: true, - isInpuFocusShow: true, + // isInpuFocusShow: true, searchListPlaceholder: '请选择生产线代码', searchField: 'code', searchTitle: '生产线信息',