Commit d5d2ded7 by 李伟康

批量退款

1 parent a55ba29b
...@@ -1574,17 +1574,18 @@ export default { ...@@ -1574,17 +1574,18 @@ 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(){ async batchRefundOrder () {
let {selectList} = this, let { selectList } = this,
orderCodes = [] orderCodes = []
console.log(selectList) console.log(selectList)
selectList.map(e => orderCodes.push(e.orderCode)) selectList.map(e => orderCodes.push(e.orderCode))
const res = await this.$apis.orderManage.batchRefundOrder({ const res = await this.$apis.orderManage.batchRefundOrder({
orderCodes, orderCodes,
refundType:1 refundType: 1
}) })
console.log(res) console.log(res)
this.searchForm.requestSource != 0 ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false) this.batchRefundVisible = false
if (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!