3
0
Fork 0

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
console.log('DEV_SERVER')
config.baseURL = '/prod-api';
config.baseURL = 'http://localhost:8080';
//#endif
//#ifdef QA_SERVER

View File

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