|
|
@ -48,6 +48,10 @@ |
|
|
|
getBalanceByBatchOffShelf |
|
|
|
} from '@/api/request2.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
calc |
|
|
|
} from '@/common/calc.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
goHome, |
|
|
|
updateTitle, |
|
|
@ -73,6 +77,10 @@ |
|
|
|
calcHandleQty |
|
|
|
} from '@/common/record.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
calc |
|
|
|
} from '@/common/calc.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
getDataSource |
|
|
|
} from '@/pages/issue/js/issue.js'; |
|
|
@ -233,7 +241,7 @@ |
|
|
|
caclcQty() { |
|
|
|
var totalQty = 0; |
|
|
|
this.detailSource.subList.forEach(res => { |
|
|
|
totalQty += res.qty |
|
|
|
totalQty = calc.add(totalQty, res.qty) |
|
|
|
}) |
|
|
|
this.detailSource.totalQty = totalQty; |
|
|
|
}, |
|
|
@ -265,10 +273,10 @@ |
|
|
|
let handleQty = 0; |
|
|
|
if (batch != undefined) { |
|
|
|
batch.Records.forEach(res => { |
|
|
|
handleQty += Number(res.qty) |
|
|
|
handleQty = calc.add(handleQty, res.qty) |
|
|
|
}) |
|
|
|
batch.handleQty = handleQty; |
|
|
|
itemHandleQty += handleQty; |
|
|
|
itemHandleQty = calc.add(itemHandleQty, handleQty) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@ -290,7 +298,7 @@ |
|
|
|
item.qty = 0; |
|
|
|
for (let detail of item.subList) { |
|
|
|
if (detail != undefined) { |
|
|
|
item.qty += Number(detail.qty) |
|
|
|
item.qty = calc.add(item.qty,detail.qty) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -406,7 +414,8 @@ |
|
|
|
.inventoryStatus; |
|
|
|
record.toLocationCode = subItem |
|
|
|
.toLocationCode; |
|
|
|
record.fromLocationCode = fromLocation.fromLocationCode |
|
|
|
record.fromLocationCode = fromLocation |
|
|
|
.fromLocationCode |
|
|
|
record.supplierCode = r.supplierCode; |
|
|
|
|
|
|
|
//使用在途库不改变管理模式 |
|
|
|