fix: 功能修复,账号相关,新增交易明细记录。

This commit is contained in:
tianyongbao
2026-05-19 09:30:23 +08:00
parent c4b3a570d0
commit 3a2f299e58
8 changed files with 777 additions and 14 deletions

View File

@@ -149,20 +149,21 @@
</el-form-item>
</el-form>
<el-table v-loading="loadingDealRecord" :data="tableDealRecordData">
<el-table-column label="交易时间" align="center" prop="createTime" />
<el-table-column label="交易时间" align="center" width="180" prop="createTime" />
<el-table-column label="交易金额" align="center" prop="amount" />
<el-table-column label="当前余额" align="center" prop="currentBalance" />
<el-table-column label="交易类型" align="center" prop="dealType">
<el-table-column label="交易类型" align="center" width="120" prop="dealType">
<template #default="scope">
<dict-tag :options="deal_type" :value="scope.row.dealType" />
</template>
</el-table-column>
<el-table-column label="交易类别" align="center" prop="dealCategory">
<el-table-column label="交易类别" align="center" width="150" prop="dealCategory">
<template #default="scope">
<dict-tag :options="deal_category" :value="scope.row.dealCategory" />
</template>
</el-table-column>
<el-table-column label="备注" align="center" width="380" prop="remark" />
<el-table-column label="交易子类别" align="center" width="150" prop="childCategoryName" />
<el-table-column label="备注" align="center" width="300" prop="remark" />
</el-table>
<el-pagination small background layout="total, prev, pager, next" :total="dealRecordTotal" @current-change="handleCurrentDealRecordChange" />
</el-dialog>
@@ -266,7 +267,7 @@ const operateList = ref([
{ id: 'view', icon: 'View', title: '查看', hasPermi: ['invest:accounts:query'] },
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['invest:accounts:edit'] },
// { id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:accounts:remove'] },
{ id: 'dealRecord', icon: 'Tickets', title: '交易记录', hasPermi: ['invest:accounts:query'] },
{ id: 'dealRecord', icon: 'Tickets', title: '交易明细', hasPermi: ['invest:accounts:query'] },
{ id: 'transDeal', icon: 'Cellphone', title: '转账记录', hasPermi: ['invest:accounts:query'] }
])
const data = reactive({
@@ -465,13 +466,13 @@ function handleExport() {
)
}
/** 历史数据按钮操作 */
/** 交易明细按钮操作 */
function handleDealRecord(row) {
const _id = row.id || ids.value
queryDealRecordParams.value.time = ''
queryDealRecordParams.value.dealType = ''
queryDealRecordParams.value.dealCategory = ''
titleDealRecord.value = row.nameCode + '历史交易记录'
titleDealRecord.value = `${row.name}${row.code ? '【' + row.code + '】' : ''}交易明细`
currentAccountId.value = _id
getDealRecordList(1)
openDealRecord.value = true