From 3d32011de9736620e96492cc40b6d6341330d4d2 Mon Sep 17 00:00:00 2001
From: houjie <714924425@qq.com>
Date: 星期三, 30 八月 2023 18:56:08 +0800
Subject: [PATCH] 备件处理

---
 src/views/spare/modules/sparePartInventory/SparePart2List.vue |   29 ++++++++++++++++++++---------
 1 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/src/views/spare/modules/sparePartInventory/SparePart2List.vue b/src/views/spare/modules/sparePartInventory/SparePart2List.vue
index 0b1b869..4724b49 100644
--- a/src/views/spare/modules/sparePartInventory/SparePart2List.vue
+++ b/src/views/spare/modules/sparePartInventory/SparePart2List.vue
@@ -59,6 +59,20 @@
         icon="reload"
       >閲嶇疆</a-button>
       <a-tag color="#55acee" style="height:15px"></a-tag>搴撳瓨绉帇锛�<a-tag color="#cd201f" style="height:15px"></a-tag>搴撳瓨涓嶈冻
+      <a-button
+        type="primary"
+        icon="download"
+        @click="handleExportXls('搴撳瓨淇℃伅')"
+      >瀵煎嚭</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>
     </div>
 
     <a-table
@@ -232,6 +246,7 @@
       ],
       url: {
         list: "/spare/sparePart/sparePartInventoryList",
+        importExcelUrl:'/spare/SparesPartInventory/importExcel'
       },
       //鏂板銆佺紪杈戙�佸垹闄ゃ�佹壒閲忓垹闄ゆ搷浣滄敼鍙樻暟鎹悗鍒锋柊鍏宠仈鐨勭粍浠剁殑鐩戝惉灞炴��
       alterFlag: "",
@@ -275,11 +290,11 @@
     //绂佺敤鐘舵�佹牱寮�
     tableRowClass(record, index) {
         if (record.totalMainQuantity < record.inventoryLowerLimit) {
-          return 'downLimit'
+          return 'error'
         }else if(record.totalMainQuantity > record.inventoryUpperLimit){
-          return 'upLimit'
+          return 'yellow'
         }
-        
+
       },
     searchReset() {
       this.queryParam = {};
@@ -336,12 +351,8 @@
   color: red;
 }
 
-.downLimit {
-  color: red;
-}
-
-.upLimit {
-  color: blue;
+.yellow {
+  color: yellow;
 }
 
 .fontweight {

--
Gitblit v1.9.3