diff --git a/src/common/balance.js b/src/common/balance.js index 078a7a80..460e9bf4 100644 --- a/src/common/balance.js +++ b/src/common/balance.js @@ -274,11 +274,7 @@ export function byPacking(label, packageInfo,locationCode, fromInventoryStatuses value: locationCode }) if (fromInventoryStatuses) { - var status = "" - fromInventoryStatuses.forEach(res => { - status = res + "," - }) - + var status = fromInventoryStatuses.join(','); filters.push({ column: "inventoryStatus", action: "in", @@ -343,9 +339,11 @@ export function byBatch(label, locationCode, fromInventoryStatuses, callback) { }) if (fromInventoryStatuses) { - var status = "" - fromInventoryStatuses.forEach(res => { - status = res + "," + var status = fromInventoryStatuses.join(','); + filters.push({ + column: "inventoryStatus", + action: "in", + value: status }) filters.push({ @@ -420,9 +418,11 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback) }) if (fromInventoryStatuses) { - var status = "" - fromInventoryStatuses.forEach(res => { - status = res + "," + var status = fromInventoryStatuses.join(','); + filters.push({ + column: "inventoryStatus", + action: "in", + value: status }) filters.push({ @@ -479,9 +479,11 @@ export function byUniqueId(label, locationCode, fromInventoryStatuses, callback) }) if (fromInventoryStatuses) { - var status = "" - fromInventoryStatuses.forEach(res => { - status = res + "," + var status = fromInventoryStatuses.join(','); + filters.push({ + column: "inventoryStatus", + action: "in", + value: status }) filters.push({ diff --git a/src/manifest.json b/src/manifest.json index 5fb13084..330a0796 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,8 +2,8 @@ "name" : "wms", "appid" : "__UNI__C9CF4BF", "description" : "", - "versionName" : "1.0.11", - "versionCode" : 11, + "versionName" : "1.0.12", + "versionCode" : 12, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : {