多组织仓位

This commit is contained in:
2026-06-01 17:24:20 +08:00
parent e8b07fcece
commit da62f10df1
16 changed files with 797 additions and 503 deletions

View File

@@ -1,5 +1,5 @@
const BaseApi = 'https://api.wms.test.f2b211.com/api' //测试
//const BaseApi = 'https://wmsapi.f2b211.com/api' // 正式
//const BaseApi = 'https://api.wms.test.f2b211.com/api' //测试
const BaseApi = 'https://wmsapi.f2b211.com/api' // 正式
export {
BaseApi
}

View File

@@ -215,10 +215,14 @@ function subtractQty(mxArray, boxArray) {
return result;
}
//按照产品分配序列号
function scanAndAllocate(arr, materialNumber, serialNumber) {
function scanAndAllocate(arr, materialNumber, serialNumber,twoSerialNumber) {
console.log(twoSerialNumber,'=twoSerialNumber=')
// 遍历数组,按顺序分配序列号
for (const item of arr) {
if (item.materialNumber === materialNumber) {
if(twoSerialNumber) {
item.twoSerialNumbers.push(twoSerialNumber)
}
if (item.xlhList.length == 0) {
item.xlhList.push(serialNumber)
item.qty = item.xlhList.length
@@ -233,6 +237,7 @@ function scanAndAllocate(arr, materialNumber, serialNumber) {
break
}
}
}
}
return arr