From 918cdaaa53f65007311946383dde4d56ba8e3195 Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期三, 30 八月 2023 18:45:30 +0800 Subject: [PATCH] 备件库存增加颜色说明提示 --- src/views/spare/modules/sparePartInventory/SparePart2List.vue | 41 +++++++++++++++++++++++++++++------------ 1 files changed, 29 insertions(+), 12 deletions(-) diff --git a/src/views/spare/modules/sparePartInventory/SparePart2List.vue b/src/views/spare/modules/sparePartInventory/SparePart2List.vue index 82a7f72..0b1b869 100644 --- a/src/views/spare/modules/sparePartInventory/SparePart2List.vue +++ b/src/views/spare/modules/sparePartInventory/SparePart2List.vue @@ -58,6 +58,7 @@ @click="searchReset" icon="reload" >閲嶇疆</a-button> + <a-tag color="#55acee" style="height:15px"></a-tag>搴撳瓨绉帇锛�<a-tag color="#cd201f" style="height:15px"></a-tag>搴撳瓨涓嶈冻 </div> <a-table @@ -73,6 +74,7 @@ @change="handleTableChange" :scroll="{ x: 'calc(1500px + 50%)', y: 900 }" :customRow="clickThenSelect" + :rowClassName="tableRowClass" > </a-table> @@ -178,25 +180,25 @@ dataIndex: 'constructorId_dictText', }, { - title: '涓诲崟浣�', + title: '鍗曚綅', align: "center", dataIndex: 'mainUnitId_dictText', }, - { + /* { title: '杈呭崟浣�', align: "center", dataIndex: 'auxiliaryUnitId_dictText', - }, + }, */ { - title: '鎬讳富鏁伴噺', + title: '鎬绘暟閲�', align: "center", dataIndex: 'totalMainQuantity', }, - { + /* { title: '鎬昏緟鏁伴噺', align: "center", dataIndex: 'totalAuxiliaryQuantity', - }, + }, */ { title: '鏈夋晥鏈�', align: "center", @@ -272,11 +274,13 @@ //绂佺敤鐘舵�佹牱寮� tableRowClass(record, index) { - if (record.status != "1") { - return "frozenRowClass"; - } - return ""; - }, + if (record.totalMainQuantity < record.inventoryLowerLimit) { + return 'downLimit' + }else if(record.totalMainQuantity > record.inventoryUpperLimit){ + return 'upLimit' + } + + }, searchReset() { this.queryParam = {}; if (this.nodeSelected.key != -1) { @@ -319,7 +323,7 @@ } } </script> -<style> +<style lang="less" > @import '~@assets/less/common.less'; .frozenRowClass { @@ -331,7 +335,20 @@ .error { color: red; } + +.downLimit { + color: red; +} + +.upLimit { + color: blue; +} + .fontweight { font-weight: bold; } + +.ant-table-tbody .red { + background-color: red !important + } </style> \ No newline at end of file -- Gitblit v1.9.3