多组织仓位
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user