mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 04:59:48 +08:00
【优化】优化售后提交页面json计算,开放当用户下单后但未发货情况下,可以申请直接售后的操作需求。
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user