web-base-admin/src/views/information/teamInfo/index.vue

1160 lines
31 KiB
Vue
Raw Normal View History

2025-03-23 09:18:42 +08:00
<!--
* @Descripttion:
* @version:
* @Author: kBank
* @Date: 2022-10-24 15:45:01
-->
<template>
<div class="page">
2025-04-29 15:06:18 +08:00
<topBar
v-if="topList.length > 0"
:top-list="topList"
:moren="moren"
/>
2025-03-23 09:18:42 +08:00
<div class="main">
2025-04-29 15:06:18 +08:00
<el-form
ref="select"
:model="select"
label-width="100px"
style="background-color: #fff;padding: 0px 10px 0 10px"
>
2025-03-23 09:18:42 +08:00
<el-row>
<!-- 一层 -->
<el-col :span="4">
2025-04-01 23:46:26 +08:00
<el-form-item :label="'会员编号'">
2025-04-29 15:06:18 +08:00
<el-input
v-model="select.memberCode"
clearable
/>
2025-03-23 09:18:42 +08:00
</el-form-item>
</el-col>
<el-col :span="4">
2025-04-01 23:46:26 +08:00
<el-form-item :label="'真实奖衔'">
2025-04-29 15:06:18 +08:00
<el-select
v-model="select.pkAwards"
clearable
placeholder=""
>
<el-option
v-for="item in awardsList"
:key="item.pkId"
:label="item.awardsName"
:value="item.pkId"
/>
2025-03-23 09:18:42 +08:00
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
2025-04-01 23:46:26 +08:00
<el-form-item :label="'关系类型'">
2025-04-29 15:06:18 +08:00
<el-select
v-model="select.relaType"
clearable
placeholder=""
>
<el-option
v-for="item in kdzcList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
2025-03-23 09:18:42 +08:00
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="4">-->
2025-04-01 23:46:26 +08:00
<!-- <el-form-item :label="'安置部门'">-->
2025-03-23 09:18:42 +08:00
<!-- <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">
2025-04-01 23:46:26 +08:00
<el-form-item :label="'血缘代数'">
2025-04-29 15:06:18 +08:00
<el-input
v-model="select.consanguinityAlgebra"
clearable
/>
2025-03-23 09:18:42 +08:00
</el-form-item>
</el-col>
<el-col :span="4">
2025-04-01 23:46:26 +08:00
<el-form-item :label="'安置层数'">
2025-04-29 15:06:18 +08:00
<el-input
v-model="select.resettleLevel"
clearable
/>
2025-03-23 09:18:42 +08:00
</el-form-item>
</el-col>
<el-col :span="4">
2025-04-01 23:46:26 +08:00
<el-form-item :label="'安置位置'">
2025-04-29 15:06:18 +08:00
<el-select
v-model="select.placeDept"
clearable
placeholder=""
>
<el-option
v-for="item in deptList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
2025-03-23 09:18:42 +08:00
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="4">
2025-04-01 23:46:26 +08:00
<el-form-item :label="'奖金收益'">
2025-03-23 09:18:42 +08:00
<el-input v-model="select.realIncomeTotal" clearable />
</el-form-item>
</el-col> -->
<el-col :span="4">
2025-04-29 15:06:18 +08:00
<el-form-item
:label="'查询日期'"
prop="creationTime"
class="el-check_s"
>
<el-date-picker
v-model="creationTime3"
value-format="yyyy-MM-dd"
type="date"
:placeholder="'请选择'"
@change="changeTime2"
/>
2025-03-23 09:18:42 +08:00
</el-form-item>
</el-col>
2025-04-29 15:06:18 +08:00
<el-col
:span="4"
style="margin-left: 30px"
>
<el-button
type="primary"
style="background-color: #c8161d"
@click="getDataList"
> {{ '搜索' }}</el-button>
2025-04-01 23:46:26 +08:00
<el-button @click="reset"> {{ '重置' }}</el-button>
2025-03-23 09:18:42 +08:00
</el-col>
</el-row>
</el-form>
<div class="maintop">
<div class="mainbtn">
2025-04-29 15:06:18 +08:00
<el-button
v-hasButtons="['teamInfoExport']"
size="small"
class="thebtn2"
@click="exports"
> {{ '导出' }}</el-button>
2025-03-23 09:18:42 +08:00
</div>
<div>
<el-dropdown :hide-on-click="false">
2025-04-29 15:06:18 +08:00
<span
class="el-dropdown-link kuang"
style="margin-right: 10px"
>
{{ '筛选字段' }}<i class="el-icon-arrow-down el-icon--right" />
2025-03-23 09:18:42 +08:00
</span>
2025-04-29 15:06:18 +08:00
<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>
2025-03-23 09:18:42 +08:00
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
<div class="maintable">
<div class="itemTrading">
2025-04-29 15:06:18 +08:00
<el-table
ref="table"
v-loading="loading"
:data="tableData.censusSummaryList"
style="width: 100%"
:header-cell-style="{ background: '#EEEEEE' }"
: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="'会员编号'"
/>
<el-table-column
v-if="allTxt.memberName"
align="center"
prop="memberName"
width="130"
:label="'会员姓名'"
/>
<el-table-column
v-if="allTxt.pkAwardsStr"
align="center"
prop="pkAwardsStr"
width="130"
:label="'真实奖衔'"
/>
<el-table-column
v-if="menuList[1].checked==true&&allTxt.resettleLevel"
align="center"
prop="resettleLevel"
width="130"
:label="'安置层数'"
/>
<el-table-column
v-if="menuList[3].checked==true&&allTxt.placeDeptStr"
align="center"
prop="placeDeptStr"
width="130"
:label="'安置位置'"
/>
<el-table-column
v-if="allTxt.placeParentCode"
align="center"
prop="placeParentCode"
width="130"
:label="'安置编号'"
/>
<el-table-column
v-if="menuList[2].checked==true&&allTxt.consanguinityAlgebra"
align="center"
prop="consanguinityAlgebra"
width="130"
:label="'血缘代数'"
/>
<el-table-column
v-if="menuList[4].checked==true&&allTxt.afirstPv"
align="center"
prop="afirstPv"
width="130"
:label="'左区首购业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[5].checked==true&&allTxt.bfirstPv"
align="center"
prop="bfirstPv"
width="130"
:label="'右区首购业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[6].checked==true&&allTxt.consanguinityFirstPv"
align="center"
prop="consanguinityFirstPv"
width="130"
:label="'血缘首购业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[7].checked==true&&allTxt.repASumPv"
align="center"
prop="repASumPv"
width="130"
:label="'左区复购业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[8].checked==true&&allTxt.repBSumPv"
align="center"
prop="repBSumPv"
width="130"
:label="'右区复购业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[9].checked==true&&allTxt.consanguinityRepBSumPv"
align="center"
prop="consanguinityRepBSumPv"
width="130"
:label="'血缘复购业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[10].checked==true&&allTxt.aSumRealPv"
align="center"
prop="aSumRealPv"
width="130"
:label="'左区真实业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[11].checked==true&&allTxt.bSumRealPv"
align="center"
prop="bSumRealPv"
width="130"
:label="'右区真实业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[12].checked==true&&allTxt.consanguinityRealPv"
align="center"
prop="consanguinityRealPv"
width="130"
:label="'血缘真实业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
2025-03-23 09:18:42 +08:00
<!-- <el-table-column
align="center"
prop=""
width="130"
2025-04-01 23:46:26 +08:00
:label="'奖金收益'+'($)'"
2025-03-23 09:18:42 +08:00
:formatter="stateFormat"
v-if="menuList[13].checked==true"
/> -->
2025-04-29 15:06:18 +08:00
<el-table-column
v-if="menuList[15].checked==true&&allTxt.bonusTeamProportion"
align="center"
prop="bonusTeamProportion"
width="130"
:label="'奖金团队占比'+'(%)'"
/>
<el-table-column
v-if="menuList[14].checked==true&&allTxt.bonusLargeMarketProportion"
align="center"
prop="bonusLargeMarketProportion"
width="130"
:label="'奖金大盘占比' +('%')"
/>
<el-table-column
v-if="menuList[16].checked==true&&allTxt.directPushPeopleNumber"
align="center"
prop="directPushPeopleNumber"
width="130"
:label="'直推人数'"
/>
<el-table-column
v-if="menuList[17].checked==true&&allTxt.directPushPeoplePv"
align="center"
prop="directPushPeoplePv"
width="130"
:label="'直推业绩'"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[18].checked==true&&allTxt.repurchaseAmount"
align="center"
prop="repurchaseAmount"
width="130"
:label="'复购金额'+('$')"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[19].checked==true&&allTxt.repurchasePv"
align="center"
prop="repurchasePv"
width="130"
:label="'复购业绩'"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[20].checked==true&&allTxt.repurchaseIntegral"
align="center"
prop="repurchaseIntegral"
width="130"
:label="'复购积分'"
/>
<el-table-column
v-if="menuList[21].checked==true&&allTxt.benefitAmount"
align="center"
prop="benefitAmount"
width="130"
:label="'福利金额'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[22].checked==true&&allTxt.benefitPv"
align="center"
prop="benefitPv"
width="130"
:label="'福利业绩'+`(${isLocals()})`"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[23].checked==true&&allTxt.welfarePoints"
align="center"
prop="welfarePoints"
width="130"
:label="'福利积分'"
/>
<el-table-column
v-if="menuList[24].checked==true&&allTxt.memberTransferCount"
align="center"
prop="memberTransferCount"
width="130"
:label="'转账次数'"
/>
<el-table-column
v-if="menuList[25].checked==true&&allTxt.transferAmount"
align="center"
prop="transferAmount"
width="130"
:label="'转账金额'+'($)'"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[26].checked==true&&allTxt.rechargeAmount"
align="center"
prop="rechargeAmount"
width="130"
:label="'充值金额'+'($)'"
:formatter="stateFormat"
/>
<el-table-column
v-if="menuList[27].checked==true&&allTxt.withdrawalNumber"
align="center"
prop="withdrawalNumber"
width="130"
:label="'提现次数'"
/>
2025-03-23 09:18:42 +08:00
<!-- <el-table-column align="center"
prop="withdrawalAmount"
width="130"
2025-04-01 23:46:26 +08:00
:label="'提现金额'+'($)'"
2025-03-23 09:18:42 +08:00
v-if="allTxt.withdrawalAmount" /> -->
2025-04-29 15:06:18 +08:00
<el-table-column
v-if="menuList[28].checked==true&&allTxt.withdrawalAmount"
align="center"
prop="withdrawalAmount"
width="130"
:label="'提现金额'+'($)'"
/>
<el-table-column
v-if="menuList[29].checked==true&&allTxt.lastLoginTime"
align="center"
prop="lastLoginTime"
width="130"
:label="'最近登录'"
/>
<el-table-column
v-if="menuList[13].checked==true&&allTxt.loginNumber"
align="center"
prop="loginNumber"
width="130"
:label="'登录次数'"
/>
<el-table-column
v-if="allTxt.creationTime"
align="center"
prop="creationTime"
width="200"
:label="'创建日期'"
/>
<el-table-column
v-if="allTxt.payTime"
align="center"
prop="payTime"
width="200"
:label="'支付日期'"
/>
<el-table-column
v-if="allTxt.directPushNumber"
align="center"
prop="directPushNumber"
width="120"
:label="'修改直推次数'"
/>
2025-03-23 09:18:42 +08:00
</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>
2025-04-29 15:06:18 +08:00
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getDataList"
/>
2025-03-23 09:18:42 +08:00
</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',
components: {
2025-04-29 15:06:18 +08:00
topBar
2025-03-23 09:18:42 +08:00
},
filters: {
isAgree(val) {
if (!val) {
2025-04-01 23:46:26 +08:00
return '允许'
2025-03-23 09:18:42 +08:00
} else {
2025-04-01 23:46:26 +08:00
return '禁止'
2025-03-23 09:18:42 +08:00
}
2025-04-29 15:06:18 +08:00
}
2025-03-23 09:18:42 +08:00
},
data() {
return {
2025-04-29 15:06:18 +08:00
loading: false,
2025-03-23 09:18:42 +08:00
kdzcList: [
{
value: '1',
2025-04-29 15:06:18 +08:00
label: '血缘'
2025-03-23 09:18:42 +08:00
},
{
value: '2',
2025-04-29 15:06:18 +08:00
label: '安置'
}
2025-03-23 09:18:42 +08:00
], // 注册类型
regionParams: {
label: 'name',
value: 'id',
children: 'children',
2025-04-29 15:06:18 +08:00
expandTrigger: 'hover'
2025-03-23 09:18:42 +08:00
},
isActive: false,
typeList: [
{
value: 0,
2025-04-29 15:06:18 +08:00
label: '前台'
2025-03-23 09:18:42 +08:00
},
{
value: 1,
2025-04-29 15:06:18 +08:00
label: '后台'
}
2025-03-23 09:18:42 +08:00
],
digList: [
{
value: 0,
2025-04-29 15:06:18 +08:00
label: '允许'
2025-03-23 09:18:42 +08:00
},
{
value: 1,
2025-04-29 15:06:18 +08:00
label: '禁止'
}
2025-03-23 09:18:42 +08:00
],
menuList: [
{
id: 0,
2025-04-01 23:46:26 +08:00
text: '全选',
2025-04-29 15:06:18 +08:00
checked: false
2025-03-23 09:18:42 +08:00
},
{
id: 1,
2025-04-01 23:46:26 +08:00
text: '安置层数',
2025-04-29 15:06:18 +08:00
checked: true
2025-03-23 09:18:42 +08:00
},
{
id: 2,
2025-04-01 23:46:26 +08:00
text: '血缘代数',
2025-04-29 15:06:18 +08:00
checked: true
2025-03-23 09:18:42 +08:00
},
{
id: 3,
2025-04-01 23:46:26 +08:00
text: '安置位置',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 4,
2025-04-01 23:46:26 +08:00
text: '左区首购业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 5,
2025-04-01 23:46:26 +08:00
text: '右区首购业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 6,
2025-04-01 23:46:26 +08:00
text: '血缘首购业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 7,
2025-04-01 23:46:26 +08:00
text: '左区复购业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 8,
2025-04-01 23:46:26 +08:00
text: '右区复购业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 9,
2025-04-01 23:46:26 +08:00
text: '血缘复购业绩',
2025-04-29 15:06:18 +08:00
checked: true
2025-03-23 09:18:42 +08:00
},
{
id: 10,
2025-04-01 23:46:26 +08:00
text: '左区真实业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 11,
2025-04-01 23:46:26 +08:00
text: '右区真实业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'priceDollar'
2025-03-23 09:18:42 +08:00
},
{
id: 12,
2025-04-01 23:46:26 +08:00
text: '血缘真实业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'postageDollar'
2025-03-23 09:18:42 +08:00
},
{
id: 30,
2025-04-01 23:46:26 +08:00
text: '登录次数',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'lastInstanceRemark'
2025-03-23 09:18:42 +08:00
},
{
id: 14,
2025-04-01 23:46:26 +08:00
text: '奖金团队占比',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 15,
2025-04-01 23:46:26 +08:00
text: '奖金大盘占比',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 16,
2025-04-01 23:46:26 +08:00
text: '直推人数',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'creationTime'
2025-03-23 09:18:42 +08:00
},
{
id: 17,
2025-04-01 23:46:26 +08:00
text: '直推业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'payTime'
2025-03-23 09:18:42 +08:00
},
{
id: 18,
2025-04-01 23:46:26 +08:00
text: '复购金额',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'deliveryTime'
2025-03-23 09:18:42 +08:00
},
{
id: 19,
2025-04-01 23:46:26 +08:00
text: '复购业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'deliveryWayStr'
2025-03-23 09:18:42 +08:00
},
{
id: 20,
2025-04-01 23:46:26 +08:00
text: '复购积分',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: ''
2025-03-23 09:18:42 +08:00
},
{
id: 21,
2025-04-01 23:46:26 +08:00
text: '福利金额',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'tranTypeStr'
2025-03-23 09:18:42 +08:00
},
{
id: 22,
2025-04-01 23:46:26 +08:00
text: '福利业绩',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'approvalStatus'
2025-03-23 09:18:42 +08:00
},
{
id: 23,
2025-04-01 23:46:26 +08:00
text: '福利积分',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'payTypeStr'
2025-03-23 09:18:42 +08:00
},
{
id: 24,
2025-04-01 23:46:26 +08:00
text: '转账次数',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'creationTime'
2025-03-23 09:18:42 +08:00
},
{
id: 25,
2025-04-01 23:46:26 +08:00
text: '转账金额',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'creatorName'
2025-03-23 09:18:42 +08:00
},
{
id: 26,
2025-04-01 23:46:26 +08:00
text: '充值金额',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'lastInstanceDate'
2025-03-23 09:18:42 +08:00
},
{
id: 27,
2025-04-01 23:46:26 +08:00
text: '提现次数',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'lastInstanceApprover'
2025-03-23 09:18:42 +08:00
},
{
id: 28,
2025-04-01 23:46:26 +08:00
text: '提现金额',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'withdrawalAmount'
2025-03-23 09:18:42 +08:00
},
{
id: 29,
2025-04-01 23:46:26 +08:00
text: '最近登录',
2025-03-23 09:18:42 +08:00
checked: true,
2025-04-29 15:06:18 +08:00
prop: 'lastLoginTime '
}
2025-03-23 09:18:42 +08:00
],
creationTime: [],
creationTime1: [],
creationTime2: [],
creationTime3: '',
select: {},
// 查询参数
queryParams: {
pageNum: 1,
2025-04-29 15:06:18 +08:00
pageSize: 50
2025-03-23 09:18:42 +08:00
},
addOrEdit: '',
total: 0,
dialogVisible: false,
tableData: {
2025-04-29 15:06:18 +08:00
censusSummaryList: []
2025-03-23 09:18:42 +08:00
},
moren: 'teamInfo',
topList: [
{
2025-04-01 23:46:26 +08:00
name: '团队信息',
2025-04-29 15:06:18 +08:00
path: 'teamInfo'
}
2025-03-23 09:18:42 +08:00
],
form: {
2025-04-29 15:06:18 +08:00
name: ''
2025-03-23 09:18:42 +08:00
},
areaData: [],
rules: {
name: [
2025-04-29 15:06:18 +08:00
{ required: true, message: '请输入规格类型', trigger: 'blur' }
]
2025-03-23 09:18:42 +08:00
},
shoppingAddress: [],
acList: [],
verList: [],
memberList: [],
yieldList: [],
yieldStatus: [],
countryList: [],
orderTypeList: [],
pkMemberTeam: [],
pkVertex: [],
typeId: '',
paywayList: [],
presaleStatusList: [],
orderStatusList: [],
deptList: [],
transportTypeList: [],
gyList: [],
awardsList: [],
2025-04-29 15:06:18 +08:00
allTxt: {}
}
},
computed: {
store() {
return store
2025-03-23 09:18:42 +08:00
}
},
mounted() {
// 获取下拉
this.getData()
// 获取列表
this.getDataList()
this.getUserRole()
},
methods: {
getUserRole() {
getRoleMenu('TeamInfo').then((res) => {
2025-04-29 15:06:18 +08:00
const obj = {}
2025-03-23 09:18:42 +08:00
res.data.forEach((item) => {
obj[item] = 1
})
this.allTxt = obj
this.$nextTick(() => {
this.$refs.table.doLayout()
})
})
},
isLocals,
isLocal,
stateFormat,
exports() {
2025-04-01 23:46:26 +08:00
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
2025-04-29 15:06:18 +08:00
type: 'warning'
2025-03-23 09:18:42 +08:00
}).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 },
2025-04-01 23:46:26 +08:00
// `${'团队信息'}-${new Date().getTime()}.xlsx`
2025-03-23 09:18:42 +08:00
// );
},
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: {
2025-04-29 15:06:18 +08:00
pkId: id
}
2025-03-23 09:18:42 +08:00
})
},
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
},
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,
2025-04-29 15:06:18 +08:00
type: 'success'
2025-03-23 09:18:42 +08:00
})
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({
2025-04-29 15:06:18 +08:00
path: 'noticeList/details'
2025-03-23 09:18:42 +08:00
})
},
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() {
2025-04-01 23:46:26 +08:00
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
2025-04-29 15:06:18 +08:00
type: 'warning'
2025-03-23 09:18:42 +08:00
}).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 ''
2025-04-29 15:06:18 +08:00
}
}
2025-03-23 09:18:42 +08:00
}
</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>