900 lines
24 KiB
Vue
900 lines
24 KiB
Vue
|
<!--
|
||
|
* @Descripttion:
|
||
|
* @version:
|
||
|
* @Author: kBank
|
||
|
* @Date: 2022-10-24 15:45:01
|
||
|
-->
|
||
|
<template>
|
||
|
<div class="page">
|
||
|
<topBar
|
||
|
v-if="topList.length > 0"
|
||
|
:topList="topList"
|
||
|
:moren="moren"
|
||
|
></topBar>
|
||
|
<div class="main">
|
||
|
<el-form
|
||
|
ref="select"
|
||
|
:model="select"
|
||
|
style="padding: 0 10px 0 0"
|
||
|
label-width="80px"
|
||
|
>
|
||
|
<el-row>
|
||
|
<!-- 一层 -->
|
||
|
<!-- <el-col :span="4">
|
||
|
<el-form-item :label="$t('MN_F_T_978')">
|
||
|
<el-select clearable
|
||
|
:placeholder="$t('CK_KS_38')"
|
||
|
v-model="select.websiteType">
|
||
|
<el-option v-for="item in acList"
|
||
|
:key="item.value"
|
||
|
:label="item.label"
|
||
|
:value="item.value"></el-option>
|
||
|
</el-select>
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<el-col :span="4">
|
||
|
<el-form-item :label="$t('MN_F_T_949')">
|
||
|
<el-select clearable
|
||
|
:placeholder="$t('CK_KS_38')"
|
||
|
v-model="select.websiteType">
|
||
|
<el-option v-for="item in acList"
|
||
|
:key="item.value"
|
||
|
:label="item.label"
|
||
|
:value="item.value"></el-option>
|
||
|
</el-select>
|
||
|
</el-form-item>
|
||
|
</el-col> -->
|
||
|
|
||
|
<el-col :span="8">
|
||
|
<el-form-item :label="$t('w_1023')">
|
||
|
<el-date-picker
|
||
|
v-model="creationTime"
|
||
|
@change="changeTime"
|
||
|
value-format="yyyy-MM-dd"
|
||
|
type="daterange"
|
||
|
:range-separator="$t('w_0139')"
|
||
|
:start-placeholder="$t('CK_KS_4')"
|
||
|
:end-placeholder="$t('CK_KS_5')"
|
||
|
>
|
||
|
</el-date-picker>
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<el-col :span="6">
|
||
|
<el-form-item label="顶点">
|
||
|
<el-select v-model="select.pkVertex">
|
||
|
<el-option
|
||
|
v-for="item in verList"
|
||
|
:key="item.pkVertex"
|
||
|
:label="`${item.memberCode} (${item.memberName})`"
|
||
|
:value="item.pkVertex"
|
||
|
></el-option>
|
||
|
</el-select>
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<el-col :span="4" style="margin-left: 10px">
|
||
|
<el-button type="primary" @click="getDataList">
|
||
|
{{ $t("MN_T_2") }}</el-button
|
||
|
>
|
||
|
<el-button type="primary" @click="reset">
|
||
|
{{ $t("MN_T_3") }}</el-button
|
||
|
>
|
||
|
<el-button
|
||
|
type="primary"
|
||
|
v-hasButtons="['TopPerformanceTotal']"
|
||
|
@click="getNewData"
|
||
|
>
|
||
|
统计</el-button
|
||
|
>
|
||
|
</el-col>
|
||
|
</el-row>
|
||
|
<el-row> </el-row>
|
||
|
<!-- <el-row>
|
||
|
<el-col>
|
||
|
<el-form-item :label="$t('MN_F_T_829')">
|
||
|
<el-checkbox-group @change="getpkVertex"
|
||
|
v-model="select.pkVertexList">
|
||
|
<el-checkbox v-for="item in verList"
|
||
|
:key="item.value"
|
||
|
:value="item.pkId"
|
||
|
:label="item.pkId">{{ item.vertexName }}</el-checkbox>
|
||
|
</el-checkbox-group>
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
</el-row>
|
||
|
<el-row>
|
||
|
<el-col>
|
||
|
<el-form-item :label="$t('MN_F_T_122')">
|
||
|
<el-checkbox-group @change="getTeam"
|
||
|
v-model="select.pkMemberTeamList">
|
||
|
<el-checkbox v-for="item in memberList"
|
||
|
:key="item.value"
|
||
|
:value="item.pkId"
|
||
|
:label="item.pkId">{{ item.vertexName }}</el-checkbox>
|
||
|
</el-checkbox-group>
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
</el-row> -->
|
||
|
<!-- <el-row style="margin-left:10px">
|
||
|
<el-col :span="4">
|
||
|
<el-button type="primary"
|
||
|
@click="getDataList"> {{ $t('MN_T_2') }}</el-button>
|
||
|
<el-button type="primary"
|
||
|
@click="reset"> {{ $t('MN_T_3') }}</el-button>
|
||
|
</el-col>
|
||
|
</el-row> -->
|
||
|
</el-form>
|
||
|
<div class="maintop">
|
||
|
<div class="mainbtn">
|
||
|
<el-button
|
||
|
size="small"
|
||
|
@click="handleExport"
|
||
|
v-hasButtons="['TopPerformanceExport']"
|
||
|
class="thebtn2"
|
||
|
>
|
||
|
{{ $t("MN_T_8") }}</el-button
|
||
|
>
|
||
|
</div>
|
||
|
<!-- <div>
|
||
|
<el-dropdown :hide-on-click="false" placement="top">
|
||
|
<span class="el-dropdown-link kuang">
|
||
|
{{ $t('MN_F_T_950') }}<i class="el-icon-arrow-down el-icon--right"></i>
|
||
|
</span>
|
||
|
<el-dropdown-menu slot="dropdown">
|
||
|
<el-dropdown-item v-for="item in menuList"
|
||
|
:key="item.id" >
|
||
|
<el-checkbox v-model="item.checked"
|
||
|
@change="getMenu($event,item.id)">{{ item.text }}</el-checkbox></el-dropdown-item>
|
||
|
</el-dropdown-menu>
|
||
|
</el-dropdown>
|
||
|
</div> -->
|
||
|
</div>
|
||
|
<div class="maintable">
|
||
|
<!-- <div class="itemTrading"> -->
|
||
|
<el-table
|
||
|
v-loading="loading"
|
||
|
:data="tableData"
|
||
|
ref="mainTable"
|
||
|
height="700px"
|
||
|
:header-cell-style="{ background: '#EEEEEE' }"
|
||
|
:summary-method="getSummaries"
|
||
|
show-summary
|
||
|
:row-class-name="tableRowClassName"
|
||
|
@selection-change="handleSelectionChange"
|
||
|
>
|
||
|
<el-table-column type="selection" width="60"> </el-table-column>
|
||
|
<el-table-column
|
||
|
v-for="(item, index) in menuList"
|
||
|
:key="item.id"
|
||
|
align="center"
|
||
|
width="150"
|
||
|
v-if="item.id != 0"
|
||
|
:prop="item.prop"
|
||
|
:label="item.text"
|
||
|
>
|
||
|
<template slot-scope="scope">
|
||
|
<div v-if="index > 4">
|
||
|
{{ scope.row[item.prop] | numberToCurrency }}
|
||
|
</div>
|
||
|
<div v-if="index <= 4">{{ scope.row[item.prop] }}</div>
|
||
|
</template>
|
||
|
</el-table-column>
|
||
|
</el-table>
|
||
|
<!-- </div> -->
|
||
|
</div>
|
||
|
</div>
|
||
|
<pagination
|
||
|
v-show="total > 0"
|
||
|
:total="total"
|
||
|
:page.sync="queryParams.pageNum"
|
||
|
:limit.sync="queryParams.pageSize"
|
||
|
@pagination="getDataList"
|
||
|
/>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import topBar from "@/components/topBar";
|
||
|
import * as api from "@/api/settle.js";
|
||
|
import { classifyUpdate, classifySave } from "@/api/product";
|
||
|
import { getRouters } from "@/api/settle.js";
|
||
|
import { isOther, numberToCurrencyNo } from "@/utils/numberToCurrency";
|
||
|
export default {
|
||
|
name: "Bzpz",
|
||
|
components: {
|
||
|
topBar,
|
||
|
},
|
||
|
filters: {
|
||
|
isAgree(val) {
|
||
|
if (!val) {
|
||
|
return this.$t("ENU_POPUP_TYPE_1");
|
||
|
} else {
|
||
|
return this.$t("ENU_POPUP_TYPE_2");
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
loading: false,
|
||
|
typeList: [
|
||
|
{
|
||
|
value: 0,
|
||
|
label: this.$t("ENU_NOTICE_WEBSITE_TYPE_1"),
|
||
|
},
|
||
|
{
|
||
|
value: 1,
|
||
|
label: this.$t("ENU_NOTICE_WEBSITE_TYPE_2"),
|
||
|
},
|
||
|
],
|
||
|
digList: [
|
||
|
{
|
||
|
value: 0,
|
||
|
label: this.$t("ENU_POPUP_TYPE_1"),
|
||
|
},
|
||
|
{
|
||
|
value: 1,
|
||
|
label: this.$t("ENU_POPUP_TYPE_2"),
|
||
|
},
|
||
|
],
|
||
|
menuList: [
|
||
|
{
|
||
|
id: 0,
|
||
|
text: this.$t("MN_F_T_948"),
|
||
|
checked: false,
|
||
|
},
|
||
|
{
|
||
|
id: 1,
|
||
|
text: "顶点编号",
|
||
|
checked: true,
|
||
|
prop: "memberCode",
|
||
|
},
|
||
|
{
|
||
|
id: 2,
|
||
|
text: "顶点名称",
|
||
|
checked: true,
|
||
|
prop: "memberName",
|
||
|
},
|
||
|
{
|
||
|
id: 3,
|
||
|
text: this.$t("w_1023"),
|
||
|
checked: false,
|
||
|
prop: "creationTime",
|
||
|
},
|
||
|
// {
|
||
|
// id: 2,
|
||
|
// text: this.$t("MN_F_T_122"),
|
||
|
// checked: true,
|
||
|
// prop: "teamName",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 28,
|
||
|
// text: "首购PV拨比(%)",
|
||
|
// checked: true,
|
||
|
// prop: "mainBonusPvRate",
|
||
|
// total: "mainBonusPvRateSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 29,
|
||
|
// text: "复购PV拨比(%)",
|
||
|
// checked: true,
|
||
|
// prop: "repurBonusPvRate",
|
||
|
// total: "repurBonusPvRateSum",
|
||
|
// },
|
||
|
{
|
||
|
id: 4,
|
||
|
text: `${this.$t("ENU_SPECIAL_A_1")}`,
|
||
|
checked: true,
|
||
|
prop: "mainRegAmount",
|
||
|
total: "mainRegAmountSum",
|
||
|
},
|
||
|
{
|
||
|
id: 5,
|
||
|
text: `${this.$t("ENU_SPECIAL_A_2")}`,
|
||
|
checked: true,
|
||
|
prop: "mainUpAmount",
|
||
|
total: "mainUpAmountSum",
|
||
|
},
|
||
|
// {
|
||
|
// id: 5,
|
||
|
// text: `${this.$t("MN_F_T_972")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "agentRegAmount",
|
||
|
// total: "agentRegAmountSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 6,
|
||
|
// text: `${this.$t("MN_F_T_973")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "agentUpAmount",
|
||
|
// total: "agentUpAmountSum",
|
||
|
// },
|
||
|
{
|
||
|
id: 6,
|
||
|
text: `${this.$t("MN_F_T_854")}(¥)`,
|
||
|
checked: true,
|
||
|
prop: "firstPurchaseAll",
|
||
|
total: "firstPurchaseAllSum",
|
||
|
},
|
||
|
// {
|
||
|
// id: 30,
|
||
|
// text: `能量舱金额(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "energyAmountAll",
|
||
|
// total: "energyAmountAllSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 8,
|
||
|
// text: `${this.$t("N_I_131")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "introduceBonus",
|
||
|
// total: "introduceBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 9,
|
||
|
// text: `${this.$t("N_I_132")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "orgBonus",
|
||
|
// total: "orgBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 10,
|
||
|
// text: `${this.$t("N_I_133")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "leaderBonus",
|
||
|
// total: "leaderBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 11,
|
||
|
// text: `${this.$t("N_I_134")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "shareBonus",
|
||
|
// total: "shareBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 12,
|
||
|
// text: `${this.$t("MN_F_T_117")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "serviceBonus",
|
||
|
// total: "serviceBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 33,
|
||
|
// text: `创客空间直推收益(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "makerDirect",
|
||
|
// total: "makerDirectSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 32,
|
||
|
// text: `创客空间共享收益(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "makerShare",
|
||
|
// total: "makerShareSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 13,
|
||
|
// text: `${this.$t("ENU_CLOUD_TYPE_1")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "agentIntroduceBonus",
|
||
|
// total: "agentIntroduceBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 14,
|
||
|
// text: `${this.$t("ENU_CLOUD_TYPE_2")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "agentFirstAmount",
|
||
|
// total: "agentFirstAmountSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 15,
|
||
|
// text: `${this.$t("ENU_CLOUD_TYPE_3")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "agentRepurAmount",
|
||
|
// total: "agentRepurAmountSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 16,
|
||
|
// text: `${this.$t("ENU_MENU_330")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "mainRepurAmount",
|
||
|
// total: "mainRepurAmountSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 17,
|
||
|
// text: `${this.$t("ENU_SPECIAL_A_7")}(¥)`,
|
||
|
// checked: true,
|
||
|
// prop: "hifansRegAmount",
|
||
|
// total: "hifansRegAmountSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 16,
|
||
|
// text: `${this.$t('ENU_CLOUD_TYPE_3')}(¥)`,
|
||
|
// checked: false,
|
||
|
// prop: 'agentRepurAmount',
|
||
|
// },
|
||
|
{
|
||
|
id: 7,
|
||
|
text: `${this.$t("MN_F_T_843")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "mainRepurAmount",
|
||
|
total: "mainRepurAmountSum",
|
||
|
},
|
||
|
{
|
||
|
id: 8,
|
||
|
text: `${this.$t("重消金额")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "retailConsumeAmount",
|
||
|
total: "retailConsumeAmountSum",
|
||
|
},
|
||
|
{
|
||
|
id: 9,
|
||
|
text: `${this.$t("合计金额")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "totalAmount",
|
||
|
total: "totalAmountSum",
|
||
|
},
|
||
|
{
|
||
|
id: 10,
|
||
|
text: `${this.$t("极差收益")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "retailRangeIncome",
|
||
|
total: "retailRangeIncomeSum",
|
||
|
},
|
||
|
{
|
||
|
id: 11,
|
||
|
text: "极差收益拨比(%)",
|
||
|
checked: false,
|
||
|
prop: "retailRangeIncomeRate",
|
||
|
total: "retailRangeIncomeRateSum",
|
||
|
},
|
||
|
// {
|
||
|
// id: 12,
|
||
|
// text: `${this.$t("平级收益")}(¥)`,
|
||
|
// checked: false,
|
||
|
// prop: "retailSameLevelIncome",
|
||
|
// total: "retailSameLevelIncomeSum",
|
||
|
// },
|
||
|
{
|
||
|
id: 12,
|
||
|
text: `${this.$t("平级收益V1-V4")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "retailSameLevelIncomeV1V4",
|
||
|
total: "retailSameLevelIncomeV1V4Sum",
|
||
|
},
|
||
|
{
|
||
|
id: 13,
|
||
|
text: `${this.$t("平级收益V1-V4拨比")}(%)`,
|
||
|
checked: false,
|
||
|
prop: "retailSameLevelIncomeV1V4Rate",
|
||
|
total: "sameLevelIncomeV1V4RateSum",
|
||
|
},
|
||
|
{
|
||
|
id: 14,
|
||
|
text: `${this.$t("平级收益V5")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "retailSameLevelIncomeV5",
|
||
|
total: "retailSameLevelIncomeV5Sum",
|
||
|
},
|
||
|
{
|
||
|
id: 15,
|
||
|
text: `${this.$t("平级收益V5拨比")}(%)`,
|
||
|
checked: false,
|
||
|
prop: "retailSameLevelIncomeV5Rate",
|
||
|
total: "sameLevelIncomeV5RateSum",
|
||
|
},
|
||
|
{
|
||
|
id: 16,
|
||
|
text: `${this.$t("区域收益")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "retailAreaIncome",
|
||
|
total: "retailAreaIncomeSum",
|
||
|
},
|
||
|
{
|
||
|
id: 17,
|
||
|
text: `${this.$t("区域收益拨比")}(%)`,
|
||
|
checked: false,
|
||
|
prop: "retailAreaIncomeRate",
|
||
|
total: "retailAreaIncomeRateSum",
|
||
|
},
|
||
|
|
||
|
{
|
||
|
id: 18,
|
||
|
text: `${this.$t("福利平均收益")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "retailBenefitAvgIncome",
|
||
|
total: "retailBenefitAvgIncomeSum",
|
||
|
},
|
||
|
{
|
||
|
id: 19,
|
||
|
text: `${this.$t("福利平均收益拨比")}(%)`,
|
||
|
checked: false,
|
||
|
prop: "retailBenefitAvgIncomeRate",
|
||
|
total: "retailBenefitAvgIncomeRateSum",
|
||
|
},
|
||
|
{
|
||
|
id: 20,
|
||
|
text: `${this.$t("福利加权收益")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "retailBenefitIncome",
|
||
|
total: "retailBenefitIncomeSum",
|
||
|
},
|
||
|
{
|
||
|
id: 21,
|
||
|
text: `${this.$t("福利加权收益拨比")}(%)`,
|
||
|
checked: false,
|
||
|
prop: "retailBenefitIncomeRate",
|
||
|
total: "retailBenefitIncomeRateSum",
|
||
|
},
|
||
|
{
|
||
|
id: 22,
|
||
|
text: `${this.$t("福利极差收益")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "retailBenefitRangeIncome",
|
||
|
total: "retailBenefitRangeIncomeSum",
|
||
|
},
|
||
|
{
|
||
|
id: 23,
|
||
|
text: `${this.$t("福利极差收益拨比")}(%)`,
|
||
|
checked: false,
|
||
|
prop: "retailBenefitRangeIncomeRate",
|
||
|
total: "benefitRangeIncomeRateSum",
|
||
|
},
|
||
|
{
|
||
|
id: 24,
|
||
|
text: `${this.$t("商城重消")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "backPoints",
|
||
|
total: "backPointsSum",
|
||
|
},
|
||
|
{
|
||
|
id: 25,
|
||
|
text: `${this.$t("商城重消拨比")}(%)`,
|
||
|
checked: false,
|
||
|
prop: "backPointsRate",
|
||
|
total: "backPointsRateSum",
|
||
|
},
|
||
|
// {
|
||
|
// id: 19,
|
||
|
// text: `${this.$t("N_I_140")}(¥)`,
|
||
|
// checked: false,
|
||
|
// prop: "repurRangeBonus",
|
||
|
// total: "repurRangeBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 20,
|
||
|
// text: `${this.$t("N_I_141")}(¥)`,
|
||
|
// checked: false,
|
||
|
// prop: "repurOrgBonus",
|
||
|
// total: "repurOrgBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 21,
|
||
|
// text: `${this.$t("MN_F_T_979")}(¥)`,
|
||
|
// checked: false,
|
||
|
// prop: "mainBonus",
|
||
|
// total: "mainBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 22,
|
||
|
// text: this.$t("MN_F_T_974") + "(%)",
|
||
|
// checked: false,
|
||
|
// prop: "mainBonusRate",
|
||
|
// total: "mainBonusRateSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 23,
|
||
|
// text: `${this.$t("MN_F_T_980")}(¥)`,
|
||
|
// checked: false,
|
||
|
// prop: "repurBonus",
|
||
|
// total: "repurBonusSum",
|
||
|
// },
|
||
|
// {
|
||
|
// id: 24,
|
||
|
// text: this.$t("MN_F_T_975") + "(%)",
|
||
|
// checked: false,
|
||
|
// prop: "repurBonusRate",
|
||
|
// total: "repurBonusRateSum",
|
||
|
// },
|
||
|
{
|
||
|
id: 26,
|
||
|
text: `${this.$t("MN_F_T_976")}(¥)`,
|
||
|
checked: false,
|
||
|
prop: "totalBonus",
|
||
|
total: "totalBonusSum",
|
||
|
},
|
||
|
{
|
||
|
id: 27,
|
||
|
text: this.$t("MN_F_T_977") + "(%)",
|
||
|
checked: false,
|
||
|
prop: "totalBonusRate",
|
||
|
total: "totalBonusRateSum",
|
||
|
},
|
||
|
|
||
|
// {
|
||
|
// id: 28,
|
||
|
// text: this.$t('w_0433'),
|
||
|
// checked: false,
|
||
|
// prop: 'endDate',
|
||
|
// },
|
||
|
],
|
||
|
creationTime: [],
|
||
|
creationTime1: [],
|
||
|
select: {
|
||
|
pkVertexList: [],
|
||
|
pkMemberTeamList: [],
|
||
|
},
|
||
|
// 查询参数
|
||
|
queryParams: {
|
||
|
pageNum: 1,
|
||
|
pageSize: 50,
|
||
|
},
|
||
|
addOrEdit: "",
|
||
|
total: 0,
|
||
|
dialogVisible: false,
|
||
|
tableData: [],
|
||
|
moren: "/settlementCenter/topPerformance",
|
||
|
topList: [
|
||
|
{
|
||
|
name: "顶点奖金拨比列表统计",
|
||
|
path: "/settlementCenter/topPerformance",
|
||
|
url: "topPerformance",
|
||
|
changed: false,
|
||
|
},
|
||
|
],
|
||
|
form: {},
|
||
|
verList: [],
|
||
|
memberList: [],
|
||
|
acList: [],
|
||
|
tableList: {},
|
||
|
props: {
|
||
|
multiple: true,
|
||
|
expandTrigger: "hover",
|
||
|
value: "pkId",
|
||
|
label: "vertexName",
|
||
|
children: "childList",
|
||
|
},
|
||
|
};
|
||
|
},
|
||
|
mounted() {
|
||
|
// 获取下拉
|
||
|
this.getData();
|
||
|
// 获取列表
|
||
|
this.getDataList();
|
||
|
// this.getUserRoute();
|
||
|
},
|
||
|
methods: {
|
||
|
getPkBdVertexStr(e) {
|
||
|
let arr = e.map((item) => item[1]);
|
||
|
let pkBdVertexStr = arr.join(",");
|
||
|
this.$set(this.select, "pkBdVertexStr", pkBdVertexStr);
|
||
|
},
|
||
|
// getpkVertex() {
|
||
|
// let pkBdVertexStr = this.select.pkVertexList.join(',')
|
||
|
// this.$set(this.select, 'pkBdVertexStr', pkBdVertexStr)
|
||
|
// },
|
||
|
// getTeam() {
|
||
|
// let pkTeamCodeStr = this.select.pkMemberTeamList.join(',')
|
||
|
// this.$set(this.select, 'pkTeamCodeStr', pkTeamCodeStr)
|
||
|
// },
|
||
|
getTotal() {
|
||
|
api
|
||
|
.topSubtotal(Object.assign({}, this.queryParams, this.select))
|
||
|
.then((res) => {
|
||
|
if (res.code == 200) {
|
||
|
this.tableList = res.data;
|
||
|
}
|
||
|
});
|
||
|
},
|
||
|
getSummaries(param) {
|
||
|
let arr = [];
|
||
|
this.menuList.forEach((item) => {
|
||
|
for (var i in this.tableList) {
|
||
|
if (i == item.total) {
|
||
|
arr.push(numberToCurrencyNo(this.tableList[i]));
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
arr.unshift("合计", "", "", "");
|
||
|
arr.push("");
|
||
|
this.$nextTick(() => {
|
||
|
this.$refs.mainTable.doLayout();
|
||
|
});
|
||
|
return arr;
|
||
|
// return []
|
||
|
},
|
||
|
getUserRoute() {
|
||
|
getRouters().then((res) => {
|
||
|
res.data.forEach((item) => {
|
||
|
this.topList.forEach((items) => {
|
||
|
if (item.routeName == items.url) {
|
||
|
items.changed = true;
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
},
|
||
|
reset() {
|
||
|
this.select = {
|
||
|
pkVertexList: [],
|
||
|
pkMemberTeamList: [],
|
||
|
pkTeamCodeStr: "",
|
||
|
pkBdVertexStr: "",
|
||
|
};
|
||
|
this.creationTime = [];
|
||
|
},
|
||
|
getData() {
|
||
|
api.accountList().then((res) => {
|
||
|
this.acList = res.data;
|
||
|
});
|
||
|
// api.vertexList().then((res) => {
|
||
|
// this.verList = res.data
|
||
|
// })
|
||
|
// api.memberTeam().then((res) => {
|
||
|
// this.memberList = res.rows
|
||
|
// })
|
||
|
api.topVertexList().then((res) => {
|
||
|
this.verList = res.rows;
|
||
|
});
|
||
|
},
|
||
|
changeTime(val) {
|
||
|
this.select.startDate = val ? val[0] : "";
|
||
|
this.select.endDate = val ? val[1] : "";
|
||
|
},
|
||
|
changeTime1(val) {
|
||
|
this.select.startEffectDate = val ? val[0] : "";
|
||
|
this.select.endEffectDate = val ? val[1] : "";
|
||
|
},
|
||
|
getNewData() {
|
||
|
this.loading = true;
|
||
|
api
|
||
|
.topBonusListHistory(Object.assign({}, this.queryParams, this.select))
|
||
|
.then((res) => {
|
||
|
this.getDataList();
|
||
|
});
|
||
|
},
|
||
|
getDataList() {
|
||
|
api
|
||
|
.topBonusList(Object.assign({}, this.queryParams, this.select))
|
||
|
.then((res) => {
|
||
|
this.loading = false;
|
||
|
if (res.code == 200) {
|
||
|
this.tableData = res.rows;
|
||
|
this.total = res.total;
|
||
|
this.getTotal();
|
||
|
}
|
||
|
});
|
||
|
},
|
||
|
handleSelectionChange(val) {},
|
||
|
/** 导出按钮操作 */
|
||
|
handleExport() {
|
||
|
this.$confirm(this.$t("MN_F_T_407"), this.$t("MN_F_T_304"), {
|
||
|
confirmButtonText: this.$t("w_0035"),
|
||
|
cancelButtonText: this.$t("ENU_P_TYPE0"),
|
||
|
type: "warning",
|
||
|
}).then((_) => {
|
||
|
this.download(
|
||
|
"/member/manage/bonus-vertex-statis/export",
|
||
|
Object.assign({}, this.queryParams, this.select),
|
||
|
`顶点奖金拨比列表统计-${new Date().getTime()}.xlsx`
|
||
|
);
|
||
|
});
|
||
|
},
|
||
|
tableRowClassName({ row, rowIndex }) {
|
||
|
if (rowIndex % 2 == 1) {
|
||
|
return "warning-row";
|
||
|
} else if (rowIndex % 2 == 0) {
|
||
|
return "success-row";
|
||
|
}
|
||
|
return "";
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
</script>
|
||
|
<style scoped lang="scss">
|
||
|
::v-deep .el-table .warning-row {
|
||
|
background: #f9f9f9;
|
||
|
}
|
||
|
|
||
|
::v-deep .el-table .success-row {
|
||
|
background: #ffffff;
|
||
|
}
|
||
|
::v-deep .el-table thead {
|
||
|
color: #000000;
|
||
|
}
|
||
|
::v-deep .el-select {
|
||
|
width: 100%;
|
||
|
}
|
||
|
.uploadIcon ::v-deep .el-upload--picture-card {
|
||
|
display: none !important; /* 上传按钮隐藏 */
|
||
|
}
|
||
|
.page {
|
||
|
padding: 20px;
|
||
|
background: #f9f9f9;
|
||
|
font-size: 14px;
|
||
|
.main {
|
||
|
background: #ffffff;
|
||
|
border-radius: 8px;
|
||
|
box-shadow: 0px 2px 20px 0px rgba(238, 238, 238, 0.5);
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
.maintop {
|
||
|
display: flex;
|
||
|
// padding: 0 10px;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
.mainbtn {
|
||
|
.thebtn1 {
|
||
|
background: #3181e5;
|
||
|
color: #ffffff;
|
||
|
}
|
||
|
.thebtn2 {
|
||
|
background: #ffad41;
|
||
|
color: #ffffff;
|
||
|
}
|
||
|
}
|
||
|
.maintitle {
|
||
|
font-size: 10px;
|
||
|
font-family: MicrosoftYaHei;
|
||
|
color: #999999;
|
||
|
}
|
||
|
}
|
||
|
.maintable {
|
||
|
flex: 1;
|
||
|
}
|
||
|
}
|
||
|
.tem {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
img {
|
||
|
width: 28px;
|
||
|
height: 20px;
|
||
|
margin-right: 3px;
|
||
|
}
|
||
|
}
|
||
|
.isRed {
|
||
|
color: #ed1d25;
|
||
|
}
|
||
|
.isGreen {
|
||
|
color: #1ab62b;
|
||
|
}
|
||
|
.bgImg {
|
||
|
width: 48px;
|
||
|
height: 48px;
|
||
|
}
|
||
|
}
|
||
|
.openClose {
|
||
|
text-align: right;
|
||
|
margin-right: 10px;
|
||
|
color: #3181e5;
|
||
|
}
|
||
|
.kuang {
|
||
|
padding: 5px 20px;
|
||
|
background: rgba(255, 255, 255, 0);
|
||
|
border-radius: 4px;
|
||
|
border: 1px solid #cccccc;
|
||
|
}
|
||
|
.heji {
|
||
|
margin-top: 10px;
|
||
|
.dis {
|
||
|
display: flex;
|
||
|
justify-content: right;
|
||
|
padding: 5px 10px;
|
||
|
font-size: 14px;
|
||
|
color: #333333;
|
||
|
:nth-child(1) {
|
||
|
font-size: 14px;
|
||
|
font-weight: bold;
|
||
|
color: #333333;
|
||
|
margin-right: 20px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
::v-deep .el-date-editor--daterange,
|
||
|
.el-cascader {
|
||
|
width: 100%;
|
||
|
}
|
||
|
::v-deep .el-input__suffix {
|
||
|
top: -3px;
|
||
|
}
|
||
|
</style>
|