From 54c22f2f0e98c35e48cdad6c4d0299d08beea630 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期一, 28 七月 2025 10:15:13 +0800
Subject: [PATCH] update

---
 src/views/flowable/workflow/InspectionOrder/InspectionOrderHandle.vue |   62 +++++++++++++++++++++++++-----
 1 files changed, 51 insertions(+), 11 deletions(-)

diff --git a/src/views/flowable/workflow/InspectionOrder/InspectionOrderHandle.vue b/src/views/flowable/workflow/InspectionOrder/InspectionOrderHandle.vue
index 79fdd12..9a8dc93 100644
--- a/src/views/flowable/workflow/InspectionOrder/InspectionOrderHandle.vue
+++ b/src/views/flowable/workflow/InspectionOrder/InspectionOrderHandle.vue
@@ -23,10 +23,23 @@
             </a-form-model-item>
           </a-col>
           <a-col :span='span'>
+            <a-form-model-item label="宸ュ崟鐘舵��">
+              <a-input readOnly v-model="tableRowRecord.inspectionStatus_dictText"/>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span='span'>
             <a-form-model-item label="璁惧缂栧彿">
               <MaintenanceEquipmentSelect v-model="tableRowRecord.equipmentId"
                                           :maintenanceCategory="'POINT_INSPECTION'" disabled
                                           @autocompleteForm="autoCompleteForm"/>
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+
+        <a-row>
+          <a-col :span='span'>
+            <a-form-model-item label="瀹夎浣嶇疆">
+              <a-input readOnly v-model="tableRowRecord.installationPosition_dictText"/>
             </a-form-model-item>
           </a-col>
           <a-col :span='span'>
@@ -34,12 +47,17 @@
               <a-input readOnly v-model="tableRowRecord.standardName"/>
             </a-form-model-item>
           </a-col>
+          <a-col :span='span'>
+            <a-form-model-item label="鏍囧噯缂栫爜">
+              <a-input readOnly v-model="tableRowRecord.standardCode"/>
+            </a-form-model-item>
+          </a-col>
         </a-row>
 
         <a-row>
           <a-col :span='span'>
-            <a-form-model-item label="鏍囧噯缂栫爜">
-              <a-input readOnly v-model="tableRowRecord.standardCode"/>
+            <a-form-model-item label="淇濆吇鍛ㄦ湡">
+              <a-input v-model="tableRowRecord.maintenancePeriod" readOnly/>
             </a-form-model-item>
           </a-col>
           <a-col :span='span'>
@@ -55,14 +73,20 @@
         </a-row>
 
         <a-row>
-          <a-col :span='span'>
-            <a-form-model-item label="淇濆吇鍛ㄦ湡">
-              <a-input v-model="tableRowRecord.maintenancePeriod" readOnly/>
-            </a-form-model-item>
-          </a-col>
+
           <a-col :span='span'>
             <a-form-model-item label="鐐规浜�">
               <a-input v-model="tableRowRecord.operator_dictText" readOnly/>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span='span'>
+            <a-form-model-item label="鐐规浜虹數璇�">
+              <a-input v-model="tableRowRecord.operatorPhone_dictText" readOnly/>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span='span'>
+            <a-form-model-item label="浣滀笟鎸囧">
+              <a-button  @click="handlePreview(tableRowRecord.referenceFile)" type="primary" icon="eye">棰勮</a-button>
             </a-form-model-item>
           </a-col>
         </a-row>
@@ -145,7 +169,7 @@
             </a-tab-pane>
 
             <a-tab-pane key='3' tab='娴佺▼鍥�'>
-              <img :src="imageSrc" alt="Fetched Image"/>-->
+              <img :src="imageSrc" alt="Fetched Image"/>
             </a-tab-pane>
           </template>
 
@@ -190,6 +214,8 @@
         </template>
       </a-form-model>
     </a-spin>
+
+    <lx-file-preview ref="lxFilePreview" :fileUrl="fileUrl"></lx-file-preview>
   </j-modal>
 </template>
 
@@ -309,7 +335,8 @@
         selectedRowKeys: [],
         disableSubmit: false,
         activeTabKey: '1',
-        title: ''
+        title: '',
+        fileUrl: '',
       }
     },
     computed: {
@@ -365,7 +392,6 @@
         const param = { id: record.dataId }
         let res = await getAction(this.url.queryById, param);
         this.tableRowRecord = Object.assign({}, res.result);
-        debugger
         if (this.tableRowRecord.imageFiles) {
           let obj = JSON.parse(this.tableRowRecord.imageFiles)
           this.tableRowRecord.fileList = [...obj]
@@ -415,10 +441,11 @@
         })
       },
 
-      autoCompleteForm({ standardName, maintenancePeriod, standardCode }) {
+      autoCompleteForm({ standardName, maintenancePeriod, standardCode, referenceFile }) {
         this.$set(this.tableRowRecord, 'standardName', standardName)
         this.$set(this.tableRowRecord, 'maintenancePeriod', maintenancePeriod)
         this.$set(this.tableRowRecord, 'standardCode', standardCode)
+        this.$set(this.tableRowRecord, 'referenceFile', referenceFile)
       },
 
       // 鎵归噺閫夋嫨鎵�鏈夌偣妫�缁撴灉
@@ -483,6 +510,19 @@
             })
         }
       },
+      handlePreview: function (fileJson) {
+        if(fileJson) {
+          let obj = JSON.parse(fileJson)
+          if(obj.filePath) {
+            this.$refs.lxFilePreview.preview(obj.filePath);
+          }else {
+            that.$message.warning('娌℃湁涓婁紶鎿嶄綔鎸囧鍥剧墖')
+          }
+        }else {
+          that.$message.warning('娌℃湁涓婁紶鎿嶄綔鎸囧鍥剧墖')
+        }
+
+      },
     }
   }
 </script>

--
Gitblit v1.9.3