Forráskód Böngészése

个贷待办最新备注查询优化

wucl 2 napja
szülő
commit
309452e905
2 módosított fájl, 35 hozzáadás és 2 törlés
  1. 17 1
      src/views/complex/index.vue
  2. 18 1
      src/views/personal/todoList.vue

+ 17 - 1
src/views/complex/index.vue

@@ -1013,6 +1013,8 @@ export default {
       this.$api.workNodeTaskRecord.personalTaskTodoList().then(res => {
         if (res.code === 200) {
           this.personalTodoList = res.data.records;
+          const businessIds = res.data.records.map(item=>item.businessId)
+          this.queryLastComments(businessIds);
         }
       })
     },
@@ -1282,7 +1284,21 @@ export default {
             this.orderOverStock = res.data;
         }
        })
-    }
+    },
+    queryLastComments(businessIds){
+          this.$api.workflowLog.queryLastComments(businessIds).then(res=>{
+              if (res.code === 200){
+                 for (let i in this.personalTodoList){
+                      for (let j in res.data){
+                          if (this.personalTodoList[i].businessId == res.data[j].id){
+                            this.personalTodoList[i].comments = res.data[j].comments;
+                          }
+                      }
+                 }
+              }
+          })
+        }
+
   },
 
 }

+ 18 - 1
src/views/personal/todoList.vue

@@ -478,6 +478,8 @@ export default {
       this.$api.workNodeTaskRecord.personalTaskTodoList(this.listQuery).then(res => {
         if (res.code === 200) {
           this.pageData = res.data;
+          const businessIds = res.data.records.map(item=>item.businessId)
+          this.queryLastComments(businessIds);
           loadingInstance.close();
         }
       })
@@ -516,6 +518,8 @@ export default {
       this.$api.workNodeTaskRecord.personalTaskTodoList(params).then(res => {
         if (res.code === 200) {
           this.pageData = res.data;
+          const businessIds = res.data.records.map(item=>item.businessId)
+          this.queryLastComments(businessIds);
           loadingInstance.close();
         }
       })
@@ -816,7 +820,20 @@ export default {
       this.clientName = null;
       this.inRepNodeCode = null;
       this.outRepNodeCode = null;
-    }
+    },
+    queryLastComments(businessIds){
+          this.$api.workflowLog.queryLastComments(businessIds).then(res=>{
+              if (res.code === 200){
+                 for (let i in this.pageData.records){
+                      for (let j in res.data){
+                          if (this.pageData.records[i].businessId == res.data[j].id){
+                            this.pageData.records[i].comments = res.data[j].comments;
+                          }
+                      }
+                 }
+              }
+          })
+        }
 
 
   },