【类 型】:feat
【主 题】:退款 弹出确认控件 【描 述】: [原因]:确认退款 并且增加 退款金额表单 [过程]:确认退款 并且增加 退款金额表单 [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
91cab38b6f
commit
81c9229993
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user