【优化】优化售后提交页面json计算,开放当用户下单后但未发货情况下,可以申请直接售后的操作需求。

This commit is contained in:
大灰灰
2022-08-18 02:11:29 +08:00
parent 9b34aa1188
commit 4e7f4ab1d9
2 changed files with 10 additions and 2 deletions

View File

@@ -427,7 +427,7 @@ namespace CoreCms.Net.Services
var id = ((JObject)item)["id"].ObjectToInt(); var id = ((JObject)item)["id"].ObjectToInt();
var nums = ((JObject)item)["nums"].ObjectToInt(); var nums = ((JObject)item)["nums"].ObjectToInt();
if (nums <= 0) if (nums < 0)
{ {
continue; continue;
} }

View File

@@ -301,6 +301,8 @@
} }
this.items[key].checked = true; this.items[key].checked = true;
this.getReturnData(); this.getReturnData();
console.log(this.checkedItems);
}, },
//处理退款金额光标事件 //处理退款金额光标事件
refundFocus(e) { refundFocus(e) {
@@ -337,7 +339,13 @@
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
this.itemIds = this.itemIds.concat({ id: k, nums: nums }); //this.itemIds = this.itemIds.concat({ id: k, nums: nums });
this.itemIds.forEach((item, index, arr) => {
if (item.id==k) {
item.nums = nums;
}
// console.log(index + ":" + item)
})
} else { } else {
this.$u.toast("您填写的数量不对!") this.$u.toast("您填写的数量不对!")
return; return;