diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue index 8f0ed2e63..4c1426c07 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue @@ -313,29 +313,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 } }) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts index 81ccad349..6d6f5cbb8 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts @@ -888,17 +888,18 @@ export const ProductionreturnRequestDetailLabel = useCrudSchemas(reactive { // 修改 tableform 属性 detailListTableColumns.tableFormColumns.map(item => { if(item.field == 'productionLineCodePackage') { - item.tableForm.isInpuFocusShow = false - item.tableForm.disabled = true + // item.tableForm.isInpuFocusShow = false + // item.tableForm.disabled = true ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = false } if(item.field == 'supplierItemCode') { @@ -341,8 +341,9 @@ const buttonTableClick = async (val, row) => { ProductionreturnRequestDetailNoLabelRules.supplierItemCode[0].required = false } if(item.field == 'productionLineCodePackage') { - item.tableForm.isInpuFocusShow = true - item.tableForm.disabled = false + item.productionLineCodePackage = item.productionLineCode + // item.tableForm.isInpuFocusShow = true + // item.tableForm.disabled = false ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = true } }) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts index 78b219bf7..8004cd788 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts @@ -821,17 +821,18 @@ export const ProductionreturnRequestDetailNoLabel = useCrudSchemas(reactive