fix(wms): 修复currentTab默认值及仓库ID变更时获取材料逻辑
修复currentTab默认值从空字符串改为undefined,避免潜在的类型问题 调整仓库ID变更时的逻辑,确保总是触发getMaterialCoil
This commit is contained in:
@@ -360,7 +360,7 @@ export default {
|
|||||||
if (newVal.length > 0) {
|
if (newVal.length > 0) {
|
||||||
// this.materialQueryParams.warehouseId = newVal[0]?.value || ''
|
// this.materialQueryParams.warehouseId = newVal[0]?.value || ''
|
||||||
// 设置currentTab为第一个tab的value
|
// 设置currentTab为第一个tab的value
|
||||||
this.currentTab = newVal[0]?.value || ''
|
this.currentTab = newVal[0]?.value || undefined
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
@@ -369,8 +369,8 @@ export default {
|
|||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
this.materialQueryParams.warehouseId = newVal
|
this.materialQueryParams.warehouseId = newVal
|
||||||
this.getMaterialCoil()
|
|
||||||
}
|
}
|
||||||
|
this.getMaterialCoil()
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user