|
@ -6,7 +6,7 @@ |
|
|
<view class="" style="font-size: 35rpx"> 扫描{{ title }} </view> |
|
|
<view class="" style="font-size: 35rpx"> 扫描{{ title }} </view> |
|
|
|
|
|
|
|
|
<view class=""> |
|
|
<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> |
|
|
</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"> |
|
|
<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: { |
|
|
queryBalance: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: true |
|
|
default: true |
|
|
|
|
|
}, |
|
|
|
|
|
balanceFromInventoryStatuses: { |
|
|
|
|
|
// 是否传fromInventoryStatuses |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
const scanResult = ref({}) |
|
|
const scanResult = ref({}) |
|
@ -215,7 +220,7 @@ const checkPackage = (result) => { |
|
|
// mask: true |
|
|
// mask: true |
|
|
// }) |
|
|
// }) |
|
|
if (props.queryBalance == 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() |
|
|
uni.hideLoading() |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
managementPrecision.value = res.managementPrecision |
|
|
managementPrecision.value = res.managementPrecision |
|
|