瀏覽代碼

增加修改预案的判断

wang_xy 2 年之前
父節點
當前提交
93830e629c
共有 1 個文件被更改,包括 15 次插入10 次删除
  1. 15 10
      src/views/eventdetailsdialog.vue

+ 15 - 10
src/views/eventdetailsdialog.vue

@@ -1289,16 +1289,21 @@ export default {
       })
     },
     updateYjYuAn() {
-      let param = { eventCode: this.eventCode, reserve: this.sendGuanLianYuAn }
-      updateYjYuAn(param).then(res => {
-        //事件调整关联预案
-        if (res.code == 200) {
-          this.$message.success(`预案调整成功!`)
-          this.refreshEventDialog(this.eventCode)
-          this.sendGuanLianYuAn = null
-          this.showGuanLianYuAnConfirm = false
-        }
-      })
+      if(this.eventStatusValue=='forest_event_status_1'){
+        this.$message.error(`未签收事件无法修改预案信息,请先签收!`)
+        return
+      }else{
+        let param = { eventCode: this.eventCode, reserve: this.sendGuanLianYuAn }
+        updateYjYuAn(param).then(res => {
+          //事件调整关联预案
+          if (res.code == 200) {
+            this.$message.success(`预案调整成功!`)
+            this.refreshEventDialog(this.eventCode)
+            this.sendGuanLianYuAn = null
+            this.showGuanLianYuAnConfirm = false
+          }
+        })
+      }
     },
     listResourceByWz(type) {
       if (this.resourcesListCheck.indexOf(type) > -1) {