From 92eb03e75acc2b2bac5eb6aa24ef7bc632763b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=81=B0=E7=81=B0?= Date: Wed, 11 May 2022 21:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=94=AE=E5=90=8E=E7=95=8C=E9=9D=A2=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E8=B6=85=E8=BF=871000=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E5=88=A4=E5=AE=9A=E9=87=91=E9=A2=9D=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5=E3=80=82=20=E3=80=90=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E5=94=AE=E5=90=8E=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E5=A4=9A=E9=80=89=E5=94=AE=E5=90=8E=E5=95=86=E5=93=81=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CoreShop/pages/member/afterSales/submit/submit.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/member/afterSales/submit/submit.vue b/CoreCms.Net.Uni-App/CoreShop/pages/member/afterSales/submit/submit.vue index f5656d4d..4c17d2cd 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/member/afterSales/submit/submit.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/member/afterSales/submit/submit.vue @@ -328,13 +328,12 @@ //计算要退货的商品数量 getReturnData() { let nums = 0; - this.itemIds = []; + //this.itemIds = []; for (var i = 0; i < this.checkedItems.length; i++) { let k = this.checkedItems[i]; for (var j = 0; j < this.items.length; j++) { if (this.items[j].id == k) { if (this.items[j].nums >= this.items[j].reshipNums) { - nums = this.items[j].nums - this.items[j].reshipNums; if (nums >= this.items[j].returnNums) { nums = this.items[j].returnNums @@ -355,8 +354,7 @@ this.submitStatus = true; //判断退款金额 - let reg = /^[0-9]+(.[0-9]{1,2})?$/; - if (!reg.test(this.refund)) { + if (this.$u.test.amount(this.refund)) { this.$u.toast('请输入正确金额'); this.submitStatus = false; return false;