From e0cd695c11734348e1e01304bdff0696768c1fda Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期四, 16 十一月 2023 10:57:17 +0800
Subject: [PATCH] 设备编码、对象部门修改为统一编码、使用部门

---
 src/views/eam/DailyInspectionStandardList.vue |   44 +++++++++++++++++++++++++++-----------------
 1 files changed, 27 insertions(+), 17 deletions(-)

diff --git a/src/views/eam/DailyInspectionStandardList.vue b/src/views/eam/DailyInspectionStandardList.vue
index 1f7cf59..463d03b 100644
--- a/src/views/eam/DailyInspectionStandardList.vue
+++ b/src/views/eam/DailyInspectionStandardList.vue
@@ -1,6 +1,6 @@
 <template>
   <a-card
-    title="鏃ュ父鐐规"
+    title="鑷富缁存姢鐐规鏍囧噯"
     :bordered='false'
   >
     <div class='table-page-search-wrapper'>
@@ -68,6 +68,9 @@
         icon='plus'
         v-has="'dailyInspectionStandard:add'"
       >鏂板</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">瀵煎叆</a-button>
+      </a-upload>
       <a-button
         type="primary"
         @click="searchQuery"
@@ -216,28 +219,19 @@
             return parseInt(index) + 1
           }
         },
-        {
-          title: '鐗堟湰',
-          align: 'center',
-          dataIndex: 'version',
-        },
-        {
-          title: '鐗堟湰鐘舵��',
-          align: 'center',
-          dataIndex: 'versionStatusName',
-        },
+
         {
           title: '鏍囧噯缂栫爜',
           align: 'center',
           dataIndex: 'num',
         },
         {
-          title: '瀵硅薄閮ㄩ棬',
+          title: '浣跨敤閮ㄩ棬',
           align: 'center',
           dataIndex: 'useDepartName',
         },
         {
-          title: '璁惧缂栫爜',
+          title: '缁熶竴缂栫爜',
           align: 'center',
           dataIndex: 'equipmentNum',
         },
@@ -261,15 +255,25 @@
           align: 'center',
           dataIndex: 'assignModeName',
         },
+        // {
+        //   title: '鐢熸晥鏃堕棿',
+        //   align: 'center',
+        //   dataIndex: 'takeEffectTime',
+        // },
+        // {
+        //   title: '澶辨晥鏃堕棿',
+        //   align: 'center',
+        //   dataIndex: 'loseEfficacyTime',
+        // },
         {
-          title: '鐢熸晥鏃堕棿',
+          title: '鐗堟湰',
           align: 'center',
-          dataIndex: 'takeEffectTime',
+          dataIndex: 'version',
         },
         {
-          title: '澶辨晥鏃堕棿',
+          title: '鐗堟湰鐘舵��',
           align: 'center',
-          dataIndex: 'loseEfficacyTime',
+          dataIndex: 'versionStatusName',
         },
         {
           title: '鍒涘缓浜�',
@@ -305,6 +309,7 @@
         delete: '/eam/inspectionStandard/delete',
         deleteBatch: '/eam/inspectionStandard/deleteBatch',
         versionTakeEffect: "/eam/inspectionStandard/versionTakeEffect",
+        importExcelUrl: "/eam/inspectionStandard/importExcel",
       },
       version: '1.0',
       dictOptions: {},
@@ -323,6 +328,11 @@
       inspectionStandardId: '-1'
     }
   },
+  computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      }
+    },
   methods: {
     clickThenSelect(record) {
       return {

--
Gitblit v1.9.3