|
|
@ -723,6 +723,21 @@ const getGenerateLabelList = async (row) => { |
|
|
|
if (obj) { |
|
|
|
item.packUnit = obj.packUnit |
|
|
|
item.packQty = obj.packQty |
|
|
|
if (!item.packQty) { |
|
|
|
// 如果没有数量可以输入 |
|
|
|
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { |
|
|
|
if (item.field == 'packQty') { |
|
|
|
item.tableForm.disabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
// 有数量不可以输入 |
|
|
|
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { |
|
|
|
if (item.field == 'packQty') { |
|
|
|
item.tableForm.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
item.packUnit = '' |
|
|
|
item.packQty = '' |
|
|
@ -775,6 +790,21 @@ const formSelectChangeLabel = (field, val, row) => { |
|
|
|
let obj = row.boxPackaging.find((item) => item.packUnit == val) |
|
|
|
if (obj) { |
|
|
|
row.packQty = obj.packQty |
|
|
|
// 如果没有数量可以输入 |
|
|
|
if (!row.packQty) { |
|
|
|
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { |
|
|
|
if (item.field == 'packQty') { |
|
|
|
item.tableForm.disabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
// 有数量不可以输入 |
|
|
|
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { |
|
|
|
if (item.field == 'packQty') { |
|
|
|
item.tableForm.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
// 获取托规格 |
|
|
|
const params1 = { |
|
|
|
itemCode: row.itemCode, |
|
|
|