feat 调整查询字段

This commit is contained in:
bootx
2024-02-01 22:17:02 +08:00
parent 73662c67eb
commit 41748fb7f8
12 changed files with 41 additions and 31 deletions

View File

@@ -87,7 +87,7 @@ export interface PayOrder extends BaseEntity {
asyncChannel?: boolean
// 是否是组合支付
combinationPay?: boolean
// 关联网关支付
// 关联网关支付ID
gatewayOrderNo?: number
// 金额
amount?: number

View File

@@ -10,7 +10,7 @@
>
<a-spin :spinning="confirmLoading">
<a-descriptions title="" :column="{ md: 2, sm: 1, xs: 1 }">
<a-descriptions-item label="支付">
<a-descriptions-item label="支付ID">
{{ order.id }}
</a-descriptions-item>
<a-descriptions-item label="业务号">

View File

@@ -14,7 +14,7 @@
@sort-change="sortChange"
>
<vxe-column type="seq" title="序号" width="60" />
<vxe-column field="id" title="支付" sortable width="170" />
<vxe-column field="id" title="支付ID" sortable width="170" />
<vxe-column field="businessNo" title="业务号" />
<vxe-column field="title" title="标题" />
<vxe-column field="amount" title="金额(分)" sortable />
@@ -110,9 +110,9 @@
// 查询条件
const fields = computed(() => {
return [
{ field: 'paymentId', type: STRING, name: '支付', placeholder: '请输入完整支付' },
{ field: 'gatewayOrderNo', type: STRING, name: '网关订单号', placeholder: '请输入完整网关订单号' },
{ field: 'paymentId', type: STRING, name: '支付ID', placeholder: '请输入完整支付ID' },
{ field: 'businessNo', type: STRING, name: '业务号', placeholder: '请输入业务号' },
{ field: 'gatewayOrderNo', type: STRING, name: '网关订单号', placeholder: '请输入完整网关订单号' },
{ field: 'title', type: STRING, name: '标题', placeholder: '请输入标题' },
{ field: 'errorCode', name: '错误码', type: STRING },
{ field: 'asyncChannel', name: '异步支付方式', type: LIST, selectList: cayChannelList },

View File

@@ -15,7 +15,7 @@
<a-descriptions-item label="退款号">
{{ form.refundNo }}
</a-descriptions-item>
<a-descriptions-item label="原支付">
<a-descriptions-item label="原支付ID">
{{ form.paymentId }}
</a-descriptions-item>
<a-descriptions-item label="原业务号">

View File

@@ -22,7 +22,8 @@
>
<vxe-column type="seq" title="序号" width="60" />
<vxe-column field="id" title="退款ID" width="180" />
<vxe-column field="paymentId" title="原支付" width="170">
<vxe-column field="title" title="原支付标题" />
<vxe-column field="paymentId" title="原支付ID" width="170">
<template #default="{ row }">
<a @click="showPayment(row.paymentId)">
{{ row.paymentId }}
@@ -30,7 +31,6 @@
</template>
</vxe-column>
<vxe-column field="businessNo" title="原业务号" :visible="false" />
<vxe-column field="title" title="原支付标题" />
<vxe-column field="amount" title="退款金额" sortable />
<vxe-column field="refundableBalance" title="剩余可退金额" sortable />
<vxe-column field="async" title="包含异步通道">
@@ -100,7 +100,7 @@
const fields = computed(() => {
return [
{ field: 'id', type: STRING, name: '退款号', placeholder: '请输入完整退款号' },
{ field: 'paymentId', type: STRING, name: '原支付单号', placeholder: '请输入完整支付' },
{ field: 'paymentId', type: STRING, name: '原支付单号', placeholder: '请输入完整支付ID' },
{ field: 'businessNo', type: STRING, name: '原业务号', placeholder: '请输入业务号' },
{ field: 'gatewayOrderNo', type: STRING, name: '网关订单号', placeholder: '请输入完整网关订单号' },
{ field: 'title', type: STRING, name: '原支付标题', placeholder: '请输入原支付标题' },
@@ -111,7 +111,6 @@
placeholder: '请选择处理状态',
selectList: payRefundStatusList,
},
{ field: 'title', type: STRING, name: '标题', placeholder: '请输入标题' },
] as QueryField[]
})

View File

@@ -88,7 +88,8 @@
// 查询条件
const fields = computed(() => {
return [
{ field: 'paymentId', type: STRING, name: '支付号', placeholder: '请输入完整支付号' },
{ field: 'orderId', type: STRING, name: '本地订单ID', placeholder: '请输入完整本地订单ID' },
{ field: 'gatewayOrderNo', type: STRING, name: '网关订单号', placeholder: '请输入完整网关订单号' },
{
field: 'payChannel',
type: LIST,

View File

@@ -26,7 +26,7 @@ export function get(paymentId) {
* 支付回调记录
*/
export interface PayCloseRecord extends BaseEntity {
// 支付
// 支付ID
paymentId?: string
// 业务号
businessNo?: string

View File

@@ -14,7 +14,7 @@
@sort-change="sortChange"
>
<vxe-column type="seq" title="序号" width="60" />
<vxe-column field="paymentId" title="原支付" width="170" sortable>
<vxe-column field="paymentId" title="原支付ID" width="170" sortable>
<template #default="{ row }">
<a @click="showPayment(row.paymentId)">
{{ row.paymentId }}

View File

@@ -26,8 +26,8 @@ export function get(id) {
* 支付回调记录
*/
export interface PayRepairRecord extends BaseEntity {
// 支付回调记录id
repairId?: string
// 修复号
repairNo?: string
// 本地订单ID
orderId?: string
// 本地业务号

View File

@@ -13,8 +13,8 @@
<a-descriptions-item label="主键ID">
{{ form.id }}
</a-descriptions-item>
<a-descriptions-item label="修复号">
{{ form.repairId }}
<a-descriptions-item label="修复号">
{{ form.repairNo }}
</a-descriptions-item>
<a-descriptions-item label="本地订单ID">
{{ form.orderId }}

View File

@@ -1,7 +1,7 @@
<template>
<div>
<div class="m-3 p-3 pt-5 bg-white">
<b-query :query-params="model.queryParam" :fields="fields" @query="queryPage" @reset="resetQueryParams" />
<b-query :query-params="model.queryParam" :default-item-count="3" :fields="fields" @query="queryPage" @reset="resetQueryParams" />
</div>
<div class="m-3 p-3 bg-white">
<vxe-toolbar ref="xToolbar" custom :refresh="{ queryMethod: queryPage }" />
@@ -14,25 +14,25 @@
@sort-change="sortChange"
>
<vxe-column type="seq" title="序号" width="60" />
<vxe-column field="repairId" title="修复号" width="170" />
<vxe-column field="orderId" title="修复订单ID" width="170">
<vxe-column field="repairNo" title="修复号" width="170" />
<vxe-column field="repairType" title="修复类型">
<template #default="{ row }">
<a-tag color="green">{{ dictConvert('PaymentType', row.repairType) }}</a-tag>
</template>
</vxe-column>
<vxe-column field="orderId" title="本地订单ID" width="170">
<template #default="{ row }">
<a @click="showOrder(row)">
{{ row.orderId }}
</a>
</template>
</vxe-column>
<vxe-column field="orderNo" title="本地业务号" />
<vxe-column field="orderNo" title="本地订单号" />
<vxe-column field="repairSource" title="修复来源">
<template #default="{ row }">
<a-tag>{{ dictConvert('PayRepairSource', row.repairSource) }}</a-tag>
</template>
</vxe-column>
<vxe-column field="repairType" title="修复类型">
<template #default="{ row }">
<a-tag>{{ dictConvert('PaymentType', row.repairType) }}</a-tag>
</template>
</vxe-column>
<vxe-column field="repairWay" title="修复方式">
<template #default="{ row }">
<a-tag v-if="row.repairType === 'pay'">{{ dictConvert('PayRepairWay', row.repairWay) }}</a-tag>
@@ -91,8 +91,9 @@
// 查询条件
const fields = computed(() => {
return [
{ field: 'paymentId', type: STRING, name: '支付单号', placeholder: '请输入支付单号' },
{ field: 'businessNo', type: STRING, name: '业务号', placeholder: '请输入业务号' },
{ field: 'repairNo', type: STRING, name: '修复单号', placeholder: '请输入修复号' },
{ field: 'orderId', type: STRING, name: '本地订单ID', placeholder: '请输入本地订单ID' },
{ field: 'orderNo', type: STRING, name: '本地订单号', placeholder: '请输入本地订单号' },
{
field: 'repairSource',
type: LIST,

View File

@@ -1,7 +1,7 @@
<template>
<div>
<div class="m-3 p-3 pt-5 bg-white">
<b-query :query-params="model.queryParam" :fields="fields" @query="queryPage" @reset="resetQueryParams" />
<b-query :query-params="model.queryParam" :default-item-count="3" :fields="fields" @query="queryPage" @reset="resetQueryParams" />
</div>
<div class="m-3 p-3 bg-white">
<vxe-toolbar ref="xToolbar" custom :refresh="{ queryMethod: queryPage }" />
@@ -87,12 +87,20 @@
let syncStatusList = $ref<LabeledValue[]>([])
let payChannelList = $ref<LabeledValue[]>([])
let syncTypeList = $ref<LabeledValue[]>([])
// 查询条件
const fields = computed(() => {
return [
{ field: 'paymentId', type: STRING, name: '支付单号', placeholder: '请输入支付单号' },
{ field: 'businessNo', type: STRING, name: '业务号', placeholder: '请输入业务号' },
{ field: 'orderId', type: STRING, name: '本地订单ID', placeholder: '请输入本地订单ID' },
{ field: 'orderNo', type: STRING, name: '本地订单号', placeholder: '请输入本地订单号' },
{
field: 'syncType',
type: LIST,
name: '同步类型',
placeholder: '请选择同步类型',
selectList: syncTypeList,
},
{
field: 'gatewayStatus',
type: LIST,
@@ -132,6 +140,7 @@
async function init() {
syncStatusList = await dictDropDown('PaySyncStatus')
payChannelList = await dictDropDown('PayChannel')
syncTypeList = await dictDropDown('PaymentType')
}
/**