fix(团队收入): 更新月份收入的展示字段

This commit is contained in:
hzj 2025-11-10 17:55:19 +08:00
parent 403f3068fc
commit d4625cde65

View File

@ -204,26 +204,17 @@ const fetchTeamBill = async (teamId) => {
const response = await getTeamBill(teamId)
if (response.status && response.body) {
const userIdentity = await getUserIdentity()
billList.value = response.body.map((bill) => ({
...bill,
//
date: `${bill.billBelong.toString().substring(0, 4)}.${bill.billBelong
.toString()
.substring(4, 6)}`,
target: getTargetLevel(bill.target?.acceptGiftValue), // 使
target: getTargetLevel(bill.acceptGiftValue), // 使
status: formatStatus(bill.status),
salary:
formatSalaryValue(
userIdentity.body?.agent
? (bill.target?.settlementResult?.ownSalary || 0) +
(bill.target?.settlementResult?.memberSalary || 0)
: userIdentity.body?.anchor
? bill.target?.settlementResult?.memberSalary
: null
) || '-',
totalSalary: formatSalaryValue(bill.target?.settlementResult?.totalSalary) || '-',
timeDays: bill.target?.effectiveDay || '-',
salary: formatSalaryValue(bill.settleResult?.ownSalary || 0) || '-',
totalSalary: formatSalaryValue(bill.settleResult?.totalSalary) || '-',
timeDays: bill.effectiveDay || '-',
createTimeFormatted: new Date(bill.createTime).toLocaleDateString(),
updateTimeFormatted: new Date(bill.updateTime).toLocaleDateString(),
}))