diff --git a/inventory-web/src/views/dashboard/index.vue b/inventory-web/src/views/dashboard/index.vue
index 76f908e..a8aa6a9 100644
--- a/inventory-web/src/views/dashboard/index.vue
+++ b/inventory-web/src/views/dashboard/index.vue
@@ -85,7 +85,7 @@
{{ node.label }}
{
}
// ==================== 库位管理相关 ====================
-// 根据层级返回按钮颜色类型
-const getLevelButtonType = (level: number, action: string) => {
- // 层级颜色映射
- const levelColors: Record> = {
- 0: { add: 'primary', edit: 'info', delete: 'danger' }, // 顶级: 蓝/灰/红
- 1: { add: 'success', edit: 'warning', delete: 'danger' }, // 二级: 绿/橙/红
- 2: { add: 'warning', edit: 'info', delete: 'danger' }, // 三级: 橙/灰/红
+// 根据层级返回"新增下级"按钮颜色
+// 第1层(顶级)=primary蓝色, 第2层=success绿色, 第3层=warning橙色, 第4层及以上=info灰色
+const getAddBtnType = (level: number) => {
+ const levelTypes: Record = {
+ 0: 'primary', // 第1层(顶级)
+ 1: 'success', // 第2层
+ 2: 'warning', // 第3层
}
- // 4级及以上统一使用危险色
- if (level >= 3) {
- return 'danger'
- }
- return levelColors[level]?.[action] || 'primary'
+ return levelTypes[level] || 'info' // 第4层及以上
}
const warehouseDialogVisible = ref(false)
diff --git a/inventory-web/src/views/stock/inbound/buy.vue b/inventory-web/src/views/stock/inbound/buy.vue
index e0af247..cd24a42 100644
--- a/inventory-web/src/views/stock/inbound/buy.vue
+++ b/inventory-web/src/views/stock/inbound/buy.vue
@@ -327,15 +327,21 @@
-
+ check-strictly
+ :render-after-expand="false"
+ >
+
+ {{ data.name }}
+
+
diff --git a/inventory-web/src/views/stock/inbound/product.vue b/inventory-web/src/views/stock/inbound/product.vue
index f05834c..807d3e7 100644
--- a/inventory-web/src/views/stock/inbound/product.vue
+++ b/inventory-web/src/views/stock/inbound/product.vue
@@ -287,15 +287,21 @@
-
+ check-strictly
+ :render-after-expand="false"
+ >
+
+ {{ data.name }}
+
+
diff --git a/inventory-web/src/views/stock/inbound/semi.vue b/inventory-web/src/views/stock/inbound/semi.vue
index 762648f..2a50630 100644
--- a/inventory-web/src/views/stock/inbound/semi.vue
+++ b/inventory-web/src/views/stock/inbound/semi.vue
@@ -346,15 +346,21 @@
-
+ check-strictly
+ :render-after-expand="false"
+ >
+
+ {{ data.name }}
+
+