浏览代码

评估部退单逻辑修改

wucl 4 月之前
父节点
当前提交
a2c5dedf5f
共有 2 个文件被更改,包括 8 次插入2 次删除
  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) {
   feedbackX(params) {
     return request.post(`major/feedback`, 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();
       let major = new Object();
       major.id = this.allocationForm.id;
       major.id = this.allocationForm.id;
       major.departmentId = this.allocationForm.departmentId;
       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){
         if (res.code === 200 && res.data){
             let commit = new Object();
             let commit = new Object();
             commit.instanceNodeId = this.allocationForm.instanceNodeId;
             commit.instanceNodeId = this.allocationForm.instanceNodeId;
             commit.state = 'PASS';
             commit.state = 'PASS';
-            commit.ifCheckTask = false;
             commit.nodeCode = 'LEADER_ALLOCATION';
             commit.nodeCode = 'LEADER_ALLOCATION';
             this.$api.workflow.commit(commit).then(res=>{
             this.$api.workflow.commit(commit).then(res=>{
               if (res.code === 200 && res.data){
               if (res.code === 200 && res.data){
@@ -653,6 +655,7 @@ export default {
                 this.allocationForm.reason = res.data.comments;
                 this.allocationForm.reason = res.data.comments;
                 this.allocationForm.refuseTime = res.data.created;
                 this.allocationForm.refuseTime = res.data.created;
                 this.allocationForm.refuseUser = res.data.handler;
                 this.allocationForm.refuseUser = res.data.handler;
+                this.allocationForm.recordId = res.data.recordId;
             }
             }
           })
           })
        }
        }