|
|
@ -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 |
|
|
|
} |
|
|
|
if(item.field == 'supplierItemCode') { |
|
|
|
item.tableForm.isInpuFocusShow = true |
|
|
|
item.tableForm.disabled = false |
|
|
|
ProductionreturnRequestDetailNoLabelRules.supplierItemCode[0].required = true |
|
|
|
detailListTableColumns.tableFormColumns.map(itemColumns => { |
|
|
|
if(itemColumns.field == 'productionLineCodePackage') { |
|
|
|
// itemColumns.tableForm.isInpuFocusShow = false |
|
|
|
// itemColumns.tableForm.disabled = true |
|
|
|
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = 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 |
|
|
|
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 |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|