|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<view class="page-wraper"> |
|
|
|
<view class=""> |
|
|
|
<com-blank-view @goScan="getBusinessType" v-if="detailSource.length == 0"></com-blank-view> |
|
|
|
<com-blank-view @goScan="showFromLocationPopup" v-if="detailSource.length == 0"></com-blank-view> |
|
|
|
</view> |
|
|
|
<view class="page-wraper" v-if="detailSource.length > 0"> |
|
|
|
|
|
|
@ -104,7 +104,7 @@ onLoad((option) => { |
|
|
|
title: option.title |
|
|
|
}) |
|
|
|
clearData() |
|
|
|
getBusinessType() |
|
|
|
getBusinessTypeFun() |
|
|
|
// getBusinessType(businessTypeCode.value, (res) => { |
|
|
|
// if (res.success) { |
|
|
|
// businessType.value = res.businessType |
|
|
@ -140,13 +140,13 @@ onNavigationBarButtonTap((e) => { |
|
|
|
closeScanPopup(); |
|
|
|
} |
|
|
|
}) |
|
|
|
const getBusinessType = ()=> { |
|
|
|
const getBusinessTypeFun = ()=> { |
|
|
|
getBusinessType(businessTypeCode.value, res => { |
|
|
|
if (res.success) { |
|
|
|
businessType.value = res.businessType; |
|
|
|
fromInventoryStatuses.value = getDirectoryItemArray(res.fromInventoryStatuses); |
|
|
|
fromLocationAreaTypeList.value = res.fromLocationAreaTypeList |
|
|
|
openScanPopup(); |
|
|
|
showFromLocationPopup(); |
|
|
|
} else { |
|
|
|
showErrorMessage(res.message) |
|
|
|
} |
|
|
@ -204,7 +204,6 @@ const setData = (result)=> { |
|
|
|
detailSource.value.push(itemp) |
|
|
|
itemCode.value = balance.itemCode; |
|
|
|
fromLocationCode.value = balance.locationCode |
|
|
|
await this.getToLocationBalance(this.fromLocationCode,result) |
|
|
|
scanPopupGetFocus() |
|
|
|
} else { |
|
|
|
let detail = item.subList.find(r => { |
|
|
@ -531,10 +530,10 @@ const removePack = () => { |
|
|
|
} |
|
|
|
|
|
|
|
const openScanPopup = () => { |
|
|
|
if (businessType.value == '') { |
|
|
|
scanPopup.value.openScanPopup(this.businessType); |
|
|
|
if (fromLocationCode.value == '') { |
|
|
|
showFromLocationPopup(); |
|
|
|
}else { |
|
|
|
getBusinessType() |
|
|
|
scanPopup.value.openScanPopup(businessType.value); |
|
|
|
} |
|
|
|
} |
|
|
|
const showFromLocationPopup = () => { |
|
|
|