jsk 交易流水

This commit is contained in:
skjia 2025-06-06 15:40:44 +08:00
parent 95e7c17864
commit c77f7cfb44
3 changed files with 81 additions and 74 deletions

View File

@ -2,20 +2,25 @@ import request from '@/utils/request'
// 交易流水 // 交易流水
export function reportTradFlowListApi(data) { export function reportTradFlowListApi(data) {
return request({ return request({
url: '/smart-canteen/report/trade/flow', url: '/smart-canteen/acc_trade/acct',
method: 'post', method: 'get',
headers: { headers: {
"merchant-id":"378915229716713472", "merchant-id":"378915229716713472",
}, },
data: data, params:data
params:{ })
pageNum:data.pageNum, }
pageSize:data.pageSize export function getHealthInfoPageApi(data) {
} return request({
}) url: '/smart-canteen/health_person_info/list',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
params:data
})
} }
// 充值方式汇总 // 充值方式汇总
export function reportAccRechargeListApi(data) { export function reportAccRechargeListApi(data) {
return request({ return request({

View File

@ -70,7 +70,7 @@
@pagination="getList" @pagination="getList"
/> />
<!-- 体检报告对话框 --> <!-- 体检报告对话框 -->
<el-dialog :title="titleAddReport" :visible.sync="openAddReport" custom-class="dialog-right" class="addReportStyle" append-to-body> <el-dialog :title="titleAddReport" :visible.sync="openAddReport" style="right: 0px;" custom-class="dialog-right" class="addReportStyle" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="90px"> <el-form ref="form" :model="form" :rules="rules" label-width="90px">
<el-row justify="center"> <el-row justify="center">
<table align="center" width="100%" cellspacing="0"> <table align="center" width="100%" cellspacing="0">
@ -851,4 +851,7 @@ export default {
font-weight: 700; font-weight: 700;
color: #000; color: #000;
} }
.addReportStyle .dialog-right{
margin-top: 0vh !important;
}
</style> </style>

View File

@ -66,9 +66,9 @@
<span>{{ (scope.row.outcome/100).toFixed(2) }}</span> <span>{{ (scope.row.outcome/100).toFixed(2) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="账户余额" align="center" prop="accAllBal" :show-overflow-tooltip="true" width="100"> <el-table-column label="账户余额" align="center" prop="accountAllBal" :show-overflow-tooltip="true" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ (scope.row.accAllBal/100).toFixed(2) }}</span> <span>{{ (scope.row.accountAllBal/100).toFixed(2) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交易时间" align="center" prop="tradeTime" :show-overflow-tooltip="true" width="160"/> <el-table-column label="交易时间" align="center" prop="tradeTime" :show-overflow-tooltip="true" width="160"/>
@ -95,16 +95,6 @@
<el-table-column label="设备编号" align="center" prop="machineSn" :show-overflow-tooltip="true" width="180"/> <el-table-column label="设备编号" align="center" prop="machineSn" :show-overflow-tooltip="true" width="180"/>
<el-table-column label="设备名称" align="center" prop="deviceName" :show-overflow-tooltip="true" width="120"/> <el-table-column label="设备名称" align="center" prop="deviceName" :show-overflow-tooltip="true" width="120"/>
<el-table-column label="操作员" align="center" prop="createBy" :show-overflow-tooltip="true" width="100"/> <el-table-column label="操作员" align="center" prop="createBy" :show-overflow-tooltip="true" width="100"/>
<!-- <el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="handleView(scope.row)"
>详情</el-button>
</template>
</el-table-column> -->
</el-table> </el-table>
<pagination <pagination
@ -119,7 +109,7 @@
<script> <script>
import { deptTreeSelect } from '@/api/system/user' import { deptTreeSelect } from '@/api/system/user'
import { reportTradFlowListApi } from "@/api/reportCenter/index"; import { reportTradFlowListApi,getHealthInfoPageApi } from "@/api/reportCenter/index";
export default {// export default {//
name: "", name: "",
dicts: ['sys_user_type'], dicts: ['sys_user_type'],
@ -228,14 +218,24 @@
...this.queryParams, ...this.queryParams,
"pageNum": this.queryParams.pageNum, "pageNum": this.queryParams.pageNum,
"pageSize": this.queryParams.pageSize, "pageSize": this.queryParams.pageSize,
"deptIdList":this.queryParams.deptIdList,
"searchValue":this.queryParams.searchValue,
"startDateTime":this.formatDate(this.dateRange[0]), "startDateTime":this.formatDate(this.dateRange[0]),
"endDateTime":this.formatDate(this.dateRange[1]) "endDateTime":this.formatDate(this.dateRange[1])
} }
console.log("param",param);
reportTradFlowListApi(param).then(response => { reportTradFlowListApi(param).then(response => {
this.tableListData = response.rows; this.tableListData = response.rows;
console.log("this.tableListData",this.tableListData);
this.total = Number(response.total); this.total = Number(response.total);
this.loading = false; this.loading = false;
}); });
// reportTradFlowListApi(param).then(response => {
// console.log("response.rows",response.rows);
// this.tableListData = response.rows;
// this.total = Number(response.total);
// this.loading = false;
// });
}, },
defaultDateRange() { defaultDateRange() {
const end = new Date(new Date().toLocaleDateString()); const end = new Date(new Date().toLocaleDateString());
@ -281,4 +281,3 @@
justify-content: center; justify-content: center;
} }
</style> </style>