diff --git a/src/api/wms/actualWarehouse.js b/src/api/wms/actualWarehouse.js index 2119308..1cf6808 100644 --- a/src/api/wms/actualWarehouse.js +++ b/src/api/wms/actualWarehouse.js @@ -1,5 +1,6 @@ import request from '@/utils/request' + // 查询实际库区/库位自关联列表 export function listActualWarehouse(query) { return request({ diff --git a/src/utils/request.js b/src/utils/request.js index 8f7f5c0..96dd47d 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -34,7 +34,7 @@ service.interceptors.request.use( if (token) { // 直接使用Token(不带Bearer前缀) - config.headers['Authorization'] = token + config.headers['Authorization'] = "Bearer " + token } return config }, diff --git a/src/views/screens/warehouse-overview/index.vue b/src/views/screens/warehouse-overview/index.vue index acc7400..3a47a25 100644 --- a/src/views/screens/warehouse-overview/index.vue +++ b/src/views/screens/warehouse-overview/index.vue @@ -51,16 +51,10 @@ :props="treeProps" node-key="actualWarehouseId" @node-click="handleNodeClick" + :expand-on-click-node="false" highlight-current class="warehouse-tree" > - @@ -69,49 +63,31 @@ +
-
-
- 📦 -
-
{{ animatedTotal }}
-
总库位数
-
-
+
+ {{ animatedTotal }} + 总库位数
- -
-
- -
-
{{ animatedOccupied }}
-
已占用
-
+
+
+
+ + 已占用 {{ statistics.occupied }}
-
- -
-
- 🔄 -
-
{{ animatedAvailable }}
-
可用
-
+
+ + 维护中 {{ statistics.maintenance }}
-
- -
-
- 📊 -
-
{{ animatedUtilization }}%
-
利用率
-
+
+ + 可用 {{ statistics.available }}
+
@@ -128,46 +104,111 @@ 📭
点击左侧分区查看库位
- - - - - - - - - - - - - +
- > + + + + +
+
+ {{ detailWarehouse.actualWarehouseCode }} + {{ getStatusText(detailWarehouse) }} +
+
+
+ 库位名称 + {{ detailWarehouse.actualWarehouseName }} +
+
+ 钢卷编号 + 📦 {{ detailWarehouse.coilCode }} + +
+
+ 数量 + {{ detailWarehouse.coilQuantity || 0 }} +
+
+ 位置 + {{ detailWarehouse.parsedInfo.column }}列 {{ detailWarehouse.parsedInfo.row }}行 {{ detailWarehouse.parsedInfo.layer }}层 +
+
+
+