前端BUG

This commit is contained in:
zhaohengkun 2024-09-26 14:48:34 +08:00
parent 2c40ca4134
commit 5d48b8e8e9
3 changed files with 30 additions and 17 deletions

View File

@ -1,7 +1,7 @@
import request from '@/utils/request' import request from '@/utils/request'
// 会员充值订单 // 获取会员数据
export function getFenXiUserbalanceListApi(query) { export function getFenXiUserbalanceListApi(query) {
return request({ return request({
url: '/business/userManager/userbalance/listByZt', url: '/business/userManager/userbalance/listByZt',
@ -9,6 +9,7 @@ import request from '@/utils/request'
params: query params: query
}) })
} }
// 各种总数
export function getFenXiUserbalanceDataApi(query) { export function getFenXiUserbalanceDataApi(query) {
return request({ return request({
url: '/business/userManager/userbalance/getUser', url: '/business/userManager/userbalance/getUser',

View File

@ -27,27 +27,28 @@
<div class="title_">{{orderStatistics.sumnum || 0}}</div> <div class="title_">{{orderStatistics.sumnum || 0}}</div>
</div> </div>
<div class="k_" id="k_2"> <div class="k_" id="k_2">
<div class="size_">累计充值金额</div> <div class="size_">累计充值金额</div>
<div class="title_">{{orderStatistics.tongjMoney || 0}}</div> <div class="title_">{{orderStatistics.tongjMoney || 0}}</div>
</div> </div>
<div class="k_" id="k_3"> <div class="k_" id="k_3">
<div class="size_">会员总消费</div> <div class="size_">会员总消费</div>
<div class="title_">{{orderStatistics.tongjXfMoney || 0}}</div> <div class="title_">{{orderStatistics.tongjXfMoney || 0}}</div>
</div> </div>
<div class="k_" id="k_4"> <!-- <div class="k_" id="k_4">-->
<div class="size_">会员总余额万元</div> <!--&lt;!&ndash; 会员总余额=储值卡余额+囤油卡余额+车队卡余额 &ndash;&gt;-->
<div class="title_">--</div> <!-- <div class="size_">会员总余额</div>-->
</div> <!-- <div class="title_">&#45;&#45;</div>-->
<div class="k_" id="k_5"> <!-- </div>-->
<div class="size_">累计囤油卡余额万元</div> <!-- <div class="k_" id="k_5">-->
<div class="title_">--</div> <!-- <div class="size_">累计囤油卡余额</div>-->
</div> <!-- <div class="title_">&#45;&#45;</div>-->
<!-- </div>-->
<div class="k_" id="k_6"> <div class="k_" id="k_6">
<div class="size_">累计礼品卡余额</div> <div class="size_">累计礼品卡余额</div>
<div class="title_">--</div> <div class="title_">{{orderStatistics.cardGift || 0}}</div>
</div> </div>
<div class="k_" id="k_7"> <div class="k_" id="k_7">
<div class="size_">累计储值卡余额 </div> <div class="size_">储值卡余额 </div>
<div class="title_">{{orderStatistics.balanceSum || 0}}</div> <div class="title_">{{orderStatistics.balanceSum || 0}}</div>
</div> </div>
</div> </div>
@ -64,16 +65,21 @@
<el-table-column prop="physicalCard" align="center" label="会员卡号"></el-table-column> <el-table-column prop="physicalCard" align="center" label="会员卡号"></el-table-column>
<el-table-column prop="storeName" align="center" label="所属机构"> </el-table-column> <el-table-column prop="storeName" align="center" label="所属机构"> </el-table-column>
<el-table-column prop="gradeName" align="center" label="会员等级" > </el-table-column> <el-table-column prop="gradeName" align="center" label="会员等级" > </el-table-column>
<el-table-column prop="consumeNum" align="center" label="累计充值金额(元)" > </el-table-column> <el-table-column prop="amount" align="center" label="累计充值金额(元)" > </el-table-column>
<el-table-column prop="amount" align="center" label="累计充值次数" > </el-table-column> <el-table-column prop="countNum" align="center" label="累计充值次数" > </el-table-column>
<el-table-column prop="leijiMoney" align="center" label="累计消费金额(元)" > </el-table-column> <el-table-column prop="leijiMoney" align="center" label="累计消费金额(元)" > </el-table-column>
<el-table-column prop="leijiNum" align="center" label="累计消费笔数" > </el-table-column> <el-table-column prop="leijiNum" align="center" label="累计消费笔数" > </el-table-column>
<!-- <el-table-column prop="createTime" align="center" label="囤油卡余额" > </el-table-column>--> <!-- <el-table-column prop="createTime" align="center" label="囤油卡余额" > </el-table-column>-->
<!-- <el-table-column prop="createTime" align="center" label="电子礼品卡余额" > </el-table-column>--> <!-- <el-table-column prop="createTime" align="center" label="电子礼品卡余额" > </el-table-column>-->
<el-table-column prop="cardBalance" align="center" label="储值卡余额" > </el-table-column> <el-table-column prop="cardBalance" align="center" label="储值卡余额" >
<template v-slot="scope">
{{ formatBalance(scope.row.cardBalance) }}
</template>
</el-table-column>
<!-- <el-table-column prop="createTime" align="center" label="累计余额" > </el-table-column>--> <!-- <el-table-column prop="createTime" align="center" label="累计余额" > </el-table-column>-->
<el-table-column prop="leijiMoneyRef" align="center" label="累计退款金额" > </el-table-column> <el-table-column prop="leijiMoneyRef" align="center" label="累计退款金额" > </el-table-column>
<el-table-column prop="leijiNum" align="center" label="累计退款笔数" > </el-table-column> <el-table-column prop="leijiNumRef" align="center" label="累计退款笔数" > </el-table-column>
</el-table> </el-table>
</div> </div>
@ -157,6 +163,10 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
}, },
methods:{ methods:{
formatBalance(balance) {
// 使 toFixed
return parseFloat(balance).toFixed(2);
},
getDeptList() { getDeptList() {
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then( response => { getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then( response => {
this.deptList = response.data.records; this.deptList = response.data.records;

View File

@ -200,6 +200,8 @@ export default {
bannerName:'', bannerName:'',
systemPosition:'', systemPosition:'',
bannerStatus:'', bannerStatus:'',
//
systemName:1,
}, },
// //