|
@ -69,7 +69,9 @@ |
|
|
calc |
|
|
calc |
|
|
} from '@/common/calc.js'; |
|
|
} from '@/common/calc.js'; |
|
|
|
|
|
|
|
|
import { Decimal } from 'decimal.js';//引入 |
|
|
import { |
|
|
|
|
|
Decimal |
|
|
|
|
|
} from 'decimal.js'; //引入 |
|
|
import { |
|
|
import { |
|
|
goHome, |
|
|
goHome, |
|
|
updateTitle, |
|
|
updateTitle, |
|
@ -202,9 +204,11 @@ |
|
|
calcHandleQty() { |
|
|
calcHandleQty() { |
|
|
for (let item of this.detailSource) { |
|
|
for (let item of this.detailSource) { |
|
|
item.handleQty = new Decimal(0).toNumber(); |
|
|
item.handleQty = new Decimal(0).toNumber(); |
|
|
|
|
|
item.qty = new Decimal(0).toNumber(); |
|
|
for (let detail of item.subList) { |
|
|
for (let detail of item.subList) { |
|
|
if (detail != undefined) { |
|
|
if (detail != undefined) { |
|
|
item.handleQty = calc.add(item.handleQty, detail.handleQty) |
|
|
item.handleQty = calc.add(item.handleQty, detail.handleQty) |
|
|
|
|
|
item.qty = calc.add(item.qty, detail.qty); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|