Bladeren bron

评估部退单逻辑修改

wucl 4 maanden geleden
bovenliggende
commit
a2c5dedf5f
2 gewijzigde bestanden met toevoegingen van 8 en 2 verwijderingen
  1. 3 0
      src/api/modules/major.js
  2. 5 2
      src/views/major/todoList.vue

+ 3 - 0
src/api/modules/major.js

@@ -45,4 +45,7 @@ export default {
   feedbackX(params) {
     return request.post(`major/feedback`, params)
   },
+  department(params){
+    return request.post(`major/department`, params)
+  }
 }

+ 5 - 2
src/views/major/todoList.vue

@@ -610,12 +610,14 @@ export default {
       let major = new Object();
       major.id = this.allocationForm.id;
       major.departmentId = this.allocationForm.departmentId;
-      this.$api.major.edit(major).then(res=>{
+      let taskRecord = new Object();
+      taskRecord.recordId = this.allocationForm.recordId;;
+      taskRecord.taskData = major;
+      this.$api.major.department(taskRecord).then(res=>{
         if (res.code === 200 && res.data){
             let commit = new Object();
             commit.instanceNodeId = this.allocationForm.instanceNodeId;
             commit.state = 'PASS';
-            commit.ifCheckTask = false;
             commit.nodeCode = 'LEADER_ALLOCATION';
             this.$api.workflow.commit(commit).then(res=>{
               if (res.code === 200 && res.data){
@@ -653,6 +655,7 @@ export default {
                 this.allocationForm.reason = res.data.comments;
                 this.allocationForm.refuseTime = res.data.created;
                 this.allocationForm.refuseUser = res.data.handler;
+                this.allocationForm.recordId = res.data.recordId;
             }
           })
        }