From 5e9fb57f959d6cccbb3a3c56d0ccdd241855ad06 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期五, 11 七月 2025 16:06:07 +0800
Subject: [PATCH] 1、技术鉴定工单页面基础功能 2、新增技术鉴定设备选择组件 3、

---
 src/views/eam/maintenance/EamInspectionOrderList.vue |   78 ++++++++++++++++----------------------
 1 files changed, 33 insertions(+), 45 deletions(-)

diff --git a/src/views/eam/maintenance/EamInspectionOrderList.vue b/src/views/eam/maintenance/EamInspectionOrderList.vue
index c67e2f4..39c7c2b 100644
--- a/src/views/eam/maintenance/EamInspectionOrderList.vue
+++ b/src/views/eam/maintenance/EamInspectionOrderList.vue
@@ -98,7 +98,7 @@
               </a-menu-item>
 
               <a-menu-item>
-                <a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handleOrReceive(record.id)">
+                <a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handleAbolish(record.id)">
                   <a>浣滃簾</a>
                 </a-popconfirm>
               </a-menu-item>
@@ -107,12 +107,6 @@
           </template>
 
           <a v-else @click="handleDetail(record)">璇︽儏</a>
-
-          <template v-if="record.inspectionStatus === 'COMPLETE'">
-            <a-divider type="vertical"/>
-
-             <a @click="handlePrint(record)">鎵撳嵃</a>
-          </template>
         </span>
       </a-table>
     </div>
@@ -164,11 +158,6 @@
             }
           },
           {
-            title: '宸ュ崟鍙�',
-            align: 'center',
-            dataIndex: 'orderNum'
-          },
-          {
             title: '缁熶竴缂栫爜',
             align: 'center',
             dataIndex: 'equipmentCode'
@@ -177,6 +166,16 @@
             title: '璁惧鍚嶇О',
             align: 'center',
             dataIndex: 'equipmentName'
+          },
+          {
+            title: '璁惧鍨嬪彿',
+            align: 'center',
+            dataIndex: 'equipmentModel'
+          },
+          {
+            title: '宸ュ崟鍙�',
+            align: 'center',
+            dataIndex: 'orderNum'
           },
           {
             title: '瑙勮寖鍚嶇О',
@@ -220,7 +219,7 @@
             dataIndex: 'operateTime'
           },
           {
-            title: '绠$悊鍛樼‘璁�',
+            title: '缁翠慨宸�',
             align: 'center',
             dataIndex: 'confirmUser_dictText'
           },
@@ -270,8 +269,6 @@
       }
     },
     methods: {
-      initDictConfig() {
-      },
       //璇︽儏
       handleDetail: function(record) {
         this.selectInspectionOrderXqData = Object.assign({}, record)
@@ -281,33 +278,30 @@
         this.$refs.modalFormXq.getAllApproveData(record)
         this.$refs.modalFormXq.getBasicInformation({ ...record, dataId: record.id })
       },
+
       handleInspection(id) {
-        if (!this.url.receiveInspectionOrder) {
-          this.$message.error('璇疯缃畊rl.receiveInspectionOrder!')
-          return
-        }
         var that = this
-        getAction(that.url.receiveInspectionOrder, { id: id }).then((res) => {
-          if (res.success) {
-            that.$notification.success({
-              message: '娑堟伅',
-              description: res.message
-            })
-            that.loadData()
-          } else {
-            // that.$message.warning(res.message);
-            that.$notification.warning({
-              message: '娑堟伅',
-              description: res.message
-            })
-          }
-        })
+        this.loading = true
+        getAction(that.url.receiveInspectionOrder, { id })
+          .then((res) => {
+            if (res.success) {
+              that.$notification.success({
+                message: '娑堟伅',
+                description: res.message
+              })
+              that.loadData()
+            } else {
+              // that.$message.warning(res.message);
+              that.$notification.warning({
+                message: '娑堟伅',
+                description: res.message
+              })
+              this.loading = false
+            }
+          })
       },
-      handleOrReceive(id) {
-        if (!this.url.cancelInspectionOrder) {
-          this.$message.error('璇疯缃畊rl.cancelInspectionOrder!')
-          return
-        }
+
+      handleAbolish(id) {
         var that = this
         getAction(that.url.cancelInspectionOrder, { id: id }).then((res) => {
           if (res.success) {
@@ -390,7 +384,6 @@
                   that.loadData()
                   that.onClearSelected()
                 } else {
-                  // that.$message.warning(res.message);
                   that.$notification.warning({
                     message: '娑堟伅',
                     description: res.message
@@ -406,11 +399,6 @@
       onInspectionDateChange: function(value, dateString) {
         this.queryParam.inspectionDateBegin = dateString[0]
         this.queryParam.inspectionDateEnd = dateString[1]
-      },
-
-      handlePrint(record) {
-        let href = `${window._CONFIG['domianURL']}/jmreport/view/1094871242505912320?id=` + record.id + `&equipmentId=` + record.equipmentId + `&inspectionDate=` + record.inspectionDate //缃戠珯閾炬帴
-        window.open(href, '_blank')
       }
     }
   }

--
Gitblit v1.9.3