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