Browse Source

修改盘点

dev_pda
聂喜婷 2 years ago
parent
commit
0b3208e327
  1. 8
      fe/PDA/pages/task/count_detail.vue

8
fe/PDA/pages/task/count_detail.vue

@ -359,7 +359,7 @@
for (var i = (this.ipage - 1) * this.iSize; i < this.ipage * this.iSize; i++) { for (var i = (this.ipage - 1) * this.iSize; i < this.ipage * this.iSize; i++) {
if (i < this.allDetails.length) { if (i < this.allDetails.length) {
let item = this.allDetails[i]; let item = this.allDetails[i];
// //
let data = this.details.find(r => r.id == item.id); let data = this.details.find(r => r.id == item.id);
if (data == null || data == undefined) { if (data == null || data == undefined) {
this.details.push(item) this.details.push(item)
@ -539,7 +539,7 @@
item.countTime = new Date(); item.countTime = new Date();
item.countOperator = localStorage.userId; item.countOperator = localStorage.userId;
// //
let data = this.details.find(r => r.id == item.id); let data = this.details.find(r => r.id == item.id);
if (data == null || data == undefined) { if (data == null || data == undefined) {
this.details.push(item); this.details.push(item);
@ -606,7 +606,7 @@
submit() { submit() {
let that = this; let that = this;
let unCheckedItems = that.details.filter(r => { let unCheckedItems = that.allDetails.filter(r => {
return r.scaned === false return r.scaned === false
}) })
if (unCheckedItems.length > 0) { if (unCheckedItems.length > 0) {
@ -642,7 +642,7 @@
title: "提交中...", title: "提交中...",
mask: true mask: true
}); });
this.datacontent.details = this.details; this.datacontent.details = this.allDetails;
let params = JSON.stringify(this.datacontent); let params = JSON.stringify(this.datacontent);
finishCountJob(this.id, params) finishCountJob(this.id, params)
.then(res => { .then(res => {

Loading…
Cancel
Save