1053 lines
33 KiB
Vue
1053 lines
33 KiB
Vue
|
<!--
|
||
|
* @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"
|
||
|
label-width="100px"
|
||
|
style="background-color: #fff;padding: 0px 10px 0 10px">
|
||
|
<el-row>
|
||
|
<!-- 一层 -->
|
||
|
<el-col :span="4">
|
||
|
<el-form-item :label="$t('MN_T_1')">
|
||
|
<el-input v-model="select.memberCode"
|
||
|
clearable />
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<el-col :span="4">
|
||
|
<el-form-item :label="$t('CK_KS_16')">
|
||
|
<el-select v-model="select.pkAwards"
|
||
|
clearable
|
||
|
placeholder="">
|
||
|
<el-option v-for="item in awardsList"
|
||
|
:key="item.pkId"
|
||
|
:label="item.awardsName"
|
||
|
:value="item.pkId" />
|
||
|
</el-select>
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<el-col :span="4">
|
||
|
<el-form-item :label="$t('MN_F_T_1001')">
|
||
|
<el-select v-model="select.relaType"
|
||
|
clearable
|
||
|
placeholder="">
|
||
|
<el-option v-for="item in kdzcList"
|
||
|
:key="item.value"
|
||
|
:label="item.label"
|
||
|
:value="item.value" />
|
||
|
</el-select>
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<!-- <el-col :span="4">-->
|
||
|
<!-- <el-form-item :label="$t('N_I_168')">-->
|
||
|
<!-- <el-select-->
|
||
|
<!-- v-model="select.placeDept"-->
|
||
|
<!-- clearable-->
|
||
|
<!-- placeholder=""-->
|
||
|
<!-- >-->
|
||
|
<!-- <el-option-->
|
||
|
<!-- v-for="item in deptList"-->
|
||
|
<!-- :key="item.deptId"-->
|
||
|
<!-- :label="item.deptName"-->
|
||
|
<!-- :value="item.deptId"-->
|
||
|
<!-- />-->
|
||
|
<!-- </el-select>-->
|
||
|
<!-- </el-form-item>-->
|
||
|
<!-- </el-col>-->
|
||
|
<el-col :span="4">
|
||
|
<el-form-item :label="$t('MN_F_T_603')">
|
||
|
<el-input v-model="select.consanguinityAlgebra"
|
||
|
clearable />
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<el-col :span="4">
|
||
|
<el-form-item :label="$t('MN_F_T_604')">
|
||
|
<el-input v-model="select.resettleLevel"
|
||
|
clearable />
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<el-col :span="4">
|
||
|
<el-form-item :label="$t('w_0241')">
|
||
|
<el-select v-model="select.placeDept"
|
||
|
clearable
|
||
|
placeholder="">
|
||
|
<el-option v-for="item in deptList"
|
||
|
:key="item.value"
|
||
|
:label="item.label"
|
||
|
:value="item.value" />
|
||
|
</el-select>
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<!-- <el-col :span="4">
|
||
|
<el-form-item :label="$t('MN_F_T_1002')">
|
||
|
<el-input v-model="select.realIncomeTotal" clearable />
|
||
|
</el-form-item>
|
||
|
</el-col> -->
|
||
|
<el-col :span="4">
|
||
|
<el-form-item :label="$t('w_0429')"
|
||
|
prop="creationTime"
|
||
|
class="el-check_s">
|
||
|
<el-date-picker v-model="creationTime3"
|
||
|
value-format="yyyy-MM-dd"
|
||
|
type="date"
|
||
|
:placeholder="$t('CK_KS_38')"
|
||
|
@change="changeTime2" />
|
||
|
</el-form-item>
|
||
|
</el-col>
|
||
|
<el-col :span="4"
|
||
|
style="margin-left: 30px">
|
||
|
<el-button type="primary"
|
||
|
style="background-color: #c8161d"
|
||
|
@click="getDataList"> {{ $t('MN_T_2') }}</el-button>
|
||
|
<el-button @click="reset"> {{ $t('MN_T_3') }}</el-button>
|
||
|
</el-col>
|
||
|
|
||
|
</el-row>
|
||
|
</el-form>
|
||
|
<div class="maintop">
|
||
|
<div class="mainbtn">
|
||
|
<el-button size="small"
|
||
|
v-hasButtons="['teamInfoExport']"
|
||
|
@click="exports"
|
||
|
class="thebtn2"> {{ $t('MN_T_8') }}</el-button>
|
||
|
</div>
|
||
|
<div>
|
||
|
<el-dropdown :hide-on-click="false">
|
||
|
<span class="el-dropdown-link kuang"
|
||
|
style="margin-right: 10px">
|
||
|
{{$t('MN_F_T_939')}}<i class="el-icon-arrow-down el-icon--right"></i>
|
||
|
</span>
|
||
|
<el-dropdown-menu slot="dropdown"
|
||
|
style="overflow: auto;height: 70%">
|
||
|
<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"
|
||
|
:data="tableData.censusSummaryList"
|
||
|
style="width: 100%"
|
||
|
:header-cell-style="{ background: '#EEEEEE' }" v-loading="loading"
|
||
|
:row-class-name="tableRowClassName"
|
||
|
:summary-method="getSummaries"
|
||
|
show-summary
|
||
|
height="720px"
|
||
|
@selection-change="handleSelectionChange">
|
||
|
<el-table-column type="selection"
|
||
|
width="55" />
|
||
|
<el-table-column v-if="allTxt.memberCode"
|
||
|
align="center"
|
||
|
prop="memberCode"
|
||
|
width="130"
|
||
|
:label="$t('MN_T_1')" />
|
||
|
<el-table-column v-if="allTxt.memberName"
|
||
|
align="center"
|
||
|
prop="memberName"
|
||
|
width="130"
|
||
|
:label="$t('CK_KS_14')" />
|
||
|
<el-table-column v-if="allTxt.pkAwardsStr"
|
||
|
align="center"
|
||
|
prop="pkAwardsStr"
|
||
|
width="130"
|
||
|
:label="$t('CK_KS_16')" />
|
||
|
<el-table-column align="center"
|
||
|
prop="resettleLevel"
|
||
|
width="130"
|
||
|
v-if="menuList[1].checked==true&&allTxt.resettleLevel"
|
||
|
:label="$t('MN_F_T_604')" />
|
||
|
<el-table-column align="center"
|
||
|
prop="placeDeptStr"
|
||
|
width="130"
|
||
|
:label="$t('w_0241')"
|
||
|
v-if="menuList[3].checked==true&&allTxt.placeDeptStr" />
|
||
|
<el-table-column align="center"
|
||
|
v-if="allTxt.placeParentCode"
|
||
|
prop="placeParentCode"
|
||
|
width="130"
|
||
|
:label="$t('N_I_167')" />
|
||
|
<el-table-column align="center"
|
||
|
prop="consanguinityAlgebra"
|
||
|
width="130"
|
||
|
v-if="menuList[2].checked==true&&allTxt.consanguinityAlgebra"
|
||
|
:label="$t('MN_F_T_603')" />
|
||
|
<el-table-column align="center"
|
||
|
prop="afirstPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_835')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[4].checked==true&&allTxt.afirstPv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="bfirstPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_836')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[5].checked==true&&allTxt.bfirstPv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="consanguinityFirstPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1003')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[6].checked==true&&allTxt.consanguinityFirstPv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="repASumPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_837')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[7].checked==true&&allTxt.repASumPv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="repBSumPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_838')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[8].checked==true&&allTxt.repBSumPv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="consanguinityRepBSumPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1004')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[9].checked==true&&allTxt.consanguinityRepBSumPv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="aSumRealPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_839')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[10].checked==true&&allTxt.aSumRealPv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="bSumRealPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_840')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[11].checked==true&&allTxt.bSumRealPv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="consanguinityRealPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1005')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[12].checked==true&&allTxt.consanguinityRealPv" />
|
||
|
<!-- <el-table-column
|
||
|
align="center"
|
||
|
prop=""
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1002')+'($)'"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[13].checked==true"
|
||
|
/> -->
|
||
|
<el-table-column align="center"
|
||
|
prop="bonusTeamProportion"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1006')+'(%)'"
|
||
|
v-if="menuList[15].checked==true&&allTxt.bonusTeamProportion" />
|
||
|
<el-table-column align="center"
|
||
|
prop="bonusLargeMarketProportion"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_841') +('%')"
|
||
|
v-if="menuList[14].checked==true&&allTxt.bonusLargeMarketProportion" />
|
||
|
<el-table-column align="center"
|
||
|
prop="directPushPeopleNumber"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_842')"
|
||
|
v-if="menuList[16].checked==true&&allTxt.directPushPeopleNumber" />
|
||
|
<el-table-column align="center"
|
||
|
prop="directPushPeoplePv"
|
||
|
width="130"
|
||
|
:label="$t('N_I_87')"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[17].checked==true&&allTxt.directPushPeoplePv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="repurchaseAmount"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_843')+('$')"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[18].checked==true&&allTxt.repurchaseAmount" />
|
||
|
<el-table-column align="center"
|
||
|
prop="repurchasePv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_844')"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[19].checked==true&&allTxt.repurchasePv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="repurchaseIntegral"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1007')"
|
||
|
v-if="menuList[20].checked==true&&allTxt.repurchaseIntegral" />
|
||
|
<el-table-column align="center"
|
||
|
prop="benefitAmount"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1008')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[21].checked==true&&allTxt.benefitAmount" />
|
||
|
<el-table-column align="center"
|
||
|
prop="benefitPv"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1009')+`(${isLocals()})`"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[22].checked==true&&allTxt.benefitPv" />
|
||
|
<el-table-column align="center"
|
||
|
prop="welfarePoints"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1010')"
|
||
|
v-if="menuList[23].checked==true&&allTxt.welfarePoints" />
|
||
|
<el-table-column align="center"
|
||
|
prop="memberTransferCount"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_845')"
|
||
|
v-if="menuList[24].checked==true&&allTxt.memberTransferCount" />
|
||
|
<el-table-column align="center"
|
||
|
prop="transferAmount"
|
||
|
width="130"
|
||
|
:label="$t('MY_WAL_20')+'($)'"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[25].checked==true&&allTxt.transferAmount" />
|
||
|
<el-table-column align="center"
|
||
|
prop="rechargeAmount"
|
||
|
width="130"
|
||
|
:label="$t('w_0212')+'($)'"
|
||
|
:formatter="stateFormat"
|
||
|
v-if="menuList[26].checked==true&&allTxt.rechargeAmount" />
|
||
|
<el-table-column align="center"
|
||
|
prop="withdrawalNumber"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_846')"
|
||
|
v-if="menuList[27].checked==true&&allTxt.withdrawalNumber" />
|
||
|
<!-- <el-table-column align="center"
|
||
|
prop="withdrawalAmount"
|
||
|
width="130"
|
||
|
:label="$t('MY_WAL_26')+'($)'"
|
||
|
v-if="allTxt.withdrawalAmount" /> -->
|
||
|
<el-table-column align="center"
|
||
|
prop="withdrawalAmount"
|
||
|
width="130"
|
||
|
:label="$t('MY_WAL_26')+'($)'"
|
||
|
v-if="menuList[28].checked==true&&allTxt.withdrawalAmount" />
|
||
|
<el-table-column align="center"
|
||
|
prop="lastLoginTime"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_848')"
|
||
|
v-if="menuList[29].checked==true&&allTxt.lastLoginTime" />
|
||
|
<el-table-column align="center"
|
||
|
prop="loginNumber"
|
||
|
width="130"
|
||
|
:label="$t('MN_F_T_1011')"
|
||
|
v-if="menuList[13].checked==true&&allTxt.loginNumber" />
|
||
|
<el-table-column v-if="allTxt.creationTime"
|
||
|
align="center"
|
||
|
prop="creationTime"
|
||
|
width="200"
|
||
|
:label="$t('PER_DA_9')" />
|
||
|
<el-table-column v-if="allTxt.payTime"
|
||
|
align="center"
|
||
|
prop="payTime"
|
||
|
width="200"
|
||
|
:label="$t('MN_F_T_914')" />
|
||
|
<el-table-column v-if="allTxt.directPushNumber"
|
||
|
align="center"
|
||
|
prop="directPushNumber"
|
||
|
width="120"
|
||
|
:label="$t('MN_F_T_834')" />
|
||
|
</el-table>
|
||
|
</div>
|
||
|
<!-- <div class="heji">-->
|
||
|
<!-- <div-->
|
||
|
<!-- v-for="item in menuList"-->
|
||
|
<!-- v-if="item.checked && item.id != 0 && item.id > 13"-->
|
||
|
<!-- :key="item.id"-->
|
||
|
<!-- class="dis"-->
|
||
|
<!-- >-->
|
||
|
<!-- <div>{{ item.text }}</div>-->
|
||
|
<!-- <div>{{ tableData[item.prop] }}</div>-->
|
||
|
<!-- </div>-->
|
||
|
<!-- </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 * as api_s from '@/api/product.js'
|
||
|
import * as apis from '@/api/site.js'
|
||
|
import { classifyUpdate, classifySave } from '@/api/product'
|
||
|
import * as log from '@/api/logistics'
|
||
|
import { getcountryAllList } from '@/api/exchangerate'
|
||
|
import { bonusSource } from '@/api/bonus'
|
||
|
import * as del from '@/api/delivery'
|
||
|
import { getPlacedeptList } from '@/api/specialBusiness'
|
||
|
import { deptAll, exportClassIfy, memberTeamInfo } from '@/api/product.js'
|
||
|
import { isLocal, isLocals, stateFormat } from '@/utils/numberToCurrency'
|
||
|
import { getAwardsListChiose } from '@/api/level'
|
||
|
import store from '@/store'
|
||
|
import { getRoleMenu } from '@/api/notice'
|
||
|
|
||
|
export default {
|
||
|
name: 'Bzpz',
|
||
|
computed: {
|
||
|
store() {
|
||
|
return store
|
||
|
},
|
||
|
},
|
||
|
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,
|
||
|
kdzcList: [
|
||
|
{
|
||
|
value: '1',
|
||
|
label: this.$t('MN_F_T_1012'),
|
||
|
},
|
||
|
{
|
||
|
value: '2',
|
||
|
label: this.$t('MN_F_T_1013'),
|
||
|
},
|
||
|
], // 注册类型
|
||
|
regionParams: {
|
||
|
label: 'name',
|
||
|
value: 'id',
|
||
|
children: 'children',
|
||
|
expandTrigger: 'hover',
|
||
|
},
|
||
|
isActive: 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: this.$t('MN_F_T_604'),
|
||
|
checked: true,
|
||
|
},
|
||
|
{
|
||
|
id: 2,
|
||
|
text: this.$t('MN_F_T_603'),
|
||
|
checked: true,
|
||
|
},
|
||
|
{
|
||
|
id: 3,
|
||
|
text: this.$t('w_0241'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 4,
|
||
|
text: this.$t('MN_F_T_835'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 5,
|
||
|
text: this.$t('MN_F_T_836'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 6,
|
||
|
text: this.$t('MN_F_T_1003'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 7,
|
||
|
text: this.$t('MN_F_T_837'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 8,
|
||
|
text: this.$t('MN_F_T_838'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 9,
|
||
|
text: this.$t('MN_F_T_1004'),
|
||
|
checked: true,
|
||
|
},
|
||
|
{
|
||
|
id: 10,
|
||
|
text: this.$t('MN_F_T_839'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 11,
|
||
|
text: this.$t('MN_F_T_840'),
|
||
|
checked: true,
|
||
|
prop: 'priceDollar',
|
||
|
},
|
||
|
{
|
||
|
id: 12,
|
||
|
text: this.$t('MN_F_T_1005'),
|
||
|
checked: true,
|
||
|
prop: 'postageDollar',
|
||
|
},
|
||
|
{
|
||
|
id: 30,
|
||
|
text: this.$t('MN_F_T_1011'),
|
||
|
checked: true,
|
||
|
prop: 'lastInstanceRemark',
|
||
|
},
|
||
|
{
|
||
|
id: 14,
|
||
|
text: this.$t('MN_F_T_1006'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 15,
|
||
|
text: this.$t('MN_F_T_841'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 16,
|
||
|
text: this.$t('MN_F_T_842'),
|
||
|
checked: true,
|
||
|
prop: 'creationTime',
|
||
|
},
|
||
|
{
|
||
|
id: 17,
|
||
|
text: this.$t('N_I_87'),
|
||
|
checked: true,
|
||
|
prop: 'payTime',
|
||
|
},
|
||
|
{
|
||
|
id: 18,
|
||
|
text: this.$t('MN_F_T_843'),
|
||
|
checked: true,
|
||
|
prop: 'deliveryTime',
|
||
|
},
|
||
|
{
|
||
|
id: 19,
|
||
|
text: this.$t('MN_F_T_844'),
|
||
|
checked: true,
|
||
|
prop: 'deliveryWayStr',
|
||
|
},
|
||
|
{
|
||
|
id: 20,
|
||
|
text: this.$t('MN_F_T_1007'),
|
||
|
checked: true,
|
||
|
prop: '',
|
||
|
},
|
||
|
{
|
||
|
id: 21,
|
||
|
text: this.$t('MN_F_T_1008'),
|
||
|
checked: true,
|
||
|
prop: 'tranTypeStr',
|
||
|
},
|
||
|
{
|
||
|
id: 22,
|
||
|
text: this.$t('MN_F_T_1009'),
|
||
|
checked: true,
|
||
|
prop: 'approvalStatus',
|
||
|
},
|
||
|
{
|
||
|
id: 23,
|
||
|
text: this.$t('MN_F_T_1010'),
|
||
|
checked: true,
|
||
|
prop: 'payTypeStr',
|
||
|
},
|
||
|
{
|
||
|
id: 24,
|
||
|
text: this.$t('MN_F_T_845'),
|
||
|
checked: true,
|
||
|
prop: 'creationTime',
|
||
|
},
|
||
|
{
|
||
|
id: 25,
|
||
|
text: this.$t('MY_WAL_20'),
|
||
|
checked: true,
|
||
|
prop: 'creatorName',
|
||
|
},
|
||
|
{
|
||
|
id: 26,
|
||
|
text: this.$t('w_0212'),
|
||
|
checked: true,
|
||
|
prop: 'lastInstanceDate',
|
||
|
},
|
||
|
{
|
||
|
id: 27,
|
||
|
text: this.$t('MN_F_T_846'),
|
||
|
checked: true,
|
||
|
prop: 'lastInstanceApprover',
|
||
|
},
|
||
|
{
|
||
|
id: 28,
|
||
|
text: this.$t('MY_WAL_26'),
|
||
|
checked: true,
|
||
|
prop: 'withdrawalAmount',
|
||
|
},
|
||
|
{
|
||
|
id: 29,
|
||
|
text: this.$t('MN_F_T_848'),
|
||
|
checked: true,
|
||
|
prop: 'lastLoginTime ',
|
||
|
},
|
||
|
|
||
|
],
|
||
|
creationTime: [],
|
||
|
creationTime1: [],
|
||
|
creationTime2: [],
|
||
|
creationTime3: '',
|
||
|
select: {},
|
||
|
// 查询参数
|
||
|
queryParams: {
|
||
|
pageNum: 1,
|
||
|
pageSize: 50,
|
||
|
},
|
||
|
addOrEdit: '',
|
||
|
total: 0,
|
||
|
dialogVisible: false,
|
||
|
tableData: {
|
||
|
censusSummaryList: [],
|
||
|
},
|
||
|
moren: 'teamInfo',
|
||
|
topList: [
|
||
|
{
|
||
|
name: this.$t('MN_F_T_9'),
|
||
|
path: 'teamInfo',
|
||
|
},
|
||
|
],
|
||
|
form: {
|
||
|
name: '',
|
||
|
},
|
||
|
areaData: [],
|
||
|
rules: {
|
||
|
name: [
|
||
|
{ required: true, message: this.$t('MN_F_T_302'), trigger: 'blur' },
|
||
|
],
|
||
|
},
|
||
|
shoppingAddress: [],
|
||
|
acList: [],
|
||
|
verList: [],
|
||
|
memberList: [],
|
||
|
yieldList: [],
|
||
|
yieldStatus: [],
|
||
|
countryList: [],
|
||
|
orderTypeList: [],
|
||
|
pkMemberTeam: [],
|
||
|
pkVertex: [],
|
||
|
typeId: '',
|
||
|
paywayList: [],
|
||
|
presaleStatusList: [],
|
||
|
orderStatusList: [],
|
||
|
deptList: [],
|
||
|
transportTypeList: [],
|
||
|
gyList: [],
|
||
|
awardsList: [],
|
||
|
allTxt: {},
|
||
|
}
|
||
|
},
|
||
|
mounted() {
|
||
|
// 获取下拉
|
||
|
this.getData()
|
||
|
// 获取列表
|
||
|
this.getDataList()
|
||
|
this.getUserRole()
|
||
|
},
|
||
|
methods: {
|
||
|
getUserRole() {
|
||
|
getRoleMenu('TeamInfo').then((res) => {
|
||
|
let obj = {}
|
||
|
res.data.forEach((item) => {
|
||
|
obj[item] = 1
|
||
|
})
|
||
|
this.allTxt = obj
|
||
|
this.$nextTick(() => {
|
||
|
this.$refs.table.doLayout()
|
||
|
})
|
||
|
})
|
||
|
},
|
||
|
isLocals,
|
||
|
isLocal,
|
||
|
stateFormat,
|
||
|
exports() {
|
||
|
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/manager/member/member-team-info-export',
|
||
|
Object.assign({}, this.queryParams, this.select),
|
||
|
`团队信息${new Date().getTime()}.xlsx`
|
||
|
)
|
||
|
})
|
||
|
// this.download(
|
||
|
// "/member/manager/member/member-team-info-export",
|
||
|
// { ...this.queryParams },
|
||
|
// `${this.$t('MN_F_T_9')}-${new Date().getTime()}.xlsx`
|
||
|
// );
|
||
|
},
|
||
|
handleChange(res) {
|
||
|
this.form.recProvince = res[0]
|
||
|
this.form.recCity = res[1]
|
||
|
this.form.recCounty = res[2]
|
||
|
},
|
||
|
// 展开折叠
|
||
|
changeActive() {
|
||
|
this.isActive = !this.isActive
|
||
|
},
|
||
|
reset() {
|
||
|
this.select = {}
|
||
|
this.pkVertex = []
|
||
|
this.pkMemberTeam = []
|
||
|
this.typeId = ''
|
||
|
this.creationTime3 = ''
|
||
|
this.getDataList()
|
||
|
},
|
||
|
getMenu(e, id) {
|
||
|
if (e && id == 0) {
|
||
|
this.menuList.forEach((item) => {
|
||
|
this.$set(item, 'checked', true)
|
||
|
})
|
||
|
} else if (!e && id == 0) {
|
||
|
this.menuList.forEach((item) => {
|
||
|
this.$set(item, 'checked', false)
|
||
|
})
|
||
|
}
|
||
|
},
|
||
|
getData() {
|
||
|
getAwardsListChiose().then((res) => {
|
||
|
this.awardsList = res.rows
|
||
|
})
|
||
|
// 获取左区右区
|
||
|
getPlacedeptList().then((res) => {
|
||
|
this.deptList = res.data
|
||
|
})
|
||
|
},
|
||
|
changeTime(val) {
|
||
|
this.select.startCreationTime = val[0]
|
||
|
this.select.endCreationTime = val[1]
|
||
|
},
|
||
|
changeTime1(val) {
|
||
|
this.select.startPayTime = val[0]
|
||
|
this.select.endPayTime = val[1]
|
||
|
},
|
||
|
changeTime2(val) {
|
||
|
this.select.queryDate = val
|
||
|
},
|
||
|
changeTime3(val) {
|
||
|
this.select.startCreationTime = val[0]
|
||
|
this.select.endCreationTime = val[1]
|
||
|
},
|
||
|
// 点击修改
|
||
|
toFixed(id) {
|
||
|
this.addOrEdit = false
|
||
|
this.dialogVisible = true
|
||
|
this.$router.push({
|
||
|
path: 'noticeList/details',
|
||
|
query: {
|
||
|
pkId: id,
|
||
|
},
|
||
|
})
|
||
|
},
|
||
|
getSummaries(param) {
|
||
|
const { columns, data } = param
|
||
|
const sums = []
|
||
|
columns.forEach((column, index) => {
|
||
|
if (index === 0) {
|
||
|
sums[index] = ''
|
||
|
return
|
||
|
}
|
||
|
if (index === 1) {
|
||
|
sums[index] = ''
|
||
|
return
|
||
|
}
|
||
|
const values = data.map((item) => Number(item[column.property]))
|
||
|
if (!values.every((value) => isNaN(value))) {
|
||
|
sums[index] = values.reduce((prev, curr) => {
|
||
|
const value = Number(curr)
|
||
|
if (!isNaN(value)) {
|
||
|
return
|
||
|
} else {
|
||
|
return
|
||
|
}
|
||
|
}, 0)
|
||
|
// sums[index] += ' 元'
|
||
|
} else {
|
||
|
sums[index] = ''
|
||
|
}
|
||
|
})
|
||
|
|
||
|
return sums
|
||
|
},
|
||
|
// 删除
|
||
|
handleDelete(id) {
|
||
|
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',
|
||
|
}).then(() => {
|
||
|
api.classifyDel(id).then((res) => {
|
||
|
this.getDataList()
|
||
|
})
|
||
|
})
|
||
|
},
|
||
|
onSubmit(formName) {
|
||
|
this.$refs[formName].validate((valid) => {
|
||
|
if (valid) {
|
||
|
let url = ''
|
||
|
if (this.addOrEdit == true) {
|
||
|
url = classifySave
|
||
|
} else {
|
||
|
url = classifyUpdate
|
||
|
}
|
||
|
url(this.form).then((res) => {
|
||
|
if (res.code == 200) {
|
||
|
this.$message({
|
||
|
message: res.msg,
|
||
|
type: 'success',
|
||
|
})
|
||
|
this.dialogVisible = false
|
||
|
// 充值数据
|
||
|
this.$refs[formName].resetFields()
|
||
|
// 获取列表
|
||
|
this.getDataList()
|
||
|
}
|
||
|
})
|
||
|
} else {
|
||
|
return false
|
||
|
}
|
||
|
})
|
||
|
},
|
||
|
handleClose() {
|
||
|
this.dialogVisible = false
|
||
|
this.$refs['form'].clearValidate()
|
||
|
this.$refs['form'].resetFields()
|
||
|
},
|
||
|
openDig() {
|
||
|
// 导出撤单列表
|
||
|
this.$router.push({
|
||
|
path: 'noticeList/details',
|
||
|
})
|
||
|
},
|
||
|
getDataList() {
|
||
|
this.loading = true
|
||
|
if (this.creationTime3 == '' || this.creationTime3 == null) {
|
||
|
this.select.queryDate = ''
|
||
|
}
|
||
|
api_s
|
||
|
.memberTeamInfo(Object.assign({}, this.queryParams, this.select))
|
||
|
.then((res) => {
|
||
|
this.loading = false
|
||
|
this.tableData.censusSummaryList = res.rows
|
||
|
this.total = res.total
|
||
|
})
|
||
|
},
|
||
|
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/manager/trade/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-date-editor.el-input,
|
||
|
.el-date-editor.el-input__inner {
|
||
|
width: 100%;
|
||
|
}
|
||
|
::v-deep .el-dropdown-menu {
|
||
|
height: 1000px !important;
|
||
|
overflow: auto !important;
|
||
|
}
|
||
|
::v-deep .el-input__inner {
|
||
|
//text-align: center;
|
||
|
}
|
||
|
::v-deep .el-check_s .el-input__inner {
|
||
|
width: 100%;
|
||
|
}
|
||
|
::v-deep .el-cascader {
|
||
|
width: 100%;
|
||
|
}
|
||
|
//缩短间隔
|
||
|
::v-deep .el-form-item {
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
|
||
|
::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: 10px 20px;
|
||
|
background: #f9f9f9;
|
||
|
font-size: 14px;
|
||
|
.main {
|
||
|
background: #f9f9f9;
|
||
|
overflow: hidden;
|
||
|
//border-radius: 8px;
|
||
|
//box-shadow: 0px 2px 20px 0px rgba(238, 238, 238, 0.5);
|
||
|
//padding-top: 20px;
|
||
|
.maintop {
|
||
|
display: flex;
|
||
|
//padding: 10px 0;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
.mainbtn {
|
||
|
.thebtn1 {
|
||
|
background: #3181e5;
|
||
|
color: #ffffff;
|
||
|
}
|
||
|
.thebtn2 {
|
||
|
width: 68px;
|
||
|
height: 32px;
|
||
|
background: #ffad41;
|
||
|
color: #ffffff;
|
||
|
}
|
||
|
}
|
||
|
.maintitle {
|
||
|
font-size: 10px;
|
||
|
font-family: MicrosoftYaHei;
|
||
|
color: #999999;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.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 {
|
||
|
margin-right: 10px;
|
||
|
color: #666666;
|
||
|
text-align: center;
|
||
|
padding-bottom: 10px;
|
||
|
}
|
||
|
.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>
|