| 
									
										
										
										
											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
										 |  |  |  |               <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="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 placeholder=""> | 
					
						
							|  |  |  |  |                 <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="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" | 
					
						
							|  |  |  |  |                 type="daterange" | 
					
						
							|  |  |  |  |                 format="yyyy-MM-dd" | 
					
						
							| 
									
										
										
										
											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="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-row> | 
					
						
							|  |  |  |  |           <el-col> | 
					
						
							| 
									
										
										
										
											2025-05-26 10:41:35 +08:00
										 |  |  |  |             <el-form-item :label="'隶属体系'" style="margin-top: -5px"> | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |               <el-checkbox-group v-model="pkVertex"> | 
					
						
							|  |  |  |  |                 <el-checkbox | 
					
						
							|  |  |  |  |                   v-for="item in verList" | 
					
						
							|  |  |  |  |                   :key="item.value" | 
					
						
							|  |  |  |  |                   :value="item.pkId" | 
					
						
							|  |  |  |  |                   :label="item.vertexName" | 
					
						
							|  |  |  |  |                   @change="vertCheck($event,item)" | 
					
						
							|  |  |  |  |                 /> | 
					
						
							|  |  |  |  |               </el-checkbox-group> | 
					
						
							|  |  |  |  |             </el-form-item> | 
					
						
							|  |  |  |  |           </el-col> | 
					
						
							|  |  |  |  |         </el-row> --> | 
					
						
							|  |  |  |  |           <!-- <el-row> | 
					
						
							|  |  |  |  |           <el-col> | 
					
						
							| 
									
										
										
										
											2025-05-26 10:41:35 +08:00
										 |  |  |  |             <el-form-item :label="'隶属团队'" style="margin-top: -15px"> | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |               <el-checkbox-group v-model="pkMemberTeam"> | 
					
						
							|  |  |  |  |                 <el-checkbox | 
					
						
							|  |  |  |  |                   v-for="item in memberList" | 
					
						
							|  |  |  |  |                   :key="item.value" | 
					
						
							|  |  |  |  |                   :value="item.pkId" | 
					
						
							|  |  |  |  |                   :label="item.teamName" | 
					
						
							|  |  |  |  |                   @change="teamCheck($event,item)" | 
					
						
							|  |  |  |  |                 /> | 
					
						
							|  |  |  |  |               </el-checkbox-group> | 
					
						
							|  |  |  |  |             </el-form-item> | 
					
						
							|  |  |  |  |           </el-col> | 
					
						
							|  |  |  |  |         </el-row> --> | 
					
						
							|  |  |  |  |           <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 | 
					
						
							|  |  |  |  |               style="margin-left: 20px" | 
					
						
							|  |  |  |  |               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-has-buttons="['totalBonusExport']" | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |             size="small" | 
					
						
							|  |  |  |  |             class="thebtn2" | 
					
						
							|  |  |  |  |             @click="exports" | 
					
						
							|  |  |  |  |           > | 
					
						
							| 
									
										
										
										
											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> | 
					
						
							|  |  |  |  |           <el-table | 
					
						
							|  |  |  |  |             v-loading="loading" | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |             :data="tableData.censusSummaryList" | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |             height="610px" | 
					
						
							|  |  |  |  |             style="width: 100%" | 
					
						
							|  |  |  |  |             :header-cell-style="{ background: '#EEEEEE' }" | 
					
						
							|  |  |  |  |             :row-class-name="tableRowClassName" | 
					
						
							|  |  |  |  |             @selection-change="handleSelectionChange" | 
					
						
							|  |  |  |  |           > | 
					
						
							|  |  |  |  |             <el-table-column type="selection" width="55" /> | 
					
						
							|  |  |  |  |             <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" | 
					
						
							| 
									
										
										
										
											2025-06-25 15:03:25 +08:00
										 |  |  |  |               prop="settleDate" | 
					
						
							|  |  |  |  |               width="200" | 
					
						
							|  |  |  |  |               :label="'结算时间'" | 
					
						
							|  |  |  |  |             /> | 
					
						
							|  |  |  |  |             <el-table-column | 
					
						
							|  |  |  |  |               align="center" | 
					
						
							| 
									
										
										
										
											2025-09-25 10:50:52 +08:00
										 |  |  |  |               prop="directIncome" | 
					
						
							| 
									
										
										
										
											2025-09-29 14:32:11 +08:00
										 |  |  |  |               :label="$t('直推收益')" | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |               :formatter="stateFormat" | 
					
						
							|  |  |  |  |             /> | 
					
						
							|  |  |  |  |             <el-table-column | 
					
						
							|  |  |  |  |               align="center" | 
					
						
							| 
									
										
										
										
											2025-09-25 10:50:52 +08:00
										 |  |  |  |               prop="storeIncome" | 
					
						
							| 
									
										
										
										
											2025-09-29 14:32:11 +08:00
										 |  |  |  |               :label="$t('阶段收益')" | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |               :formatter="stateFormat" | 
					
						
							|  |  |  |  |             /> | 
					
						
							|  |  |  |  |             <el-table-column | 
					
						
							|  |  |  |  |               align="center" | 
					
						
							| 
									
										
										
										
											2025-09-25 10:50:52 +08:00
										 |  |  |  |               prop="globalPoints" | 
					
						
							| 
									
										
										
										
											2025-09-29 14:32:11 +08:00
										 |  |  |  |               :label="$t('见点收益')" | 
					
						
							|  |  |  |  |               :formatter="stateFormat" | 
					
						
							|  |  |  |  |             /> | 
					
						
							|  |  |  |  |             <el-table-column | 
					
						
							|  |  |  |  |               align="center" | 
					
						
							|  |  |  |  |               prop="retailRangeIncome" | 
					
						
							|  |  |  |  |               :label="$t('领导奖')" | 
					
						
							|  |  |  |  |               :formatter="stateFormat" | 
					
						
							|  |  |  |  |             /> | 
					
						
							|  |  |  |  |             <el-table-column | 
					
						
							|  |  |  |  |               align="center" | 
					
						
							|  |  |  |  |               prop="retailSameLevelIncome" | 
					
						
							|  |  |  |  |               :label="$t('平级奖')" | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |               :formatter="stateFormat" | 
					
						
							|  |  |  |  |             /> | 
					
						
							| 
									
										
										
										
											2025-07-22 09:40:02 +08:00
										 |  |  |  |             <el-table-column | 
					
						
							|  |  |  |  |               v-if="allTxt.realIncomeTotal" | 
					
						
							|  |  |  |  |               align="center" | 
					
						
							|  |  |  |  |               prop="realIncomeTotal" | 
					
						
							|  |  |  |  |               width="130" | 
					
						
							| 
									
										
										
										
											2025-09-29 14:32:11 +08:00
										 |  |  |  |               :label="'实发收益总计'" | 
					
						
							| 
									
										
										
										
											2025-07-22 09:40:02 +08:00
										 |  |  |  |               :formatter="stateFormat" | 
					
						
							|  |  |  |  |             /> | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |             <el-table-column | 
					
						
							|  |  |  |  |               align="center" | 
					
						
							|  |  |  |  |               prop="time" | 
					
						
							|  |  |  |  |               width="150" | 
					
						
							| 
									
										
										
										
											2025-05-26 10:41:35 +08:00
										 |  |  |  |               :label="'操作'" | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |             > | 
					
						
							|  |  |  |  |               <template slot-scope="scope"> | 
					
						
							|  |  |  |  |                 <el-button | 
					
						
							|  |  |  |  |                   style="color: #e70dec" | 
					
						
							|  |  |  |  |                   type="text" | 
					
						
							|  |  |  |  |                   size="small" | 
					
						
							|  |  |  |  |                   @click="bonusTap(scope.row)" | 
					
						
							|  |  |  |  |                 > | 
					
						
							| 
									
										
										
										
											2025-05-26 10:41:35 +08:00
										 |  |  |  |                   {{ '奖金明细' }} | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |                 </el-button> | 
					
						
							|  |  |  |  |               </template> | 
					
						
							|  |  |  |  |             </el-table-column> | 
					
						
							|  |  |  |  |           </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> | 
					
						
							| 
									
										
										
										
											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 { 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:32:44 +08:00
										 |  |  |  |         return '允许' | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       } else { | 
					
						
							| 
									
										
										
										
											2025-06-08 15:32:44 +08:00
										 |  |  |  |         return '禁止' | 
					
						
							| 
									
										
										
										
											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:32:44 +08:00
										 |  |  |  |           label: '前台' | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |         }, | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |           value: 1, | 
					
						
							| 
									
										
										
										
											2025-06-08 15:32:44 +08:00
										 |  |  |  |           label: '后台' | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         } | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       ], | 
					
						
							|  |  |  |  |       digList: [ | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |           value: 0, | 
					
						
							| 
									
										
										
										
											2025-06-08 15:32:44 +08:00
										 |  |  |  |           label: '允许' | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |         }, | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |           value: 1, | 
					
						
							| 
									
										
										
										
											2025-06-08 15:32:44 +08:00
										 |  |  |  |           label: '禁止' | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         } | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       ], | 
					
						
							|  |  |  |  |       menuList: [ | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |           id: 0, | 
					
						
							| 
									
										
										
										
											2025-06-08 15:32:44 +08:00
										 |  |  |  |           text: '全选', | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |           checked: true | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-06-16 13:59:11 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |         { | 
					
						
							|  |  |  |  |           id: 31, | 
					
						
							| 
									
										
										
										
											2025-06-08 15:32:44 +08:00
										 |  |  |  |           text: '复购券', | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |           checked: true, | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |           prop: 'repurCoupon', | 
					
						
							|  |  |  |  |           flag: 1 | 
					
						
							|  |  |  |  |         } | 
					
						
							| 
									
										
										
										
											2025-06-16 13:59:11 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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/totalBonus', | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       topList: [ | 
					
						
							|  |  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-06-08 15:32:44 +08:00
										 |  |  |  |           name: '奖金汇总', | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |           path: '/settlementCenter/totalBonus' | 
					
						
							|  |  |  |  |         } | 
					
						
							| 
									
										
										
										
											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:32:44 +08:00
										 |  |  |  |           { required: true, message: '请输入规格类型', trigger: 'blur' } | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         ] | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       }, | 
					
						
							|  |  |  |  |       acList: [], | 
					
						
							|  |  |  |  |       verList: [], | 
					
						
							|  |  |  |  |       memberList: [], | 
					
						
							|  |  |  |  |       pkMemberTeam: [], | 
					
						
							|  |  |  |  |       pkVertex: [], | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |       pkTeamId: '', // 隶属团队id
 | 
					
						
							|  |  |  |  |       pkVertId: '', // 隶属体系id
 | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       dataList: [ | 
					
						
							|  |  |  |  |         { | 
					
						
							| 
									
										
										
										
											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: '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
										 |  |  |  |         }, | 
					
						
							|  |  |  |  |         // 10
 | 
					
						
							|  |  |  |  |         { | 
					
						
							| 
									
										
										
										
											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: '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
										 |  |  |  |         // 20
 | 
					
						
							| 
									
										
										
										
											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: '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
										 |  |  |  |         // 30
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  |  |         // 40
 | 
					
						
							| 
									
										
										
										
											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: 'realIncomeTotal', | 
					
						
							|  |  |  |  |           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: 'hiFunIncome', | 
					
						
							|  |  |  |  |           key: '' | 
					
						
							|  |  |  |  |         } | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       ], | 
					
						
							|  |  |  |  |       flag: false, | 
					
						
							|  |  |  |  |       allTxt: {}, | 
					
						
							|  |  |  |  |       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
										 |  |  |  |     this.getUserRole() | 
					
						
							|  |  |  |  |     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() | 
					
						
							|  |  |  |  |     }, 10) | 
					
						
							| 
									
										
										
										
											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
										 |  |  |  |     }, | 
					
						
							|  |  |  |  |     getStartTime() { | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |       const date = new Date() | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       // console.error(date.getDate()==1?date.getMonth():date.getMonth() + 1)
 | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |       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 | 
					
						
							| 
									
										
										
										
											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() // 年
 | 
					
						
							|  |  |  |  |       let month = date.getDate() === 1 ? date.getMonth() : date.getMonth() + 1 // 得到当前月份(0-11月份,+1是当前月份)
 | 
					
						
							|  |  |  |  |       var day = date.getDate() > 1 ? date.getDate() - 1 : date.getDate() // 日
 | 
					
						
							|  |  |  |  |       const day1 = 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
										 |  |  |  |       } | 
					
						
							|  |  |  |  |       if (day1 == 1) { | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         var date2 = new Date() | 
					
						
							|  |  |  |  |         var year2 = date2.getFullYear() | 
					
						
							|  |  |  |  |         var month2 = date2.getMonth() | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |         // let dates =this.getMonthDay(year2,month2,0)
 | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         var dates = new Date(year2, month2, 0).getDate() | 
					
						
							|  |  |  |  |         day = dates | 
					
						
							| 
									
										
										
										
											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('totalBonus').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('totalBonus').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
										 |  |  |  |       } | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     bonusTap(item) { | 
					
						
							|  |  |  |  |       this.$router.push({ | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         path: '/settlementCenter/bonusDetail' | 
					
						
							|  |  |  |  |       }) | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |     }, | 
					
						
							|  |  |  |  |     reset() { | 
					
						
							|  |  |  |  |       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
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |       this.getDataList() | 
					
						
							| 
									
										
										
										
											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) { | 
					
						
							|  |  |  |  |       if (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) { | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |       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:32:44 +08:00
										 |  |  |  |           sums[index] = '小计' + '(¥)' | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |           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
										 |  |  |  |         } | 
					
						
							| 
									
										
										
										
											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) | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |           // sums[index] += ' 元'
 | 
					
						
							|  |  |  |  |         } 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:32:44 +08:00
										 |  |  |  |       this.$confirm('确认删除?', '提示', { | 
					
						
							|  |  |  |  |         confirmButtonText: '确定', | 
					
						
							|  |  |  |  |         cancelButtonText: '取消', | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         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 | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       if (this.select.period) { | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         this.select.period = parseInt(this.select.period) | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       } | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |       if (this.creationTime == '' || this.creationTime == null) { | 
					
						
							|  |  |  |  |         this.select.startDate = '' | 
					
						
							|  |  |  |  |         this.select.endDate = '' | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |       } | 
					
						
							|  |  |  |  |       queryBonusTotal( | 
					
						
							|  |  |  |  |         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) {}, | 
					
						
							|  |  |  |  |     /** 导出按钮操作 */ | 
					
						
							|  |  |  |  |     exports() { | 
					
						
							| 
									
										
										
										
											2025-06-08 15:32:44 +08:00
										 |  |  |  |       this.$confirm('是否确认导出所有数据项?', '警告', { | 
					
						
							|  |  |  |  |         confirmButtonText: '确定', | 
					
						
							|  |  |  |  |         cancelButtonText: '取消', | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         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-total', | 
					
						
							| 
									
										
										
										
											2025-03-23 10:03:12 +08:00
										 |  |  |  |           Object.assign({}, this.queryParams, this.select), | 
					
						
							| 
									
										
										
										
											2025-06-08 15:32:44 +08:00
										 |  |  |  |           `${'奖金汇总'}-${new Date().getTime()}.xlsx` | 
					
						
							| 
									
										
										
										
											2025-06-08 15:19:03 +08:00
										 |  |  |  |         ) | 
					
						
							|  |  |  |  |       }) | 
					
						
							| 
									
										
										
										
											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"> | 
					
						
							|  |  |  |  | ::v-deep .el-table__body-wrapper { | 
					
						
							|  |  |  |  |   // height: 740px!important;
 | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | ::v-deep .el-range-editor.el-input__inner { | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | ::v-deep .el-form-item { | 
					
						
							|  |  |  |  |   margin-bottom: 0; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | ::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__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; | 
					
						
							|  |  |  |  |     //border-radius: 8px;
 | 
					
						
							|  |  |  |  |     //box-shadow: 0px 2px 20px 0px rgba(238, 238, 238, 0.5);
 | 
					
						
							|  |  |  |  |     .maintop { | 
					
						
							|  |  |  |  |       display: flex; | 
					
						
							|  |  |  |  |       //padding: 10px 0px;
 | 
					
						
							|  |  |  |  |       justify-content: space-between; | 
					
						
							|  |  |  |  |       align-items: center; | 
					
						
							|  |  |  |  |       .mainbtn { | 
					
						
							|  |  |  |  |         .thebtn1 { | 
					
						
							|  |  |  |  |           background: #3181e5; | 
					
						
							|  |  |  |  |           color: #ffffff; | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         .thebtn2 { | 
					
						
							|  |  |  |  |           background: #ffad41; | 
					
						
							|  |  |  |  |           color: #ffffff; | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |       } | 
					
						
							|  |  |  |  |       .maintitle { | 
					
						
							|  |  |  |  |         font-size: 10px; | 
					
						
							|  |  |  |  |         font-family: MicrosoftYaHei; | 
					
						
							|  |  |  |  |         color: #999999; | 
					
						
							|  |  |  |  |       } | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  |   } | 
					
						
							|  |  |  |  |   .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; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | ::v-deep .el-cascader { | 
					
						
							|  |  |  |  |   width: 100%; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | .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; | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  |   } | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | // el-table__body-wrapper is-scrolling-left
 | 
					
						
							|  |  |  |  | /* 设置滚动条宽度和高度 */ | 
					
						
							|  |  |  |  | </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> --> |