|
@ -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 => { |
|
|