diff --git a/src/components/QuestTabs.vue b/src/components/QuestTabs.vue index 8c4f460..6633422 100644 --- a/src/components/QuestTabs.vue +++ b/src/components/QuestTabs.vue @@ -149,17 +149,23 @@ export default { }, methods: { questAss, // 修改订单 + /** + * @description: 封装退款函数 同步后续操作 + * @param {*} refundOrderSn 订单编号 + * @param {*} refundShopId 商铺id + * @param {*} refundPrice 退款金额 + * @param {*} refundType 退款类型 'buyer'买家申请 'seller'卖家主动 + */ refund (refundOrderSn, refundShopId, refundPrice, refundType) { refund(refundOrderSn, refundShopId, refundPrice, refundType).then(res => { - if (res.data.status === 1) { - this.dialogVisible = false - this.refundIndex = this.tempRefundIndex + if (res.data.status === 1) { // 退款申请成功时 + this.dialogVisible = false // 退款弹出框 关闭 + this.refundIndex = this.tempRefundIndex // 标记退款订单 的索引 方便做ui样式 } }) }, // 退款接口 parseTime, // 时间戳格式化 setRefundItem (item, index, refundType) { - console.log(item) this.tempRefundIndex = index this.refundTotal_price = item.total_price this.refundApply_price = item.apply_price