From d4625cde655ccb31261f7160cfe212298983092a Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 10 Nov 2025 17:55:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=A2=E9=98=9F=E6=94=B6=E5=85=A5):=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9C=88=E4=BB=BD=E6=94=B6=E5=85=A5=E7=9A=84?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/TeamBillView.vue | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/views/TeamBillView.vue b/src/views/TeamBillView.vue index 14327a8..df5c4f1 100644 --- a/src/views/TeamBillView.vue +++ b/src/views/TeamBillView.vue @@ -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(), }))