fix(wms): 修复currentTab默认值及仓库ID变更时获取材料逻辑

修复currentTab默认值从空字符串改为undefined,避免潜在的类型问题
调整仓库ID变更时的逻辑,确保总是触发getMaterialCoil
This commit is contained in:
砂糖
2025-11-24 18:27:17 +08:00
parent 76c65bd31d
commit f0a1598fa3

View File

@@ -360,7 +360,7 @@ export default {
if (newVal.length > 0) {
// this.materialQueryParams.warehouseId = newVal[0]?.value || ''
// 设置currentTab为第一个tab的value
this.currentTab = newVal[0]?.value || ''
this.currentTab = newVal[0]?.value || undefined
}
},
immediate: true
@@ -369,8 +369,8 @@ export default {
handler(newVal) {
if (newVal) {
this.materialQueryParams.warehouseId = newVal
this.getMaterialCoil()
}
this.getMaterialCoil()
},
immediate: true
}