Browse Source

上架模块fromInventoryStatus2024/6/14 19:01:24

hella_vue3
zhang_li 3 months ago
parent
commit
59a863a9e6
  1. 34
      src/mycomponents/package/packageCard.vue
  2. 2
      src/mycomponents/recommend/recommend.vue
  3. 4
      src/mycomponents/scan/winScanPackAndLocation.vue
  4. 2
      src/pages/productPutaway/record/productPutawayRecord.vue
  5. 2
      src/pages/productReceipt/job/fgProductReceiptDetail.vue
  6. 1
      src/pages/putaway/job/putawayDetail.vue
  7. 2
      src/pages/putaway/record/putawayRecord.vue

34
src/mycomponents/package/packageCard.vue

@ -1,30 +1,24 @@
<template> <template>
<view :class="dataContent.scaned?'scan_view':''" style="background-color: #fff; "> <view :class="dataContent.scaned ? 'scan_view' : ''" style="background-color: #fff">
<!-- border-bottom: 1upx solid #EEEEEE; --> <!-- border-bottom: 1upx solid #EEEEEE; -->
<view class="uni-flex uni-row space-between" style="align-items: center"> <view class="uni-flex uni-row space-between" style="align-items: center">
<!-- uni-inline-item 暂时拿掉--> <!-- uni-inline-item 暂时拿掉-->
<view style="word-break: break-all;"> <view style="word-break: break-all">
<!-- <container v-if="isShowContainer&&dataContent.containerNumber!=null" :container="dataContent.containerNumber"> <!-- <container v-if="isShowContainer&&dataContent.containerNumber!=null" :container="dataContent.containerNumber">
</container> --> </container> -->
<pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber"> <pack v-if="isShowPack && dataContent.packingNumber != null" :packingCode="dataContent.packingNumber"> </pack>
</pack>
<batch v-if="isShowBatch && dataContent.batch != null" :batch="dataContent.batch"></batch> <batch v-if="isShowBatch && dataContent.batch != null" :batch="dataContent.batch"></batch>
<location v-if="isShowFromLocation" title="来源库位" :locationCode="dataContent.fromLocationCode"> <location v-if="isShowFromLocation" title="来源库位" :locationCode="dataContent.fromLocationCode"> </location>
</location>
<!-- <to-location></to-location> --> <!-- <to-location></to-location> -->
<to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode"> <to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode"> </to-location>
</to-location>
</view> </view>
<view class="uni-flex uni-row" style="word-break: break-all; align-items: center"> <view class="uni-flex uni-row" style="word-break: break-all; align-items: center">
<!-- ||dataContent.handleQty==0 可能会有扫描到0的情况--> <!-- ||dataContent.handleQty==0 可能会有扫描到0的情况-->
<recommend-qty v-if="dataContent.handleQty==null || dataContent.handleQty==undefined" <recommend-qty v-if="dataContent.handleQty == null || dataContent.handleQty == undefined" :dataContent="dataContent" :isShowStdPack="false" :isShowStatus="isShowStatus"></recommend-qty>
:dataContent="dataContent" :isShowStdPack="false" :isShowStatus="isShowStatus"></recommend-qty> <compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)" :handleQty="Number(dataContent.handleQty)" :isShowStdPack="isShowStatus"> </compare-qty>
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)"
:handleQty="Number(dataContent.handleQty)" :isShowStdPack="false">
</compare-qty>
<view v-if="isDevlement()"> <view v-if="isDevlement()">
<image style='width: 26rpx;height: 26rpx;margin-top: 44rpx;' src="/static/icons/icon_copy.svg" alt="" @click="copy"/> <image style="width: 26rpx; height: 26rpx; margin-top: 44rpx" src="/static/icons/icon_copy.svg" alt="" @click="copy" />
</view> </view>
</view> </view>
</view> </view>
@ -40,6 +34,7 @@
import recommendQty from '@/mycomponents/qty/recommendQty.vue' import recommendQty from '@/mycomponents/qty/recommendQty.vue'
import compareQty from '@/mycomponents/qty/compareQty.vue' import compareQty from '@/mycomponents/qty/compareQty.vue'
import config from '@/static/config.js' import config from '@/static/config.js'
const props = defineProps({ const props = defineProps({
dataContent: { dataContent: {
type: Object, type: Object,
@ -77,8 +72,7 @@
}) })
const copy = () => { const copy = () => {
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 // HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
var content = "HPQ;V1.0;I" + props.dataContent.itemCode + ";P" + props.dataContent.packingNumber + ";B" + props.dataContent const content = `HPQ;V1.0;I${props.dataContent.itemCode};P${props.dataContent.packingNumber};B${props.dataContent.batch};Q${props.dataContent.qty}`
.batch + ";Q" + props.dataContent.qty
uni.setClipboardData({ uni.setClipboardData({
data: content, data: content,
@ -91,8 +85,7 @@
} }
const copyPro = () => { const copyPro = () => {
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 // HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
var content = "HMQ;V1.0;I" + props.dataContent.itemCode + ";P" + props.dataContent.packingNumber + ";B" + props.dataContent const content = `HMQ;V1.0;I${props.dataContent.itemCode};P${props.dataContent.packingNumber};B${props.dataContent.batch};Q${props.dataContent.qty}`
.batch + ";Q" + props.dataContent.qty
uni.setClipboardData({ uni.setClipboardData({
data: content, data: content,
@ -104,9 +97,8 @@
}) })
} }
const isDevlement = () => { const isDevlement = () => {
return config.isDevelopment; return config.isDevelopment
} }
</script> </script>
<style> <style></style>
</style>

2
src/mycomponents/recommend/recommend.vue

@ -14,7 +14,7 @@
<view style="word-break: break-all" class="uni-flex uni-row center"> <view style="word-break: break-all" class="uni-flex uni-row center">
<!-- ||detail.handleQty==0 可能会有扫描到0的情况--> <!-- ||detail.handleQty==0 可能会有扫描到0的情况-->
<recommend-qty v-if="detail.handleQty == null || detail.handleQty == undefined" :dataContent="detail" :isShowStdPack="false" :isShowStatus="isShowStatus"></recommend-qty> <recommend-qty v-if="detail.handleQty == null || detail.handleQty == undefined" :dataContent="detail" :isShowStdPack="false" :isShowStatus="isShowStatus"></recommend-qty>
<compare-qty v-else :dataContent="detail" :recommendQty="Number(detail.qty)" :handleQty="Number(detail.handleQty)" :isShowStdPack="false"> </compare-qty> <compare-qty v-else :dataContent="detail" :recommendQty="Number(detail.qty)" :handleQty="Number(detail.handleQty)" :isShowStdPack="isShowStatus"> </compare-qty>
<view v-if="isDevlement()"> <view v-if="isDevlement()">
<image style="width: 26rpx; height: 26rpx; margin-top: 40rpx" src="/static/icons/icon_copy.svg" alt="" @click="copy" /> <image style="width: 26rpx; height: 26rpx; margin-top: 40rpx" src="/static/icons/icon_copy.svg" alt="" @click="copy" />

4
src/mycomponents/scan/winScanPackAndLocation.vue

@ -241,7 +241,11 @@ const afterQueryBalance = (datas) => {
if (props.allowNullBalance) { if (props.allowNullBalance) {
allowNoneBalance(datas) allowNoneBalance(datas)
} else if (props.noShowBalanceMessage) { } else if (props.noShowBalanceMessage) {
if (Array.isArray(datas)) {
countCallBack(datas[0])
} else {
countCallBack(datas) countCallBack(datas)
}
} else { } else {
mustHavaBalance(datas) mustHavaBalance(datas)
} }

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

@ -114,6 +114,7 @@ const getScanResult = (result) => {
if (item == undefined) { if (item == undefined) {
const itemp = createItemInfo(balance, pack) const itemp = createItemInfo(balance, pack)
const newDetail = createDetailInfo(balance, pack) // const newDetail = createDetailInfo(balance, pack) //
newDetail.fromInventoryStatus = balance.inventoryStatus
itemp.subList.push(newDetail) itemp.subList.push(newDetail)
detailSource.value.push(itemp) detailSource.value.push(itemp)
} else { } else {
@ -124,6 +125,7 @@ const getScanResult = (result) => {
}) })
if (detail == undefined) { if (detail == undefined) {
const newDetail = createDetailInfo(balance, pack) const newDetail = createDetailInfo(balance, pack)
newDetail.fromInventoryStatus = balance.inventoryStatus
item.subList.push(newDetail) item.subList.push(newDetail)
} else if (detail.scaned == true) { } else if (detail.scaned == true) {
showErrorMessage(`箱码[${balance.packingNumber}批次[${balance.batch}]已经在列表中`) showErrorMessage(`箱码[${balance.packingNumber}批次[${balance.batch}]已经在列表中`)

2
src/pages/productReceipt/job/fgProductReceiptDetail.vue

@ -316,6 +316,8 @@ const print = () => {
barcodeString: item.barcodeString, // barcodeString: item.barcodeString, //
itemCode: item.itemCode || '', // itemCode: item.itemCode || '', //
itemName: item.itemName || '', // itemName: item.itemName || '', //
packName: item.packName || '', //
itemType: item.itemType || '', //
itemDesc1: item.itemDesc1 || '', // itemDesc1: item.itemDesc1 || '', //
relateNumber: item.relateNumber || '', // relateNumber relateNumber: item.relateNumber || '', // relateNumber
batch: item.batch || '', // batch: item.batch || '', //

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

@ -293,6 +293,7 @@ const getScanResult = (result) => {
scanedLength++ scanedLength++
} }
}) })
itemDetail.fromInventoryStatus = result.balance.inventoryStatus
if (itemDetail.scaned && scanedLength == itemDetail.packList.length) { if (itemDetail.scaned && scanedLength == itemDetail.packList.length) {
showMessage(`箱码【${packingNumber}】已经扫描`) showMessage(`箱码【${packingNumber}】已经扫描`)
} else { } else {

2
src/pages/putaway/record/putawayRecord.vue

@ -128,6 +128,7 @@ const getScanResult = (result) => {
newDetail.poLine = poLine newDetail.poLine = poLine
newDetail.poNumber = poNumber newDetail.poNumber = poNumber
newDetail.supplierCode = supplierCode newDetail.supplierCode = supplierCode
newDetail.fromInventoryStatus = balance.inventoryStatus
itemp.subList.push(newDetail) itemp.subList.push(newDetail)
detailSource.value.push(itemp) detailSource.value.push(itemp)
calcHandleQty(detailSource.value) calcHandleQty(detailSource.value)
@ -145,6 +146,7 @@ const getScanResult = (result) => {
newDetail.toWarehouseCode = toLocation.toWarehouseCode newDetail.toWarehouseCode = toLocation.toWarehouseCode
newDetail.poLine = poLine newDetail.poLine = poLine
newDetail.poNumber = poNumber newDetail.poNumber = poNumber
newDetail.fromInventoryStatus = balance.inventoryStatus
newDetail.supplierCode = supplierCode newDetail.supplierCode = supplierCode
item.subList.push(newDetail) item.subList.push(newDetail)
calcHandleQty(detailSource.value) calcHandleQty(detailSource.value)

Loading…
Cancel
Save