|
@ -55,7 +55,7 @@ |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<win-com-scan ref="comscan" placeholder="箱标签" @getResult="onScan" :clearResult="true" |
|
|
<win-com-scan ref="comscan" placeholder="箱标签" @getResult="onScan" :clearResult="true" |
|
|
headerType="HPQ,HMQ" :isShowHistory="false"> |
|
|
headerType="HPQ,HMQ" :isShowHistory="false" :locationCode='locationCode'> |
|
|
</win-com-scan> |
|
|
</win-com-scan> |
|
|
|
|
|
|
|
|
<view style="width: 100%;"> |
|
|
<view style="width: 100%;"> |
|
@ -152,6 +152,10 @@ |
|
|
type: String, |
|
|
type: String, |
|
|
default: '' |
|
|
default: '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
locationCode:{ |
|
|
|
|
|
type: String, |
|
|
|
|
|
default: '' |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -179,7 +183,7 @@ |
|
|
fontSize: "100rpx" |
|
|
fontSize: "100rpx" |
|
|
}, |
|
|
}, |
|
|
bussinessCode: 'Issue', |
|
|
bussinessCode: 'Issue', |
|
|
toLocationAreaTypeList: [] |
|
|
toLocationAreaTypeList: [], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -270,7 +274,7 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
queryBalance(result) { |
|
|
queryBalance(result , managementType ) { |
|
|
try { |
|
|
try { |
|
|
let that = this; |
|
|
let that = this; |
|
|
// if (that.fromLocationCode == '') { |
|
|
// if (that.fromLocationCode == '') { |
|
@ -281,7 +285,12 @@ |
|
|
// } |
|
|
// } |
|
|
let packageInfo = result.package; |
|
|
let packageInfo = result.package; |
|
|
let itemCode = result.label.itemCode; |
|
|
let itemCode = result.label.itemCode; |
|
|
let packingCode = result.label.packingNumber; |
|
|
let packingCode = ''; |
|
|
|
|
|
if(managementType == 'BY_BATCH' || managementType == 'BY_QUANTITY'){ |
|
|
|
|
|
packingCode = '' |
|
|
|
|
|
} else{ |
|
|
|
|
|
packingCode = result.label.packingNumber; |
|
|
|
|
|
} |
|
|
let lot = result.label.batch; |
|
|
let lot = result.label.batch; |
|
|
let item = that.toLocation.Items.find(r => r.itemCode == itemCode); |
|
|
let item = that.toLocation.Items.find(r => r.itemCode == itemCode); |
|
|
if (item == undefined) { |
|
|
if (item == undefined) { |
|
@ -401,7 +410,7 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onScan(result) { |
|
|
onScan(result, managementType) { |
|
|
if (!result.package) { |
|
|
if (!result.package) { |
|
|
this.showErrorMessage('扫描数据错误[' + result.label.code + "]", |
|
|
this.showErrorMessage('扫描数据错误[' + result.label.code + "]", |
|
|
res => { |
|
|
res => { |
|
@ -427,12 +436,12 @@ |
|
|
this.getToLocationBalance(result) |
|
|
this.getToLocationBalance(result) |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
this.queryBalance(result) |
|
|
this.queryBalance(result, managementType) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//查询到目标库位的库存余额 |
|
|
//查询到目标库位的库存余额 |
|
|
getToLocationBalance(result) { |
|
|
getToLocationBalance(result, managementType) { |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: '查询中', |
|
|
title: '查询中', |
|
|
mask: true |
|
|
mask: true |
|
@ -470,7 +479,7 @@ |
|
|
// value: this.toLocationAreaTypeList.join(',') |
|
|
// value: this.toLocationAreaTypeList.join(',') |
|
|
// }) |
|
|
// }) |
|
|
|
|
|
|
|
|
this.queryBalance(result); |
|
|
this.queryBalance(result, managementType); |
|
|
// var params = { |
|
|
// var params = { |
|
|
// filters: filters, |
|
|
// filters: filters, |
|
|
// pageNo: 1, |
|
|
// pageNo: 1, |
|
|