Compare commits

..

No commits in common. "6364be17439e52ecfc38a2d03ac347a9cd47e719" and "a60f61c3003308a710085f8d9cc626d07ab19dcd" have entirely different histories.

View File

@ -94,8 +94,7 @@ export default {
}
},
onLoad(option) {
this.type = 2; // 退
// this.type = option.type
this.type = option.type
this.oid = option.oid;
this.getOrderInfo(option.oid);
},
@ -139,18 +138,17 @@ export default {
applyRefund() {
if(this.type !=2 && !this.verifyParams()) return false;
// addrefundall id
let params = {
order_id: this.oid,
// goods_id: this.goods.goods_id,
// refund_amount: Number(this.totalPrice),
goods_id: this.goods.goods_id,
refund_amount: Number(this.totalPrice),
reason_info: this.refundText,
// goods_num: this.num,
goods_num: this.num,
}
console.log(params)
if(this.type == 2){
this.$u.api.addrefundall(params).then(res => {
// console.log(JSON.stringify(res))
console.log(JSON.stringify(res))
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,