src/views/CNAS/resourceDemand/device/component/equipmentCheck.vue
@@ -147,10 +147,12 @@
} from '@/api/cnas/resourceDemand/device.js'
import { selectUserCondition } from "@/api/business/inspectionTask";
import {mapGetters} from "@/utils/store-compat";
import draftSave from '@/mixins/draftSave'
export default {
  name: "equipment-check",
  // import 引入的组件需要注入到对象中才能使用
  components: {},
  mixins: [draftSave],
  data() {
    // 这里存放数据
    return {
@@ -213,6 +215,10 @@
            this.currentStep = 2
          }
          this.reviewUserId = this.form.reviewUserId
          if (this.currentStep === 0) {
            this.draftRestore('equipmentCheck', 'form', this.form.planDetailsId, 'dialogVisible')
            this.recordContrastDetailsList = this.form.recordContrastDetailsList || []
          }
        }
      }).catch(error => {
        console.error(error)
@@ -243,6 +249,7 @@
      addExamineRecordContrast(this.form).then(res => {
        if (res.code == 200) {
          this.$message.success('新增成功')
          this.draftClear('equipmentCheck')
          this.resetForm()
        }
        this.submitFormLoading = false
@@ -258,6 +265,7 @@
      reviewExamineRecordContrast(params).then(res => {
        if (res.code == 200) {
          this.$message.success('审核成功')
          this.draftClear('equipmentCheck')
          this.resetForm()
        }
        this.submitFormLoading = false
@@ -266,6 +274,7 @@
      })
    },
    resetForm() {
      this.draftStop('equipmentCheck')
      this.dialogVisible = false
      this.$emit('closeDialog')
    },