From b5e4adfc3a55490ad1cd49f50dfcc9dfb7b57d33 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期四, 31 八月 2023 13:45:34 +0800 Subject: [PATCH] 文档名称来源 修改 --- src/views/spare/modules/sparePartInventory/SparePart2List.vue | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/views/spare/modules/sparePartInventory/SparePart2List.vue b/src/views/spare/modules/sparePartInventory/SparePart2List.vue index 0b1b869..8b588c6 100644 --- a/src/views/spare/modules/sparePartInventory/SparePart2List.vue +++ b/src/views/spare/modules/sparePartInventory/SparePart2List.vue @@ -58,7 +58,21 @@ @click="searchReset" 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> + <a-tag color="#55acee" style="height:15px"></a-tag>搴撳瓨绉帇 <a-tag color="#cd201f" style="height:15px"></a-tag>搴撳瓨涓嶈冻 </div> <a-table @@ -232,6 +246,7 @@ ], url: { list: "/spare/sparePart/sparePartInventoryList", + importExcelUrl:'/spare/SparesPartInventory/importExcel' }, //鏂板銆佺紪杈戙�佸垹闄ゃ�佹壒閲忓垹闄ゆ搷浣滄敼鍙樻暟鎹悗鍒锋柊鍏宠仈鐨勭粍浠剁殑鐩戝惉灞炴�� alterFlag: "", @@ -274,12 +289,12 @@ //绂佺敤鐘舵�佹牱寮� tableRowClass(record, index) { - if (record.totalMainQuantity < record.inventoryLowerLimit) { + if (record.totalMainQuantity < record.inventoryLowerLimit) { return 'downLimit' }else if(record.totalMainQuantity > record.inventoryUpperLimit){ return 'upLimit' } - + }, searchReset() { this.queryParam = {}; @@ -336,6 +351,10 @@ color: red; } +.yellow { + color: yellow; +} + .downLimit { color: red; } @@ -344,6 +363,7 @@ color: blue; } + .fontweight { font-weight: bold; } -- Gitblit v1.9.3