wangfukang 7 days ago
parent
commit
9ead16eac2
  1. 35
      package2/partTimeJob/partTimeJobCenter.vue

35
package2/partTimeJob/partTimeJobCenter.vue

@ -196,6 +196,7 @@
statusList:[0,3] statusList:[0,3]
}, },
returnFormData:{}, returnFormData:{},
groupOrderIdList:[],
goodsList:[], goodsList:[],
orderDetail:{}, orderDetail:{},
returnData:[], returnData:[],
@ -252,6 +253,39 @@
}).catch((res) => {}); }).catch((res) => {});
}, },
returnAmountAllow(item,status){ returnAmountAllow(item,status){
let titleText = status == 1 ? '确定同意该申请吗?' : '确定拒绝该申请吗?';
//退
if(item.groupOrderIds != null && item.groupOrderIds != ''){
titleText += '该订单为面对面配送单,所有参团订单将同步处理';
for(let i = 0; i < this.returnData.length;i++){
if(item.groupOrderIds.indexOf(this.returnData[i].mallOrder.id) != -1){
//
this.groupOrderIdList.push(this.returnData[i]);
}
}
}else{
this.groupOrderIdList = []
}
// 2.
uni.showModal({
title: '提示',
content: titleText,
success: (res) => {
if (res.confirm) {
if(this.groupOrderIdList != [] && this.groupOrderIdList.length > 0){
for(let i = 0; i < this.groupOrderIdList.length;i++){
this.processReturn(this.groupOrderIdList[i], status);
}
}else{
this.processReturn(item, status);
}
}
}
});
},
processReturn(item,status){
let url = '' let url = ''
//退 //退
if(item.status == 0){ if(item.status == 0){
@ -272,6 +306,7 @@
this.returnFormData.id = item.id; this.returnFormData.id = item.id;
this.returnFormData.orderId = item.orderId; this.returnFormData.orderId = item.orderId;
this.returnFormData.deliveryType = item.mallOrder.deliveryType; this.returnFormData.deliveryType = item.mallOrder.deliveryType;
this.returnFormData.orderType = item.mallOrder.orderType;
this.returnFormData.refundAmount = item.refundAmount; this.returnFormData.refundAmount = item.refundAmount;
this.returnFormData.refundType = item.refundType; this.returnFormData.refundType = item.refundType;
this.returnFormData.refundTypeStatus = item.refundTypeStatus; this.returnFormData.refundTypeStatus = item.refundTypeStatus;

Loading…
Cancel
Save