|
@ -395,27 +395,57 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
if (mode == 'edit') { |
|
|
|
|
|
//新增的盘点结果 |
|
|
|
|
|
// if (that.currentEditItem.id == '0') { |
|
|
|
|
|
// let a = detail.subList.find(that.currentEditItem); |
|
|
|
|
|
// let index = that.currentEditItem.index; |
|
|
|
|
|
// // detail.subList |
|
|
|
|
|
// detail.subList.splice(index, 1) |
|
|
|
|
|
|
|
|
|
|
|
// } else { |
|
|
|
|
|
// |
|
|
|
|
|
// that.currentEditItem.handleQty = 0; |
|
|
|
|
|
// that.currentEditItem.scaned = false; |
|
|
|
|
|
// that.currentEditItem = {}; |
|
|
|
|
|
// } |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (itemEditInfo == undefined) { |
|
|
if (itemEditInfo == undefined) { |
|
|
//不在任务列表中,提示是否添加到列表 |
|
|
//不在任务列表中,提示是否添加到列表 |
|
|
|
|
|
if (mode == 'edit') { |
|
|
|
|
|
that.currentEditItem.handleQty = 0; |
|
|
|
|
|
that.currentEditItem.inventoryStatus = inventoryStatus; |
|
|
|
|
|
|
|
|
|
|
|
//新增的盘点结果 |
|
|
|
|
|
// if (that.currentEditItem.id == '0') { |
|
|
|
|
|
// let a = detail.subList.find(that.currentEditItem); |
|
|
|
|
|
// let index = that.currentEditItem.index; |
|
|
|
|
|
// // detail.subList |
|
|
|
|
|
// detail.subList.splice(index, 1) |
|
|
|
|
|
|
|
|
|
|
|
// } else { |
|
|
|
|
|
// |
|
|
|
|
|
// that.currentEditItem.handleQty = 0; |
|
|
|
|
|
// that.currentEditItem.scaned = false; |
|
|
|
|
|
// that.currentEditItem = {}; |
|
|
|
|
|
// } |
|
|
|
|
|
} else { |
|
|
that.addExistItemCodeToList(detail, qty, inventoryStatus); |
|
|
that.addExistItemCodeToList(detail, qty, inventoryStatus); |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
itemEditInfo.scaned = true; |
|
|
itemEditInfo.scaned = true; |
|
|
itemEditInfo.handleQty = qty; |
|
|
itemEditInfo.handleQty = qty; |
|
|
|
|
|
itemEditInfo.inventoryStatus = inventoryStatus; |
|
|
itemEditInfo.balanceQty = that.balance.qty; |
|
|
itemEditInfo.balanceQty = that.balance.qty; |
|
|
itemEditInfo.stdPackQty = that.package.stdPackQty; |
|
|
itemEditInfo.stdPackQty = that.package.stdPackQty; |
|
|
itemEditInfo.stdPackUnit = that.package.stdPackUnit; |
|
|
itemEditInfo.stdPackUnit = that.package.stdPackUnit; |
|
|
this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail |
|
|
// this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail |
|
|
.subList); |
|
|
// .subList); |
|
|
that.updateData() |
|
|
that.updateData() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//如果是编辑,移除之前的盘点结果 |
|
|
|
|
|
if (mode == 'edit') { |
|
|
|
|
|
that.currentEditItem.handleQty = 0; |
|
|
|
|
|
that.currentEditItem.scaned = false; |
|
|
|
|
|
that.currentEditItem = {}; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setTimeout(r => { |
|
|
setTimeout(r => { |
|
|
this.calcHandleQty(); |
|
|
this.calcHandleQty(); |
|
|
this.scanPopupGetFocus(); |
|
|
this.scanPopupGetFocus(); |
|
@ -538,7 +568,7 @@ |
|
|
|
|
|
|
|
|
createAddDetailInfo(qty, inventoryStatus) { |
|
|
createAddDetailInfo(qty, inventoryStatus) { |
|
|
var detail = { |
|
|
var detail = { |
|
|
id: "0", |
|
|
id: "0", //新增的明细 |
|
|
scaned: true, |
|
|
scaned: true, |
|
|
countDetailNumber: "", |
|
|
countDetailNumber: "", |
|
|
ownerCode: this.balance.ownerCode, |
|
|
ownerCode: this.balance.ownerCode, |
|
|