2025-03-23 10:03:12 +08:00
|
|
|
|
<!--
|
|
|
|
|
* @Descripttion:
|
|
|
|
|
* @version:
|
|
|
|
|
* @Author: kBank
|
|
|
|
|
* @Date: 2022-10-24 15:45:01
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="page">
|
|
|
|
|
<topBar v-if="topList.length > 0" :top-list="topList" :moren="moren" />
|
|
|
|
|
<div class="main">
|
|
|
|
|
<el-form
|
|
|
|
|
ref="select"
|
|
|
|
|
:model="select"
|
|
|
|
|
style="padding: 0px 10px 0px 0; background: #fff"
|
|
|
|
|
label-width="auto"
|
|
|
|
|
>
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="4">
|
2025-05-26 10:41:35 +08:00
|
|
|
|
<el-form-item :label="'会员编号'">
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<el-input v-model="select.memberCode" clearable />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
2025-05-26 10:41:35 +08:00
|
|
|
|
<el-form-item :label="'会员姓名'">
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<el-input v-model="select.memberName" clearable />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="4" style="margin-left: 38px">-->
|
|
|
|
|
<!-- <el-form-item label="排列顺序">-->
|
2025-05-26 10:41:35 +08:00
|
|
|
|
<!-- <el-select clearable :placeholder="'请选择'"-->
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<!-- v-model="select.pkCurrency">-->
|
|
|
|
|
<!-- <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">
|
2025-05-26 10:41:35 +08:00
|
|
|
|
<el-form-item :label="'币种展示'">
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="select.pkCurrency"
|
|
|
|
|
clearable
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:placeholder="'请选择'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in acList"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col> -->
|
|
|
|
|
<!-- 一层 -->
|
|
|
|
|
<el-col :span="4">
|
2025-05-26 10:41:35 +08:00
|
|
|
|
<el-form-item :label="'结算期数'">
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<div style="display: flex">
|
|
|
|
|
<div>
|
|
|
|
|
<el-input v-model="select.period" clearable />
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <span style="margin: 0 10px">至</span>-->
|
|
|
|
|
<!-- <div>-->
|
|
|
|
|
<!-- <el-input v-model="select.endPeriod" clearable />-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
2025-05-26 10:41:35 +08:00
|
|
|
|
<el-form-item :label="'隶属体系'">
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<el-cascader
|
|
|
|
|
v-model="select.pkBdVertexStred"
|
2025-06-08 15:19:03 +08:00
|
|
|
|
:options="verList"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:props="props"
|
|
|
|
|
collapse-tags
|
|
|
|
|
clearable
|
2025-06-08 15:19:03 +08:00
|
|
|
|
@change="getPkBdVertexStr"
|
|
|
|
|
/>
|
2025-03-23 10:03:12 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
2025-05-26 10:41:35 +08:00
|
|
|
|
<el-form-item :label="'结算日期'">
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="creationTime"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
|
type="datetimerange"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:range-separator="'至'"
|
|
|
|
|
:start-placeholder="'开始日期'"
|
|
|
|
|
:end-placeholder="'结束日期'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
@change="changeTime"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-button type="primary" class="my_search" @click="getDataList">
|
2025-06-08 15:19:03 +08:00
|
|
|
|
{{ '搜索' }}</el-button>
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<el-button class="my_reset" @click="reset">
|
2025-06-08 15:19:03 +08:00
|
|
|
|
{{ '重置' }}</el-button>
|
2025-03-23 10:03:12 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div class="maintop">
|
|
|
|
|
<div class="mainbtn">
|
|
|
|
|
<el-button
|
2025-06-08 15:19:03 +08:00
|
|
|
|
v-hasButtons="['BonusDetailImport']"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
size="small"
|
|
|
|
|
style="background-color: #ff6723"
|
|
|
|
|
class="thebtn2"
|
|
|
|
|
>
|
2025-06-08 15:19:03 +08:00
|
|
|
|
{{ '导入' }}</el-button>
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<el-button
|
2025-06-08 15:19:03 +08:00
|
|
|
|
v-hasButtons="['BonusDetailExport']"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
size="small"
|
|
|
|
|
class="thebtn2"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
>
|
2025-06-08 15:19:03 +08:00
|
|
|
|
{{ '导出' }}</el-button>
|
2025-03-23 10:03:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
<!-- <div>
|
|
|
|
|
<el-dropdown :hide-on-click="false">
|
|
|
|
|
<span class="el-dropdown-link kuang">
|
2025-05-26 10:41:35 +08:00
|
|
|
|
{{ '筛选字段' }}<i class="el-icon-arrow-down el-icon--right" />
|
2025-03-23 10:03:12 +08:00
|
|
|
|
</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
|
|
|
|
|
ref="table"
|
|
|
|
|
v-loading="loading"
|
2025-06-08 15:19:03 +08:00
|
|
|
|
:data="tableData.censusSummaryList"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:summary-method="getSummaries"
|
|
|
|
|
:header-cell-style="{ background: '#EEEEEE' }"
|
|
|
|
|
:row-class-name="tableRowClassName"
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" width="100" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="memberCode"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'会员编号'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="memberName"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'会员姓名'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="vertexName"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'隶属体系'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="teamName"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'隶属团队'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="period"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'结算期数'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="settleDate"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'结算日期'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailRangeIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('极差收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailRangeIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('极差收益') + '($)'"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailSameLevelIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('平级收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailSameLevelIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('平级收益') + '($)'"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailAreaIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('区域收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailAreaIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('区域收益') + '($)'"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailBenefitRangeIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('福利极差收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailBenefitRangeIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('福利极差收益') + '($)'"
|
|
|
|
|
/>
|
|
|
|
|
<!-- <el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailBenefitAvgIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('福利平均收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailBenefitAvgIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('福利平均收益') + '($)'"
|
|
|
|
|
/> -->
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailBenefitIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('福利分红收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailBenefitIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('福利分红收益') + '($)'"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="backPointsOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('重消收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="backPoints"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('重消收益') + '($)'"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailRealSubtotalOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('小计') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="retailRealSubtotal"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('小计') + '($)'"
|
|
|
|
|
/>
|
|
|
|
|
<!-- <el-table-column
|
|
|
|
|
v-if="allTxt.directIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="directIncomeOri"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'直推收益' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.directIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="directIncome"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'直推收益' + `(${isLocals()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.expandIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="expandIncomeOri"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'拓展收益' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.expandIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="expandIncome"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'拓展收益' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.coachIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="coachIncomeOri"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'辅导收益' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.coachIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="coachIncome"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'辅导收益' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.shareIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="shareIncomeOri"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'分红收益' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.shareIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="shareIncome"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'分红收益' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.serviceIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="serviceIncomeOri"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'报单收益' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.serviceIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="serviceIncome"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'服务收益' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.cloudDirectIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="cloudDirectIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('幸运收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.cloudDirectIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="cloudDirectIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('幸运收益') + '($)'"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.cloudPurIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="cloudPurIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('极差收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.cloudPurIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="cloudPurIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('极差收益') + '($)'"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.cloudRepurIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="cloudRepurIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('平级收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.cloudRepurIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="cloudRepurIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('平级收益') + '($)'"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.repurPushIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurPushIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('互助收益') + `(${isLocalSymbol()})`"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.repurPushIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurPushIncome"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('互助收益') + '($)'"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.repurRangeIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurRangeIncomeOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购级差收益' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.repurRangeIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurRangeIncome"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购级差收益' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.repurExpandIncomeOri"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurExpandIncomeOri"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购拓展收益' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="allTxt.repurExpandIncome"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurExpandIncome"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购拓展收益' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/> -->
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurCouponOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购券' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurCoupon"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购券' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurCouponShareOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购券均分'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurCouponShare"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购券均分' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="backPointsOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'商城重消' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="backPoints"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'商城重消' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="serviceSpendOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'平台服务费' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="serviceSpend"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'平台服务费' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="globalPointsOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('直推极差') + '(¥)'"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="globalPoints"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('直推极差') + '($)'"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="carAwardPointsOri"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'车奖积分'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="carAwardPoints"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'车奖积分' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="purRealSubtotalOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'首购实发小计' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="purRealSubtotal"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'首购实发小计' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="cloudRealSubtotalOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
:label="$t('极差小计') + '(¥)'"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="cloudRealSubtotal"
|
|
|
|
|
width="130"
|
|
|
|
|
:label="$t('极差小计') + '($)'"
|
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurRealSubtotalOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购实发小计' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurRealSubtotal"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购实发小计' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurCouponSubtotalOri"
|
|
|
|
|
width="160"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购券实发小计' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="repurCouponSubtotal"
|
|
|
|
|
width="160"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'复购券实发小计' + `($)`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
2025-06-08 15:19:03 +08:00
|
|
|
|
|
2025-03-23 10:03:12 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="realIncomeTotalOri"
|
|
|
|
|
width="130"
|
|
|
|
|
:formatter="stateFormat"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'实发收益总计' + `(${isLocalSymbol()})`"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
align="center"
|
|
|
|
|
prop="realIncomeTotal"
|
|
|
|
|
width="130"
|
2025-05-26 10:41:35 +08:00
|
|
|
|
:label="'实发收益总计' + '($)'"
|
2025-03-23 10:03:12 +08:00
|
|
|
|
:formatter="stateFormat"
|
|
|
|
|
/>
|
|
|
|
|
</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>
|
2025-06-08 15:19:03 +08:00
|
|
|
|
import topBar from '@/components/topBar'
|
|
|
|
|
import * as api from '@/api/settle.js'
|
|
|
|
|
import { classifyUpdate, classifySave } from '@/api/product'
|
|
|
|
|
import { queryBonusDetail, queryBonusTotal } from '@/api/bonus'
|
|
|
|
|
import { isLocals, isLocalSymbol, stateFormat } from '@/utils/numberToCurrency'
|
|
|
|
|
import { getRoleMenu } from '@/api/notice'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
export default {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'Bzpz',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
components: {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
topBar
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
filters: {
|
|
|
|
|
isAgree(val) {
|
|
|
|
|
if (!val) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return this.$t('ENU_POPUP_TYPE_1')
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return this.$t('ENU_POPUP_TYPE_2')
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
2025-06-08 15:19:03 +08:00
|
|
|
|
}
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
typeList: [
|
|
|
|
|
{
|
|
|
|
|
value: 0,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
label: this.$t('ENU_NOTICE_WEBSITE_TYPE_1')
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 1,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
label: this.$t('ENU_NOTICE_WEBSITE_TYPE_2')
|
|
|
|
|
}
|
2025-03-23 10:03:12 +08:00
|
|
|
|
],
|
|
|
|
|
digList: [
|
|
|
|
|
{
|
|
|
|
|
value: 0,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
label: this.$t('ENU_POPUP_TYPE_1')
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 1,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
label: this.$t('ENU_POPUP_TYPE_2')
|
|
|
|
|
}
|
2025-03-23 10:03:12 +08:00
|
|
|
|
],
|
|
|
|
|
menuList: [
|
|
|
|
|
{
|
|
|
|
|
id: 0,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('MN_F_T_948'),
|
|
|
|
|
checked: true
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 21,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('N_I_131') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'firstBuyAmountDollar'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 22,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('N_I_132') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'expandIncome'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 23,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('N_I_133') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'coachIncome'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 24,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('N_I_134') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'shareIncome'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 25,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('MN_F_T_887') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'serviceIncome'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 26,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('幸运收益') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'cloudDirectIncome'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 27,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('极差收益') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'cloudPurIncome'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 28,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('平级收益') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'cloudRepurIncome'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 39,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('w_0155') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'repurRangeIncome'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 30,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('N_I_141') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'repurExpandIncome'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 31,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('ENU_ACCOUNT_8'),
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'repurCoupon',
|
|
|
|
|
flag: 1
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 32,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('MN_F_T_893') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'backPoints'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 35,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('N_I_137') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'backPoints'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 44,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('MN_F_T_897') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'purRealSubtotal'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 45,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('极差小计') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'cloudRealSubtotal'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 46,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('MN_F_T_899') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'repurRealSubtotal'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 47,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
text: this.$t('MN_F_T_902') + '($)',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
checked: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
prop: 'realIncomeTotal'
|
|
|
|
|
}
|
2025-03-23 10:03:12 +08:00
|
|
|
|
],
|
|
|
|
|
creationTime: [],
|
|
|
|
|
creationTime1: [],
|
|
|
|
|
select: {
|
|
|
|
|
// pkVertex: [],
|
|
|
|
|
// pkMemberTeam: [],
|
|
|
|
|
},
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
pageSize: 50
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
2025-06-08 15:19:03 +08:00
|
|
|
|
addOrEdit: '',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
total: 0,
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
loading: false,
|
|
|
|
|
tableData: {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
censusSummaryList: []
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
2025-06-08 15:19:03 +08:00
|
|
|
|
moren: '/settlementCenter/bonusDetail',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
topList: [
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: this.$t('ENU_MENU_530'),
|
|
|
|
|
path: '/settlementCenter/bonusDetail'
|
|
|
|
|
}
|
2025-03-23 10:03:12 +08:00
|
|
|
|
],
|
|
|
|
|
form: {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
name: [
|
2025-06-08 15:19:03 +08:00
|
|
|
|
{ required: true, message: this.$t('MN_F_T_302'), trigger: 'blur' }
|
|
|
|
|
]
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
acList: [],
|
|
|
|
|
verList: [],
|
|
|
|
|
memberList: [],
|
|
|
|
|
pkMemberTeam: [],
|
|
|
|
|
pkVertex: [],
|
|
|
|
|
dataList: [
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'memberCode',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'memberName',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'vertexName',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'teamName',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'period',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'settleDate',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'directIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'directIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'expandIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'expandIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'coachIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'coachIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'shareIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'shareIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'serviceIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'serviceIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'cloudDirectIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'cloudDirectIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'cloudPurIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'cloudPurIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'cloudRepurIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'cloudRepurIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurPushIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurPushIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurRangeIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurRangeIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurExpandIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurExpandIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurCouponOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurCoupon',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurCouponShareOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'backPointsOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'backPoints',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'serviceSpendOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'serviceSpend',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'globalPoints',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'carAwardPoints',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'storeIncome',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'hiFunIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'makerDirectIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'makerShareIncomeOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'purRealSubtotalOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'purRealSubtotal',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'cloudRealSubtotalOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'cloudRealSubtotal',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurRealSubtotalOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurRealSubtotal',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'repurCouponSubtotalOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'makerRealSubtotalOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'realIncomeTotalOri',
|
|
|
|
|
key: ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-08 15:19:03 +08:00
|
|
|
|
name: 'realIncomeTotal',
|
|
|
|
|
key: ''
|
|
|
|
|
}
|
2025-03-23 10:03:12 +08:00
|
|
|
|
],
|
|
|
|
|
flag: false,
|
|
|
|
|
allTxt: {},
|
2025-06-08 15:19:03 +08:00
|
|
|
|
pkTeamId: '', // 隶属团队id
|
|
|
|
|
pkVertId: '', // 隶属体系id
|
2025-03-23 10:03:12 +08:00
|
|
|
|
props: {
|
|
|
|
|
multiple: true,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
expandTrigger: 'hover',
|
|
|
|
|
value: 'pkId',
|
|
|
|
|
label: 'vertexName',
|
|
|
|
|
children: 'childList'
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
// 获取下拉
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.getData()
|
2025-03-23 10:03:12 +08:00
|
|
|
|
// 获取列表
|
2025-06-08 15:19:03 +08:00
|
|
|
|
const geturl = window.location.href
|
|
|
|
|
const getqyinfo = geturl.split('?')[1]
|
|
|
|
|
const getqys = new URLSearchParams('?' + getqyinfo)
|
|
|
|
|
const time = getqys.get('time')
|
2025-03-23 10:03:12 +08:00
|
|
|
|
if (time) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.select.startDate = time
|
|
|
|
|
this.select.endDate = time
|
|
|
|
|
this.$set(this.creationTime, 0, time)
|
|
|
|
|
this.$set(this.creationTime, 1, time)
|
|
|
|
|
this.$forceUpdate()
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
2025-06-08 15:19:03 +08:00
|
|
|
|
var day1 = new Date()
|
|
|
|
|
day1.setTime(day1.getTime() - 24 * 60 * 60 * 1000)
|
|
|
|
|
var s1 = this.getStartTime()
|
|
|
|
|
var s2 = this.getEndTime()
|
|
|
|
|
this.select.startDate = s1
|
|
|
|
|
this.select.endDate = s2
|
|
|
|
|
this.creationTime = [s1, s2]
|
2025-03-23 10:03:12 +08:00
|
|
|
|
setTimeout(() => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.getDataList()
|
|
|
|
|
}, 50)
|
|
|
|
|
this.getUserRole()
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getPkBdVertexStr(e) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
const arr = e.map((item) => item[1])
|
|
|
|
|
const pkBdVertexStr = arr.join(',')
|
|
|
|
|
this.$set(this.select, 'pkBdVertexStr', pkBdVertexStr)
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
isLocals,
|
|
|
|
|
getStartTime() {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
const date = new Date()
|
|
|
|
|
date.setDate(1) // 将当前时间的日期设置成第一天
|
|
|
|
|
const year = date.getFullYear() // 得到当前年份
|
|
|
|
|
let month = date.getMonth() + 1 // 得到当前月份(0-11月份,+1是当前月份)
|
|
|
|
|
month = month >= 10 ? month : '0' + month // 补零
|
|
|
|
|
let day = date.getDate() // 得到当前天数,实际是本月第一天,因为前面setDate(1) 设置过了
|
|
|
|
|
day = day >= 10 ? day : '0' + day // 补零
|
|
|
|
|
return year + '-' + month + '-' + day
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
getEndTime() {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
var date = new Date()
|
|
|
|
|
var year = date.getFullYear() // 年
|
|
|
|
|
var month = date.getMonth() + 1 // 月
|
|
|
|
|
var day = date.getDate() > 1 ? date.getDate() - 1 : date.getDate() // 日
|
|
|
|
|
var hour = date.getHours() // 时
|
|
|
|
|
var minutes = date.getMinutes() // 分
|
|
|
|
|
var seconds = date.getSeconds() // 秒
|
2025-03-23 10:03:12 +08:00
|
|
|
|
// 给一位数的数据前面加 “0”
|
|
|
|
|
if (month >= 1 && month <= 9) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
month = '0' + month
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
if (day >= 0 && day <= 9) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
day = '0' + day
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
if (hour >= 0 && hour <= 9) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
hour = '0' + hour
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
if (minutes >= 0 && minutes <= 9) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
minutes = '0' + minutes
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
if (seconds >= 0 && seconds <= 9) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
seconds = '0' + seconds
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return year + '-' + month + '-' + day + ' '
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
isLocalSymbol,
|
|
|
|
|
// getUserRole() {
|
|
|
|
|
// getRoleMenu('BonusDetail').then((res) => {
|
|
|
|
|
// this.dataList.forEach((item) => {
|
|
|
|
|
// res.data.forEach((items) => {
|
|
|
|
|
// if (item.name == items) {
|
|
|
|
|
// item.key = items
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// })
|
|
|
|
|
// this.flag = true
|
|
|
|
|
// })
|
|
|
|
|
// },
|
|
|
|
|
getUserRole() {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
getRoleMenu('BonusDetail').then((res) => {
|
|
|
|
|
const obj = {}
|
2025-03-23 10:03:12 +08:00
|
|
|
|
res.data.forEach((item) => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
obj[item] = 1
|
|
|
|
|
})
|
|
|
|
|
this.allTxt = obj
|
2025-03-23 10:03:12 +08:00
|
|
|
|
this.$nextTick(() => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.$refs.table.doLayout()
|
|
|
|
|
})
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
stateFormat,
|
|
|
|
|
vertCheck(index, item) {
|
|
|
|
|
if (this.pkVertex.length > 1) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.pkVertex.splice(0, 1)
|
|
|
|
|
this.pkVertId = item.pkId
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else if (this.pkVertex.length == 1) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.pkVertId = item.pkId
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.pkVertId = ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
teamCheck(index, item) {
|
|
|
|
|
if (this.pkMemberTeam.length > 1) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.pkMemberTeam.splice(0, 1)
|
|
|
|
|
this.pkTeamId = item.pkId
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else if (this.pkMemberTeam.length == 1) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.pkTeamId = item.pkId
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.pkTeamId = ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
reset() {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.getDataList()
|
2025-03-23 10:03:12 +08:00
|
|
|
|
this.select = {
|
|
|
|
|
// pkVertex: [],
|
|
|
|
|
// pkMemberTeam: [],
|
2025-06-08 15:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
this.creationTime = ''
|
|
|
|
|
this.pkVertex = []
|
|
|
|
|
this.pkMemberTeam = []
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
getMenu(e, id) {
|
|
|
|
|
if (e && id == 0) {
|
|
|
|
|
this.menuList.forEach((item) => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.$set(item, 'checked', true)
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else if (!e && id == 0) {
|
|
|
|
|
this.menuList.forEach((item) => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.$set(item, 'checked', false)
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getData() {
|
|
|
|
|
api.accountList().then((res) => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.acList = res.data
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
api.vertexChild().then((res) => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.verList = res.data
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
api.memberTeam().then((res) => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.memberList = res.rows
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
changeTime(val) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.select.startDate = val[0]
|
|
|
|
|
this.select.endDate = val[1]
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
changeTime1(val) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.select.startEffectDate = val[0]
|
|
|
|
|
this.select.endEffectDate = val[1]
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
// 点击修改
|
|
|
|
|
toFixed(id) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.addOrEdit = false
|
|
|
|
|
this.dialogVisible = true
|
2025-03-23 10:03:12 +08:00
|
|
|
|
this.$router.push({
|
2025-06-08 15:19:03 +08:00
|
|
|
|
path: 'noticeList/details',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
query: {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
pkId: id
|
|
|
|
|
}
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
getSummaries(param) {
|
|
|
|
|
this.$nextTick(() => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.$refs.table.doLayout()
|
|
|
|
|
})
|
|
|
|
|
const { columns, data } = param
|
|
|
|
|
const sums = []
|
2025-03-23 10:03:12 +08:00
|
|
|
|
columns.forEach((column, index) => {
|
|
|
|
|
if (index === 0) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
sums[index] = this.$t('MN_F_T_951') + '(¥)'
|
|
|
|
|
return
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
if (index === 1) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
sums[index] = ''
|
|
|
|
|
return
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
if (index === 2) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
sums[index] = ''
|
|
|
|
|
return
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
if (index === 5) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
sums[index] = ''
|
|
|
|
|
return
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
2025-06-08 15:19:03 +08:00
|
|
|
|
const values = data.map((item) => Number(item[column.property]))
|
2025-03-23 10:03:12 +08:00
|
|
|
|
if (!values.every((value) => isNaN(value))) {
|
|
|
|
|
sums[index] = values.reduce((prev, curr) => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
const value = Number(curr)
|
2025-03-23 10:03:12 +08:00
|
|
|
|
if (!isNaN(value)) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return prev + curr
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return prev
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
2025-06-08 15:19:03 +08:00
|
|
|
|
}, 0)
|
|
|
|
|
if (typeof sums[index] === 'number') {
|
|
|
|
|
sums[index] = sums[index].toFixed(2)
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
} else {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
sums[index] = ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
2025-06-08 15:19:03 +08:00
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return sums
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
// 删除
|
|
|
|
|
handleDelete(id) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.$confirm(this.$t('MN_F_T_303'), this.$t('w_0034'), {
|
|
|
|
|
confirmButtonText: this.$t('w_0035'),
|
|
|
|
|
cancelButtonText: this.$t('ENU_P_TYPE0'),
|
|
|
|
|
type: 'warning'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}).then(() => {
|
|
|
|
|
api.classifyDel(id).then((res) => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.getDataList()
|
|
|
|
|
})
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
onSubmit(formName) {
|
|
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
|
|
if (valid) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
let url = ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
if (this.addOrEdit == true) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
url = classifySave
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
url = classifyUpdate
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
url(this.form).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: res.msg,
|
2025-06-08 15:19:03 +08:00
|
|
|
|
type: 'success'
|
|
|
|
|
})
|
|
|
|
|
this.dialogVisible = false
|
2025-03-23 10:03:12 +08:00
|
|
|
|
// 充值数据
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.$refs[formName].resetFields()
|
2025-03-23 10:03:12 +08:00
|
|
|
|
// 获取列表
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.getDataList()
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
2025-06-08 15:19:03 +08:00
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return false
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
2025-06-08 15:19:03 +08:00
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
handleClose() {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.dialogVisible = false
|
|
|
|
|
this.$refs['form'].clearValidate()
|
|
|
|
|
this.$refs['form'].resetFields()
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
openDig() {
|
|
|
|
|
this.$router.push({
|
2025-06-08 15:19:03 +08:00
|
|
|
|
path: 'noticeList/details'
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
getDataList() {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.loading = true
|
|
|
|
|
if (this.creationTime == '' || this.creationTime == null) {
|
|
|
|
|
this.select.startDate = ''
|
|
|
|
|
this.select.endDate = ''
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
|
|
|
|
queryBonusDetail(
|
|
|
|
|
Object.assign(
|
|
|
|
|
{},
|
|
|
|
|
{ pkVertex: this.pkVertId, pkTeamCode: this.pkTeamId },
|
|
|
|
|
this.select
|
|
|
|
|
),
|
|
|
|
|
`?pageNum=${this.queryParams.pageNum}&pageSize=${this.queryParams.pageSize}`
|
|
|
|
|
).then((res) => {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
this.loading = false
|
|
|
|
|
this.tableData.censusSummaryList = res.rows
|
|
|
|
|
this.total = res.total
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
handleSelectionChange(val) {},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
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'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}).then((_) => {
|
|
|
|
|
this.download(
|
2025-06-08 15:19:03 +08:00
|
|
|
|
'/bonus/manage/bonus/export-bonus-detail',
|
2025-03-23 10:03:12 +08:00
|
|
|
|
Object.assign({}, this.queryParams, this.select),
|
2025-06-08 15:19:03 +08:00
|
|
|
|
`${this.$t('ENU_MENU_530')}-${new Date().getTime()}.xlsx`
|
|
|
|
|
)
|
|
|
|
|
})
|
2025-03-23 10:03:12 +08:00
|
|
|
|
},
|
|
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
|
|
if (rowIndex % 2 == 1) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return 'warning-row'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
} else if (rowIndex % 2 == 0) {
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return 'success-row'
|
2025-03-23 10:03:12 +08:00
|
|
|
|
}
|
2025-06-08 15:19:03 +08:00
|
|
|
|
return ''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-23 10:03:12 +08:00
|
|
|
|
</script>
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.content {
|
|
|
|
|
// height:450px;/* 可以根据需要设置,也可以是百分比或者在父级flex布局中通过flex:1来确定高度 */
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
.custom-table {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-table__header-wrapper {
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0; //这个值根据实际情况而定
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-range-editor.el-input__inner {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-button {
|
|
|
|
|
padding: 8px 20px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-date-editor .el-range__close-icon {
|
|
|
|
|
margin-top: -10px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-date-editor .el-range-separator {
|
|
|
|
|
margin-top: -10px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-date-editor .el-range__icon {
|
|
|
|
|
margin-top: -10px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-input__inner {
|
|
|
|
|
//height:28px;
|
|
|
|
|
//line-height: 28px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-form-item {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-cascader {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-form-item__label {
|
|
|
|
|
color: #333;
|
|
|
|
|
font-weight: inherit;
|
|
|
|
|
}
|
|
|
|
|
::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: #f9f9f9;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
.maintop {
|
|
|
|
|
display: flex;
|
|
|
|
|
//padding: 10px 0px;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.mainbtn {
|
|
|
|
|
.thebtn1 {
|
|
|
|
|
background: #3181e5;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
}
|
|
|
|
|
.thebtn2 {
|
|
|
|
|
background: #ffad41;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
height: 32px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.maintitle {
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
font-family: MicrosoftYaHei;
|
|
|
|
|
color: #999999;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.maintable {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<style>
|
|
|
|
|
/* .itemTrading .el-table {
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
.itemTrading .el-table__body-wrapper,
|
|
|
|
|
.itemTrading .el-table__header-wrapper,
|
|
|
|
|
.itemTrading .el-table__footer-wrapper {
|
|
|
|
|
overflow: visible;
|
|
|
|
|
}
|
|
|
|
|
.itemTrading .el-table::after {
|
|
|
|
|
position: relative !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.body-theme-grenn .el-table--scrollable-x .el-table__body-wrapper {
|
|
|
|
|
overflow: visible;
|
|
|
|
|
} */
|
|
|
|
|
</style>
|