feat(bonus): 奖金明细页面添加本月实发合计

This commit is contained in:
woody 2025-05-20 10:27:43 +08:00
parent 3b457b4eb3
commit 9f34a5cc9f
2 changed files with 8 additions and 3 deletions

View File

@ -13,7 +13,7 @@ module.exports = (vm) => {
//#ifdef DEV_SERVER //#ifdef DEV_SERVER
console.log('DEV_SERVER') console.log('DEV_SERVER')
config.baseURL = '/prod-api'; config.baseURL = 'http://localhost:8080';
//#endif //#endif
//#ifdef QA_SERVER //#ifdef QA_SERVER

View File

@ -9,6 +9,7 @@
</view> </view>
</scroll-view> </scroll-view>
<view class="sum-val"> <view class="sum-val">
<view v-if="monthIncomeTotal" style="margin-right: 20rpx;">本月实发合计: <span>{{monthIncomeTotal | toThousandthAndKeepDecimal}}</span></view>
昨日实发合计: <span>{{toSum | toThousandthAndKeepDecimal}}</span> 昨日实发合计: <span>{{toSum | toThousandthAndKeepDecimal}}</span>
</view> </view>
<template> <template>
@ -93,7 +94,8 @@
page: { page: {
pageSize: 50, pageSize: 50,
pageNum: 1, pageNum: 1,
} },
monthIncomeTotal: 0,
} }
}, },
components: { components: {
@ -112,7 +114,9 @@
methods: { methods: {
getSum() { getSum() {
api1.queryBonusTotal({}).then((res) => { api1.queryBonusTotal({}).then((res) => {
console.log(res, '....res====aa')
this.toSum = res.rows[0].realIncomeTotal this.toSum = res.rows[0].realIncomeTotal
this.monthIncomeTotal = res.rows[0].monthIncomeTotal
}) })
}, },
bindPickerChange(e) { bindPickerChange(e) {
@ -153,7 +157,8 @@
text-align: right; text-align: right;
margin-top: 10rpx; margin-top: 10rpx;
padding-right: 20rpx; padding-right: 20rpx;
display: flex;
justify-content: flex-end;
span { span {
font-size: 34rpx; font-size: 34rpx;
font-weight: bold; font-weight: bold;