|
@ -1,6 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view> |
|
|
<view> |
|
|
<uni-popup ref="popup" @change="change" :mask-click="false" > |
|
|
<uni-popup ref="popup" @change="change" :mask-click="false"> |
|
|
<view class="popup_box"> |
|
|
<view class="popup_box"> |
|
|
<view class="pop_title uni-flex space-between"> |
|
|
<view class="pop_title uni-flex space-between"> |
|
|
<view class="" style="font-size: 35rpx;"> |
|
|
<view class="" style="font-size: 35rpx;"> |
|
@ -46,9 +46,6 @@ |
|
|
</view> |
|
|
</view> |
|
|
</uni-popup> |
|
|
</uni-popup> |
|
|
<balance-select ref="balanceSelect" @onSelectItem='selectBalanceItem'></balance-select> |
|
|
<balance-select ref="balanceSelect" @onSelectItem='selectBalanceItem'></balance-select> |
|
|
<!-- 模拟扫描功能 --> |
|
|
|
|
|
<win-com-scan v-show="false" ref="comscansimulate" @getResult="getScanResult" :headerType="headerType" |
|
|
|
|
|
:isShowHistory="false" :clearResult="true"></win-com-scan> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
@ -65,6 +62,11 @@ |
|
|
getBasicLocationByCode, |
|
|
getBasicLocationByCode, |
|
|
} from '@/api/request2.js'; |
|
|
} from '@/api/request2.js'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
getLabelInfo |
|
|
|
|
|
} from '@/common/label.js'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
getListLocationAreaTypeDesc, |
|
|
getListLocationAreaTypeDesc, |
|
|
checkDirectoryItemExist, |
|
|
checkDirectoryItemExist, |
|
@ -189,16 +191,10 @@ |
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
}, |
|
|
}, |
|
|
//模拟扫描 |
|
|
//模拟扫描 |
|
|
openScanPopupForJobSimulate(fromLocationCode, fromLocationList, jobContent, item) { |
|
|
openScanPopupForJobSimulate(fromLocationCode, fromLocationList, jobContent, scanMessage) { |
|
|
this.fromLocationCode = fromLocationCode; |
|
|
this.fromLocationCode = fromLocationCode; |
|
|
this.fromLocationList = fromLocationList; |
|
|
this.fromLocationList = fromLocationList; |
|
|
if (fromLocationCode != '') { |
|
|
if (!fromLocationCode) { |
|
|
// this.packGetFocus(); |
|
|
|
|
|
if (this.$refs.comscansimulate != undefined) { |
|
|
|
|
|
this.$refs.comscansimulate.getfocus(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
if (this.fromLocationList.length == 0) { |
|
|
if (this.fromLocationList.length == 0) { |
|
|
// this.locationGetFocus(); |
|
|
// this.locationGetFocus(); |
|
|
alert('没有来源库位:List') |
|
|
alert('没有来源库位:List') |
|
@ -210,14 +206,14 @@ |
|
|
this.fromInventoryStatuses = getDirectoryItemArray(jobContent.outInventoryStatuses) |
|
|
this.fromInventoryStatuses = getDirectoryItemArray(jobContent.outInventoryStatuses) |
|
|
this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //出库库存状态; //出库库存状态 |
|
|
this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //出库库存状态; //出库库存状态 |
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
let timer = setTimeout(res => { |
|
|
getLabelInfo(scanMessage, this.headerType, callback => { |
|
|
if (timer) { |
|
|
if (callback.success) { |
|
|
clearTimeout(timer) |
|
|
this.getScanResult(callback); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showErrorMessage(callback.message, res => {}) |
|
|
} |
|
|
} |
|
|
this.$refs.comscansimulate.setItemCodeSimulate(item.copyContent) |
|
|
|
|
|
this.$refs.comscansimulate.clickScanMsg(); |
|
|
|
|
|
}, 500) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -252,7 +248,7 @@ |
|
|
getBasicLocationByCode(this.fromLocationCode).then(res => { |
|
|
getBasicLocationByCode(this.fromLocationCode).then(res => { |
|
|
if (res.data.total > 0) { |
|
|
if (res.data.total > 0) { |
|
|
let result = res.data.list[0]; |
|
|
let result = res.data.list[0]; |
|
|
if(result.code!=this.fromLocationCode){ |
|
|
if (result.code != this.fromLocationCode) { |
|
|
this.showErrorMessage('未查询到库位[' + this.fromLocationCode + ']') |
|
|
this.showErrorMessage('未查询到库位[' + this.fromLocationCode + ']') |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -313,7 +309,7 @@ |
|
|
// mask: true |
|
|
// mask: true |
|
|
// }) |
|
|
// }) |
|
|
// 采购上架任务--大哥让去掉 fromInventoryStatuses |
|
|
// 采购上架任务--大哥让去掉 fromInventoryStatuses |
|
|
getBalanceByManagementPrecisionByPacking(result.label,result.package, this.fromLocationCode, this |
|
|
getBalanceByManagementPrecisionByPacking(result.label, result.package, this.fromLocationCode, this |
|
|
.balanceFromInventoryStatuses ? this.fromInventoryStatuses : undefined, |
|
|
.balanceFromInventoryStatuses ? this.fromInventoryStatuses : undefined, |
|
|
res => { |
|
|
res => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
@ -339,9 +335,9 @@ |
|
|
if (this.allowNullBalance) { |
|
|
if (this.allowNullBalance) { |
|
|
this.allowNoneBalance(datas); |
|
|
this.allowNoneBalance(datas); |
|
|
} else if (this.noShowBalanceMessage) { |
|
|
} else if (this.noShowBalanceMessage) { |
|
|
if(this.isCount){ |
|
|
if (this.isCount) { |
|
|
this.countCallBack(datas); |
|
|
this.countCallBack(datas); |
|
|
}else { |
|
|
} else { |
|
|
if (Array.isArray(datas)) { |
|
|
if (Array.isArray(datas)) { |
|
|
this.countCallBack(datas[0]); |
|
|
this.countCallBack(datas[0]); |
|
|
} else { |
|
|
} else { |
|
|