update:
1. fix
This commit is contained in:
@@ -104,6 +104,13 @@ export function getUserPerformance(userId) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function getDailySummaryList(userId) {
|
||||
return request({
|
||||
url: '/market-info/daily-summary-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
userId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -2,13 +2,19 @@ export default {
|
||||
height: 'auto',
|
||||
calcHeight: 30,
|
||||
tip: false,
|
||||
align: 'center',
|
||||
searchShow: true,
|
||||
searchMenuSpan: 6,
|
||||
border: true,
|
||||
index: true,
|
||||
viewBtn: true,
|
||||
selection: true,
|
||||
menu: false,
|
||||
addBtn: false,
|
||||
viewBtn: false,
|
||||
editBtn: false,
|
||||
refreshBtn: false,
|
||||
selection: false,
|
||||
dialogClickModal: false,
|
||||
stripe: true,
|
||||
column: [
|
||||
{
|
||||
label: "主键",
|
||||
@@ -23,141 +29,307 @@ export default {
|
||||
label: "用户ID",
|
||||
prop: "userId",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "用户账号",
|
||||
label: "账号",
|
||||
prop: "userAccount",
|
||||
type: "input",
|
||||
overHidden: true,
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "用户姓名",
|
||||
label: "姓名",
|
||||
prop: "userName",
|
||||
type: "input",
|
||||
hide: true,
|
||||
overHidden: true,
|
||||
},
|
||||
{
|
||||
label: "统计日期,如 '2026-04-29'",
|
||||
label: "日期",
|
||||
prop: "statDate",
|
||||
type: "date",
|
||||
overHidden: true,
|
||||
fixed: true,
|
||||
},
|
||||
{
|
||||
label: "人员相关",
|
||||
children: [
|
||||
{
|
||||
label: "个人",
|
||||
children: [
|
||||
{
|
||||
label: "直推",
|
||||
prop: "personalTotalInviteCount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "直推人数(累计)",
|
||||
prop: "directReferralCount",
|
||||
label: "新增",
|
||||
prop: "personalIncreaseInviteCount",
|
||||
type: "input",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '团队',
|
||||
children: [
|
||||
{
|
||||
label: "总人数",
|
||||
prop: "teamMemberCount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日新增直推人数",
|
||||
prop: "newDirectReferralCount",
|
||||
label: "新增",
|
||||
prop: "teamIncreaseCount",
|
||||
type: "input",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "福利值、包",
|
||||
children: [
|
||||
{
|
||||
label: '个人',
|
||||
children: [
|
||||
{
|
||||
label: "总值",
|
||||
prop: "personalTotalBenefitsValue",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "团队人数(累计)",
|
||||
prop: "teamTotalCount",
|
||||
label: "有效值",
|
||||
prop: "personalBenefitsPackageRemainValue",
|
||||
},
|
||||
{
|
||||
label: "新增",
|
||||
prop: "personalIncreaseBenefitsValue",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日新增团队人数",
|
||||
prop: "newTeamCount",
|
||||
label: "新增有效",
|
||||
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",
|
||||
},
|
||||
{
|
||||
label: "总福利值",
|
||||
prop: "totalBenefitsValue",
|
||||
label: "持包人数",
|
||||
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",
|
||||
},
|
||||
{
|
||||
label: "当日新增福利值",
|
||||
prop: "increaseBenefitsValue",
|
||||
label: "有效值",
|
||||
prop: "teamCurrentBenefitsValue",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日持有福利包的直推人数",
|
||||
prop: "directWithBenefitPackageCount",
|
||||
label: "新增",
|
||||
prop: "teamIncreaseBenefitsValue",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日直推人新增的福利包明细(数组)",
|
||||
prop: "directNewBenefitPackages",
|
||||
label: "持包人数",
|
||||
prop: "teamBenefitsPackageHolderCount",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "新增明细",
|
||||
prop: "teamIncreaseBenefitsPackageDetail",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "消费业绩",
|
||||
children: [
|
||||
{
|
||||
label: '个人',
|
||||
children: [
|
||||
{
|
||||
label: "总金额",
|
||||
prop: "personalTotalAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "直推人福利包面值总和",
|
||||
prop: "directBenefitPackageFaceTotal",
|
||||
label: "线上",
|
||||
prop: "personalOnlineAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "直推人福利包可提供加速的值(排除后台划拨)",
|
||||
prop: "directAcceleratedValue",
|
||||
label: "线下",
|
||||
prop: "personalOfflineAmount",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "其他",
|
||||
prop: "personalOtherAmount",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "新增",
|
||||
prop: "personalIncreaseAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日福利积分系统等级",
|
||||
prop: "benefitLevel",
|
||||
label: "新增线上",
|
||||
prop: "personalIncreaseOnlineAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日现金下单的直推人数",
|
||||
prop: "cashOrderDirectCount",
|
||||
label: "新增线下",
|
||||
prop: "personalIncreaseOfflineAmount",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "新增其他",
|
||||
prop: "personalIncreaseOtherAmount",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "等级",
|
||||
prop: "personalCashLevel",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日直推人现金下单金额",
|
||||
prop: "cashOrderDirectAmount",
|
||||
label: "明细",
|
||||
prop: "personalIncreaseOrderDetail",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "佣金金额",
|
||||
prop: "personalDynamicRewardsAmount",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '团队',
|
||||
children: [
|
||||
{
|
||||
label: "总金额",
|
||||
prop: "teamTotalAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "直推人可提供的现金分红金额(排除线下支付)",
|
||||
prop: "cashDividendEligibleDirect",
|
||||
label: "线上",
|
||||
prop: "teamOnlineAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日佣金分红系统等级",
|
||||
prop: "commissionLevel",
|
||||
label: "线下",
|
||||
prop: "teamOfflineAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日自己新增福利包(明细数组)",
|
||||
prop: "selfNewBenefitPackages",
|
||||
label: "其他",
|
||||
prop: "teamOtherAmount",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "新增",
|
||||
prop: "teamIncreaseAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "当日自己新增福利包面值",
|
||||
prop: "selfNewBenefitFaceValue",
|
||||
label: "新增线上",
|
||||
prop: "teamIncreaseOnlineAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "自己新增福利包可提供加速的值",
|
||||
prop: "selfAcceleratedValue",
|
||||
label: "新增线下",
|
||||
prop: "teamIncreaseOfflineAmount",
|
||||
type: "input",
|
||||
},
|
||||
{
|
||||
label: "福利包总剩余面值",
|
||||
prop: "totalRemainingBenefitFace",
|
||||
label: "新增其他",
|
||||
prop: "teamIncreaseOtherAmount",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "福利包加速了多少值(累计)",
|
||||
prop: "totalAcceleratedByPackages",
|
||||
label: "福利积分",
|
||||
prop: "personalBenefitsPointsBalance",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "现金分红了多少(即佣金)",
|
||||
prop: "cashCommissionPaid",
|
||||
label: "账户佣金",
|
||||
prop: "personalCommissionBalance",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "当日现金消费金额(排除线下支付)",
|
||||
prop: "selfCashConsumptionAmount",
|
||||
label: "现金券",
|
||||
prop: "personalCashCouponBalance",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "自己可提供分红的金额(排除线下支付)",
|
||||
prop: "selfCashDividendEligible",
|
||||
label: "用户积分",
|
||||
prop: "personalUserPointsBalance",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "备注",
|
||||
prop: "remark",
|
||||
type: "input",
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
label: "创建人",
|
||||
|
||||
@@ -12,6 +12,7 @@ export default {
|
||||
delBtn: false,
|
||||
selection: true,
|
||||
dialogClickModal: false,
|
||||
stripe: true,
|
||||
column: [
|
||||
{
|
||||
label: "主键",
|
||||
|
||||
@@ -54,11 +54,17 @@
|
||||
@click.stop="userPerformanceOpen(row)">查询业绩
|
||||
</el-button>
|
||||
|
||||
<el-button type="text"
|
||||
icon="el-icon-document"
|
||||
@click.stop="handleDailySummaryData(row)">数据统计
|
||||
</el-button>
|
||||
|
||||
</template>
|
||||
|
||||
</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">
|
||||
<basic-container>
|
||||
<avue-crud :option="benefitPackOption"
|
||||
@@ -69,7 +75,8 @@
|
||||
</basic-container>
|
||||
</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">
|
||||
<basic-container>
|
||||
<avue-crud :option="userPointInfoOption"
|
||||
@@ -81,7 +88,8 @@
|
||||
</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">
|
||||
<basic-container>
|
||||
<avue-crud :option="userMallSpendOption"
|
||||
@@ -92,7 +100,8 @@
|
||||
</basic-container>
|
||||
</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">
|
||||
<basic-container>
|
||||
<avue-crud :option="userPerformanceOption"
|
||||
@@ -103,7 +112,17 @@
|
||||
</basic-container>
|
||||
</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"-->
|
||||
@@ -152,8 +171,21 @@
|
||||
</template>
|
||||
|
||||
<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 optionSummary from "@/option/market/dailySummary";
|
||||
import {mapGetters} from "vuex";
|
||||
import {exportBlob} from "@/api/common";
|
||||
import {getToken} from '@/utils/auth';
|
||||
@@ -166,6 +198,7 @@
|
||||
data() {
|
||||
return {
|
||||
form: {},
|
||||
formSummary:{},
|
||||
query: {},
|
||||
search: {},
|
||||
loading: true,
|
||||
@@ -285,6 +318,11 @@
|
||||
},
|
||||
userPerformanceData: [],
|
||||
|
||||
dailySummaryBox: false,
|
||||
dailySummaryData: [],
|
||||
optionSummary: optionSummary,
|
||||
|
||||
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -373,10 +411,8 @@
|
||||
},
|
||||
handleExport() {
|
||||
let downloadUrl = `/blade-marketinfo/marketInfo/export-marketInfo?${this.website.tokenHeader}=${getToken()}`;
|
||||
const {
|
||||
} = this.query;
|
||||
let values = {
|
||||
};
|
||||
const {} = this.query;
|
||||
let values = {};
|
||||
this.$confirm("是否导出数据?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
@@ -511,6 +547,19 @@
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user