|
|
@ -250,10 +250,19 @@ |
|
|
return diffMinutes; |
|
|
return diffMinutes; |
|
|
}, |
|
|
}, |
|
|
returnOrder(){ |
|
|
returnOrder(){ |
|
|
returnOrder({ |
|
|
console.log('好的',this.orderData) |
|
|
orderId:this.orderData.id, |
|
|
let returnFormData = {} |
|
|
userId:this.orderData.userId |
|
|
|
|
|
}).then((res) => { |
|
|
this.returnFormData.status = 4 |
|
|
|
|
|
this.returnFormData.id = this.orderData.id; |
|
|
|
|
|
this.returnFormData.regionId = JSON.parse(this.getStore("user")).departmentId; |
|
|
|
|
|
this.returnFormData.orderId = this.orderData.orderId; |
|
|
|
|
|
this.returnFormData.deliveryType = this.orderData.deliveryType; |
|
|
|
|
|
this.returnFormData.orderType = this.orderData.orderType; |
|
|
|
|
|
this.returnFormData.refundAmount = this.orderData.refundAmount; |
|
|
|
|
|
this.returnFormData.refundType = this.orderData.refundType; |
|
|
|
|
|
this.returnFormData.refundTypeStatus = this.orderData.refundTypeStatus; |
|
|
|
|
|
returnOrNoOrder(this.returnFormData).then((res) => { |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.$Message.success("取消订单成功"); |
|
|
this.$Message.success("取消订单成功"); |
|
|
|