fix(ProductSelect): 过滤空字符串ID避免无效请求

feat(wms): 新增钢卷信息修正页面及功能
This commit is contained in:
砂糖
2026-01-12 10:43:39 +08:00
parent f7d5838087
commit b42abc4d58
3 changed files with 1127 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ export default {
this.recentLoading = true;
// 从localstorage中获取缓存的ids
const ids = localStorage.getItem('recentlySelectedProductIds') || '';
const idsArray = ids.split(',');
const idsArray = ids.split(',').filter(id => id);
if (idsArray.length === 0) return;
const list = await Promise.all(idsArray.map(async id => {
const response = await getProduct(id);

View File

@@ -215,7 +215,8 @@ export default {
this.recentLoading = true;
// 从localstorage中获取缓存的ids
const ids = localStorage.getItem('recentlySelectedRawMaterialIds') || '';
const idsArray = ids.split(',');
const idsArray = ids.split(',').filter(id => id);
console.log('idsArray', idsArray, idsArray.length === 0);
if (idsArray.length === 0) return;
const list = await Promise.all(idsArray.map(async id => {
const response = await getRawMaterial(id);

File diff suppressed because it is too large Load Diff