diff --git a/src/views/daxpay/common/allocation/transaction/AllocDetailList.vue b/src/views/daxpay/common/allocation/transaction/AllocDetailList.vue new file mode 100644 index 00000000..c72283cf --- /dev/null +++ b/src/views/daxpay/common/allocation/transaction/AllocDetailList.vue @@ -0,0 +1,137 @@ + + + + + diff --git a/src/views/daxpay/common/allocation/transaction/AllocTransactionInfo.vue b/src/views/daxpay/common/allocation/transaction/AllocTransactionInfo.vue new file mode 100644 index 00000000..0a8d203d --- /dev/null +++ b/src/views/daxpay/common/allocation/transaction/AllocTransactionInfo.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/views/daxpay/common/allocation/transaction/AllocTransactionList.vue b/src/views/daxpay/common/allocation/transaction/AllocTransactionList.vue new file mode 100644 index 00000000..9c4adeff --- /dev/null +++ b/src/views/daxpay/common/allocation/transaction/AllocTransactionList.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/src/views/daxpay/common/allocation/transaction/Allocation.api.ts b/src/views/daxpay/common/allocation/transaction/Allocation.api.ts new file mode 100644 index 00000000..04309527 --- /dev/null +++ b/src/views/daxpay/common/allocation/transaction/Allocation.api.ts @@ -0,0 +1,171 @@ +import { defHttp } from '@/utils/http/axios' +import { PageResult, Result } from '#/axios' +import { MchEntity } from '#/web' + +/** + * 分页 + */ +export function page(params) { + return defHttp.get>>({ + url: '/allocation/transaction/page', + params, + }) +} + +/** + * 查询详情 + */ +export function get(id) { + return defHttp.get>({ + url: '/allocation/transaction/findById', + params: { id }, + }) +} + +/** + * 获取订单详细信息 + */ +export function getOrderByAllocNo(allocNo: string) { + return defHttp.get({ + url: '/allocation/transaction/findByAllocNo', + params: { allocNo }, + }) +} + +/** + * 扩展信息 + */ +export function getExtra(id) { + return defHttp.get>({ + url: '/allocation/transaction/findById', + params: { id }, + }) +} + +/** + * 明细列表 + */ +export function detailList(orderId) { + return defHttp.get>({ + url: '/allocation/transaction/detail/findAll', + params: { orderId }, + }) +} + +/** + * 明细详情 + */ +export function detail(id) { + return defHttp.get>({ + url: '/allocation/transaction/detail/findById', + params: { id }, + }) +} + +/** + * 分账完结 + */ +export function finish(allocNo) { + return defHttp.post>({ + url: '/allocation/transaction/finish', + params: { allocNo }, + }) +} + +/** + * 分账完结 + */ +export function retry(bizAllocNo) { + return defHttp.post>({ + url: '/allocation/transaction/retry', + params: { bizAllocNo }, + }) +} + +/** + * 查询分账结果 + */ +export function sync(allocNo) { + return defHttp.post>({ + url: '/allocation/transaction/sync', + params: { allocNo }, + }) +} + +/** + * 分账订单 + */ +export interface AllocationOrder extends MchEntity { + // 分账单号 + allocNo?: string + // 商户分账单号 + bizAllocNo?: string + // 通道分账号 + outAllocNo?: string + // 支付订单ID + orderId?: string + // 支付订单号 + orderNo?: string + // 商户支付订单号 + bizOrderNo?: string + // 外部系统支付订单号 + outOrderNo?: string + // 支付订单标题 + title?: string + // 所属通道 + channel?: string + // 总分账金额 + amount?: number + // 分账描述 + description?: string + // 状态 + status?: string + // 处理结果 + result?: string + // 完成时间 + finishTime?: string + // 异步通知地址 + notifyUrl?: string + // 商户扩展参数 + attach?: string + // 附加参数 + extraParam?: string + // 请求时间 + reqTime?: string + // 支付终端ip + clientIp?: string + // 错误码 + errorCode?: string + // 错误原因 + errorMsg?: string +} + +/** + * 分账订单明细 + */ +export interface AllocationOrderDetail extends MchEntity { + // 分账订单ID + orderId?: string + // 分账明细单号 + receiverId?: string + // 比例 + rate: number + // 金额 + amount: number + // 分账接收方类型 + receiverType?: string + // 接收方账号 + receiverAccount?: string + // 接收方姓名 + receiverName?: string + // 接收方编号 + receiverNo?: string + // 分账结果 + result?: string + // 错误代码 + errorCode?: string + // 错误原因 + errorMsg?: string + // 完成时间 + finishTime?: string +}