From a1e4d36f3ab3eb2e10373adfffebda4430e0ea3f Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期二, 27 十月 2026 09:41:51 +0800
Subject: [PATCH] feat(device): 核查计划检查日期精确到日;提前审核增加归档提醒;删除放开至未开始/待批准行

---
 src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue |   37 +++++++++++++++++++++++++++++++------
 1 files changed, 31 insertions(+), 6 deletions(-)

diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue b/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
index fa984f8..6c5e8d8 100644
--- a/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
+++ b/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
@@ -90,7 +90,7 @@
               @click="handleRecord(scope.row)">瀹℃牳</el-button>
             <el-button v-if="scope.row.recordStatus === 2 || scope.row.recordStatus === 3"
               size="small" link type="primary" @click="handleDown(scope.row)">瀵煎嚭</el-button>
-            <el-button v-if="scope.row.recordStatus === 0 && scope.row.recordContrastStatus === 0"
+            <el-button v-if="scope.row.recordStatus === 0 || scope.row.recordStatus === 1"
               size="small" link type="danger" @click="deleteFun1(scope.row.planDetailsId)">鍒犻櫎</el-button>
           </template>
         </el-table-column>
@@ -114,10 +114,14 @@
             </el-col>
             <el-col :span="12">
               <el-form-item label="妫�鏌ユ棩鏈燂細" prop="checkTime">
-                <el-date-picker v-model="form.checkTime" :disabled="operationType === 'view'" clearable
-                  format="YYYY-MM" placeholder="閫夋嫨妫�鏌ユ棩鏈�" size="small" style="width:100%" type="month"
-                  value-format="YYYY-MM">
-                </el-date-picker>
+                <el-input v-if="operationType === 'view'" :model-value="formatCheckMonth(null, null, form.checkTime)"
+                  disabled size="small"></el-input>
+                <template v-else>
+                  <el-date-picker v-model="checkTimeEditValue" clearable format="YYYY-MM-DD" placeholder="閫夋嫨妫�鏌ユ棩鏈�"
+                    size="small" style="width:100%" type="date" value-format="YYYY-MM-DD">
+                  </el-date-picker>
+                  <div v-if="isMonthOnlyCheckTime" class="check-time-tip">绯荤粺鐧昏鍙埌鏈堜唤锛岄�夋嫨鍏蜂綋鏃ユ湡鍚庡皢鎸夋棩淇濆瓨</div>
+                </template>
               </el-form-item>
             </el-col>
             <el-col :span="8">
@@ -500,7 +504,7 @@
     },
     // 鏄庣粏-鍒犻櫎
     deleteFun1(id) {
-      this.$confirm('鍒犻櫎鍚庯紝鑻ヨ璁惧杩樻湁瀹℃牳閫氳繃鐨勬牳鏌ヨ褰曪紝妗f鐨勬渶杩戞牳鏌ユ棩鏈熷皢鍥為��鍒版渶杩戜竴娆″畬鎴愯褰曪紱鑻ユ病鏈夛紝鍒欐竻绌烘。妗堢殑鏍告煡鏃ユ湡鍜屾牳鏌ュ懆鏈熴�傛槸鍚︾户缁�?', '鎻愮ず', {
+      this.$confirm('鍒犻櫎鍚庯紝璇ヨ鏈鏍哥殑鏍告煡璁板綍鍙婇檮浠朵細涓�骞跺垹闄わ紱鑻ヨ璁惧杩樻湁瀹℃牳閫氳繃鐨勬牳鏌ヨ褰曪紝妗f鐨勬渶杩戞牳鏌ユ棩鏈熷皢鍥為��鍒版渶杩戜竴娆″畬鎴愯褰曪紱鑻ユ病鏈夛紝鍒欐竻绌烘。妗堢殑鏍告煡鏃ユ湡鍜屾牳鏌ュ懆鏈熴�傛槸鍚︾户缁�?', '鎻愮ず', {
         confirmButtonText: '纭畾',
         cancelButtonText: '鍙栨秷',
         type: 'warning'
@@ -650,6 +654,19 @@
       }
       return list
     },
+    // 鏃ユ湡鎺т欢鍙帴鍙� YYYY-MM-DD锛涚郴缁熺櫥璁扮殑寰呮牳鏌ヨ鍙湁骞存湀锛屾湭鏀规棩鏈熸椂涓嶈兘鎶娾�滄棩鈥濆啓杩涜〃鍗�
+    checkTimeEditValue: {
+      get() {
+        const val = this.form.checkTime || ''
+        return /^\d{4}-\d{2}$/.test(val) ? `${val}-01` : val
+      },
+      set(val) {
+        this.form.checkTime = val || ''
+      }
+    },
+    isMonthOnlyCheckTime() {
+      return /^\d{4}-\d{2}$/.test(this.form.checkTime || '')
+    },
   },
 }
 </script>
@@ -737,6 +754,14 @@
   margin-bottom: 12px;
 }
 
+.check-time-tip {
+  width: 100%;
+  font-size: 12px;
+  line-height: 1.4;
+  color: #909399;
+  margin-top: 2px;
+}
+
 .export-panel {
   border: 1px solid #e4e7ed;
   border-radius: 6px;

--
Gitblit v1.9.3