|
@ -727,29 +727,29 @@ const getGenerateLabelList = async (row) => { |
|
|
item.packUnitInitOptions = item.boxPackaging |
|
|
item.packUnitInitOptions = item.boxPackaging |
|
|
item.secondPackUnitInitOptions = item.palletPackaging || [] |
|
|
item.secondPackUnitInitOptions = item.palletPackaging || [] |
|
|
|
|
|
|
|
|
let obj = item?.boxPackaging[0] |
|
|
// let obj = item?.boxPackaging[0] |
|
|
if (obj) { |
|
|
// if (obj) { |
|
|
item.packUnit = obj.packUnit |
|
|
// item.packUnit = obj.packUnit |
|
|
item.packQty = obj.packQty |
|
|
// item.packQty = obj.packQty |
|
|
if (!item.packQty) { |
|
|
// if (!item.packQty) { |
|
|
// 如果没有数量可以输入 |
|
|
// // 如果没有数量可以输入 |
|
|
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { |
|
|
// SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { |
|
|
if (item.field == 'packQty') { |
|
|
// if (item.field == 'packQty') { |
|
|
item.tableForm.disabled = false |
|
|
// item.tableForm.disabled = false |
|
|
} |
|
|
// } |
|
|
}) |
|
|
// }) |
|
|
} else { |
|
|
// } else { |
|
|
// 有数量不可以输入 |
|
|
// // 有数量不可以输入 |
|
|
SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { |
|
|
// SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { |
|
|
if (item.field == 'packQty') { |
|
|
// if (item.field == 'packQty') { |
|
|
item.tableForm.disabled = true |
|
|
// item.tableForm.disabled = true |
|
|
} |
|
|
// } |
|
|
}) |
|
|
// }) |
|
|
} |
|
|
// } |
|
|
} else { |
|
|
// } else { |
|
|
item.packUnit = '' |
|
|
// item.packUnit = '' |
|
|
item.packQty = '' |
|
|
// item.packQty = '' |
|
|
} |
|
|
// } |
|
|
if (item.convertRate==0 || item.convertRate == 1) { |
|
|
if (item.convertRate==0 || item.convertRate == 1) { |
|
|
item.balanceQty = item.qty |
|
|
item.balanceQty = item.qty |
|
|
item.purchaseStdQty = item.packQty |
|
|
item.purchaseStdQty = item.packQty |
|
@ -757,13 +757,13 @@ const getGenerateLabelList = async (row) => { |
|
|
item.balanceQty = parseFloat(Decimal(item.qty).mul(Decimal(item.convertRate)).toNumber().toFixed(5)) |
|
|
item.balanceQty = parseFloat(Decimal(item.qty).mul(Decimal(item.convertRate)).toNumber().toFixed(5)) |
|
|
item.purchaseStdQty = parseFloat(Decimal(parseFloat(item.packQty)).div(Decimal(parseFloat(item.convertRate))).toNumber()) |
|
|
item.purchaseStdQty = parseFloat(Decimal(parseFloat(item.packQty)).div(Decimal(parseFloat(item.convertRate))).toNumber()) |
|
|
} |
|
|
} |
|
|
// 有托规格显示托规格,没有显示第一条规格 |
|
|
// // 有托规格显示托规格,没有显示第一条规格 |
|
|
item.secondPackUnit = obj?.parentPackUnit |
|
|
// item.secondPackUnit = obj?.parentPackUnit |
|
|
? obj.parentPackUnit |
|
|
// ? obj.parentPackUnit |
|
|
: item?.secondPackUnitInitOptions[0]?.packUnit |
|
|
// : item?.secondPackUnitInitOptions[0]?.packUnit |
|
|
item.secondPackQty = obj?.parentPackUnit |
|
|
// item.secondPackQty = obj?.parentPackUnit |
|
|
? obj.parentPackQty |
|
|
// ? obj.parentPackQty |
|
|
: item?.secondPackUnitInitOptions[0]?.packQty |
|
|
// : item?.secondPackUnitInitOptions[0]?.packQty |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|