|
|
@ -6,7 +6,7 @@ |
|
|
|
<view class="" style="font-size: 35rpx"> 扫描{{ title }} </view> |
|
|
|
|
|
|
|
<view class=""> |
|
|
|
<image class="fr icons_scan_close" src="/static/icons/icons_scan_close.svg" @click="closeScanPopup()"></image> |
|
|
|
<image class="fr icons_scan_close" src="/static/icons/icons_scan_close.svg" @click="closeScanPopup()"> </image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="uni-flex uni-row" style="align-items: center; background-color: #fff; margin-left: 20rpx; margin-right: 20rpx; border-radius: 8rpx; height: 30px"> |
|
|
@ -79,6 +79,11 @@ const props = defineProps({ |
|
|
|
queryBalance: { |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
balanceFromInventoryStatuses: { |
|
|
|
// 是否传fromInventoryStatuses |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
} |
|
|
|
}) |
|
|
|
const scanResult = ref({}) |
|
|
@ -215,7 +220,7 @@ const checkPackage = (result) => { |
|
|
|
// mask: true |
|
|
|
// }) |
|
|
|
if (props.queryBalance == true) { |
|
|
|
getBalanceByManagementPrecision(result.label, fromLocationCode.value, fromInventoryStatuses.value, (res) => { |
|
|
|
getBalanceByManagementPrecision(result.label, fromLocationCode.value, props.balanceFromInventoryStatuses ? fromInventoryStatuses.value : undefined, (res) => { |
|
|
|
uni.hideLoading() |
|
|
|
if (res.success) { |
|
|
|
managementPrecision.value = res.managementPrecision |
|
|
|