fix(ProductSelect): 过滤空字符串ID避免无效请求
feat(wms): 新增钢卷信息修正页面及功能
This commit is contained in:
@@ -205,7 +205,7 @@ export default {
|
|||||||
this.recentLoading = true;
|
this.recentLoading = true;
|
||||||
// 从localstorage中获取缓存的ids
|
// 从localstorage中获取缓存的ids
|
||||||
const ids = localStorage.getItem('recentlySelectedProductIds') || '';
|
const ids = localStorage.getItem('recentlySelectedProductIds') || '';
|
||||||
const idsArray = ids.split(',');
|
const idsArray = ids.split(',').filter(id => id);
|
||||||
if (idsArray.length === 0) return;
|
if (idsArray.length === 0) return;
|
||||||
const list = await Promise.all(idsArray.map(async id => {
|
const list = await Promise.all(idsArray.map(async id => {
|
||||||
const response = await getProduct(id);
|
const response = await getProduct(id);
|
||||||
|
|||||||
@@ -215,7 +215,8 @@ export default {
|
|||||||
this.recentLoading = true;
|
this.recentLoading = true;
|
||||||
// 从localstorage中获取缓存的ids
|
// 从localstorage中获取缓存的ids
|
||||||
const ids = localStorage.getItem('recentlySelectedRawMaterialIds') || '';
|
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;
|
if (idsArray.length === 0) return;
|
||||||
const list = await Promise.all(idsArray.map(async id => {
|
const list = await Promise.all(idsArray.map(async id => {
|
||||||
const response = await getRawMaterial(id);
|
const response = await getRawMaterial(id);
|
||||||
|
|||||||
1124
klp-ui/src/views/wms/coil/do/correct.vue
Normal file
1124
klp-ui/src/views/wms/coil/do/correct.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user