|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<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="pop_title uni-flex space-between"> |
|
|
|
<view class="" style="font-size: 35rpx;"> |
|
|
@ -46,9 +46,6 @@ |
|
|
|
</view> |
|
|
|
</uni-popup> |
|
|
|
<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> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
@ -65,6 +62,11 @@ |
|
|
|
getBasicLocationByCode, |
|
|
|
} from '@/api/request2.js'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
getLabelInfo |
|
|
|
} from '@/common/label.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
getListLocationAreaTypeDesc, |
|
|
|
checkDirectoryItemExist, |
|
|
@ -144,7 +146,7 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
handleConfirm() { |
|
|
|
this.$emit('confirm', this.fromLocationCode) |
|
|
|
}, |
|
|
@ -162,7 +164,7 @@ |
|
|
|
this.inventoryStatus = getDirectoryItemArray(this.businessType.outInventoryStatuses); //出库库存状态 |
|
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.outAreaTypes); //出库库区 |
|
|
|
if (!this.show) { |
|
|
|
setTimeout(res => { |
|
|
|
setTimeout(res => { |
|
|
|
this.$refs.popup.open('bottom') |
|
|
|
}, 500) |
|
|
|
} |
|
|
@ -189,16 +191,10 @@ |
|
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
|
}, |
|
|
|
//模拟扫描 |
|
|
|
openScanPopupForJobSimulate(fromLocationCode, fromLocationList, jobContent, item) { |
|
|
|
openScanPopupForJobSimulate(fromLocationCode, fromLocationList, jobContent, scanMessage) { |
|
|
|
this.fromLocationCode = fromLocationCode; |
|
|
|
this.fromLocationList = fromLocationList; |
|
|
|
if (fromLocationCode != '') { |
|
|
|
// this.packGetFocus(); |
|
|
|
if (this.$refs.comscansimulate != undefined) { |
|
|
|
this.$refs.comscansimulate.getfocus(); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
if (!fromLocationCode) { |
|
|
|
if (this.fromLocationList.length == 0) { |
|
|
|
// this.locationGetFocus(); |
|
|
|
alert('没有来源库位:List') |
|
|
@ -210,14 +206,14 @@ |
|
|
|
this.fromInventoryStatuses = getDirectoryItemArray(jobContent.outInventoryStatuses) |
|
|
|
this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //出库库存状态; //出库库存状态 |
|
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
|
let timer = setTimeout(res => { |
|
|
|
if (timer) { |
|
|
|
clearTimeout(timer) |
|
|
|
getLabelInfo(scanMessage, this.headerType, callback => { |
|
|
|
if (callback.success) { |
|
|
|
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 => { |
|
|
|
if (res.data.total > 0) { |
|
|
|
let result = res.data.list[0]; |
|
|
|
if(result.code!=this.fromLocationCode){ |
|
|
|
if (result.code != this.fromLocationCode) { |
|
|
|
this.showErrorMessage('未查询到库位[' + this.fromLocationCode + ']') |
|
|
|
return; |
|
|
|
} |
|
|
@ -313,7 +309,7 @@ |
|
|
|
// mask: true |
|
|
|
// }) |
|
|
|
// 采购上架任务--大哥让去掉 fromInventoryStatuses |
|
|
|
getBalanceByManagementPrecisionByPacking(result.label,result.package, this.fromLocationCode, this |
|
|
|
getBalanceByManagementPrecisionByPacking(result.label, result.package, this.fromLocationCode, this |
|
|
|
.balanceFromInventoryStatuses ? this.fromInventoryStatuses : undefined, |
|
|
|
res => { |
|
|
|
uni.hideLoading(); |
|
|
@ -339,16 +335,16 @@ |
|
|
|
if (this.allowNullBalance) { |
|
|
|
this.allowNoneBalance(datas); |
|
|
|
} else if (this.noShowBalanceMessage) { |
|
|
|
if(this.isCount){ |
|
|
|
if (this.isCount) { |
|
|
|
this.countCallBack(datas); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
if (Array.isArray(datas)) { |
|
|
|
this.countCallBack(datas[0]); |
|
|
|
} else { |
|
|
|
this.countCallBack(datas); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
this.mustHavaBalance(datas); |
|
|
|
} |
|
|
|