fix(团队收入): 更新月份收入的展示字段
This commit is contained in:
parent
403f3068fc
commit
d4625cde65
@ -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(),
|
||||
}))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user