提交 792fb11a authored 作者: matian's avatar matian

fix:修改接口错误

上级 13dabb0e
...@@ -52,7 +52,7 @@ export function payConfirm(data) { ...@@ -52,7 +52,7 @@ export function payConfirm(data) {
} }
// 确认足额支付 // 确认足额支付
export function confirmPayDetail(data) { export function confirmPayDetail(data) {
return httpRequest.post('/api/finance/v1/payments/undo-confirm', data) return httpRequest.post('/api/finance/v1/payments/confirm', data)
} }
// 取消足额支付 // 取消足额支付
export function cancelPayDetail(data) { export function cancelPayDetail(data) {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<app-card> <app-card>
<app-list v-bind="tableOptions" ref="list"> <app-list v-bind="tableOptions" ref="list">
<template v-slot:payment_voucher_filename="{ row }"> <template v-slot:payment_voucher_filename="{ row }">
<el-image style="width: 100px; height: 100px" :src="row.payment_voucher_filename" :fit="fill"></el-image> <el-image style="width: 100px; height: 100px" :src="row.payment_voucher_filename"></el-image>
</template> </template>
<template v-slot:table-x="{ row }"> <template v-slot:table-x="{ row }">
<el-button @click="toPayDetail(row)">查看</el-button> <el-button @click="toPayDetail(row)">查看</el-button>
......
...@@ -113,13 +113,9 @@ export default { ...@@ -113,13 +113,9 @@ export default {
confirm_type: val, confirm_type: val,
id: this.id id: this.id
} }
confirmPayDetail(params) confirmPayDetail(params).then(res => {
.then(res => {
this.fetchTicketDetail() this.fetchTicketDetail()
}) })
.catch(error => {
this.$message.error(error.message)
})
}, },
// 取消 // 取消
fetchCancelTicketDetail(val) { fetchCancelTicketDetail(val) {
...@@ -127,13 +123,9 @@ export default { ...@@ -127,13 +123,9 @@ export default {
confirm_type: val, confirm_type: val,
id: this.id id: this.id
} }
cancelPayDetail(params) cancelPayDetail(params).then(res => {
.then(res => {
this.fetchTicketDetail() this.fetchTicketDetail()
}) })
.catch(error => {
this.$message.error(error.message)
})
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论