|
|
@ -289,8 +289,7 @@ |
|
|
|
getManagementPrecisions(itemCodes, that.jobToLocationCode, res => { |
|
|
|
if (res.success) { |
|
|
|
this.managementList = res.list; |
|
|
|
this.managementType = this.managementList.some(item => item.ManagementPrecision == |
|
|
|
'BY_BATCH') ? 'BY_BATCH' : '' |
|
|
|
this.managementType = this.managementList&& this.managementList[0]&& this.managementList[0].ManagementPrecision ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING' |
|
|
|
} |
|
|
|
}) |
|
|
|
// if (uni.getStorageSync('purchaseReceiptDetailPointParams')) { |
|
|
@ -318,7 +317,7 @@ |
|
|
|
}, |
|
|
|
getScanResult(result) { |
|
|
|
this.balanceInfo = result.balance |
|
|
|
if(this.managementType == 'BY_BATCH'){ |
|
|
|
if(this.managementType == 'BY_BATCH' || this.managementType == 'BY_QUANTITY' ){ |
|
|
|
this.getScanResultAfterBatch(result) |
|
|
|
}else{ |
|
|
|
this.getScanResultAfter(result) |
|
|
|