From 40d987f56dcd876c99a1da7e06b9ee54b51a160e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Fri, 22 Dec 2023 11:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=94=E7=A6=BB=E9=80=80=E6=96=99=20?= =?UTF-8?q?=E5=88=B6=E5=93=81=E6=94=B6=E8=B4=A7=20=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionreturnRequestMainNo/index.vue | 36 +++++++++---------- .../productreceiptRequestMain/index.vue | 29 +++++++-------- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue index ad85bf81a..b3120aa1f 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue @@ -320,31 +320,31 @@ const buttonTableClick = async (val, row) => { // 判断物品类型 是否 原料 if (res.list[0].type == "RAW") { // 修改 tableform 属性 - detailListTableColumns.tableFormColumns.map(item => { - if(item.field == 'productionLineCodePackage') { - // item.tableForm.isInpuFocusShow = false - // item.tableForm.disabled = true - ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = false + detailListTableColumns.tableFormColumns.map(itemColumns => { + if(itemColumns.field == 'productionLineCodePackage') { + // itemColumns.tableForm.isInpuFocusShow = false + // itemColumns.tableForm.disabled = true + ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false } - if(item.field == 'supplierItemCode') { - item.tableForm.isInpuFocusShow = true - item.tableForm.disabled = false - ProductionreturnRequestDetailNoLabelRules.supplierItemCode[0].required = true + if(itemColumns.field == 'supplierItemCode') { + itemColumns.tableForm.isInpuFocusShow = true + itemColumns.tableForm.disabled = false + ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true } }) } else { // 修改 tableform 属性 - detailListTableColumns.tableFormColumns.map(item => { - if(item.field == 'supplierItemCode') { - item.tableForm.isInpuFocusShow = false - item.tableForm.disabled = true - ProductionreturnRequestDetailNoLabelRules.supplierItemCode[0].required = false + detailListTableColumns.tableFormColumns.map(itemColumns => { + if(itemColumns.field == 'supplierItemCode') { + itemColumns.tableForm.isInpuFocusShow = false + itemColumns.tableForm.disabled = true + ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false } - if(item.field == 'productionLineCodePackage') { + if(itemColumns.field == 'productionLineCodePackage') { item.productionLineCodePackage = item.productionLineCode - // item.tableForm.isInpuFocusShow = true - // item.tableForm.disabled = false - ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = true + // itemColumns.tableForm.isInpuFocusShow = true + // itemColumns.tableForm.disabled = false + ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true } }) } diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue index 441f4313b..f66e27a5e 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue @@ -336,29 +336,30 @@ const buttonTableClick = async (val, row) => { // 判断物品类型 是否 原料 if (res.list[0].type == "RAW") { // 修改 tableform 属性 - detailListTableColumns.tableFormColumns.map(item => { - if(item.field == 'productionLineCodePackage') { - item.tableForm.isInpuFocusShow = false - item.tableForm.disabled = true + detailListTableColumns.tableFormColumns.map(itemColumns => { + if(itemColumns.field == 'productionLineCodePackage') { + // itemColumns.tableForm.isInpuFocusShow = false + // itemColumns.tableForm.disabled = true ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false } - if(item.field == 'supplierItemCode') { - item.tableForm.isInpuFocusShow = true - item.tableForm.disabled = false + if(itemColumns.field == 'supplierItemCode') { + itemColumns.tableForm.isInpuFocusShow = true + itemColumns.tableForm.disabled = false ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true } }) } else { // 修改 tableform 属性 - detailListTableColumns.tableFormColumns.map(item => { - if(item.field == 'supplierItemCode') { - item.tableForm.isInpuFocusShow = false - item.tableForm.disabled = true + detailListTableColumns.tableFormColumns.map(itemColumns => { + if(itemColumns.field == 'supplierItemCode') { + itemColumns.tableForm.isInpuFocusShow = false + itemColumns.tableForm.disabled = true ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false } - if(item.field == 'productionLineCodePackage') { - item.tableForm.isInpuFocusShow = true - item.tableForm.disabled = false + if(itemColumns.field == 'productionLineCodePackage') { + item.productionLineCodePackage = item.productionLineCode + // itemColumns.tableForm.isInpuFocusShow = true + // itemColumns.tableForm.disabled = false ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true } })