From 29307418183d2e5c82924834a4215c616dcb30a9 Mon Sep 17 00:00:00 2001 From: hou <1601990943@qq.com> Date: Mon, 27 Dec 2021 18:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=99=9A=E6=8B=9F=E5=BA=93=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20=E6=8B=A3=E9=85=8D&=E4=BA=A4=E6=8E=A5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/lang/cn.ts | 1 + src/i18n/lang/en.ts | 1 + src/pages/raw/handover/aggregating/model.ts | 6 +- .../raw/handover/aggregating/summary.vue | 12 +- src/pages/raw/handover/picking/ByOrder.vue | 7 +- src/pages/raw/handover/picking/BySummary.vue | 5 +- src/pages/raw/handover/virtual/summary.vue | 178 ++++++++---------- src/pages/raw/ingoods/dnReceipt/ImportDN.vue | 13 ++ .../raw/ingoods/dnReceipt/dnReceiving.vue | 5 +- 9 files changed, 112 insertions(+), 116 deletions(-) diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts index 665eb30..b2174e2 100644 --- a/src/i18n/lang/cn.ts +++ b/src/i18n/lang/cn.ts @@ -136,6 +136,7 @@ export default { Pi_tip: '提示', Pi_tip5: '上传成功', Pi_tip6: '本次拣配数量+拣配数量不允许大于需求数量', + Pi_tip14: '本次交接数量+累计拣配数量不能大于需求数量', Pi_tip8: '本次交接数量+交接数量不允许大于拣配数量', Pi_tip9: '本次补料数量+已补数量不允许大于需求数量', Pi_tip12: '本次交接数量必须等于已拣配数量', diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index c6cea21..7d9761a 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -170,6 +170,7 @@ export default { Summary_Tip: 'Unlock fail, Detail:', Summary_FinishedProductMaterialNumber: 'FG code', Summary_QuantityOfThisHandover: 'Handover Qty', + Pi_tip14: 'The current handover quantity + cumulative picking quantity cannot be greater than the required quantity', //补料 Feeding_VoucherNo: 'Document No', diff --git a/src/pages/raw/handover/aggregating/model.ts b/src/pages/raw/handover/aggregating/model.ts index 05066f9..55b6849 100644 --- a/src/pages/raw/handover/aggregating/model.ts +++ b/src/pages/raw/handover/aggregating/model.ts @@ -113,7 +113,8 @@ export class AggregatingModule extends VuexModule { setAggregateListItemHvAmount({ index, hvAmount }: { index: number; hvAmount: number }) { const original = this.aggregateList[index]; const newItem = { ...original, hvAmount }; - this.aggregateList.splice(index, 1, newItem); + // this.aggregateList.splice(index, 1, newItem); + this.aggregateList[index].hvAmount = hvAmount; } /** @@ -124,7 +125,8 @@ export class AggregatingModule extends VuexModule { setOrderListItemHvAmount({ index, hvAmount }: { index: number; hvAmount: number }) { const original = this.orderList[index]; const newItem = { ...original, hvAmount }; - this.orderList.splice(index, 1, newItem); + // this.orderList.splice(index, 1, newItem); + this.orderList[index].hvAmount = hvAmount; } // setOrderListItemHvAmount(params: { hvAmount: number }) { // this.orderList diff --git a/src/pages/raw/handover/aggregating/summary.vue b/src/pages/raw/handover/aggregating/summary.vue index 1d213a6..b490d0b 100644 --- a/src/pages/raw/handover/aggregating/summary.vue +++ b/src/pages/raw/handover/aggregating/summary.vue @@ -15,8 +15,8 @@ - - + + @@ -24,13 +24,13 @@ - - + + - - + + diff --git a/src/pages/raw/handover/picking/ByOrder.vue b/src/pages/raw/handover/picking/ByOrder.vue index 08e8417..ef9e725 100644 --- a/src/pages/raw/handover/picking/ByOrder.vue +++ b/src/pages/raw/handover/picking/ByOrder.vue @@ -47,9 +47,10 @@ {{ item.wlCode }} {{ item.qty }} -
+ + {{ $t('message.product_Delete') }} @@ -177,7 +178,7 @@ export default class RawReceiptDetail extends BasePage { }); return; } - if (this.some == {}) { + if (JSON.stringify(this.some) == '{}') { uni.showToast({ icon: 'none', title: this.$t('message.Commission_tips6') as any, diff --git a/src/pages/raw/handover/picking/BySummary.vue b/src/pages/raw/handover/picking/BySummary.vue index ac940d9..6b35c35 100644 --- a/src/pages/raw/handover/picking/BySummary.vue +++ b/src/pages/raw/handover/picking/BySummary.vue @@ -47,9 +47,10 @@ {{ item.wlCode }} {{ item.qty }} -
+ + {{ $t('message.product_Delete') }} diff --git a/src/pages/raw/handover/virtual/summary.vue b/src/pages/raw/handover/virtual/summary.vue index 37f50cd..6e5769b 100644 --- a/src/pages/raw/handover/virtual/summary.vue +++ b/src/pages/raw/handover/virtual/summary.vue @@ -4,20 +4,11 @@ - {{ $t("message.rawMenu_virtual_Handover_QR") }} + {{ $t('message.rawMenu_virtual_Handover_QR') }} - + @@ -29,16 +20,8 @@ --> - - + + @@ -46,28 +29,13 @@ - - + + - - + + @@ -77,12 +45,12 @@ - {{ $t("message.dn_Confirm") }} + {{ $t('message.dn_Confirm') }} - {{ $t("message.po_Submit") }} + {{ $t('message.po_Submit') }} @@ -92,24 +60,24 @@