From 336dcb70c156c947530eab0f0a96ee17de477929 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期五, 12 七月 2024 18:04:33 +0800
Subject: [PATCH] 设备管理修改

---
 src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue |   76 +++++++++++++++++++-------------------
 1 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue b/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue
index d881f08..fbb3fe4 100644
--- a/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue
+++ b/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue
@@ -158,7 +158,7 @@
           </a-col>
         </a-row>
         <a-row :gutter="24">
-          <a-col :span="12">
+          <!-- <a-col :span="12">
             <a-form-item
               label="淇濆吇绫诲瀷"
               :labelCol="labelCol"
@@ -173,7 +173,7 @@
                 v-decorator="['maintenanceType', validatorRules.maintenanceType]"
               />
             </a-form-item>
-          </a-col>
+          </a-col> -->
           <!-- <a-col :span="12">
             <a-form-item
               label="娲惧伐鏂瑰紡"
@@ -204,8 +204,6 @@
               />
             </a-form-item>
           </a-col>
-        </a-row>
-        <a-row :gutter="24">
           <a-col
             v-if="this.isRevise == true"
             :span="12"
@@ -305,7 +303,7 @@
             style="width: 100%"
             :disabled="false"
           /> -->
-          <a-textarea
+          <!--<a-textarea
             :value="text"
             v-if="col.dataIndex == 'maintenanceRequire'"
             :maxLength="500"
@@ -313,7 +311,7 @@
             placeholder="璇疯緭鍏ュ畨鍏ㄨ姹�"
             @change="(e)=>handleChange(e, record.key, col, index)"
           />
-          <a-textarea
+           <a-textarea
             :value="text"
             v-if="col.dataIndex == 'location'"
             :maxLength="500"
@@ -321,7 +319,7 @@
             placeholder="璇疯緭鍏ヤ繚鍏讳綅缃�"
             @change="(e)=>handleChange(e, record.key, col, index)"
             :disabled="true"
-          />
+          /> 
           <j-image-upload
             :value="text"
             v-if="col.dataIndex == 'photo'"
@@ -330,7 +328,7 @@
             placeholder="璇蜂笂浼犲浘鐗�"
             @change="(e)=>handleChange(e, record.key, col, index)"
           >
-          </j-image-upload>
+          </j-image-upload>-->
           <j-dict-select-tag
             v-if="col.dataIndex == 'maintenanceRole'"
             :value="text"
@@ -338,8 +336,8 @@
             :triggerChange="true"
             dictCode="maintenance_role"
             placeholder="璇烽�夋嫨淇濆吇瑙掕壊"
-            style="width: 100%"
             @change="(e)=>handleChange(e, record.key, col, index)"
+            style="width: 100%"
           />
         </div>
       </template>
@@ -439,17 +437,30 @@
         //   align: 'center',
         //   dataIndex: 'id'
         // },
+        // {
+        //   title: '淇濆吇閮ㄤ綅',
+        //   align: 'center',
+        //   dataIndex: 'location',
+        //   // scopedSlots: { customRender: 'location' },
+        //   // width: 150,
+        // },
         {
-          title: '淇濆吇椤圭洰',
+          title: '淇濆吇瑙掕壊',
+          align: 'center',
+          dataIndex: 'maintenanceRole',
+          scopedSlots: { customRender: 'maintenanceRole' },
+        },
+        {
+          title: '淇濆吇鍐呭',
           align: 'center',
           dataIndex: 'name'
         },
 
-        {
-          title: '淇濆吇鏍囧噯',
-          align: 'center',
-          dataIndex: 'standard'
-        },
+        // {
+        //   title: '楠屾敹鏍囧噯',
+        //   align: 'center',
+        //   dataIndex: 'standard'
+        // },
         // {
         //   title: '鏂规硶',
         //   align: 'center',
@@ -484,13 +495,7 @@
         //   scopedSlots: { customRender: 'photo' },
         //   width: 150,
         // },
-        {
-          title: '淇濆吇閮ㄤ綅',
-          align: 'center',
-          dataIndex: 'location',
-          // scopedSlots: { customRender: 'location' },
-          // width: 150,
-        },
+
         // {
         //   title: '鍛ㄦ湡',
         //   align: 'center',
@@ -498,13 +503,7 @@
         //   scopedSlots: { customRender: 'maintenanceCycleId' },
         //   width: 150,
         // },
-        {
-          title: '淇濆吇瑙掕壊',
-          align: 'center',
-          dataIndex: 'maintenanceRole',
-          scopedSlots: { customRender: 'maintenanceRole' },
-          width: 150,
-        },
+
         {
           title: '鎿嶄綔',
           align: 'center',
@@ -596,15 +595,15 @@
         let id = this.getUuiD(15);
         this.dataSource.push({
           id: id,
-          maintenanceProjectId: data[i].id,
-          name: data[i].name,
-          standard: data[i].standard,
-          maintenanceMethodName: data[i].maintenanceMethod_dictText,
-          maintenanceTool: data[i].maintenanceTool,
-          location: data[i].location,
-          maintenanceSpecialtyName: data[i].maintenanceSpecialtyId_dictText,
-          maintenanceRequire: data[i].maintenanceRequire,
-          workingHourQuota: data[i].workingHourQuota,
+          maintenanceProjectId: data[i][0].id,
+          name: data[i][0].name,
+          standard: data[i][0].standard,
+          maintenanceMethodName: data[i][0].maintenanceMethod_dictText,
+          maintenanceTool: data[i][0].maintenanceTool,
+          location: data[i][0].location,
+          maintenanceSpecialtyName: data[i][0].maintenanceSpecialtyId_dictText,
+          maintenanceRequire: data[i][0].maintenanceRequire,
+          workingHourQuota: data[i][0].workingHourQuota,
           // upload: this.upload,
           // maintenanceCycles: this.maintenanceCycles,
         })
@@ -757,6 +756,7 @@
           }
           formData.maintenanceStandardDetaillist = that.dataSource;
           formData.type = 'daily';
+          formData.maintenanceType = '2';
           let obj;
           if (!this.model.id) {
             formData.versionStatus = '1'

--
Gitblit v1.9.3