feat 流水详情展示

This commit is contained in:
bootx
2024-02-19 23:34:02 +08:00
parent 73c9ee77fd
commit 899aafd696
9 changed files with 22 additions and 4 deletions

View File

@@ -26,6 +26,8 @@ export function get(id) {
* 现金记录
*/
export interface CashRecord extends BaseEntity {
// 标题
title?: string
// 类型
type?: string
// 金额

View File

@@ -10,6 +10,9 @@
>
<a-spin :spinning="confirmLoading">
<a-descriptions bordered title="" :column="{ md: 1, sm: 1, xs: 1 }">
<a-descriptions-item label="标题">
{{ cashRecord.title }}
</a-descriptions-item>
<a-descriptions-item label="金额(分)">
{{ cashRecord.amount }}
</a-descriptions-item>

View File

@@ -14,13 +14,14 @@
@sort-change="sortChange"
>
<vxe-column type="seq" title="序号" width="60" />
<vxe-column field="orderId" title="本地订单ID" width="170" />
<vxe-column field="amount" title="金额" width="170" />
<vxe-column field="title" title="标题" />
<vxe-column field="type" title="业务类型">
<template #default="{ row }">
<a-tag>{{ dictConvert('CashRecordType', row.type) }}</a-tag>
</template>
</vxe-column>
<vxe-column field="amount" title="金额" width="170" />
<vxe-column field="orderId" title="本地订单ID" width="170" />
<vxe-column field="remark" title="备注" />
<vxe-column field="createTime" title="创建时间" sortable />
<vxe-column fixed="right" width="60" :showOverflow="false" title="操作">

View File

@@ -28,6 +28,8 @@ export function get(id) {
export interface VoucherRecord extends BaseEntity {
// 储值卡 id
voucherId?: string
// 标题
title?: string
// 业务类型
type?: string
// 金额

View File

@@ -10,6 +10,9 @@
>
<a-spin :spinning="confirmLoading">
<a-descriptions bordered title="" :column="{ md: 1, sm: 1, xs: 1 }">
<a-descriptions-item label="标题">
{{ voucherRecord.title }}
</a-descriptions-item>
<a-descriptions-item label="金额(分)">
{{ voucherRecord.amount }}
</a-descriptions-item>

View File

@@ -10,7 +10,8 @@
@sort-change="sortChange"
>
<vxe-column type="seq" title="序号" width="60" />
<vxe-column field="type" title="本地订单ID" min-width="170">
<vxe-column field="title" title="标题" />
<vxe-column field="type" title="类型" min-width="170">
<template #default="{ row }">
<a-tag>{{ dictConvert('VoucherRecordType', row.type) }}</a-tag>
</template>

View File

@@ -28,6 +28,8 @@ export function get(id) {
export interface WalletRecord extends BaseEntity {
// 钱包id
walletId?: string
// 标题
title?: string
// 业务类型
type?: string
// 金额

View File

@@ -10,6 +10,9 @@
>
<a-spin :spinning="confirmLoading">
<a-descriptions bordered title="" :column="{ md: 1, sm: 1, xs: 1 }">
<a-descriptions-item label="标题">
{{ walletRecord.title }}
</a-descriptions-item>
<a-descriptions-item label="金额(分)">
{{ walletRecord.amount }}
</a-descriptions-item>

View File

@@ -10,13 +10,14 @@
@sort-change="sortChange"
>
<vxe-column type="seq" title="序号" width="60" />
<vxe-column field="orderId" title="订单号" />
<vxe-column field="title" title="标题" />
<vxe-column field="type" title="类型">
<template #default="{ row }">
<a-tag>{{ dictConvert('WalletRecordType', row.type) }}</a-tag>
</template>
</vxe-column>
<vxe-column field="amount" title="金额" />
<vxe-column field="orderId" title="订单号" />
<vxe-column field="remark" title="备注" />
<vxe-column field="createTime" title="记录时间" sortable />
<vxe-column fixed="right" width="50" :showOverflow="false" title="操作">