1. fix
This commit is contained in:
2026-05-08 14:51:02 +08:00
parent e69006d9eb
commit bf46f05bf8
4 changed files with 814 additions and 585 deletions

View File

@@ -104,6 +104,13 @@ export function getUserPerformance(userId) {
}) })
} }
export function getDailySummaryList(userId) {
return request({
url: '/market-info/daily-summary-list',
method: 'get',
params: {
userId
}
})
}

View File

@@ -2,13 +2,19 @@ export default {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 30,
tip: false, tip: false,
align: 'center',
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,
border: true, border: true,
index: true, index: true,
viewBtn: true, menu: false,
selection: true, addBtn: false,
viewBtn: false,
editBtn: false,
refreshBtn: false,
selection: false,
dialogClickModal: false, dialogClickModal: false,
stripe: true,
column: [ column: [
{ {
label: "主键", label: "主键",
@@ -23,141 +29,307 @@ export default {
label: "用户ID", label: "用户ID",
prop: "userId", prop: "userId",
type: "input", type: "input",
hide: true,
}, },
{ {
label: "用户账号", label: "账号",
prop: "userAccount", prop: "userAccount",
type: "input", type: "input",
overHidden: true,
hide: true,
}, },
{ {
label: "用户姓名", label: "姓名",
prop: "userName", prop: "userName",
type: "input", type: "input",
hide: true,
overHidden: true,
}, },
{ {
label: "统计日期,如 '2026-04-29'", label: "日期",
prop: "statDate", prop: "statDate",
type: "date",
overHidden: true,
fixed: true,
},
{
label: "人员相关",
children: [
{
label: "个人",
children: [
{
label: "直推",
prop: "personalTotalInviteCount",
type: "input", type: "input",
}, },
{ {
label: "直推人数(累计)", label: "新增",
prop: "directReferralCount", prop: "personalIncreaseInviteCount",
type: "input",
},
],
},
{
label: '团队',
children: [
{
label: "总人数",
prop: "teamMemberCount",
type: "input", type: "input",
}, },
{ {
label: "当日新增直推人数", label: "新增",
prop: "newDirectReferralCount", prop: "teamIncreaseCount",
type: "input",
},
],
},
],
},
{
label: "福利值、包",
children: [
{
label: '个人',
children: [
{
label: "总值",
prop: "personalTotalBenefitsValue",
type: "input", type: "input",
}, },
{ {
label: "团队人数(累计)", label: "有效值",
prop: "teamTotalCount", prop: "personalBenefitsPackageRemainValue",
},
{
label: "新增",
prop: "personalIncreaseBenefitsValue",
type: "input", type: "input",
}, },
{ {
label: "当日新增团队人数", label: "新增有效",
prop: "newTeamCount", prop: "personalIncreaseCurrentBenefitsValue",
type: "input",
hide: true,
},
{
label: "明细",
prop: "personalIncreaseBenefitsPackageDetail",
type: "input",
hide: true,
},
{
label: "加速值",
prop: "personalBenefitsPackageSpeedUpValue",
type: "input",
hide: true,
},
{
label: "剩余",
prop: "personalBenefitsPackageRemainValue",
type: "input", type: "input",
}, },
{ {
label: "总福利值", label: "持包人数",
prop: "totalBenefitsValue", prop: "personalInviteBenefitsPackageHolderCount",
type: "input",
hide: true,
},
{
label: "直推新增明细",
prop: "personalInviteIncreaseBenefitsPackageDetail",
type: "input",
hide: true,
},
{
label: "等级",
prop: "personalBenefitsLevel",
type: "input",
},
]
},
{
label: '团队',
children: [
{
label: "总值",
prop: "teamTotalBenefitsValue",
type: "input", type: "input",
}, },
{ {
label: "当日新增福利值", label: "有效值",
prop: "increaseBenefitsValue", prop: "teamCurrentBenefitsValue",
type: "input", type: "input",
}, },
{ {
label: "当日持有福利包的直推人数", label: "新增",
prop: "directWithBenefitPackageCount", prop: "teamIncreaseBenefitsValue",
type: "input", type: "input",
}, },
{ {
label: "当日直推人新增的福利包明细(数组)", label: "持包人数",
prop: "directNewBenefitPackages", prop: "teamBenefitsPackageHolderCount",
type: "input",
hide: true,
},
{
label: "新增明细",
prop: "teamIncreaseBenefitsPackageDetail",
type: "input",
hide: true,
},
],
},
],
},
{
label: "消费业绩",
children: [
{
label: '个人',
children: [
{
label: "总金额",
prop: "personalTotalAmount",
type: "input", type: "input",
}, },
{ {
label: "直推人福利包面值总和", label: "线上",
prop: "directBenefitPackageFaceTotal", prop: "personalOnlineAmount",
type: "input", type: "input",
}, },
{ {
label: "直推人福利包可提供加速的值(排除后台划拨)", label: "线下",
prop: "directAcceleratedValue", prop: "personalOfflineAmount",
type: "input",
hide: true,
},
{
label: "其他",
prop: "personalOtherAmount",
type: "input",
hide: true,
},
{
label: "新增",
prop: "personalIncreaseAmount",
type: "input", type: "input",
}, },
{ {
label: "当日福利积分系统等级", label: "新增线上",
prop: "benefitLevel", prop: "personalIncreaseOnlineAmount",
type: "input", type: "input",
}, },
{ {
label: "当日现金下单的直推人数", label: "新增线下",
prop: "cashOrderDirectCount", prop: "personalIncreaseOfflineAmount",
type: "input",
hide: true,
},
{
label: "新增其他",
prop: "personalIncreaseOtherAmount",
type: "input",
hide: true,
},
{
label: "等级",
prop: "personalCashLevel",
type: "input", type: "input",
}, },
{ {
label: "当日直推人现金下单金额", label: "明细",
prop: "cashOrderDirectAmount", prop: "personalIncreaseOrderDetail",
type: "input",
hide: true,
},
{
label: "佣金金额",
prop: "personalDynamicRewardsAmount",
type: "input",
hide: true,
},
],
},
{
label: '团队',
children: [
{
label: "总金额",
prop: "teamTotalAmount",
type: "input", type: "input",
}, },
{ {
label: "直推人可提供的现金分红金额(排除线下支付)", label: "线上",
prop: "cashDividendEligibleDirect", prop: "teamOnlineAmount",
type: "input", type: "input",
}, },
{ {
label: "当日佣金分红系统等级", label: "线下",
prop: "commissionLevel", prop: "teamOfflineAmount",
type: "input", type: "input",
}, },
{ {
label: "当日自己新增福利包(明细数组)", label: "其他",
prop: "selfNewBenefitPackages", prop: "teamOtherAmount",
type: "input",
hide: true,
},
{
label: "新增",
prop: "teamIncreaseAmount",
type: "input", type: "input",
}, },
{ {
label: "当日自己新增福利包面值", label: "新增线上",
prop: "selfNewBenefitFaceValue", prop: "teamIncreaseOnlineAmount",
type: "input", type: "input",
}, },
{ {
label: "自己新增福利包可提供加速的值", label: "新增线下",
prop: "selfAcceleratedValue", prop: "teamIncreaseOfflineAmount",
type: "input", type: "input",
}, },
{ {
label: "福利包总剩余面值", label: "新增其他",
prop: "totalRemainingBenefitFace", prop: "teamIncreaseOtherAmount",
type: "input", type: "input",
hide: true,
},
],
},
],
}, },
{ {
label: "福利包加速了多少值(累计)", label: "福利积分",
prop: "totalAcceleratedByPackages", prop: "personalBenefitsPointsBalance",
type: "input", type: "input",
hide: true,
}, },
{ {
label: "现金分红了多少(即佣金)", label: "账户佣金",
prop: "cashCommissionPaid", prop: "personalCommissionBalance",
type: "input", type: "input",
hide: true,
}, },
{ {
label: "当日现金消费金额(排除线下支付)", label: "现金券",
prop: "selfCashConsumptionAmount", prop: "personalCashCouponBalance",
type: "input", type: "input",
hide: true,
}, },
{ {
label: "自己可提供分红的金额(排除线下支付)", label: "用户积分",
prop: "selfCashDividendEligible", prop: "personalUserPointsBalance",
type: "input", type: "input",
hide: true,
}, },
{ {
label: "备注", label: "备注",
prop: "remark", prop: "remark",
type: "input", type: "input",
hide: true,
}, },
{ {
label: "创建人", label: "创建人",

View File

@@ -12,6 +12,7 @@ export default {
delBtn: false, delBtn: false,
selection: true, selection: true,
dialogClickModal: false, dialogClickModal: false,
stripe: true,
column: [ column: [
{ {
label: "主键", label: "主键",

View File

@@ -54,11 +54,17 @@
@click.stop="userPerformanceOpen(row)">查询业绩 @click.stop="userPerformanceOpen(row)">查询业绩
</el-button> </el-button>
<el-button type="text"
icon="el-icon-document"
@click.stop="handleDailySummaryData(row)">数据统计
</el-button>
</template> </template>
</avue-crud> </avue-crud>
<el-drawer :title="`账户 [${userAccount}] 福利包明细`" v-model="benefitPackBox" :direction="direction" append-to-body <el-drawer :title="`账户 [${userAccount}] 福利包明细`" v-model="benefitPackBox" :direction="direction"
append-to-body
size="800px" @close="benefitPackClose"> size="800px" @close="benefitPackClose">
<basic-container> <basic-container>
<avue-crud :option="benefitPackOption" <avue-crud :option="benefitPackOption"
@@ -69,7 +75,8 @@
</basic-container> </basic-container>
</el-drawer> </el-drawer>
<el-drawer :title="`账户 [${userAccount}] 积分信息`" v-model="userPointInfoBox" :direction="direction" append-to-body <el-drawer :title="`账户 [${userAccount}] 积分信息`" v-model="userPointInfoBox" :direction="direction"
append-to-body
size="800px" @close="userPointInfoClose"> size="800px" @close="userPointInfoClose">
<basic-container> <basic-container>
<avue-crud :option="userPointInfoOption" <avue-crud :option="userPointInfoOption"
@@ -81,7 +88,8 @@
</el-drawer> </el-drawer>
<el-drawer :title="`账户 [${userAccount}] 累计消费`" v-model="userMallSpendBox" :direction="direction" append-to-body <el-drawer :title="`账户 [${userAccount}] 累计消费`" v-model="userMallSpendBox" :direction="direction"
append-to-body
size="800px" @close="userMallSpendClose"> size="800px" @close="userMallSpendClose">
<basic-container> <basic-container>
<avue-crud :option="userMallSpendOption" <avue-crud :option="userMallSpendOption"
@@ -92,7 +100,8 @@
</basic-container> </basic-container>
</el-drawer> </el-drawer>
<el-drawer :title="`账户 [${userAccount}] 业绩查询`" v-model="userPerformanceBox" :direction="direction" append-to-body <el-drawer :title="`账户 [${userAccount}] 业绩查询`" v-model="userPerformanceBox" :direction="direction"
append-to-body
size="800px" @close="userPerformanceClose"> size="800px" @close="userPerformanceClose">
<basic-container> <basic-container>
<avue-crud :option="userPerformanceOption" <avue-crud :option="userPerformanceOption"
@@ -103,7 +112,17 @@
</basic-container> </basic-container>
</el-drawer> </el-drawer>
<el-drawer :title="`账户 [${userAccount}] 统计数据`" v-model="dailySummaryBox" :direction="direction"
append-to-body
size="100%"
:before-close="handleDailySummaryClose">
<basic-container>
<avue-crud :option="optionSummary"
:data="dailySummaryData"
ref="crudSub">
</avue-crud>
</basic-container>
</el-drawer>
<!-- <el-drawer :title="`${username} ${serialNumber} `" v-model="subVisible" :direction="direction"--> <!-- <el-drawer :title="`${username} ${serialNumber} `" v-model="subVisible" :direction="direction"-->
@@ -152,8 +171,21 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove, resetPassword , benefitPackCountByUser , getUserPointInfo , getUserMallSpend , getUserPerformance} from "@/api/market/marketInfo"; import {
add,
benefitPackCountByUser,
getDailySummaryList,
getDetail,
getList,
getUserMallSpend,
getUserPerformance,
getUserPointInfo,
remove,
resetPassword,
update
} from "@/api/market/marketInfo";
import option from "@/option/market/marketInfo"; import option from "@/option/market/marketInfo";
import optionSummary from "@/option/market/dailySummary";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common"; import {exportBlob} from "@/api/common";
import {getToken} from '@/utils/auth'; import {getToken} from '@/utils/auth';
@@ -166,6 +198,7 @@
data() { data() {
return { return {
form: {}, form: {},
formSummary:{},
query: {}, query: {},
search: {}, search: {},
loading: true, loading: true,
@@ -285,6 +318,11 @@
}, },
userPerformanceData: [], userPerformanceData: [],
dailySummaryBox: false,
dailySummaryData: [],
optionSummary: optionSummary,
}; };
}, },
computed: { computed: {
@@ -373,10 +411,8 @@
}, },
handleExport() { handleExport() {
let downloadUrl = `/blade-marketinfo/marketInfo/export-marketInfo?${this.website.tokenHeader}=${getToken()}`; let downloadUrl = `/blade-marketinfo/marketInfo/export-marketInfo?${this.website.tokenHeader}=${getToken()}`;
const { const {} = this.query;
} = this.query; let values = {};
let values = {
};
this.$confirm("是否导出数据?", "提示", { this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@@ -511,6 +547,19 @@
this.userPerformanceData = []; this.userPerformanceData = [];
}, },
handleDailySummaryData(row) {
this.dailySummaryBox = true;
this.userAccount = row.account;
getDailySummaryList(row.id)
.then(res => {
this.dailySummaryData = res.data.data;
})
},
handleDailySummaryClose(hide) {
hide();
},
} }
}; };
</script> </script>