From 5d3e02dc03f0f32fa48dfdcde7cb22aae734ff1d Mon Sep 17 00:00:00 2001
From: wangwei <1610949092@qq.com>
Date: Tue, 31 Dec 2024 18:18:51 +0800
Subject: [PATCH] =?UTF-8?q?12/31=20=E7=81=AF=E7=BB=841.3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/collect/PannelOrderBizCard.vue | 39 ++++++++++++++++++++++--
1 file changed, 37 insertions(+), 2 deletions(-)
diff --git a/src/views/collect/PannelOrderBizCard.vue b/src/views/collect/PannelOrderBizCard.vue
index ec11ee49..1a2c9a37 100644
--- a/src/views/collect/PannelOrderBizCard.vue
+++ b/src/views/collect/PannelOrderBizCard.vue
@@ -16,6 +16,13 @@
使用单位:
{{ info.measureUnit }}
+
+
槽位:
{{ info.queueCode }}
+
+
+
+ {{ info.colorName}}
+
{{ info.count }}
确认取药
@@ -196,6 +203,7 @@ export default {
return
}
_this.preDetailList = res.data.list
+ _this.setLed(_this.preDetailList)
_this.preLoading = false
}).catch(() => {
_this.preLoading = false
@@ -203,7 +211,22 @@ export default {
})
},
-
+ setLed(preDetailList){
+ preDetailList.forEach(item => {
+ if (item.ledNum == 1){
+ item.colorName = '红灯'
+ }
+ if (item.ledNum == 2){
+ item.colorName = '黄灯'
+ }
+ if (item.ledNum == 3){
+ item.colorName = '蓝灯'
+ }
+ if (item.ledNum == 4){
+ item.colorName = '绿灯'
+ }
+ })
+ },
scanDetail(_this, row) {
_this.bizId = row.id;
_this.scanDetailVisible = true;
@@ -221,7 +244,7 @@ export default {
rowBackground.color = '#F56C6C';
}
if (row.autoTagStatus == 2) {
- rowBackground.color = '#E6A23C';
+ rowBackground.color = '#ec951f';
}
if (row.scanActCount >= row.count) {
rowBackground.color = '#56a717';
@@ -229,6 +252,18 @@ export default {
rowBackground.height = "38px"
return rowBackground;
},
+ colorStyle(info) {
+ switch (info.ledNum) {
+ case 1:
+ return { color: 'red' };
+ case 2:
+ return { color: '#ec951f' };
+ case 3:
+ return { color: 'blue' };
+ case 4:
+ return { color: 'green' };
+ }
+ }
},