From fa9817e7bb28f80e8ee8d76a73226b1ac15c6474 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Thu, 17 Sep 2020 18:48:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=80=80=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageE/order/RefundOrder.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pageE/order/RefundOrder.vue b/pageE/order/RefundOrder.vue index 598ffd6..369ce36 100644 --- a/pageE/order/RefundOrder.vue +++ b/pageE/order/RefundOrder.vue @@ -94,7 +94,8 @@ export default { } }, onLoad(option) { - this.type = option.type + this.type = 2; + // this.type = option.type this.oid = option.oid; this.getOrderInfo(option.oid); }, From c893ece3a40745daa9bf404868dea39ffb6b5fe9 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Thu, 17 Sep 2020 19:33:04 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=80=80=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageE/order/RefundOrder.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pageE/order/RefundOrder.vue b/pageE/order/RefundOrder.vue index 369ce36..c13e6d1 100644 --- a/pageE/order/RefundOrder.vue +++ b/pageE/order/RefundOrder.vue @@ -94,7 +94,7 @@ export default { } }, onLoad(option) { - this.type = 2; + this.type = 2; // 需求更改 所有订单只能全退,不可选择商品。 // this.type = option.type this.oid = option.oid; this.getOrderInfo(option.oid); @@ -139,17 +139,18 @@ 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,