From 22e24049d05e0f2df0559cb6dff374905fa21098 Mon Sep 17 00:00:00 2001 From: hou <1601990943@qq.com> Date: Tue, 2 Aug 2022 14:42:02 +0800 Subject: [PATCH] =?UTF-8?q?cosmoim-852=20fix=20=E4=BF=84=E7=BD=97=E6=96=AF?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/lang/en.ts | 4 +- .../Semi-finished/Semi-finished-SO/index.vue | 77 ++++++++++++------- .../Semi-finished-offline/index.vue | 14 ++++ src/pages/raw/commission/RUS-Out/index.vue | 10 ++- .../raw/commission/RUS-entrant/index.vue | 10 ++- .../raw/handover/RUS-returning/index.vue | 5 ++ .../raw/handover/feeding/RUS-Location.vue | 3 + .../raw/ingoods/RUS-dnReceipt/dnReceiving.vue | 4 + .../ingoods/RUS-dnReturnGoods/Location.vue | 4 + .../raw/warehouse/RUS-rowCollect/index.vue | 3 + .../raw/warehouse/RUS-rowScrap/index.vue | 2 + .../raw/warehouse/RUS-rowTransfer/index.vue | 3 + 12 files changed, 109 insertions(+), 30 deletions(-) diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index ed3657e..af7b1d4 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -180,8 +180,8 @@ export default { Pi_QuantityHandedOver: 'Handedover Qty', Pi_distribution: 'Distribution', successful: 'Query was successful', - ModelCode: 'Model code', - ModelName: 'Model name', + ModelCode: 'code', + ModelName: 'material', ModelScanned: 'Model scanned', Pi_tip13: 'Please select the material to submit', Pi_tip15: 'Please ensure that the handover quantity is equal to the demand quantity', diff --git a/src/pages/raw/Semi-finished/Semi-finished-SO/index.vue b/src/pages/raw/Semi-finished/Semi-finished-SO/index.vue index 5d88b48..5b8cb11 100644 --- a/src/pages/raw/Semi-finished/Semi-finished-SO/index.vue +++ b/src/pages/raw/Semi-finished/Semi-finished-SO/index.vue @@ -43,17 +43,6 @@ - - - - {{ $t('message.CommissionedLocation') }} - - - - {{ $t('message.CommissionedThisNumber') }} - - - @@ -64,6 +53,17 @@ {{ $t('message.product_add') }} + + + + {{ $t('message.CommissionedLocation') }} + + + + {{ $t('message.CommissionedThisNumber') }} + + + @@ -110,6 +110,7 @@ import { url } from '@/utils/url'; }) export default class dnReceiptDom extends BasePage { model = model; + disabled = false; form: any = { documentNo: '', }; @@ -314,6 +315,8 @@ export default class dnReceiptDom extends BasePage { this.customToast(this.$t('message.barcode') as string); return; } + this.Container = ''; + this.receiptAmount = ''; let params = { dnNo: this.form.documentNo, poNo: this.poNo, @@ -324,6 +327,7 @@ export default class dnReceiptDom extends BasePage { await this.model.searchBarcode(params); this.Container = this.model.ContainerCode; this.receiptAmount = parseFloat(this.Container.requestAmount); + this.disabled = true; } //点击添加 Add() { @@ -380,7 +384,10 @@ export default class dnReceiptDom extends BasePage { }); this.DNReceivingList[this.everyIndex].receiptAmount = num; this.receiptAmount = ''; + this.Container = ''; + this.Barcode = ''; this.every = this.DNReceivingList[this.everyIndex]; + this.disabled = false; } } deleteItem(e: any) { @@ -442,6 +449,7 @@ export default class dnReceiptDom extends BasePage { await this.query(); } empty() { + this.disabled = false; this.LocationList = []; this.Location = []; this.poNo = ''; diff --git a/src/pages/raw/handover/RUS-returning/index.vue b/src/pages/raw/handover/RUS-returning/index.vue index c7ac860..6ba735e 100644 --- a/src/pages/raw/handover/RUS-returning/index.vue +++ b/src/pages/raw/handover/RUS-returning/index.vue @@ -150,12 +150,14 @@ export default class returningDom extends BasePage { this.customToast(this.$t('message.barcode') as string); return; } + this.Container = ''; let params = { productCode: this.materieCode.value, barcode: this.Barcode, }; await this.model.searchBarcode(params); this.Container = this.model.ContainerCode; + this.Location = []; let arr = { label: this.Container.locCode, value: this.Container.locCode + '(' + this.Container.sendSpot + ')', @@ -223,6 +225,9 @@ export default class returningDom extends BasePage { this.LocationList[this.LocationList.length - 1].operatorPass = this.operator; this.LocationList[this.LocationList.length - 1].wkposCode = this.wlCode.label; this.model.materielList[this.checkindex].totalAmount = this.accSubtract(this.LocationList[this.LocationList.length - 1].totalAmount, this.qty); + this.Container = ''; + this.Barcode = ''; + this.qty = ''; } deleteItem(e: any) { uni.showModal({ diff --git a/src/pages/raw/handover/feeding/RUS-Location.vue b/src/pages/raw/handover/feeding/RUS-Location.vue index 291513c..8cde0c8 100644 --- a/src/pages/raw/handover/feeding/RUS-Location.vue +++ b/src/pages/raw/handover/feeding/RUS-Location.vue @@ -304,6 +304,8 @@ export default class RawReceiptDetail extends BasePage { this.customToast(this.$t('message.AppendMateriel5') as string); return; } + this.Container = ''; + this.qty = ''; let params = { productCode: this.some.materialCode, barcode: this.Barcode, @@ -402,6 +404,7 @@ export default class RawReceiptDetail extends BasePage { console.log(' this.model.blDetailList', this.model.blDetailList); this.business(); this.qty = ''; + this.Container = ''; } } deleteItem(e: any): void { diff --git a/src/pages/raw/ingoods/RUS-dnReceipt/dnReceiving.vue b/src/pages/raw/ingoods/RUS-dnReceipt/dnReceiving.vue index 00a1cb0..fb8cb6f 100644 --- a/src/pages/raw/ingoods/RUS-dnReceipt/dnReceiving.vue +++ b/src/pages/raw/ingoods/RUS-dnReceipt/dnReceiving.vue @@ -319,6 +319,8 @@ export default class dnReceiptDom extends BasePage { this.customToast(this.$t('message.AppendMateriel5') as string); return; } + this.Container = ''; + this.receiptAmount = ''; let params = { dnNo: this.form.documentNo, poNo: this.poNo, @@ -381,6 +383,8 @@ export default class dnReceiptDom extends BasePage { this.DNReceivingList[this.everyIndex].receiptAmount = num; this.receiptAmount = ''; this.every = this.DNReceivingList[this.everyIndex]; + this.Container = ''; + this.Barcode = ''; } } deleteItem(e: any) { diff --git a/src/pages/raw/ingoods/RUS-dnReturnGoods/Location.vue b/src/pages/raw/ingoods/RUS-dnReturnGoods/Location.vue index 1a3ef72..7425957 100644 --- a/src/pages/raw/ingoods/RUS-dnReturnGoods/Location.vue +++ b/src/pages/raw/ingoods/RUS-dnReturnGoods/Location.vue @@ -184,6 +184,8 @@ export default class RawReceiptDetail extends BasePage { this.customToast(this.$t('message.AppendMateriel5') as string); return; } + this.Container = ''; + this.qty = ''; let params = { productCode: this.some.materialCode, barcode: this.Barcode, @@ -306,6 +308,8 @@ export default class RawReceiptDetail extends BasePage { this.model.dnReturnList[this.someIndex].receiptAmount += parseFloat(this.qty); this.LocationList.push(arr); this.qty = ''; + this.Container = ''; + this.Barcode = ''; } //删除某一项 触发事件 deleteItem(e: any) { diff --git a/src/pages/raw/warehouse/RUS-rowCollect/index.vue b/src/pages/raw/warehouse/RUS-rowCollect/index.vue index 4ec163f..3dd0a56 100644 --- a/src/pages/raw/warehouse/RUS-rowCollect/index.vue +++ b/src/pages/raw/warehouse/RUS-rowCollect/index.vue @@ -142,6 +142,8 @@ export default class KanDanHandOver extends BasePage { this.customToast(this.$t('message.barcode') as string); return; } + this.Container = ''; + this.qty = 0; let params = { productCode: this.Some.productCode, barcode: this.Barcode, @@ -210,6 +212,7 @@ export default class KanDanHandOver extends BasePage { this.SubmitOrderlist[this.SubmitOrderlist.length - 1].barCode = this.Container.barcode; this.qty = 0; this.Container = ''; + this.Barcode = ''; this.model.orderInInfoList[this.SomeIndex].totalqty += this.qty; } deleteItem(e: any) { diff --git a/src/pages/raw/warehouse/RUS-rowScrap/index.vue b/src/pages/raw/warehouse/RUS-rowScrap/index.vue index 8729e1a..9f03743 100644 --- a/src/pages/raw/warehouse/RUS-rowScrap/index.vue +++ b/src/pages/raw/warehouse/RUS-rowScrap/index.vue @@ -154,6 +154,8 @@ export default class KanDanHandOver extends BasePage { this.customToast(this.$t('message.AppendMateriel5') as string); return; } + this.Container = ''; + this.qty = ''; let params = { productCode: this.Some.productCode, barcode: this.Barcode, diff --git a/src/pages/raw/warehouse/RUS-rowTransfer/index.vue b/src/pages/raw/warehouse/RUS-rowTransfer/index.vue index 13c90c3..b109ee4 100644 --- a/src/pages/raw/warehouse/RUS-rowTransfer/index.vue +++ b/src/pages/raw/warehouse/RUS-rowTransfer/index.vue @@ -132,6 +132,8 @@ export default class KanDanHandOver extends BasePage { this.customToast(this.$t('message.barcode') as string); return; } + this.Container = ''; + this.total = 0; let params = { productCode: this.orderlist.productCode, barcode: this.Barcode, @@ -172,6 +174,7 @@ export default class KanDanHandOver extends BasePage { this.model.materielList[this.orderlistIndex].actualQty += parseFloat(this.SubmitOrderlist[this.SubmitOrderlist.length - 1].qty); this.Barcode = ''; this.Container = ''; + this.total = 0; } deleteItem(e: any) { uni.showModal({