Browse Source

6-14 15:09 查询库存余额

hella_vue3
zhang_li 3 months ago
parent
commit
a129f7420c
  1. 12
      src/mycomponents/location/locationCompare.vue
  2. 9
      src/mycomponents/scan/winScanPackAndLocation.vue
  3. 2
      src/pages/productPutaway/job/productPutawayDetail.vue
  4. 2
      src/pages/productPutaway/record/productPutawayRecord.vue
  5. 2
      src/pages/putaway/job/putawayDetail.vue
  6. 2
      src/pages/repleinsh/coms/comScanReplishPack.vue
  7. 1
      src/pages/repleinsh/job/repleinshDetail.vue

12
src/mycomponents/location/locationCompare.vue

@ -3,18 +3,18 @@
<view class="uni-flex u-row u-col-center" @click="showLocation">
<view class="flex u-row" v-if="isShowEdit">
<view>
<text style="font-size: 30rpx">{{ title }}</text>
<text style="font-size: 35rpx">{{ title }}</text>
<text style="font-size: 25rpx; color: #3fbaff">&nbsp {{ recommendLocationCode }}</text>
<text v-if="locationCode" style="font-size: 25rpx; color: #3fbaff">&nbsp/&nbsp{{ locationCode }}</text>
<text style="font-size: 45rpx; color: #3fbaff">&nbsp {{ recommendLocationCode }}</text>
<text v-if="locationCode" style="font-size: 45rpx; color: #3fbaff">&nbsp/&nbsp{{ locationCode }}</text>
<!-- <text style="font-size: 35rpx;color:#3FBAFF;" v-if="locationCode==''&&isShowEdit==true">&nbsp 请扫描</text> -->
</view>
<image style="width: 30rpx; height: 30rpx; margin: 6rpx 10rpx 0px; display: inline-block" src="/static/icons/icons_edit.svg"></image>
<image style="width: 45rpx; height: 45rpx; margin: 6rpx 10rpx 0px; display: inline-block" src="/static/icons/icons_edit.svg"></image>
</view>
<view class="" v-else>
<view>
<text style="font-size: 30rpx">{{ title }}</text>
<text style="font-size: 25rpx; color: #3fbaff">&nbsp {{ recommendLocationCode }}</text>
<text style="font-size: 35rpx">{{ title }}</text>
<text style="font-size: 45rpx; color: #3fbaff">&nbsp {{ recommendLocationCode }}</text>
<!-- <text style="font-size: 35rpx;color:#3FBAFF;" v-if="locationCode==''&&isShowEdit==true">&nbsp 请扫描</text> -->
</view>
</view>

9
src/mycomponents/scan/winScanPackAndLocation.vue

@ -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

2
src/pages/productPutaway/job/productPutawayDetail.vue

@ -29,7 +29,7 @@
</view>
<win-scan-button @goScan="openScanPopup"></win-scan-button>
<win-scan-pack-and-location ref="scanPopup" @getResult="getScanResult"></win-scan-pack-and-location>
<win-scan-pack-and-location :balanceFromInventoryStatuses="false" ref="scanPopup" @getResult="getScanResult"></win-scan-pack-and-location>
<detail-info-popup ref="detailInfoPopupRef"></detail-info-popup>
<com-message ref="comMessageRef" />

2
src/pages/productPutaway/record/productPutawayRecord.vue

@ -29,7 +29,7 @@
<win-scan-button @goScan="openScanPopup"></win-scan-button>
</view>
<win-scan-pack-and-location ref="scanPopup" @getResult="getScanResult"></win-scan-pack-and-location>
<win-scan-pack-and-location :balanceFromInventoryStatuses="false" ref="scanPopup" @getResult="getScanResult"></win-scan-pack-and-location>
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation="getLocation" :locationAreaTypeList="fromLocationAreaTypeList"></win-scan-location>
<com-message ref="comMessageRef" />
</view>

2
src/pages/putaway/job/putawayDetail.vue

@ -33,7 +33,7 @@
<win-scan-button @goScan="openScanPopup"></win-scan-button>
<!-- <winScanPackAndLocationNoBalance ref="scanPopup" @getResult="getScanResult" :allowNullBalance="true"> </winScanPackAndLocationNoBalance> -->
<winScanPackAndLocation ref="scanPopup" @getResult="getScanResult" :noShowBalanceMessage="true"> </winScanPackAndLocation>
<winScanPackAndLocation :balanceFromInventoryStatuses="false" ref="scanPopup" @getResult="getScanResult" :noShowBalanceMessage="true"> </winScanPackAndLocation>
<com-message ref="comMessageRef" />
</view>
</template>

2
src/pages/repleinsh/coms/comScanReplishPack.vue

@ -140,7 +140,7 @@ const closeScanPopup = () => {
const initData = () => {
fromLocationList.value = []
if (dataContent.value != null) {
fromInventoryStatuses.value = getDirectoryItemArray(jobContent.value.outInventoryStatuses)
fromInventoryStatuses.value = jobContent.value.outInventoryStatuses
toLocation.value = dataContent.value[0]
toLocationCode.value = dataContent.value[0].toLocationCode
fromLocationList.value = getFromLocationList()

1
src/pages/repleinsh/job/repleinshDetail.vue

@ -350,6 +350,7 @@ const updateData = (record) => {
})
batch.handleQty = handleQty
itemHandleQty = calc.add(itemHandleQty, handleQty)
comScanIssuePackRef.value.calcBatchHandleQty(batch)
}
})
}

Loading…
Cancel
Save