|
@ -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;"> |
|
@ -28,7 +28,7 @@ |
|
|
|
|
|
|
|
|
<view v-if='allowModifyLocation'> |
|
|
<view v-if='allowModifyLocation'> |
|
|
<uni-combox :candidates="fromLocationList" v-model="fromLocationCode" placeholder="请扫描来源库位" |
|
|
<uni-combox :candidates="fromLocationList" v-model="fromLocationCode" placeholder="请扫描来源库位" |
|
|
@confirm="" style='height: 30rpx;border:1px solid #fff ;'></uni-combox> |
|
|
@confirm="handleConfirm" style='height: 30rpx;border:1px solid #fff ;'></uni-combox> |
|
|
</view> |
|
|
</view> |
|
|
<view v-else> |
|
|
<view v-else> |
|
|
<text style="padding: 5px"> |
|
|
<text style="padding: 5px"> |
|
@ -47,7 +47,8 @@ |
|
|
</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> |
|
|
<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> |
|
@ -73,7 +74,7 @@ |
|
|
} from '@/common/directory.js'; |
|
|
} from '@/common/directory.js'; |
|
|
export default { |
|
|
export default { |
|
|
name: 'winScanPack', |
|
|
name: 'winScanPack', |
|
|
emits: ["getResult", "close", "getCountScanResult"], |
|
|
emits: ["getResult", "close", "getCountScanResult", "confirm"], |
|
|
components: { |
|
|
components: { |
|
|
winComScan, |
|
|
winComScan, |
|
|
balanceSelect |
|
|
balanceSelect |
|
@ -109,7 +110,7 @@ |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: true |
|
|
default: true |
|
|
}, |
|
|
}, |
|
|
balanceFromInventoryStatuses:{//是否传fromInventoryStatuses |
|
|
balanceFromInventoryStatuses: { //是否传fromInventoryStatuses |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: true |
|
|
default: true |
|
|
} |
|
|
} |
|
@ -131,15 +132,20 @@ |
|
|
inventoryStatus: [], |
|
|
inventoryStatus: [], |
|
|
managementPrecision: '', |
|
|
managementPrecision: '', |
|
|
fromInventoryStatuses: "", |
|
|
fromInventoryStatuses: "", |
|
|
isCheck: false |
|
|
isCheck: false, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
handleConfirm() { |
|
|
|
|
|
this.$emit('confirm', this.fromLocationCode) |
|
|
|
|
|
}, |
|
|
//直接扫描 |
|
|
//直接扫描 |
|
|
openScanPopupForType(fromLocationCode, businessType) { |
|
|
openScanPopupForType(fromLocationCode, businessType) { |
|
|
|
|
|
|
|
|
this.businessType = businessType; |
|
|
this.businessType = businessType; |
|
|
this.fromLocationCode = fromLocationCode; |
|
|
this.fromLocationCode = fromLocationCode; |
|
|
if (fromLocationCode != '') { |
|
|
if (fromLocationCode != '') { |
|
@ -150,9 +156,11 @@ |
|
|
this.fromInventoryStatuses = getDirectoryItemArray(this.businessType.outInventoryStatuses) |
|
|
this.fromInventoryStatuses = getDirectoryItemArray(this.businessType.outInventoryStatuses) |
|
|
this.inventoryStatus = getDirectoryItemArray(this.businessType.outInventoryStatuses); //出库库存状态 |
|
|
this.inventoryStatus = getDirectoryItemArray(this.businessType.outInventoryStatuses); //出库库存状态 |
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.fromLocationAreaTypeList); //出库库区 |
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.fromLocationAreaTypeList); //出库库区 |
|
|
setTimeout(res => { |
|
|
if (!this.show) { |
|
|
this.$refs.popup.open('bottom') |
|
|
setTimeout(res => { |
|
|
}, 500) |
|
|
this.$refs.popup.open('bottom') |
|
|
|
|
|
}, 500) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//在任务中扫描 |
|
|
//在任务中扫描 |
|
@ -176,7 +184,7 @@ |
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
}, |
|
|
}, |
|
|
//模拟扫描 |
|
|
//模拟扫描 |
|
|
openScanPopupForJobSimulate(fromLocationCode, fromLocationList, jobContent,item) { |
|
|
openScanPopupForJobSimulate(fromLocationCode, fromLocationList, jobContent, item) { |
|
|
this.fromLocationCode = fromLocationCode; |
|
|
this.fromLocationCode = fromLocationCode; |
|
|
this.fromLocationList = fromLocationList; |
|
|
this.fromLocationList = fromLocationList; |
|
|
if (fromLocationCode != '') { |
|
|
if (fromLocationCode != '') { |
|
@ -197,12 +205,12 @@ |
|
|
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 => { |
|
|
let timer = setTimeout(res => { |
|
|
if(timer){ |
|
|
if (timer) { |
|
|
clearTimeout(timer) |
|
|
clearTimeout(timer) |
|
|
} |
|
|
} |
|
|
this.$refs.comscansimulate.setItemCodeSimulate(item.copyContent) |
|
|
this.$refs.comscansimulate.setItemCodeSimulate(item.copyContent) |
|
|
this.$refs.comscansimulate.clickScanMsg(); |
|
|
this.$refs.comscansimulate.clickScanMsg(); |
|
|
}, 500) |
|
|
}, 500) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -295,7 +303,8 @@ |
|
|
// mask: true |
|
|
// mask: true |
|
|
// }) |
|
|
// }) |
|
|
// 采购上架任务--大哥让去掉 fromInventoryStatuses |
|
|
// 采购上架任务--大哥让去掉 fromInventoryStatuses |
|
|
getBalanceByManagementPrecision(result.label, this.fromLocationCode, this.balanceFromInventoryStatuses?this.fromInventoryStatuses:undefined, |
|
|
getBalanceByManagementPrecision(result.label, this.fromLocationCode, this |
|
|
|
|
|
.balanceFromInventoryStatuses ? this.fromInventoryStatuses : undefined, |
|
|
res => { |
|
|
res => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
@ -319,9 +328,9 @@ |
|
|
if (this.allowNullBalance) { |
|
|
if (this.allowNullBalance) { |
|
|
this.allowNoneBalance(datas); |
|
|
this.allowNoneBalance(datas); |
|
|
} else if (this.noShowBalanceMessage) { |
|
|
} else if (this.noShowBalanceMessage) { |
|
|
if(Array.isArray(datas)){ |
|
|
if (Array.isArray(datas)) { |
|
|
this.countCallBack(datas[0]); |
|
|
this.countCallBack(datas[0]); |
|
|
}else{ |
|
|
} else { |
|
|
this.countCallBack(datas); |
|
|
this.countCallBack(datas); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
@ -385,7 +394,7 @@ |
|
|
|
|
|
|
|
|
//盘点回调 |
|
|
//盘点回调 |
|
|
countCallBack(datas) { |
|
|
countCallBack(datas) { |
|
|
if(this.$refs.comscan){ |
|
|
if (this.$refs.comscan) { |
|
|
this.$refs.comscan.clear(); |
|
|
this.$refs.comscan.clear(); |
|
|
} |
|
|
} |
|
|
//返回标签信息、库存信息和管理模式 |
|
|
//返回标签信息、库存信息和管理模式 |
|
@ -401,7 +410,7 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
packCallBack(item) { |
|
|
packCallBack(item) { |
|
|
if(this.$refs.comscan){ |
|
|
if (this.$refs.comscan) { |
|
|
this.$refs.comscan.clear(); |
|
|
this.$refs.comscan.clear(); |
|
|
} |
|
|
} |
|
|
//返回标签信息、库存信息和管理模式 |
|
|
//返回标签信息、库存信息和管理模式 |
|
|