【类 型】:feat

【主	题】:退款 弹出确认控件
【描	述】:
	[原因]:确认退款 并且增加 退款金额表单
	[过程]:确认退款 并且增加 退款金额表单
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
tk 2024-07-01 16:44:13 +08:00
parent 91cab38b6f
commit 81c9229993

View File

@ -149,17 +149,23 @@ export default {
}, },
methods: { methods: {
questAss, // questAss, //
/**
* @description: 封装退款函数 同步后续操作
* @param {*} refundOrderSn 订单编号
* @param {*} refundShopId 商铺id
* @param {*} refundPrice 退款金额
* @param {*} refundType 退款类型 'buyer'买家申请 'seller'卖家主动
*/
refund (refundOrderSn, refundShopId, refundPrice, refundType) { refund (refundOrderSn, refundShopId, refundPrice, refundType) {
refund(refundOrderSn, refundShopId, refundPrice, refundType).then(res => { refund(refundOrderSn, refundShopId, refundPrice, refundType).then(res => {
if (res.data.status === 1) { if (res.data.status === 1) { // 退
this.dialogVisible = false this.dialogVisible = false // 退
this.refundIndex = this.tempRefundIndex this.refundIndex = this.tempRefundIndex // 退 便ui
} }
}) })
}, // 退 }, // 退
parseTime, // parseTime, //
setRefundItem (item, index, refundType) { setRefundItem (item, index, refundType) {
console.log(item)
this.tempRefundIndex = index this.tempRefundIndex = index
this.refundTotal_price = item.total_price this.refundTotal_price = item.total_price
this.refundApply_price = item.apply_price this.refundApply_price = item.apply_price