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' }; + } + } },