|
|
@ -462,7 +462,7 @@ |
|
|
|
|
|
|
|
if (itemEditInfo == undefined) { |
|
|
|
//不在任务列表中,提示是否添加到列表 |
|
|
|
this.addExistItemCodeToList(detail, result); |
|
|
|
this.addExistItemCodeToList(detail); |
|
|
|
|
|
|
|
} else { |
|
|
|
//在列表中,更新已扫描状态, |
|
|
@ -509,13 +509,12 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
addExistItemCodeToList(detail) { |
|
|
|
addExistItemCodeToList(detail, qty, inventoryStatus) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("盘点明细不在列表中,是否添加到列表?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
detail.qty = calc.add(detail.qty, detail.qty) |
|
|
|
//this.balance, this.package, |
|
|
|
let newDetail = this.createAddDetailInfo(); // |
|
|
|
detail.qty = calc.add(qty, qty) |
|
|
|
let newDetail = this.createAddDetailInfo(qty, inventoryStatus); // |
|
|
|
detail.subList.push(newDetail); |
|
|
|
this.updateData() |
|
|
|
|
|
|
@ -537,31 +536,31 @@ |
|
|
|
return item; |
|
|
|
}, |
|
|
|
|
|
|
|
createAddDetailInfo() { |
|
|
|
createAddDetailInfo(qty, inventoryStatus) { |
|
|
|
var detail = { |
|
|
|
id: "0", |
|
|
|
scaned: true, |
|
|
|
countDetailNumber: "", |
|
|
|
ownerCode: this.balance.ownerCode, |
|
|
|
packingNumber: pack.number, |
|
|
|
packingNumber: this.package.number, |
|
|
|
containerNumber: this.balance.containerNumber, |
|
|
|
batch: pack.batch, |
|
|
|
inventoryStatus:this. balance.inventoryStatus, |
|
|
|
batch: this.package.batch, |
|
|
|
inventoryStatus: inventoryStatus, |
|
|
|
itemCode: this.package.itemCode, |
|
|
|
itemName: this.package.itemName, |
|
|
|
itemDesc1: this.package.itemDesc1, |
|
|
|
itemDesc2: this.package.itemDesc2, |
|
|
|
stdPackQty: this.package.stdPackQty, |
|
|
|
stdPackUnit: this.package.stdPackUnit, |
|
|
|
projectCode: "", |
|
|
|
qty: 0, |
|
|
|
handleQty: this.balance.qty, |
|
|
|
uom: balance.uom, |
|
|
|
handleQty: qty, |
|
|
|
uom: this.package.uom, |
|
|
|
number: this.jobContent.number, |
|
|
|
remark: "", |
|
|
|
countQty: this.balance.qty, |
|
|
|
balanceQty:this. balance.qty, |
|
|
|
countQty: qty, |
|
|
|
balanceQty: this.balance.qty, |
|
|
|
fromLocationCode: this.balance.locationCode, |
|
|
|
stdPackQty: this.package.stdPackQty, |
|
|
|
stdPackUnit: this.package.stdPackUnit, |
|
|
|
creator: this.$store.state.user.id |
|
|
|
} |
|
|
|
return detail; |
|
|
|