From f1c7aea7b5b4d979a3bcc3e95f46e3b64b51031e Mon Sep 17 00:00:00 2001 From: bootx Date: Sun, 2 Jun 2024 18:57:58 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BA=A4=E6=98=93=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../record/flow/TradeFlowRecord.api.ts | 43 +++++ .../record/flow/TradeFlowRecordInfo.vue | 76 +++++++++ .../record/flow/TradeFlowRecordList.vue | 160 ++++++++++++++++++ .../payment/record/sync/PaySyncRecordList.vue | 2 +- 4 files changed, 280 insertions(+), 1 deletion(-) create mode 100644 src/views/payment/record/flow/TradeFlowRecord.api.ts create mode 100644 src/views/payment/record/flow/TradeFlowRecordInfo.vue create mode 100644 src/views/payment/record/flow/TradeFlowRecordList.vue diff --git a/src/views/payment/record/flow/TradeFlowRecord.api.ts b/src/views/payment/record/flow/TradeFlowRecord.api.ts new file mode 100644 index 000000000..934f9ed75 --- /dev/null +++ b/src/views/payment/record/flow/TradeFlowRecord.api.ts @@ -0,0 +1,43 @@ +import { defHttp } from '/@/utils/http/axios' +import { PageResult, Result } from '/#/axios' +import { BaseEntity } from '/#/web' + +/** + * 分页 + */ +export function page(params) { + return defHttp.get>>({ + url: '/record/flow/page', + params, + }) +} + +/** + * 获取单条 + */ +export function get(id) { + return defHttp.get>({ + url: '/record/flow/findById', + params: { id }, + }) +} + +/** + * 支付同步记录 + */ +export interface TradeFlowRecord extends BaseEntity { + // 订单标题 + title?: string + // 金额 + amount?: number + // 业务类型 + type?: string + // 同步通道 + channel?: string + // 修复号 + tradeNo?: string + // 商户交易号 + bizTradeNo?: string + // 通道交易号 + outTradeNo?: string +} diff --git a/src/views/payment/record/flow/TradeFlowRecordInfo.vue b/src/views/payment/record/flow/TradeFlowRecordInfo.vue new file mode 100644 index 000000000..cf6383ddd --- /dev/null +++ b/src/views/payment/record/flow/TradeFlowRecordInfo.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/src/views/payment/record/flow/TradeFlowRecordList.vue b/src/views/payment/record/flow/TradeFlowRecordList.vue new file mode 100644 index 000000000..ff94ef6a6 --- /dev/null +++ b/src/views/payment/record/flow/TradeFlowRecordList.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/views/payment/record/sync/PaySyncRecordList.vue b/src/views/payment/record/sync/PaySyncRecordList.vue index 83a4d4c3e..f55148e05 100644 --- a/src/views/payment/record/sync/PaySyncRecordList.vue +++ b/src/views/payment/record/sync/PaySyncRecordList.vue @@ -97,7 +97,7 @@ return [ { field: 'tradeNo', type: STRING, name: '本地交易号', placeholder: '请输入本地交易号' }, { field: 'bizTradeNo', type: STRING, name: '商户交易号', placeholder: '请输入商户交易号' }, - { field: 'bizTradeNo', type: STRING, name: '通道交易号', placeholder: '请输入通道交易号' }, + { field: 'outTradeNo', type: STRING, name: '通道交易号', placeholder: '请输入通道交易号' }, { field: 'syncType', type: LIST,