|
|
@ -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 (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); |
|
|
|
} |
|
|
|
} else { |
|
|
|
itemEditInfo.scaned = true; |
|
|
|
itemEditInfo.handleQty = qty; |
|
|
|
itemEditInfo.inventoryStatus = inventoryStatus; |
|
|
|
itemEditInfo.balanceQty = that.balance.qty; |
|
|
|
itemEditInfo.stdPackQty = that.package.stdPackQty; |
|
|
|
itemEditInfo.stdPackUnit = that.package.stdPackUnit; |
|
|
|
this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail |
|
|
|
.subList); |
|
|
|
// this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail |
|
|
|
// .subList); |
|
|
|
that.updateData() |
|
|
|
} |
|
|
|
|
|
|
|
//如果是编辑,移除之前的盘点结果 |
|
|
|
if (mode == 'edit') { |
|
|
|
that.currentEditItem.handleQty = 0; |
|
|
|
that.currentEditItem.scaned = false; |
|
|
|
that.currentEditItem = {}; |
|
|
|
} |
|
|
|
|
|
|
|
setTimeout(r => { |
|
|
|
this.calcHandleQty(); |
|
|
|
this.scanPopupGetFocus(); |
|
|
@ -538,7 +568,7 @@ |
|
|
|
|
|
|
|
createAddDetailInfo(qty, inventoryStatus) { |
|
|
|
var detail = { |
|
|
|
id: "0", |
|
|
|
id: "0", //新增的明细 |
|
|
|
scaned: true, |
|
|
|
countDetailNumber: "", |
|
|
|
ownerCode: this.balance.ownerCode, |
|
|
|