fix(团队收入): 更新月份收入的展示字段
This commit is contained in:
parent
403f3068fc
commit
d4625cde65
@ -204,26 +204,17 @@ const fetchTeamBill = async (teamId) => {
|
|||||||
const response = await getTeamBill(teamId)
|
const response = await getTeamBill(teamId)
|
||||||
|
|
||||||
if (response.status && response.body) {
|
if (response.status && response.body) {
|
||||||
const userIdentity = await getUserIdentity()
|
|
||||||
billList.value = response.body.map((bill) => ({
|
billList.value = response.body.map((bill) => ({
|
||||||
...bill,
|
...bill,
|
||||||
// 将时间戳转换为可读格式
|
// 将时间戳转换为可读格式
|
||||||
date: `${bill.billBelong.toString().substring(0, 4)}.${bill.billBelong
|
date: `${bill.billBelong.toString().substring(0, 4)}.${bill.billBelong
|
||||||
.toString()
|
.toString()
|
||||||
.substring(4, 6)}`,
|
.substring(4, 6)}`,
|
||||||
target: getTargetLevel(bill.target?.acceptGiftValue), // 使用政策数据计算等级
|
target: getTargetLevel(bill.acceptGiftValue), // 使用政策数据计算等级
|
||||||
status: formatStatus(bill.status),
|
status: formatStatus(bill.status),
|
||||||
salary:
|
salary: formatSalaryValue(bill.settleResult?.ownSalary || 0) || '-',
|
||||||
formatSalaryValue(
|
totalSalary: formatSalaryValue(bill.settleResult?.totalSalary) || '-',
|
||||||
userIdentity.body?.agent
|
timeDays: bill.effectiveDay || '-',
|
||||||
? (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 || '-',
|
|
||||||
createTimeFormatted: new Date(bill.createTime).toLocaleDateString(),
|
createTimeFormatted: new Date(bill.createTime).toLocaleDateString(),
|
||||||
updateTimeFormatted: new Date(bill.updateTime).toLocaleDateString(),
|
updateTimeFormatted: new Date(bill.updateTime).toLocaleDateString(),
|
||||||
}))
|
}))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user