From 871afa348ad060b07a2aee5ccb6e77c3a9f25d2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Wed, 13 Nov 2024 13:36:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mycomponents=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20Vue2=E5=8D=87=E7=BA=A7Vue3=2011-11/11-13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/record.js | 17 +++++++++- .../detail/comRecommendDetailCard.vue | 33 ++++++++++++------- src/mycomponents/job/jobComMainDetailCard.vue | 2 +- src/mycomponents/job/jobSettingInfo.vue | 2 +- src/mycomponents/qty/compareQty.vue | 2 +- src/mycomponents/qty/recommendHandleQty.vue | 2 +- src/mycomponents/qty/recommendQtyEdit.vue | 4 +-- src/mycomponents/query/fifoQuery.vue | 8 ++--- .../scan/winScanPackAndLocation.vue | 33 ++++++++++++++++--- 9 files changed, 77 insertions(+), 26 deletions(-) diff --git a/src/common/record.js b/src/common/record.js index 92c870ac..66dc276e 100644 --- a/src/common/record.js +++ b/src/common/record.js @@ -25,7 +25,22 @@ export function createItemInfo(balance, pack) { item.containerNumber = pack.parentNumber ? pack.parentNumber : pack.number; return item; } - +export function createItemInfoForLabel(balance, label) { + let item = { + itemCode: label.itemCode, + itemName: label.itemName, + packQty: '', + packUnit: '', + qty: new Decimal(balance.qty).toNumber(), + handleQty: new Decimal(0).toNumber(), + uom: balance.uom, + subList: [], + // packingNumber: pack.number, + // parentPackingNumber: pack.parentNumber, + } + item.containerNumber = balance.parentNumber ? balance.parentNumber : balance.number; + return item; +} export function createDetailInfo(balance, pack) { balance.scaned = true; // data.toInventoryStatus = this.toInventoryStatus == "" ? data.inventoryStatus : this.toInventoryStatus; diff --git a/src/mycomponents/detail/comRecommendDetailCard.vue b/src/mycomponents/detail/comRecommendDetailCard.vue index c97f9eac..5a8808bb 100644 --- a/src/mycomponents/detail/comRecommendDetailCard.vue +++ b/src/mycomponents/detail/comRecommendDetailCard.vue @@ -13,20 +13,23 @@ style='padding:0px 0px 5px 0px;align-items: center;' @click="(...event)=>swipeClick(event,item)"> - - 推 荐 + + 推
+ :isShowFromLocation="isShowFromLocation" + :isShowToLocation="isShowToLocation" style="flex: 1">
- - - 实 - 际 + + + 实
- +
@@ -84,8 +87,16 @@ const props = defineProps({ isShowStatus: { type: Boolean, default: true - } -}); + }, + isShowFromLocation: { + type: Boolean, + default: true + }, + isShowToLocation: { + type: Boolean, + default: true + }, +}) const emit = defineEmits(['openDetail', 'remove', 'updateData']); const collapse1 = ref(null); diff --git a/src/mycomponents/job/jobComMainDetailCard.vue b/src/mycomponents/job/jobComMainDetailCard.vue index 7e617a58..f02f291b 100644 --- a/src/mycomponents/job/jobComMainDetailCard.vue +++ b/src/mycomponents/job/jobComMainDetailCard.vue @@ -7,7 +7,7 @@ > - + diff --git a/src/mycomponents/job/jobSettingInfo.vue b/src/mycomponents/job/jobSettingInfo.vue index 37efe861..516291e5 100644 --- a/src/mycomponents/job/jobSettingInfo.vue +++ b/src/mycomponents/job/jobSettingInfo.vue @@ -29,7 +29,7 @@ 允许修改批次 : - {{converter(dataContent.allowModifyBach)}} + {{converter(dataContent.allowModifyBatch)}} 允许部分完成 : diff --git a/src/mycomponents/qty/compareQty.vue b/src/mycomponents/qty/compareQty.vue index c4c32c50..5ba6351e 100644 --- a/src/mycomponents/qty/compareQty.vue +++ b/src/mycomponents/qty/compareQty.vue @@ -1,6 +1,6 @@