|
@ -445,7 +445,7 @@ |
|
|
that.scanCount = that.scanAllDetails.length |
|
|
that.scanCount = that.scanAllDetails.length |
|
|
|
|
|
|
|
|
that.scanAllDetails.forEach(res => { |
|
|
that.scanAllDetails.forEach(res => { |
|
|
res.IsDelete = false; |
|
|
res.isDelete = false; |
|
|
res.modified = false; |
|
|
res.modified = false; |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -469,7 +469,7 @@ |
|
|
//当前页起始索引 |
|
|
//当前页起始索引 |
|
|
const start = (pageNo - 1) * pageSize; |
|
|
const start = (pageNo - 1) * pageSize; |
|
|
const end = start + pageSize; //当前页结束索引 |
|
|
const end = start + pageSize; //当前页结束索引 |
|
|
var list = this.scanAllDetails.filter((r => r.IsDelete == false)) |
|
|
var list = this.scanAllDetails.filter((r => r.isDelete == false)) |
|
|
return list.slice(start, end) |
|
|
return list.slice(start, end) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
@ -579,7 +579,7 @@ |
|
|
creatDetail(result) { |
|
|
creatDetail(result) { |
|
|
let detail = { |
|
|
let detail = { |
|
|
isNew: true, |
|
|
isNew: true, |
|
|
IsDelete: false, |
|
|
isDelete: false, |
|
|
modified: true, |
|
|
modified: true, |
|
|
countTime: new Date(), |
|
|
countTime: new Date(), |
|
|
masterID: this.id, |
|
|
masterID: this.id, |
|
@ -636,7 +636,7 @@ |
|
|
setQty(item, qty, isAdd) { |
|
|
setQty(item, qty, isAdd) { |
|
|
item.countQty = Number(qty); |
|
|
item.countQty = Number(qty); |
|
|
item.countTime = new Date(); |
|
|
item.countTime = new Date(); |
|
|
item.IsDelete = false; |
|
|
item.isDelete = false; |
|
|
item.modified = true; |
|
|
item.modified = true; |
|
|
item.countOperator = localStorage.userId; |
|
|
item.countOperator = localStorage.userId; |
|
|
if (isAdd) { |
|
|
if (isAdd) { |
|
@ -659,7 +659,7 @@ |
|
|
this.showList.splice(index, 1) |
|
|
this.showList.splice(index, 1) |
|
|
this.scanAllDetails.splice(index, 1) |
|
|
this.scanAllDetails.splice(index, 1) |
|
|
} else { |
|
|
} else { |
|
|
item.IsDelete = true; |
|
|
item.isDelete = true; |
|
|
item.modified = true; |
|
|
item.modified = true; |
|
|
} |
|
|
} |
|
|
// this.scanAllDetails.splice(index, 1); |
|
|
// this.scanAllDetails.splice(index, 1); |
|
@ -698,11 +698,11 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var temp = ""; |
|
|
var temp = ""; |
|
|
for (var i = 0; i < this.scanAllDetails.length; i++) { |
|
|
for (var i = 0; i < commitList.length; i++) { |
|
|
if (this.scanAllDetails[i].countQty == 0) { |
|
|
if (commitList[i].countQty == 0) { |
|
|
temp = this.scanAllDetails[i]; |
|
|
temp = commitList[i]; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -711,8 +711,7 @@ |
|
|
this.showMessage("箱码:[" + temp.packingCode + "]盘点数量为0,请输入盘点数量") |
|
|
this.showMessage("箱码:[" + temp.packingCode + "]盘点数量为0,请输入盘点数量") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.finishJob(); |
|
|
this.finishJob(); |
|
|
}, |
|
|
}, |
|
@ -760,7 +759,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
calcScanCount() { |
|
|
calcScanCount() { |
|
|
this.scanCount = this.scanAllDetails.filter(r => r.IsDelete == false).length; |
|
|
this.scanCount = this.scanAllDetails.filter(r => r.isDelete == false).length; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
bindPickerChange(e, item) { |
|
|
bindPickerChange(e, item) { |
|
|