【修复】修复售后界面输入金额超过1000正则判定金额异常的情况。

【修复】修复售后界面多选售后商品失效的问题。
This commit is contained in:
大灰灰
2022-05-11 21:12:05 +08:00
parent 93efdd425b
commit 92eb03e75a

View File

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