src/views/CNAS/resourceDemand/device/component/state.vue
@@ -242,7 +242,9 @@
import { selectUserCondition } from "@/api/business/inspectionTask";
import { dateFormat } from '@/utils/date'
import { mapGetters } from "@/utils/store-compat";
import draftSave from '@/mixins/draftSave'
export default {
  mixins: [draftSave],
  props: {
    clickNodeVal: {
      type: Object,
@@ -365,6 +367,7 @@
            if (res.code == 200) {
              this.$message.success('提交成功')
              this.getDeviceStatePage(this.clickNodeVal.value)
              this.draftClear('deviceState')
              this.dialogVisible = false
              this.closeLoading()
            }
@@ -393,6 +396,9 @@
        this.form.managementNumber = res.data.managementNumber
        this.$nextTick(() => {
          this.$refs['form'].clearValidate()
          if (!this.form.stateId) {
            this.draftRestore('deviceState', 'form', '', 'dialogVisible')
          }
        })
      });
      // 获取负责人信息
@@ -414,6 +420,9 @@
      this.currentStepClick = this.currentStep === 4 ? 0 : this.currentStep
      this.$nextTick(() => {
        this.$refs['form'].clearValidate()
        if (this.currentStep === 0) {
          this.draftRestore('deviceState', 'form', this.form.stateId, 'dialogVisible')
        }
      })
      this.dialogVisible = true
    },
@@ -489,6 +498,7 @@
    },
    dialogVisible(newVal) {
      if (!newVal) {
        this.draftStop('deviceState')
        this.form = {
        }
        this.closeLoading()