|
@ -313,29 +313,30 @@ const buttonTableClick = async (val, row) => { |
|
|
// 判断物品类型 是否 原料 |
|
|
// 判断物品类型 是否 原料 |
|
|
if (res.list[0].type == "RAW") { |
|
|
if (res.list[0].type == "RAW") { |
|
|
// 修改 tableform 属性 |
|
|
// 修改 tableform 属性 |
|
|
detailListTableColumns.tableFormColumns.map(item => { |
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
if(item.field == 'productionLineCodePackage') { |
|
|
if(itemColumns.field == 'productionLineCodePackage') { |
|
|
item.tableForm.isInpuFocusShow = false |
|
|
// itemColumns.tableForm.isInpuFocusShow = false |
|
|
item.tableForm.disabled = true |
|
|
// itemColumns.tableForm.disabled = true |
|
|
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false |
|
|
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false |
|
|
} |
|
|
} |
|
|
if(item.field == 'supplierItemCode') { |
|
|
if(itemColumns.field == 'supplierItemCode') { |
|
|
item.tableForm.isInpuFocusShow = true |
|
|
itemColumns.tableForm.isInpuFocusShow = true |
|
|
item.tableForm.disabled = false |
|
|
itemColumns.tableForm.disabled = false |
|
|
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true |
|
|
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
// 修改 tableform 属性 |
|
|
// 修改 tableform 属性 |
|
|
detailListTableColumns.tableFormColumns.map(item => { |
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
if(item.field == 'supplierItemCode') { |
|
|
if(itemColumns.field == 'supplierItemCode') { |
|
|
item.tableForm.isInpuFocusShow = false |
|
|
itemColumns.tableForm.isInpuFocusShow = false |
|
|
item.tableForm.disabled = true |
|
|
itemColumns.tableForm.disabled = true |
|
|
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false |
|
|
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false |
|
|
} |
|
|
} |
|
|
if(item.field == 'productionLineCodePackage') { |
|
|
if(itemColumns.field == 'productionLineCodePackage') { |
|
|
item.tableForm.isInpuFocusShow = true |
|
|
item.productionLineCodePackage = item.productionLineCode |
|
|
item.tableForm.disabled = false |
|
|
// itemColumns.tableForm.isInpuFocusShow = true |
|
|
|
|
|
// itemColumns.tableForm.disabled = false |
|
|
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true |
|
|
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|