diff --git a/src/views/modules/haianWarehouse/dashboard/sortingBoard54.vue b/src/views/modules/haianWarehouse/dashboard/sortingBoard54.vue
index bcee54c..354b400 100644
--- a/src/views/modules/haianWarehouse/dashboard/sortingBoard54.vue
+++ b/src/views/modules/haianWarehouse/dashboard/sortingBoard54.vue
@@ -34,26 +34,27 @@
-
-
-
-
-
+
+
+
+
+
-
+
- | No | 工单号 | 物料编码 | 物料名称 | RFID / 标签号 | 状态 |
+ | 工单号 | 物料编码 | 物料名称 | RFID / 标签号 | 数量 | 状态 |
-
- | {{ index + 1 }} |
+
| {{ item.orderNo || '-' }} |
{{ item.partNo || '-' }} |
{{ (item.partDesc || '').slice(0, 100) || '-' }} |
{{ item.rfidBarcode }} |
+
+ {{ formatQty(item.qty) }} |
{{ item.status }} |
@@ -136,6 +137,17 @@ export default {
clearInterval(this.scrollTimer)
},
methods: {
+ // 看板数量去尾零,0保留为0;空值表示标签未唯一命中,显示横线 - rqrq
+ formatQty (qty) {
+ if (qty === null || qty === undefined || qty === '') {
+ return '-'
+ }
+ const num = Number(qty)
+ if (!Number.isFinite(num)) {
+ return '-'
+ }
+ return parseFloat(String(num))
+ },
// 专用屏独立使用工厂54,不读取或修改登录工厂;兼容site=54地址,错误工厂参数仍拒绝查询 - rqrq
initializeBoard () {
this.requestVersion++