From 5a5495cdeef4716cc20473f7929d386ee99a6285 Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期五, 16 十月 2026 16:16:56 +0800
Subject: [PATCH] 撤回设备模块其他标签页的草稿自动保存,仅保留设备核查计划标签页:核查计划主页面、核查录入弹窗、核查记录弹窗、新增年计划弹窗 4 处保留编辑退出自动保存/恢复,其余 21 个组件恢复原状; management.vue(数采配置旧弹窗)与 calibration.vue(被注释导出按钮)仅保留此前已报备的死代码清理,草稿接线一并移除

---
 src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue b/src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue
index 03716dc..c367d6a 100644
--- a/src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue
+++ b/src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue
@@ -99,10 +99,12 @@
   deviceScopeSearch,
 } from '@/api/cnas/resourceDemand/device.js'
 import { selectUserCondition } from "@/api/performance/class";
+import draftSave from '@/mixins/draftSave'
 export default {
   name: "addVerificationYearPlanDia",
   // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
   components: {},
+  mixins: [draftSave],
   data() {
     // 杩欓噷瀛樻斁鏁版嵁
     return {
@@ -137,6 +139,10 @@
           examinePlanDetailsList: [],
         }
         this.examinePlanDetailsList = []
+        this.$nextTick(() => {
+          this.draftRestore('addVerificationYearPlanDiaForm', 'form', '', 'applicationForm')
+          this.draftRestore('addVerificationYearPlanDiaRows', 'examinePlanDetailsList', '', 'applicationForm')
+        })
       } else {
         this.getRowInfo(row)
       }
@@ -152,6 +158,10 @@
           this.form.planName = res.data.planName
           this.form.planYear = res.data.planYear
           this.form.planId = res.data.planId
+          this.$nextTick(() => {
+            this.draftRestore('addVerificationYearPlanDiaForm', 'form', this.form.planId, 'applicationForm')
+            this.draftRestore('addVerificationYearPlanDiaRows', 'examinePlanDetailsList', this.form.planId, 'applicationForm')
+          })
         }
       }).catch(error => {
         this.yearTableLoading = false
@@ -212,6 +222,8 @@
         addDeviceExaminePlan(this.form).then(res => {
           if (res.code == 200) {
             this.$message.success('鏂板鎴愬姛')
+            this.draftClear('addVerificationYearPlanDiaForm')
+            this.draftClear('addVerificationYearPlanDiaRows')
             this.closeDialog()
             this.$emit('closeDia')
           }
@@ -223,6 +235,8 @@
         updateDeviceExaminePlan(this.form).then(res => {
           if (res.code == 200) {
             this.$message.success('鏂板鎴愬姛')
+            this.draftClear('addVerificationYearPlanDiaForm')
+            this.draftClear('addVerificationYearPlanDiaRows')
             this.closeDialog()
             this.$emit('closeDia')
           }
@@ -233,6 +247,8 @@
       }
     },
     closeDialog() {
+      this.draftStop('addVerificationYearPlanDiaForm')
+      this.draftStop('addVerificationYearPlanDiaRows')
       this.applicationForm = false
     },
     // 鑾峰彇鎵�鏈夎澶�

--
Gitblit v1.9.3