Browse Source

拆解工单优化

wyh 1 year ago
parent
commit
706c8a8b69
1 changed files with 9 additions and 2 deletions
  1. 9 2
      itdmWeb/src/views/module-iTDM/itdmGongdanMaster/uGantt.vue

+ 9 - 2
itdmWeb/src/views/module-iTDM/itdmGongdanMaster/uGantt.vue

@@ -369,7 +369,9 @@ export default {
       record: {},
       url: {
         queryById: "/weituo/itdmWeituoInfo/queryById"
-      }
+      },
+      // 是否正在进行拆单
+      chaidanStatus: 0
     }
   },
   created () {
@@ -594,6 +596,9 @@ export default {
       this.currentDbEdit = JSON.parse(JSON.stringify(row))
       this.currentDbEdit.parent = row.id
       this.currentDbEdit.pid = row.id
+      this.currentDbEdit.shebeiId = ''
+      console.log(this.currentDbEdit)
+      this.chaidanStatus = 1
       this.dialogVisible = true
     },
     // 删除
@@ -619,6 +624,7 @@ export default {
     cancel(){
       this.currentDbEdit = {}
       this.typeButton = null
+      this.chaidanStatus = 0
       this.dialogVisible = false
     },
     submit(){
@@ -627,13 +633,14 @@ export default {
       // this.dialogVisible = false
       // this.currentDbEdit = {}
       console.log(this.currentDbEdit)
-      if (this.currentDbEdit.status == 3 || this.currentDbEdit.status == 1) {
+      if (this.currentDbEdit.status == 3 || this.currentDbEdit.status == 1 || this.chaidanStatus == 1) {
         this.currentDbEdit.jihuaStartDate = this.currentDbEdit.start_date ;
         this.currentDbEdit.parent = this.currentDbEdit.pid ;
         saveProjectJl(this.currentDbEdit).then((res) => {
           console.log("提交返回",res)
           if (res.success) {
             this.$message.success('提交成功');
+            this.chaidanStatus = 0
             this.typeButton = null
             this.dialogVisible = false
             this.currentDbEdit = {}