Browse Source

修复开单计算体积

dev-xx
qb 4 months ago
parent
commit
ad9904135a
  1. 6
      src/views/distribution/inventory/CreateOrder.vue

6
src/views/distribution/inventory/CreateOrder.vue

@ -4693,6 +4693,8 @@ const handleSubmitPackage = () => {
value.confirmIncomeCategoryId = value.incomeCategoryId; value.confirmIncomeCategoryId = value.incomeCategoryId;
value.confirmIncomeCategoryName = value.incomeCategoryName; value.confirmIncomeCategoryName = value.incomeCategoryName;
console.log('value.volume :>> ', value.volume);
// //
let _flag = false; let _flag = false;
for (let i = 0; i < _goodsArr.length; i++) { for (let i = 0; i < _goodsArr.length; i++) {
@ -4705,11 +4707,13 @@ const handleSubmitPackage = () => {
'+', '+',
isNumber(value.weight) ? Number(value.weight) : 0 isNumber(value.weight) ? Number(value.weight) : 0
).result; ).result;
item.volume += computeNumber( item.volume = computeNumber(
Number(item.volume), Number(item.volume),
'+', '+',
isNumber(value.volume) ? Number(value.volume) : 0 isNumber(value.volume) ? Number(value.volume) : 0
).result; ).result;
console.log('item.volume :>> ', item.volume);
_flag = true; _flag = true;
break; break;
} }

Loading…
Cancel
Save