From 2771237a6ea07eb1b7be389034b4dc2981b0cffd Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期五, 11 七月 2025 21:10:14 +0800
Subject: [PATCH] 1、设备台账新增和编辑增加技术状态字段 2、二保编辑功能 3、二保以及点检自动带入保养周期默认值而不是从设备处带出

---
 src/views/eam/maintenance/modules/EamInspectionOrderModal.vue |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
index 8361c6c..45fdba0 100644
--- a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
+++ b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
@@ -33,7 +33,7 @@
           </a-col>
           <a-col :span="8">
             <a-form-model-item label="淇濆吇鍛ㄦ湡">
-              <a-input placeholder="閫夋嫨璁惧鍚庤嚜鍔ㄥ甫鍑�" v-model="model.maintenancePeriod" disabled/>
+              <a-input v-model="model.maintenancePeriod" disabled/>
             </a-form-model-item>
           </a-col>
           <a-col :span="8">
@@ -130,19 +130,19 @@
               key: 'itemCode',
               type: JVXETypes.normal,
               width: 100,
-              align: 'center',
+              align: 'center'
             },
             {
               title: '淇濆吇椤�',
               key: 'itemName',
               type: JVXETypes.normal,
-              align: 'center',
+              align: 'center'
             },
             {
               title: '淇濆吇瑙勮寖鎴栬姹�',
               key: 'itemDemand',
               type: JVXETypes.normal,
-              align: 'center',
+              align: 'center'
             }
           ],
           weekInspectionColumns: [],
@@ -152,19 +152,19 @@
               key: 'itemCode',
               type: JVXETypes.normal,
               width: 60,
-              align: 'center',
+              align: 'center'
             },
             {
               title: '淇濆吇椤�',
               key: 'itemName',
               type: JVXETypes.normal,
-              align: 'center',
+              align: 'center'
             },
             {
               title: '淇濆吇瑕佹眰',
               key: 'itemDemand',
               type: JVXETypes.normal,
-              align: 'center',
+              align: 'center'
             },
             {
               title: '鐐规缁撴灉',
@@ -178,7 +178,7 @@
               title: '寮傚父鎻忚堪',
               key: 'exceptionDescription',
               type: JVXETypes.normal,
-              align: 'center',
+              align: 'center'
             },
             {
               title: '寮傚父鏄惁鎶ヤ慨',
@@ -194,7 +194,7 @@
     },
     methods: {
       add() {
-        this.model = {}
+        this.model = { maintenancePeriod: 1 }
         this.visible = true
         this.editable = true
         this.detail.dayInspectionList = []
@@ -202,7 +202,7 @@
       },
 
       edit(record) {
-        this.model = Object.assign({}, record)
+        this.model = Object.assign({ maintenancePeriod: 1 }, record)
         this.editable = false
         this.visible = true
         this.spinning = true
@@ -249,7 +249,6 @@
 
       autocompleteForm(selectObj) {
         this.model.standardName = selectObj.standardName
-        this.model.maintenancePeriod = selectObj.maintenancePeriod
         this.model.standardCode = selectObj.standardCode
         this.standardId = selectObj.id
         this.detail.dayInspectionList = []

--
Gitblit v1.9.3