feat(BD、BDLeader): 获取数据调整

This commit is contained in:
hzj 2025-11-24 19:55:57 +08:00
parent 5c3d477c6d
commit 40a0e08f9c
2 changed files with 26 additions and 2 deletions

View File

@ -557,6 +557,10 @@ const apiGetBdMemberBillList = async () => {
const res = await getBdMemberBillList('BD')
if (res.status && res.body) {
BDData.value = res.body || {}
// BDSalary.value
if (BDSalary.value.incomeDetails) {
BDSalary.value.incomeDetails.unshift(BDData.value.bdHistoryCO)
}
}
}
@ -565,6 +569,10 @@ const apiGetBdHistory = async () => {
const res = await getBdHistory()
if (res.status && res.body) {
BDSalary.value = res.body || {}
// BDData.value
if (BDData.value.bdHistoryCO) {
BDSalary.value.incomeDetails.unshift(BDData.value.bdHistoryCO)
}
}
}

View File

@ -868,14 +868,22 @@ const apiGetBdMemberBillList = async () => {
const res = await getBdMemberBillList('BD')
if (res.status && res.body) {
BDData.value = res.body || {}
// BDSalary.value
if (BDSalary.value.incomeDetails) {
BDSalary.value.incomeDetails.unshift(BDData.value.bdHistoryCO)
}
}
}
// BD
// BDLeader
const apiGetBdLeaderMemberBillList = async () => {
const res = await getBdMemberBillList('BDLEADER')
if (res.status && res.body) {
BDLeaderData.value = res.body || {}
// BDLeaderSalary.value
if (BDLeaderSalary.value.incomeDetails) {
BDLeaderSalary.value.incomeDetails.unshift(BDLeaderData.value.bdHistoryCO)
}
}
}
@ -884,14 +892,22 @@ const apiGetBdHistory = async () => {
const res = await getBdHistory()
if (res.status && res.body) {
BDSalary.value = res.body || {}
// BDData.value
if (BDData.value.bdHistoryCO) {
BDSalary.value.incomeDetails.unshift(BDData.value.bdHistoryCO)
}
}
}
// BD
// BDLeader
const apiGetBdLeaderHistory = async () => {
const res = await getBdLeaderHistory()
if (res.status && res.body) {
BDLeaderSalary.value = res.body || {}
// BDLeaderData.value
if (BDLeaderData.value.bdHistoryCO) {
BDLeaderSalary.value.incomeDetails.unshift(BDLeaderData.value.bdHistoryCO)
}
}
}