|
@@ -1162,7 +1162,15 @@
|
|
|
this.setData();
|
|
this.setData();
|
|
|
},
|
|
},
|
|
|
async getReportCount() {
|
|
async getReportCount() {
|
|
|
|
|
+ const index = this.tabList.findIndex(
|
|
|
|
|
+ (item) => item.taskCode === this.taskCode
|
|
|
|
|
+ );
|
|
|
|
|
+ let lastTaskCode = this.taskCode;
|
|
|
|
|
+ if (index > 0) {
|
|
|
|
|
+ lastTaskCode = this.tabList[index - 1].taskCode;
|
|
|
|
|
+ }
|
|
|
const res = await reportCount({
|
|
const res = await reportCount({
|
|
|
|
|
+ lastTaskCode,
|
|
|
taskCode: this.taskCode,
|
|
taskCode: this.taskCode,
|
|
|
workOrderId: this.workOrderId
|
|
workOrderId: this.workOrderId
|
|
|
});
|
|
});
|