feat(bonus-bdl): 北大环境-奖金明细及汇总列表字段调整
This commit is contained in:
parent
daf38b19fa
commit
2a8ad918c9
|
@ -8,20 +8,13 @@
|
|||
<view class="content">
|
||||
<view class="header_a">
|
||||
<view class="header">
|
||||
<img @click="isTop=true"
|
||||
src="@/assets/images/search.png"
|
||||
alt="">
|
||||
<img @click="isFont=true"
|
||||
src="@/assets/images/change.png"
|
||||
alt="">
|
||||
<img @click="isTop = true" src="@/assets/images/search.png" alt="" />
|
||||
<img @click="isFont = true" src="@/assets/images/change.png" alt="" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="zhan"></view>
|
||||
<view class="kuang"
|
||||
v-for="(item,index) in tableData"
|
||||
:key="index">
|
||||
<table class="tftable"
|
||||
border="1">
|
||||
<view class="kuang" v-for="(item, index) in tableData" :key="index">
|
||||
<table class="tftable" border="1">
|
||||
<tr v-if="allTxt.memberCode">
|
||||
<td align="right">{{ '会员编号' }}</td>
|
||||
<td align="left">{{ item.memberCode }}</td>
|
||||
|
@ -62,23 +55,11 @@
|
|||
<td align="left">{{ item.coachIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.shareIncomeOri">
|
||||
<td align="right">{{ '分红收益' }}({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.shareIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.serviceIncomeOri">
|
||||
<td align="right">{{ '报单收益' }}({{isLocalSymbol() }})</td>
|
||||
<td align="right">{{ '服务补贴' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.serviceIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr v-if="allTxt.repurRangeIncomeOri">
|
||||
<td align="right">{{ '复购级差收益' }}({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurRangeIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.repurExpandIncomeOri">
|
||||
<td align="right">{{ '复购拓展收益' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurExpandIncomeOri }}</td>
|
||||
|
@ -88,18 +69,9 @@
|
|||
<td align="right">{{ '复购辅导收益' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurCoachIncome }}</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.repurCouponOri">
|
||||
<td align="right">{{ '复购券' }}({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurCouponOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.repurCouponShareOri">
|
||||
<td align="right">{{ '复购券均分' }}</td>
|
||||
<td align="left">{{ item.repurCouponShareOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.backPointsOri">
|
||||
<td align="right">{{ '商城重消' }}({{isLocalSymbol() }})</td>
|
||||
<td align="right">重复消费({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.backPointsOri }}</td>
|
||||
</tr>
|
||||
|
||||
|
@ -108,16 +80,6 @@
|
|||
<td align="left">{{ item.serviceSpendOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.globalPointsOri">
|
||||
<td align="right">直推级差({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.globalPointsOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.carAwardPointsOri">
|
||||
<td align="right">{{ '车奖积分' }}</td>
|
||||
<td align="left">{{ item.carAwardPointsOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.purRealSubtotalOri">
|
||||
<td align="right">{{ '首购实发小计' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.purRealSubtotalOri }}</td>
|
||||
|
@ -128,91 +90,67 @@
|
|||
<td align="left">{{ item.repurRealSubtotalOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.repurCouponSubtotalOri">
|
||||
<td align="right">{{ '复购券实发小计' }}({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurCouponSubtotalOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.realIncomeTotalOri">
|
||||
<td align="right">{{ '实发收益总计' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.realIncomeTotalOri }}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</view>
|
||||
<!-- 侧边弹框 -->
|
||||
<u-popup :show="isFont"
|
||||
mode="right"
|
||||
@close="isFont=false">
|
||||
<u-popup :show="isFont" mode="right" @close="isFont = false">
|
||||
<view class="che">
|
||||
<u-checkbox-group v-model="selectAll"
|
||||
<u-checkbox-group
|
||||
v-model="selectAll"
|
||||
@change="getAll"
|
||||
placement="column"
|
||||
activeColor="#ED1D25">
|
||||
<u-checkbox :customStyle="{marginBottom: '8px'}"
|
||||
activeColor="#ED1D25"
|
||||
>
|
||||
<u-checkbox
|
||||
:customStyle="{ marginBottom: '8px' }"
|
||||
v-for="(item, index) in allList"
|
||||
:key="index"
|
||||
:label="item.text"
|
||||
:name="item.id">
|
||||
:name="item.id"
|
||||
>
|
||||
</u-checkbox>
|
||||
</u-checkbox-group>
|
||||
<u-checkbox-group v-model="selected"
|
||||
<u-checkbox-group
|
||||
v-model="selected"
|
||||
@change="getMenu"
|
||||
placement="column"
|
||||
activeColor="#ED1D25">
|
||||
<u-checkbox :customStyle="{marginBottom: '8px'}"
|
||||
activeColor="#ED1D25"
|
||||
>
|
||||
<u-checkbox
|
||||
:customStyle="{ marginBottom: '8px' }"
|
||||
v-for="(item, index) in menuList"
|
||||
:key="index"
|
||||
v-show="index != 0"
|
||||
:label="item.text"
|
||||
:name="item.id">
|
||||
:name="item.id"
|
||||
>
|
||||
</u-checkbox>
|
||||
</u-checkbox-group>
|
||||
</view>
|
||||
</u-popup>
|
||||
<!-- 小计 -->
|
||||
<view class="table_all">
|
||||
<u-button @click="isBtm=true"
|
||||
<u-button
|
||||
@click="isBtm = true"
|
||||
size="small"
|
||||
color="rgba(243, 169, 0, 1)"
|
||||
:text="'小计'"></u-button>
|
||||
:text="'小计'"
|
||||
></u-button>
|
||||
</view>
|
||||
<!-- 小计弹框 -->
|
||||
<u-popup :show="isBtm"
|
||||
<u-popup
|
||||
:show="isBtm"
|
||||
mode="bottom"
|
||||
:closeable="true"
|
||||
@close="isBtm=false">
|
||||
@close="isBtm = false"
|
||||
>
|
||||
<view class="pop">
|
||||
<view class="kuang"
|
||||
v-for="(item,index) in totalPrice"
|
||||
:key="index">
|
||||
<table class="tftable"
|
||||
border="1">
|
||||
<!-- <tr v-if="allTxt.memberCode">
|
||||
<td align="right">{{ '会员编号' }}</td>
|
||||
<td align="left">{{ item.memberCode }}</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.memberName">
|
||||
<td align="right">{{ '会员姓名' }}</td>
|
||||
<td align="left">{{ item.memberName }}</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.vertexName">
|
||||
<td align="right">{{ '隶属体系' }}</td>
|
||||
<td align="left">{{ item.vertexName }}</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.teamName">
|
||||
<td align="right">{{ '隶属团队' }}</td>
|
||||
<td align="left">{{ item.teamName }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.period">
|
||||
<td align="right">{{ '结算期数' }}</td>
|
||||
<td align="left">{{ item.period }}</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.settleDate">
|
||||
<td align="right">{{ '结算日期' }}</td>
|
||||
<td align="left">{{ item.settleDate }}</td>
|
||||
</tr> -->
|
||||
<view class="kuang" v-for="(item, index) in totalPrice" :key="index">
|
||||
<table class="tftable" border="1">
|
||||
<tr v-if="allTxt.directIncomeOri">
|
||||
<td align="right">{{ '直推收益' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.directIncomeOri }}</td>
|
||||
|
@ -228,45 +166,18 @@
|
|||
<td align="left">{{ item.coachIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.shareIncomeOri">
|
||||
<td align="right">{{ '分红收益' }}({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.shareIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.serviceIncomeOri">
|
||||
<td align="right">{{ '报单收益' }}({{isLocalSymbol() }})</td>
|
||||
<td align="right">服务补贴({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.serviceIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.repurPushIncomeOri">
|
||||
<td align="right">{{ '复购推荐收益' }}({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurPushIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.repurRangeIncomeOri">
|
||||
<td align="right">{{ '复购级差收益' }}({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurRangeIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.repurExpandIncomeOri">
|
||||
<td align="right">{{ '复购拓展收益' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurExpandIncomeOri }}</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr v-if="allTxt.repurCouponOri">
|
||||
<td align="right">{{ '复购券' }}({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurCouponOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.repurCouponShareOri">
|
||||
<td align="right">{{ '复购券均分' }}</td>
|
||||
<td align="left">{{ item.repurCouponShareOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.backPointsOri">
|
||||
<td align="right">{{ '商城重消' }}({{isLocalSymbol() }})</td>
|
||||
<td align="right">重复消费({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.backPointsOri }}</td>
|
||||
</tr>
|
||||
|
||||
|
@ -274,15 +185,7 @@
|
|||
<td align="right">{{ '平台服务费' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.serviceSpendOri }}</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.globalPointsOri">
|
||||
<td align="right">直推级差({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.globalPointsOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.carAwardPointsOri">
|
||||
<td align="right">{{ '车奖积分' }}</td>
|
||||
<td align="left">{{ item.carAwardPointsOri }}</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.purRealSubtotalOri">
|
||||
<td align="right">{{ '首购实发小计' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.purRealSubtotalOri }}</td>
|
||||
|
@ -293,13 +196,6 @@
|
|||
<td align="left">{{ item.repurRealSubtotalOri }}</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr v-if="allTxt.repurCouponSubtotalOri">
|
||||
<td align="right">{{ '复购券实发小计' }}({{isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.repurCouponSubtotalOri }}</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr v-if="allTxt.realIncomeTotalOri">
|
||||
<td align="right">{{ '实发收益总计' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">{{ item.realIncomeTotalOri }}</td>
|
||||
|
@ -314,33 +210,33 @@
|
|||
</view>
|
||||
</u-popup>
|
||||
<!-- 顶部搜索 -->
|
||||
<u-popup :show="isTop"
|
||||
mode="top"
|
||||
@close="isTop=false">
|
||||
<u-popup :show="isTop" mode="top" @close="isTop = false">
|
||||
<view class="tt">
|
||||
<u--form labelPosition="left"
|
||||
<u--form
|
||||
labelPosition="left"
|
||||
labelWidth="auto"
|
||||
:model="select"
|
||||
ref="uForm">
|
||||
ref="uForm"
|
||||
>
|
||||
<u-row gutter="10">
|
||||
<u-col span="6">
|
||||
<u-form-item :label="'会员编号'">
|
||||
<u--input fontSize="12"
|
||||
v-model="select.memberCode"></u--input>
|
||||
<u--input fontSize="12" v-model="select.memberCode"></u--input>
|
||||
</u-form-item>
|
||||
</u-col>
|
||||
<u-col span="6">
|
||||
<u-form-item :label="'会员姓名'">
|
||||
<u--input fontSize="12"
|
||||
v-model="select.memberName"></u--input>
|
||||
<u--input fontSize="12" v-model="select.memberName"></u--input>
|
||||
</u-form-item>
|
||||
</u-col>
|
||||
</u-row>
|
||||
<u-row gutter="10">
|
||||
<u-col span="6">
|
||||
<u-form-item :label="'结算期数'">
|
||||
<u--input fontSize="12"
|
||||
v-model="select.memberSettlePeriodId"></u--input>
|
||||
<u--input
|
||||
fontSize="12"
|
||||
v-model="select.memberSettlePeriodId"
|
||||
></u--input>
|
||||
</u-form-item>
|
||||
</u-col>
|
||||
<!-- <u-col span="6">
|
||||
|
@ -360,59 +256,70 @@
|
|||
</u-row>
|
||||
<u-row gutter="10">
|
||||
<u-col span="12">
|
||||
<u-form-item label="结算日期"
|
||||
@click="isData=true">
|
||||
<u--input disabled
|
||||
<u-form-item label="结算日期" @click="isData = true">
|
||||
<u--input
|
||||
disabled
|
||||
fontSize="12"
|
||||
disabledColor="#ffffff"
|
||||
v-model="select.operationTimeVal"
|
||||
suffixIcon="arrow-down"
|
||||
suffixIconStyle="font-size: 12px;"></u--input>
|
||||
suffixIconStyle="font-size: 12px;"
|
||||
></u--input>
|
||||
</u-form-item>
|
||||
</u-col>
|
||||
</u-row>
|
||||
<u-row gutter="10">
|
||||
<u-col span="6">
|
||||
<u-form-item :label="'隶属体系'">
|
||||
<picker :range="vertexList"
|
||||
<picker
|
||||
:range="vertexList"
|
||||
range-key="vertexName"
|
||||
@change="bindPickerChange4">
|
||||
<u--input disabled
|
||||
@change="bindPickerChange4"
|
||||
>
|
||||
<u--input
|
||||
disabled
|
||||
fontSize="12"
|
||||
disabledColor="#ffffff"
|
||||
v-model="select.vertexIdVal"
|
||||
suffixIcon="arrow-down"
|
||||
suffixIconStyle="font-size: 12px;"></u--input>
|
||||
suffixIconStyle="font-size: 12px;"
|
||||
></u--input>
|
||||
</picker>
|
||||
</u-form-item>
|
||||
</u-col>
|
||||
<u-col span="6">
|
||||
<u-form-item :label="'隶属团队'">
|
||||
<picker :range="memberteamList"
|
||||
<picker
|
||||
:range="memberteamList"
|
||||
range-key="teamName"
|
||||
@change="bindPickerChange5">
|
||||
<u--input disabled
|
||||
@change="bindPickerChange5"
|
||||
>
|
||||
<u--input
|
||||
disabled
|
||||
fontSize="12"
|
||||
disabledColor="#ffffff"
|
||||
v-model="select.teamIdVal"
|
||||
suffixIcon="arrow-down"
|
||||
suffixIconStyle="font-size: 12px;"></u--input>
|
||||
suffixIconStyle="font-size: 12px;"
|
||||
></u--input>
|
||||
</picker>
|
||||
</u-form-item>
|
||||
</u-col>
|
||||
</u-row>
|
||||
</u--form>
|
||||
<view class="footer">
|
||||
<u-button @click="getList1"
|
||||
<u-button
|
||||
@click="getList1"
|
||||
color="#C8161D"
|
||||
text="搜索"
|
||||
class="btnn"></u-button>
|
||||
<u-button @click="reset"
|
||||
text="重置"></u-button>
|
||||
class="btnn"
|
||||
></u-button>
|
||||
<u-button @click="reset" text="重置"></u-button>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-calendar @close="isData = false"
|
||||
<u-calendar
|
||||
@close="isData = false"
|
||||
:closeOnClickOverlay="true"
|
||||
:show="isData"
|
||||
:allowSameDay="true"
|
||||
|
@ -420,20 +327,23 @@
|
|||
:maxDate="calendar.maxDate"
|
||||
:minDate="calendar.minDate"
|
||||
:monthNum="calendar.monthNum"
|
||||
@confirm="confirm"></u-calendar>
|
||||
@confirm="confirm"
|
||||
></u-calendar>
|
||||
|
||||
<!-- 悬浮球 -->
|
||||
<drag-button />
|
||||
<export-ball ref="exportBall"
|
||||
<export-ball
|
||||
ref="exportBall"
|
||||
v-hasButtons="['BonusDetailExport']"
|
||||
@handleExport="handleExport" />
|
||||
@handleExport="handleExport"
|
||||
/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as api from '@/api/settle'
|
||||
import * as infor from '@/api/information'
|
||||
import { isLocals, isLocalSymbol } from '@/util/numberToCurrency'
|
||||
import * as api from '@/api/settle';
|
||||
import * as infor from '@/api/information';
|
||||
import { isLocals, isLocalSymbol } from '@/util/numberToCurrency';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
@ -582,147 +492,149 @@ export default {
|
|||
settleDate: '',
|
||||
totalPrice: [],
|
||||
isBtm: false,
|
||||
}
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.settleDate = options.settleDate || ''
|
||||
this.settleDate = options.settleDate || '';
|
||||
console.log(
|
||||
'%c [ this.settleDate ]-532',
|
||||
'font-size:13px; background:#40a0a3; color:#84e4e7;',
|
||||
this.settleDate
|
||||
)
|
||||
);
|
||||
// 获取字段权限
|
||||
this.getUserRole()
|
||||
this.getUserRole();
|
||||
// 获取下拉
|
||||
this.getData()
|
||||
this.chooseTimed()
|
||||
this.getData();
|
||||
this.chooseTimed();
|
||||
if (this.settleDate) {
|
||||
this.$set(this.select, 'startDate', this.settleDate)
|
||||
this.$set(this.select, 'endDate', this.settleDate)
|
||||
this.$set(this.select, 'startDate', this.settleDate);
|
||||
this.$set(this.select, 'endDate', this.settleDate);
|
||||
this.$set(
|
||||
this.select,
|
||||
'operationTimeVal',
|
||||
this.settleDate + ' 至 ' + this.settleDate
|
||||
)
|
||||
);
|
||||
} else {
|
||||
var s1 = this.getStartTime()
|
||||
var s2 = this.getEndTime()
|
||||
this.$set(this.select, 'startDate', s1)
|
||||
this.$set(this.select, 'endDate', s2)
|
||||
this.$set(this.select, 'operationTimeVal', s1 + ' 至 ' + s2)
|
||||
const s1 = this.getStartTime();
|
||||
const s2 = this.getEndTime();
|
||||
this.$set(this.select, 'startDate', s1);
|
||||
this.$set(this.select, 'endDate', s2);
|
||||
this.$set(this.select, 'operationTimeVal', s1 + ' 至 ' + s2);
|
||||
}
|
||||
this.getAll([0])
|
||||
this.todayData = Date.now()
|
||||
this.minDate = Number(new Date('1950-01-01'))
|
||||
this.getList()
|
||||
this.getAll([0]);
|
||||
this.todayData = Date.now();
|
||||
this.minDate = Number(new Date('1950-01-01'));
|
||||
this.getList();
|
||||
},
|
||||
onReachBottom() {
|
||||
this.queryParams.pageNum++
|
||||
this.getList()
|
||||
this.queryParams.pageNum++;
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
isLocalSymbol,
|
||||
isLocals,
|
||||
getStartTime() {
|
||||
let date = new Date()
|
||||
let year = date.getFullYear() // 得到当前年份
|
||||
let month = date.getDate() === 1 ? date.getMonth() : date.getMonth() + 1 // 得到当前月份(0-11月份,+1是当前月份)
|
||||
date.setDate(1) // 将当前时间的日期设置成第一天
|
||||
month = month >= 10 ? month : '0' + month // 补零
|
||||
let day = date.getDate() // 得到当前天数,实际是本月第一天,因为前面setDate(1) 设置过了
|
||||
day = day >= 10 ? day : '0' + day // 补零
|
||||
return year + '-' + month + '-' + day
|
||||
const date = new Date();
|
||||
const year = date.getFullYear(); // 得到当前年份
|
||||
let month =
|
||||
date.getDate() === 1 ? date.getMonth() : date.getMonth() + 1; // 得到当前月份(0-11月份,+1是当前月份)
|
||||
date.setDate(1); // 将当前时间的日期设置成第一天
|
||||
month = month >= 10 ? month : '0' + month; // 补零
|
||||
let day = date.getDate(); // 得到当前天数,实际是本月第一天,因为前面setDate(1) 设置过了
|
||||
day = day >= 10 ? day : '0' + day; // 补零
|
||||
return year + '-' + month + '-' + day;
|
||||
},
|
||||
getEndTime() {
|
||||
var date = new Date()
|
||||
var year = date.getFullYear() // 年
|
||||
let month = date.getDate() === 1 ? date.getMonth() : date.getMonth() + 1 // 得到当前月份(0-11月份,+1是当前月份)
|
||||
var day = date.getDate() > 1 ? date.getDate() - 1 : date.getDate() // 日
|
||||
let day1 = date.getDate()
|
||||
const date = new Date();
|
||||
const year = date.getFullYear(); // 年
|
||||
let month =
|
||||
date.getDate() === 1 ? date.getMonth() : date.getMonth() + 1; // 得到当前月份(0-11月份,+1是当前月份)
|
||||
let day = date.getDate() > 1 ? date.getDate() - 1 : date.getDate(); // 日
|
||||
const day1 = date.getDate();
|
||||
// 给一位数的数据前面加 “0”
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = '0' + month
|
||||
month = '0' + month;
|
||||
}
|
||||
if (day >= 0 && day <= 9) {
|
||||
day = '0' + day
|
||||
day = '0' + day;
|
||||
}
|
||||
if (day1 == 1) {
|
||||
var date2 = new Date()
|
||||
var year2 = date2.getFullYear()
|
||||
var month2 = date2.getMonth()
|
||||
var dates = new Date(year2, month2, 0).getDate()
|
||||
day = dates
|
||||
const date2 = new Date();
|
||||
const year2 = date2.getFullYear();
|
||||
const month2 = date2.getMonth();
|
||||
const dates = new Date(year2, month2, 0).getDate();
|
||||
day = dates;
|
||||
}
|
||||
return year + '-' + month + '-' + day
|
||||
return year + '-' + month + '-' + day;
|
||||
},
|
||||
// 设置默认日期,最大值为今天,最小值为去年今天
|
||||
chooseTimed() {
|
||||
let date = new Date()
|
||||
let year = date.getFullYear()
|
||||
let month = date.getMonth() + 1
|
||||
let day = date.getDate()
|
||||
const date = new Date();
|
||||
const year = date.getFullYear();
|
||||
let month = date.getMonth() + 1;
|
||||
let day = date.getDate();
|
||||
if (month <= 9) {
|
||||
month = '0' + month
|
||||
month = '0' + month;
|
||||
}
|
||||
if (day <= 9) {
|
||||
day = '0' + day
|
||||
day = '0' + day;
|
||||
}
|
||||
let minyear = year - 1
|
||||
let maxyear = year + 1
|
||||
this.calendar.minDate = minyear + '-' + month + '-' + day
|
||||
this.calendar.maxDate = maxyear + '-' + month + '-' + day
|
||||
const minyear = year - 1;
|
||||
const maxyear = year + 1;
|
||||
this.calendar.minDate = minyear + '-' + month + '-' + day;
|
||||
this.calendar.maxDate = maxyear + '-' + month + '-' + day;
|
||||
},
|
||||
getData() {
|
||||
api.accountList().then((res) => {
|
||||
this.acList = res.data
|
||||
})
|
||||
this.acList = res.data;
|
||||
});
|
||||
// 隶属体系下拉选
|
||||
infor.getvertexValue().then((res) => {
|
||||
this.vertexList = res.data
|
||||
})
|
||||
this.vertexList = res.data;
|
||||
});
|
||||
// 隶属团队下拉选
|
||||
infor.getmemberTeamList().then((res) => {
|
||||
this.memberteamList = res.rows
|
||||
})
|
||||
this.memberteamList = res.rows;
|
||||
});
|
||||
},
|
||||
// 全选
|
||||
getAll(e) {
|
||||
if (e.length > 0) {
|
||||
this.menuList.forEach((item) => {
|
||||
this.$set(item, 'checked', true)
|
||||
this.selected.push(item.id)
|
||||
})
|
||||
this.$set(item, 'checked', true);
|
||||
this.selected.push(item.id);
|
||||
});
|
||||
} else {
|
||||
this.menuList.forEach((item) => {
|
||||
this.$set(item, 'checked', false)
|
||||
})
|
||||
this.$set(this, 'selected', [])
|
||||
this.$set(item, 'checked', false);
|
||||
});
|
||||
this.$set(this, 'selected', []);
|
||||
}
|
||||
},
|
||||
// 单选
|
||||
getMenu(e) {
|
||||
this.menuList.forEach((item) => {
|
||||
this.$set(item, 'checked', false)
|
||||
this.$set(item, 'checked', false);
|
||||
e.forEach((ctem) => {
|
||||
if (item.id == ctem) {
|
||||
this.$set(item, 'checked', true)
|
||||
this.$set(item, 'checked', true);
|
||||
}
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
if (e.length == this.menuList.length) {
|
||||
this.$set(this, 'selectAll', [0])
|
||||
this.$set(this, 'selectAll', [0]);
|
||||
} else {
|
||||
this.$set(this, 'selectAll', [])
|
||||
this.$set(this, 'selectAll', []);
|
||||
}
|
||||
},
|
||||
getUserRole() {
|
||||
infor.getRoleMenu('BonusDetail').then((res) => {
|
||||
let obj = {}
|
||||
const obj = {};
|
||||
res.data.forEach((item) => {
|
||||
obj[item] = 1
|
||||
})
|
||||
this.allTxt = obj
|
||||
})
|
||||
obj[item] = 1;
|
||||
});
|
||||
this.allTxt = obj;
|
||||
});
|
||||
},
|
||||
|
||||
// 查询会员信息
|
||||
|
@ -730,11 +642,11 @@ export default {
|
|||
api
|
||||
.queryBonusDetail(Object.assign({}, this.queryParams, this.select))
|
||||
.then((res) => {
|
||||
this.total = res.total
|
||||
this.tableData = this.tableData.concat(res.rows)
|
||||
let obj = {}
|
||||
this.total = res.total;
|
||||
this.tableData = this.tableData.concat(res.rows);
|
||||
const obj = {};
|
||||
this.tableData.forEach((item) => {
|
||||
for (let key in item) {
|
||||
for (const key in item) {
|
||||
if (
|
||||
key != 'memberCode' &&
|
||||
key != 'memberName' &&
|
||||
|
@ -743,68 +655,76 @@ export default {
|
|||
key != 'period' &&
|
||||
key != 'settleDate'
|
||||
) {
|
||||
let value = Number(item[key])
|
||||
key in obj ? (obj[key] += value) : (obj[key] = value)
|
||||
const value = Number(item[key]);
|
||||
key in obj ? (obj[key] += value) : (obj[key] = value);
|
||||
}
|
||||
}
|
||||
})
|
||||
this.totalPrice = [obj]
|
||||
})
|
||||
});
|
||||
this.totalPrice = [obj];
|
||||
});
|
||||
},
|
||||
getList1() {
|
||||
this.tableData = []
|
||||
this.queryParams.pageNum = 1
|
||||
this.isTop = false
|
||||
this.getList()
|
||||
this.tableData = [];
|
||||
this.queryParams.pageNum = 1;
|
||||
this.isTop = false;
|
||||
this.getList();
|
||||
},
|
||||
reset() {
|
||||
this.select = {}
|
||||
this.select = {};
|
||||
},
|
||||
handleExport() {
|
||||
let url = '/bonus/manage/bonus/export-bonus-detail'
|
||||
let obj = Object.assign({}, this.select, this.queryParams)
|
||||
const url = '/bonus/manage/bonus/export-bonus-detail';
|
||||
const obj = Object.assign({}, this.select, this.queryParams);
|
||||
this.$refs.exportBall.handleExport(
|
||||
url,
|
||||
obj,
|
||||
`${'奖金明细'}-${new Date().getTime()}`
|
||||
)
|
||||
);
|
||||
},
|
||||
bindPickerChange1(e) {
|
||||
this.$set(this.select, 'pkCurrencyVal', this.acList[e.detail.value].label)
|
||||
this.$set(this.select, 'pkCurrency', this.acList[e.detail.value].value)
|
||||
this.$set(
|
||||
this.select,
|
||||
'pkCurrencyVal',
|
||||
this.acList[e.detail.value].label
|
||||
);
|
||||
this.$set(this.select, 'pkCurrency', this.acList[e.detail.value].value);
|
||||
},
|
||||
bindPickerChange4(e) {
|
||||
this.$set(
|
||||
this.select,
|
||||
'vertexIdVal',
|
||||
this.vertexList[e.detail.value].vertexName
|
||||
)
|
||||
this.$set(this.select, 'pkVertex', this.vertexList[e.detail.value].pkId)
|
||||
);
|
||||
this.$set(
|
||||
this.select,
|
||||
'pkVertex',
|
||||
this.vertexList[e.detail.value].pkId
|
||||
);
|
||||
},
|
||||
bindPickerChange5(e) {
|
||||
this.$set(
|
||||
this.select,
|
||||
'teamIdVal',
|
||||
this.memberteamList[e.detail.value].teamName
|
||||
)
|
||||
);
|
||||
this.$set(
|
||||
this.select,
|
||||
'pkTeamCode',
|
||||
this.memberteamList[e.detail.value].pkId
|
||||
)
|
||||
);
|
||||
},
|
||||
confirm(e) {
|
||||
this.$set(this.select, 'startDate', e[0])
|
||||
this.$set(this.select, 'endDate', e[e.length - 1])
|
||||
this.$set(this.select, 'startDate', e[0]);
|
||||
this.$set(this.select, 'endDate', e[e.length - 1]);
|
||||
this.$set(
|
||||
this.select,
|
||||
'operationTimeVal',
|
||||
e[0] + ' 至 ' + e[e.length - 1]
|
||||
)
|
||||
this.isData = false
|
||||
);
|
||||
this.isData = false;
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
@ -30,30 +30,12 @@
|
|||
{{ item.coachIncomeOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.shareIncomeOri">
|
||||
<td align="right">{{ '分红收益' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">
|
||||
{{ item.shareIncomeOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.serviceIncomeOri">
|
||||
<td align="right">{{ '报单收益' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="right">{{ '服务补贴' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">
|
||||
{{ item.serviceIncomeOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.repurPushIncomeOri">
|
||||
<td align="right">{{ '复购推荐收益' }}</td>
|
||||
<td align="left">
|
||||
{{ item.repurPushIncomeOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.repurRangeIncomeOri">
|
||||
<td align="right">{{ '复购级差收益' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">
|
||||
{{ item.repurRangeIncomeOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.repurExpandIncomeOri">
|
||||
<td align="right">{{ '复购拓展收益' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">
|
||||
|
@ -66,20 +48,9 @@
|
|||
{{ item.repurCoachIncome | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.repurCouponOri">
|
||||
<td align="right">{{ '复购券' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">
|
||||
{{ item.repurCouponOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.repurCouponShareOri">
|
||||
<td align="right">{{ '复购券均分' }}</td>
|
||||
<td align="left">{{ item.repurCouponShareOri }}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.backPointsOri">
|
||||
<td align="right">{{ '商城重消' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="right">{{ '重复消费' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">
|
||||
{{ item.backPointsOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
|
@ -91,18 +62,6 @@
|
|||
{{ item.serviceSpendOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">直推级差({{ isLocalSymbol() }})</td>
|
||||
<td align="left">
|
||||
{{ item.globalPointsOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="allTxt.carAwardPointsOri">
|
||||
<td align="right">{{ '车奖积分' }}</td>
|
||||
<td align="left">
|
||||
{{ item.carAwardPointsOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.purRealSubtotalOri">
|
||||
<td align="right">{{ '首购实发小计' }}({{ isLocalSymbol() }})</td>
|
||||
|
@ -118,13 +77,6 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.repurCouponSubtotalOri">
|
||||
<td align="right">{{ '复购券实发小计' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">
|
||||
{{ item.repurCouponSubtotalOri | toThousandthAndKeepDecimal }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="allTxt.realIncomeTotalOri">
|
||||
<td align="right">{{ '实发收益总计' }}({{ isLocalSymbol() }})</td>
|
||||
<td align="left">
|
||||
|
@ -135,10 +87,6 @@
|
|||
<td align="right">{{ '结算时间' }}</td>
|
||||
<td align="left">{{ item.settleDate }}</td>
|
||||
</tr>
|
||||
<!-- <tr v-if="allTxt.settleDate">
|
||||
<td align="right">{{ '截止日期' }}</td>
|
||||
<td align="left">{{ item.settleDate }}</td>
|
||||
</tr> -->
|
||||
</table>
|
||||
<view class="table_f">
|
||||
<u-button
|
||||
|
|
Loading…
Reference in New Issue