|
@@ -141,21 +141,28 @@
|
|
|
// 扫码结果
|
|
|
scanResult(qrCode){
|
|
|
const _this = this
|
|
|
+ const pa = qrCode.split("&")
|
|
|
+ console.log(qrCode,pa)
|
|
|
shelfReplenishDetailOutScan({
|
|
|
replenishBillSn: _this.replenishBillSn,
|
|
|
- shelfSn: getQueryString('&'+qrCode, 'shelfSn'),
|
|
|
- shelfPlaceSn: getQueryString('&'+qrCode, 'shelfPlaceSn'),
|
|
|
- productSn: getQueryString('&'+qrCode, 'productSn')
|
|
|
+ // shelfSn: getQueryString('&'+qrCode, 'shelfSn'),
|
|
|
+ // shelfPlaceSn: getQueryString('&'+qrCode, 'shelfPlaceSn'),
|
|
|
+ // productSn: getQueryString('&'+qrCode, 'productSn')
|
|
|
+ shelfSn: pa[0],
|
|
|
+ shelfPlaceSn: pa[3],
|
|
|
+ productSn: pa[2]
|
|
|
}).then(res => {
|
|
|
console.log(res)
|
|
|
if(res.status == 200){
|
|
|
_this.toashMsg("扫码成功!")
|
|
|
- _this.getPartList()
|
|
|
+ setTimeout(()=>{
|
|
|
+ _this.barcode.start()
|
|
|
+ // 刷新列表
|
|
|
+ _this.getPartList()
|
|
|
+ },2000)
|
|
|
if(res.data && res.data.totalConfirmQty && res.data.totalScanQty && res.data.totalConfirmQty == res.data.totalScanQty){
|
|
|
_this.isAll = true
|
|
|
_this.handleOutGoods()
|
|
|
- }else{
|
|
|
- _this.barcode.start()
|
|
|
}
|
|
|
}else{
|
|
|
this.contModal = res.message
|
|
@@ -189,6 +196,7 @@
|
|
|
|
|
|
// 扫码成功后
|
|
|
this.barcode.onmarked = function(type, result) {
|
|
|
+ console.log(type,result)
|
|
|
_this.scanResult(result)
|
|
|
}
|
|
|
// 扫码识别出错
|