退款
This commit is contained in:
parent
fa9817e7bb
commit
c893ece3a4
@ -94,7 +94,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.type = 2;
|
this.type = 2; // 需求更改 所有订单只能全退,不可选择商品。
|
||||||
// this.type = option.type
|
// this.type = option.type
|
||||||
this.oid = option.oid;
|
this.oid = option.oid;
|
||||||
this.getOrderInfo(option.oid);
|
this.getOrderInfo(option.oid);
|
||||||
@ -139,17 +139,18 @@ export default {
|
|||||||
applyRefund() {
|
applyRefund() {
|
||||||
|
|
||||||
if(this.type !=2 && !this.verifyParams()) return false;
|
if(this.type !=2 && !this.verifyParams()) return false;
|
||||||
|
// addrefundall 只需要订单id 和 说明
|
||||||
let params = {
|
let params = {
|
||||||
order_id: this.oid,
|
order_id: this.oid,
|
||||||
goods_id: this.goods.goods_id,
|
// goods_id: this.goods.goods_id,
|
||||||
refund_amount: Number(this.totalPrice),
|
// refund_amount: Number(this.totalPrice),
|
||||||
reason_info: this.refundText,
|
reason_info: this.refundText,
|
||||||
goods_num: this.num,
|
// goods_num: this.num,
|
||||||
}
|
}
|
||||||
console.log(params)
|
console.log(params)
|
||||||
if(this.type == 2){
|
if(this.type == 2){
|
||||||
this.$u.api.addrefundall(params).then(res => {
|
this.$u.api.addrefundall(params).then(res => {
|
||||||
console.log(JSON.stringify(res))
|
// console.log(JSON.stringify(res))
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
Loading…
Reference in New Issue
Block a user