mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-12 23:45:39 +08:00
ref 回调通知和接口管理
This commit is contained in:
@@ -55,8 +55,6 @@ export interface PayApiConfig extends BaseEntity {
|
||||
reqSign?: boolean
|
||||
// 响应参数是否签名
|
||||
resSign?: boolean
|
||||
// 回调信息是否签名
|
||||
noticeSign?: boolean
|
||||
// 是否记录请求的信息
|
||||
record?: boolean
|
||||
remark?: string
|
||||
}
|
||||
|
||||
@@ -30,9 +30,6 @@
|
||||
<a-form-item label="回调通知" v-if="form.noticeSupport" name="notice">
|
||||
<a-switch v-model:checked="form.notice" :disabled="showable" />
|
||||
</a-form-item>
|
||||
<a-form-item label="回调签名" v-if="form.noticeSupport" name="noticeSign">
|
||||
<a-switch v-model:checked="form.noticeSign" :disabled="showable" />
|
||||
</a-form-item>
|
||||
<a-form-item label="默认回调地址" v-if="form.noticeSupport" name="noticeUrl">
|
||||
<a-input v-model:value="form.noticeUrl" :disabled="showable" placeholder="请输入回调地址" />
|
||||
</a-form-item>
|
||||
|
||||
@@ -30,15 +30,6 @@
|
||||
</template>
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="noticeSign" title="回调签名">
|
||||
<template #default="{ row }">
|
||||
<template v-if="row.noticeSupport">
|
||||
<a-tag v-if="row.noticeSign" color="green">启用</a-tag>
|
||||
<a-tag v-else color="red">停用</a-tag>
|
||||
</template>
|
||||
<template v-else> </template>
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="noticeUrl" title="默认回调地址">
|
||||
<template #default="{ row }">
|
||||
<template v-if="row.noticeSupport">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<basic-drawer forceRender v-bind="$attrs" title="通道订单列表" width="60%" :visible="visible" @close="visible = false">
|
||||
<basic-drawer forceRender v-bind="$attrs" title="通知明细列表" width="60%" :visible="visible" @close="visible = false">
|
||||
<vxe-toolbar ref="xToolbar" custom :refresh="{ queryMethod: queryPage }" />
|
||||
<vxe-table
|
||||
row-id="id"
|
||||
@@ -60,10 +60,9 @@
|
||||
import ClientNoticeRecordInfo from './ClientNoticeRecordInfo.vue'
|
||||
|
||||
// 使用hooks
|
||||
const { handleTableChange, pageQueryResHandel, sortChange, resetQueryParams, pagination, pages, sortParam, model, loading } =
|
||||
useTablePage(queryPage)
|
||||
const { handleTableChange, pageQueryResHandel, sortChange, pagination, sortParam, loading } = useTablePage(queryPage)
|
||||
const { notification, createMessage } = useMessage()
|
||||
const { dictDropDown, dictConvert } = useDict()
|
||||
const { dictConvert } = useDict()
|
||||
|
||||
let visible = $ref(false)
|
||||
let task = $ref<ClientNoticeTask>({})
|
||||
|
||||
@@ -59,8 +59,10 @@ export function getRecord(id) {
|
||||
* 消息通知任务
|
||||
*/
|
||||
export interface ClientNoticeTask extends BaseEntity {
|
||||
// 本地订单ID
|
||||
orderId?: number
|
||||
// 本地交易ID
|
||||
tradeId?: string
|
||||
// 本地交易ID
|
||||
tradeNo?: string
|
||||
// 消息类型
|
||||
noticeType?: string
|
||||
// 消息内容
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
@sort-change="sortChange"
|
||||
>
|
||||
<vxe-column type="seq" title="序号" width="60" />
|
||||
<vxe-column field="orderId" title="本地订单ID" width="170">
|
||||
<vxe-column field="orderId" title="本地交易号" width="170">
|
||||
<template #default="{ row }">
|
||||
<a-link @click="showOrder(row)">
|
||||
{{ row.orderId }}
|
||||
{{ row.orderNo }}
|
||||
</a-link>
|
||||
</template>
|
||||
</vxe-column>
|
||||
@@ -149,7 +149,7 @@
|
||||
clientNoticeTaskInfo.init(record)
|
||||
}
|
||||
/**
|
||||
* 查看记录
|
||||
* 查看记录列表
|
||||
*/
|
||||
function showRecord(record) {
|
||||
clientNoticeRecordList.init(record)
|
||||
@@ -159,9 +159,9 @@
|
||||
*/
|
||||
function showOrder(record: ClientNoticeTask) {
|
||||
if (record.noticeType === 'pay') {
|
||||
payOrderInfo.init(record.orderId)
|
||||
payOrderInfo.init(record.tradeNo)
|
||||
} else {
|
||||
refundOrderInfo.init(record.orderId)
|
||||
refundOrderInfo.init(record.tradeNo)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user