From ef4b956053a44cc3eb3cabed6cd850a7819436c9 Mon Sep 17 00:00:00 2001 From: guoshuang Date: Mon, 22 Aug 2022 14:36:10 +0800 Subject: [PATCH] =?UTF-8?q?cosmoim-852=20fix=20=E4=BF=84=E7=BD=97=E6=96=AF?= =?UTF-8?q?=E6=8B=A3=E9=85=8D=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/raw/handover/RUS-picking/ByOrder.vue | 8 ++++---- src/pages/raw/handover/RUS-picking/BySummary.vue | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/raw/handover/RUS-picking/ByOrder.vue b/src/pages/raw/handover/RUS-picking/ByOrder.vue index 28c8876..645bde7 100644 --- a/src/pages/raw/handover/RUS-picking/ByOrder.vue +++ b/src/pages/raw/handover/RUS-picking/ByOrder.vue @@ -80,7 +80,7 @@ - + {{ $t('message.po_Return') }} @@ -223,7 +223,7 @@ export default class RawReceiptDetail extends BasePage { this.Location = []; this.Location.push(arr); this.wlCode = this.Location[0]; - this.qty = this.Container.qty - parseFloat(this.Container.cpRef4); + this.qty = this.Container.qty - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0); //let num = 0; // if (this.LocationList.length != 0) { // this.LocationList.forEach((item: any) => { @@ -265,13 +265,13 @@ export default class RawReceiptDetail extends BasePage { } }); //下面表格有数据情况下,添加一个时,最大可添加数量校验 - if (allqty + parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) { + if (allqty + parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0)) { this.customToast(this.$t('message.Pi_tip20') as any); return (isTrue = false); } } else { //下面表格没数据时,添加一个时,最大可添加数量校验 - if (parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) { + if (parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0)) { this.customToast(this.$t('message.Pi_tip20') as any); return (isTrue = false); } diff --git a/src/pages/raw/handover/RUS-picking/BySummary.vue b/src/pages/raw/handover/RUS-picking/BySummary.vue index 3271b7e..f0bb1fd 100644 --- a/src/pages/raw/handover/RUS-picking/BySummary.vue +++ b/src/pages/raw/handover/RUS-picking/BySummary.vue @@ -214,7 +214,7 @@ export default class RawReceiptDetail extends BasePage { this.Location = []; this.Location.push(arr); this.wlCode = this.Location[0]; - this.qty = this.Container.qty - parseFloat(this.Container.cpRef4); + this.qty = this.Container.qty - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0); //let num = 0; // if (this.LocationList.length != 0) { // this.LocationList.forEach((item: any) => { @@ -255,12 +255,12 @@ export default class RawReceiptDetail extends BasePage { allqty += parseFloat(item.qty); } }); - if (allqty + parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) { + if (allqty + parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0)) { this.customToast(this.$t('message.Pi_tip20') as any); return (isTrue = false); } } else { - if (parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) { + if (parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0)) { this.customToast(this.$t('message.Pi_tip20') as any); return (isTrue = false); }