Commit 33936a95 by 李伟康

批量退款

1 parent d71a9af5
...@@ -175,4 +175,16 @@ const orderVerfication = params => { ...@@ -175,4 +175,16 @@ const orderVerfication = params => {
}) })
} }
export default { getInstallInfo, orderVerfication, signerOrder, getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, updateOrderType } /** 批量退款众筹活动/膨胀金活动订单(SAAS) */
const batchRefundOrder = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.refund.batch'
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: false
})
}
export default { getInstallInfo, orderVerfication, signerOrder, getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, updateOrderType, batchRefundOrder }
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
:size="size" :size="size"
type="default" type="default"
@click="batchRefundVisible = true" @click="batchRefundVisible = true"
:disabled="selectList.length == 0"
>批量退款</el-button> >批量退款</el-button>
</div> </div>
<GLTable <GLTable
...@@ -404,6 +405,7 @@ ...@@ -404,6 +405,7 @@
title="批量退款" title="批量退款"
:visible.sync="batchRefundVisible" :visible.sync="batchRefundVisible"
@onCancel="batchRefundVisible = !batchRefundVisible" @onCancel="batchRefundVisible = !batchRefundVisible"
@onOk="batchRefundOrder"
> >
<div <div
class="list-tips m-b-10" class="list-tips m-b-10"
...@@ -1532,7 +1534,7 @@ export default { ...@@ -1532,7 +1534,7 @@ export default {
}, },
selectionTable (selectList) { selectionTable (selectList) {
this.selectList = selectList.filter(e => e.orderCode) this.selectList = selectList.filter(e => e.orderCode && e?.paymentModel != 3)
}, },
async refundFun () { async refundFun () {
...@@ -1570,6 +1572,19 @@ export default { ...@@ -1570,6 +1572,19 @@ export default {
}) })
} }
this.$set(this.searchFormData[3], 'optionList', this.$common.utils.deepClone(merchantNameList)) this.$set(this.searchFormData[3], 'optionList', this.$common.utils.deepClone(merchantNameList))
},
async batchRefundOrder(){
let {selectList} = this,
orderCodes = []
console.log(selectList)
selectList.map(e => orderCodes.push(e.orderCode))
const res = await this.$apis.orderManage.batchRefundOrder({
orderCodes,
refundType:1
})
console.log(res)
this.searchForm.requestSource != 0 ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false)
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!