Commit c90345a7 by 李伟康

退款类型

1 parent bbe32f96
......@@ -369,6 +369,7 @@
title="退款"
:visible.sync="refundVisible"
@onCancel="refundVisible = !refundVisible"
@onOk="refundFun"
>
<div class="gl-form-page gl-form-min">
<el-form
......@@ -376,21 +377,18 @@
label-width="154px"
>
<el-form-item label="退款类型:">
<el-radio-group
v-model="refundType"
@change="changeType"
>
<el-radio-group v-model="refundParams.afterSaleType">
<div class="refund-item">
<el-radio
v-model="radio"
label="1"
label="2"
>退定金</el-radio>
<div class="refund-tips">选择此项不会扣减实际订单数</div>
</div>
<div class="refund-item">
<el-radio
v-model="radio"
label="2"
label="1"
>退订单</el-radio>
<div class="refund-tips">选择此项会扣减实际订单数</div>
</div>
......@@ -826,6 +824,10 @@ export default {
listeners: {
click: row => {
this.refundVisible = true
this.refundParams = {
orderCode: row.orderCode,
afterSaleType:'2'
}
// this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
}
}
......@@ -1129,7 +1131,7 @@ export default {
requestSourceList: ['全部订单', '已付款', '未付款', '已退款', '售后订单', '待审批'],
batchRefundVisible: false,
refundVisible: false,
refundType: '1',
refundParams: {},
selectList: [],
refundTips: true,
selectTableParams: {
......@@ -1527,6 +1529,13 @@ export default {
this.selectList = selectList.filter(e => e.orderCode)
},
async refundFun () {
let { refundParams } = this
const res = this.$apis.orderManage.crowdFundRefundApi(refundParams)
this.refundVisible = false
this.searchForm.requestSource != 0 ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false)
},
async getCrowdfundingParams () {
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const activity = await this.$apis.seckillActivity.getCrowdfundingParams({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!