feat(代理中心): 调整历史收入的计算方式,跳过还未结算的当月记录

This commit is contained in:
hzj 2025-12-23 14:34:40 +08:00
parent 1d5ee3996d
commit 68072cf81e

View File

@ -456,9 +456,11 @@ const fetchMemberWorkData = async () => {
const userIdentity = await getUserIdentity()
// -
const totalAmount = targets.reduce((sum, target) => {
const totalAmount = targets.reduce((sum, target, index) => {
let salary = 0
//
if (index > 0) {
// 使
if (userIdentity.body?.agent) {
// agent true 使 ownSalary
@ -472,6 +474,10 @@ const fetchMemberWorkData = async () => {
}
return sum + salary
} else {
// sum
return sum
}
}, 0)
totalSalary.value = totalAmount.toFixed(2)