Jelajahi Sumber

详情 lastTaskCode

quwangxin 2 tahun lalu
induk
melakukan
981f0c4d28
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 8 0
      src/views/produceOrder/detail.vue

+ 8 - 0
src/views/produceOrder/detail.vue

@@ -1162,7 +1162,15 @@
         this.setData();
       },
       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({
+          lastTaskCode,
           taskCode: this.taskCode,
           workOrderId: this.workOrderId
         });