diff --git a/src/api/request2.js b/src/api/request2.js index cca0a80b..2e715939 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -4302,7 +4302,7 @@ export function overPackageRecordSubmit(params) { * */ export async function getManagementPrecision(params) { - return request({ + return await request({ url: baseApi + "/wms/rule/getPrecisionStrategyByItemCodes", method: "post", data: params, diff --git a/src/common/label.js b/src/common/label.js index 9e3a4c8c..4615e948 100644 --- a/src/common/label.js +++ b/src/common/label.js @@ -105,6 +105,7 @@ export function getQRCodeInfo(header, version, scanMsg, callBack,locationCode) { } export async function getLabelItems(labelItem, scanMsg, callBack,locationCode) { + let managementType = "" let labelResult = analysisQRCodeLabel(labelItem, scanMsg); if (labelResult.label.labelType == 'PurchaseLabel' || labelResult.label.labelType == 'MakeLabel') { //查询包装信息 @@ -114,7 +115,7 @@ export async function getLabelItems(labelItem, scanMsg, callBack,locationCode) { await getManagementPrecisions([labelResult.label.itemCode], locationCode, res => { if (res.success) { const managementList = res.list; - const managementType = managementList&&managementList[0]&&managementList[0].ManagementPrecision ? managementList[0].ManagementPrecision :'BY_PACKAGING' + managementType = managementList&&managementList[0]&&managementList[0].ManagementPrecision ? managementList[0].ManagementPrecision :'BY_PACKAGING' if(managementType == 'BY_BATCH' || managementType == 'BY_QUANTITY'){ packingNumber = '' } @@ -137,11 +138,12 @@ export async function getLabelItems(labelItem, scanMsg, callBack,locationCode) { callBack(labelResult); }) } else { - console.log(999,labelResult) //线边的物料可能没有箱码 labelResult.package = labelResult.label; labelResult.package.number = packingNumber1 ? packingNumber1 : '' labelResult.package.packingNumber='' + labelResult.managementType = managementType + console.log(999,labelResult) callBack(labelResult); // labelResult.success = false; // labelResult.message = '在条码中未解析到箱码'; diff --git a/src/mycomponents/detail/comDetailCardBatch.vue b/src/mycomponents/detail/comDetailCardBatch.vue index a45e3033..4a008109 100644 --- a/src/mycomponents/detail/comDetailCardBatch.vue +++ b/src/mycomponents/detail/comDetailCardBatch.vue @@ -1,29 +1,27 @@ diff --git a/src/mycomponents/detail/comJobDetailCardBatch.vue b/src/mycomponents/detail/comJobDetailCardBatch.vue index 1a6be7a4..bb2be74f 100644 --- a/src/mycomponents/detail/comJobDetailCardBatch.vue +++ b/src/mycomponents/detail/comJobDetailCardBatch.vue @@ -1,22 +1,23 @@ -