Commit 95bef069 by 杨明

fixed

1 parent e31572c7
...@@ -174,6 +174,25 @@ ...@@ -174,6 +174,25 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</GLDialog> </GLDialog>
<!-- 退款类型 -->
<GLDialog mode="mid" class="refund-dialog" title="退款" :visible.sync="refundVisible" @onCancel="refundVisible = !refundVisible" @onOk="refundFun">
<div class="gl-form-page gl-form-min">
<el-form ref="form" label-width="154px">
<el-form-item label="退款类型:">
<el-radio-group v-model="refundParams.afterSaleType">
<div class="refund-item">
<el-radio v-model="radio" label="2">退定金</el-radio>
<div class="refund-tips">选择此项不会扣减实际订单数</div>
</div>
<div class="refund-item">
<el-radio v-model="radio" label="1">退订单</el-radio>
<div class="refund-tips">选择此项会扣减实际订单数</div>
</div>
</el-radio-group>
</el-form-item>
</el-form>
</div>
</GLDialog>
</div> </div>
</template> </template>
...@@ -195,6 +214,8 @@ export default { ...@@ -195,6 +214,8 @@ export default {
orderStatuses: [], orderStatuses: [],
afterSaleStatuses: [] afterSaleStatuses: []
}, },
refundVisible: false,
refundParams: {},
searchForm: { searchForm: {
orderCode: '', orderCode: '',
orderStatuses: [], orderStatuses: [],
...@@ -331,7 +352,13 @@ export default { ...@@ -331,7 +352,13 @@ export default {
}, },
listeners: { listeners: {
click: row => { click: row => {
this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => {}, this.searchForm.requestSource != 0) if (row.paymentModel == 3) {
this.refundVisible = true
this.refundParams = {
orderCode: row.orderCode,
afterSaleType: '2'
}
} else this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode, afterSaleType: '1' }, () => {}, this.searchForm.requestSource != 0)
} }
} }
}, },
...@@ -848,6 +875,27 @@ export default { ...@@ -848,6 +875,27 @@ export default {
optionsName: 'testSheetTypeList' optionsName: 'testSheetTypeList'
}, },
{ {
label: '退款类型',
name: 'afterSaleType',
type: 'select',
optionList: [
{
confId: null,
confName: '全部'
},
{
confId: '2',
confName: '退定金'
},
{
confId: '1',
confName: '退订单'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '业务场景', label: '业务场景',
name: 'businessType', name: 'businessType',
type: 'select', type: 'select',
...@@ -971,7 +1019,12 @@ export default { ...@@ -971,7 +1019,12 @@ export default {
this.tableParams.tableColumns.splice(idx, 1) this.tableParams.tableColumns.splice(idx, 1)
}) })
}, },
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)
},
// checkMerchant () { // checkMerchant () {
// this.$apis.orderManage.checkMerchartApi({}).then(res => { // this.$apis.orderManage.checkMerchartApi({}).then(res => {
// this.isSpecialMerchat = res // this.isSpecialMerchat = res
...@@ -1231,6 +1284,23 @@ export default { ...@@ -1231,6 +1284,23 @@ export default {
min-width: 80px !important; min-width: 80px !important;
padding: 8px 12px !important; padding: 8px 12px !important;
} }
.refund-dialog {
.refund-item {
padding-top: 14px;
}
.refund-tips {
font-size: 14px;
margin: 8px 0 6px 0;
color: #999999;
}
.refund-dialog-tips-close {
margin-left: auto;
cursor: pointer;
}
.tips-img {
margin: 0 8px 0 0 !important;
}
}
.order-manage { .order-manage {
.container { .container {
padding: 20px 14px; padding: 20px 14px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!