mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 05:19:49 +08:00
【修复】修复售后界面输入金额超过1000正则判定金额异常的情况。
【修复】修复售后界面多选售后商品失效的问题。
This commit is contained in:
@@ -328,13 +328,12 @@
|
|||||||
//计算要退货的商品数量
|
//计算要退货的商品数量
|
||||||
getReturnData() {
|
getReturnData() {
|
||||||
let nums = 0;
|
let nums = 0;
|
||||||
this.itemIds = [];
|
//this.itemIds = [];
|
||||||
for (var i = 0; i < this.checkedItems.length; i++) {
|
for (var i = 0; i < this.checkedItems.length; i++) {
|
||||||
let k = this.checkedItems[i];
|
let k = this.checkedItems[i];
|
||||||
for (var j = 0; j < this.items.length; j++) {
|
for (var j = 0; j < this.items.length; j++) {
|
||||||
if (this.items[j].id == k) {
|
if (this.items[j].id == k) {
|
||||||
if (this.items[j].nums >= this.items[j].reshipNums) {
|
if (this.items[j].nums >= this.items[j].reshipNums) {
|
||||||
|
|
||||||
nums = this.items[j].nums - this.items[j].reshipNums;
|
nums = this.items[j].nums - this.items[j].reshipNums;
|
||||||
if (nums >= this.items[j].returnNums) {
|
if (nums >= this.items[j].returnNums) {
|
||||||
nums = this.items[j].returnNums
|
nums = this.items[j].returnNums
|
||||||
@@ -355,8 +354,7 @@
|
|||||||
this.submitStatus = true;
|
this.submitStatus = true;
|
||||||
|
|
||||||
//判断退款金额
|
//判断退款金额
|
||||||
let reg = /^[0-9]+(.[0-9]{1,2})?$/;
|
if (this.$u.test.amount(this.refund)) {
|
||||||
if (!reg.test(this.refund)) {
|
|
||||||
this.$u.toast('请输入正确金额');
|
this.$u.toast('请输入正确金额');
|
||||||
this.submitStatus = false;
|
this.submitStatus = false;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user