Browse Source

隔离退料 制品收货 创建标签 修改

master
陈薪名 11 months ago
parent
commit
40d987f56d
  1. 36
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  2. 29
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

36
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

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

29
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -336,29 +336,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
} }
}) })

Loading…
Cancel
Save