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