Bladeren bron

新增功能,账单管理

zhengkaixin 7 maanden geleden
bovenliggende
commit
a9968770ea

+ 23 - 1
apis/pagejs/tenantList.js

@@ -8,6 +8,8 @@ export function tenantList(data) {
 		url: url
 	})
 }
+
+
 export function tenantDeductionRecords(data) {
 	var url='/mobile/energyManage/tenantDeductionRecords';
 	return request({
@@ -94,4 +96,24 @@ export function contractItemList(data) {
  		data: data,
  		url: url
  	})
- }
+ }
+ 
+ 
+ export function billAdminList(data) {
+ 	var url='/mobile/billPush/billAdminList';
+ 	return request({
+ 		method: 'post',
+ 		data: data,
+ 		url: url
+ 	})
+ }
+ 
+ export function billDetails(data) {
+ 	var url='/mobile/billPush/billDetails';
+ 	return request({
+ 		method: 'post',
+ 		data: data,
+ 		url: url
+ 	})
+ }
+ 

+ 6 - 0
assets/img/mine/antFill-account-book.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="64 64 896 896" width="28" height="28" style="" filter="drop-shadow(0px 2px 4px rgba(24,90,198,1))">
+    <defs><linearGradient id="ik4s6tsjU23UVPQn7XCn9I1" x1="0" x2="100%" y1="0" y2="0" gradientTransform="matrix(6.123233995736766e-17, 1, -1, 6.123233995736766e-17, 448, 0)" gradientUnits="userSpaceOnUse"><stop stop-color="#ffffff" stop-opacity="1" offset="0.4"></stop><stop stop-color="#ffffff" stop-opacity="0.6" offset="1"></stop></linearGradient></defs>
+    <g>
+    <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 0 1 8.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z" fill="url(#ik4s6tsjU23UVPQn7XCn9I1)"></path>
+    </g>
+  </svg>

BIN
assets/img/tenantList/index1.png


+ 8 - 0
pages.json

@@ -529,6 +529,14 @@
         	{
         		"navigationBarTitleText" : ""
         	}
+        },
+        {
+        	"path" : "pages/tenantList/billReminder",
+        	"style" : {}
+        },
+        {
+        	"path" : "pages/tenantList/billPush",
+        	"style" : {}
         }
       
        

+ 9 - 0
pages/mine/myApps.vue

@@ -159,6 +159,15 @@
 						充值记录
 					</view>
 				</view>
+				<view class="item"  @click="gotoUrl('/pages/tenantList/billReminder')" >
+					<view class="item-icon item-icon3">
+						<image class="img" src="@/assets/img/mine/antFill-account-book.svg" mode=""></image>
+						
+					</view>
+					<view class="item-name">
+						账单管理
+					</view>
+				</view>
 				
 			</view>
 		</view>

+ 536 - 0
pages/tenantList/billPush.vue

@@ -0,0 +1,536 @@
+<template>
+	<view>
+		<u-navbar title="账单提醒"
+		 class="navbar-box"
+		 :isBack="isBack"  title-color="#101010" ></u-navbar>
+		<view class="background ">
+			<view class="recharge-details">
+				<view  class="details flew-items">
+					<image class="img"  src="@/assets/img/tenantList/index1.png" mode=""></image>
+					
+					{{detail.name}}
+				</view>
+				<view class="details ">
+					
+					<view class="item">
+						<view class="item-title">
+							承租方
+						</view>
+						<view class="item-value">
+							{{detail.tenantName}}
+						</view>
+					</view>
+					<view class="item" v-if="false">
+						<view class="item-title">
+							推送用户
+						</view>
+						<view class="item-value">
+							{{detail.employeeName}}
+						</view>
+					</view>
+					<view class="item">
+						<view class="item-title">
+							本期账单总金额
+						</view>
+						<view class="item-value billAmount">
+							¥{{detail.billAmount}}元
+						</view>
+					</view>
+					
+				 
+					<view class="item" v-if="false" >
+						<view class="item-title">
+							开票方式
+						</view>
+						<view class="item-value">
+							{{detail.invoiced?detail.invoiceTypeName:'不开票'}}
+						</view>
+					</view>
+				
+					
+				</view>
+				<view class="details-title">
+					<span class="name">账单明细</span>
+					
+					
+				</view>
+				<view class="details-list" v-for="(item,i) in detail.itemList" :key="i">
+					<view class="item-list">
+						<view class="item-title">
+							<view class="item-title-name">{{item.contractItemName}}
+							
+							<span class="item-title-remark" v-if="item.num&&item.unit=='月'">({{item.num}}个{{item.unit}})</span>
+							<span class="item-title-remark" v-if="item.remark">({{item.remark}})</span>
+							</view>
+							
+							
+							<view class="item-title-span">收费标准:{{item.price}}<span >{{item.unit}}</span></view>
+							
+							
+						</view>
+						<view class="item-value">
+							{{item.total}}元
+						</view>
+					</view>
+					<view class="item-remark" v-if="item.timeRanges&&item.timeRanges.length==2&&item.timeRanges[0]&&item.timeRanges[1]">
+						起止日期{{item.timeRanges[0]}}至{{item.timeRanges[1]}}
+					</view>
+					<!-- <view class="item-remark" v-if="item.remark">
+						备注:{{item.remark}}
+					</view> -->
+				</view>
+				
+				
+			</view>
+		
+			<view class="details " v-if="detail.remark">
+				<view class="item">
+					<view class="item-title">
+						账单备注
+					</view>
+					<view class="item-value">
+						{{detail.remark}}
+					</view>
+				</view>
+			</view>
+			<view class="details-title">
+				
+				<span class="remark">请在收到账单5日内缴纳上述费用。</span>
+				
+			</view>
+			<!--  -->
+		
+			
+			
+			<u-divider   nonetext="没有找到相关内容" style="margin-top: 20rpx;"
+				border-color="#CFD2D5">已经到底了</u-divider>
+		</view>
+		<view class="cashier-btn-row">
+			<view class="cashier-btn-amount">合计
+				<span  class="cashier-btn-span">¥{{detail.billAmount}}元</span>
+			</view>
+			<view class="cashier-btn-go"  v-if="!detail.payTime" >未支付</view>
+			 
+			<!-- <view class="cashier-btn-go1"  
+			   v-if="!detail.payTime&&detail.payStatus==0"
+			   >线下支付</view> -->
+			   <view class="cashier-btn-go1"
+			     v-if="detail.payTime"
+			     >已支付</view>
+		</view>
+		
+		
+		
+	</view> 
+</template>
+
+<script>
+	
+	
+	import * as API from '@/apis/pagejs/tenantList.js'
+	
+
+	
+	export default {
+		data() {
+			return {
+				id:"",
+				detail:{
+					accountInfo:{},
+					itemList:[]
+				},
+				transferAccountsInfo:{},
+				isBack:false,
+				accountInfoShow:false,
+				
+				amountList:[
+					
+				],
+				show: false,
+				showModel: false,
+				qrCodeImg: "",
+				submitType:"0",
+				submitForm:{
+					companyId: '',
+					amount: '',
+				},
+				personInfo:{
+					balance:0,
+				},
+				companyInfo:{
+					paymentMethod:''
+				},
+				selectNum:'100',
+				otherNum:'',
+				
+			}
+		},
+		onLoad(op) {
+			if(op.site){
+				this.isBack=true
+			}
+			if(op.id){
+				this.id=op.id
+				this.getDetail()
+			}
+		},
+		onShow(){
+			//this.homePage()
+		},
+		methods: {
+			
+			getDetail(){
+				uni.showLoading({
+					mask:true,title:'加载中...'
+				})
+				API.billDetails({
+					id:this.id
+				}).then((response) => {
+					uni.hideLoading();
+					this.detail=response.data;
+					// this.detail.billAmount=800
+					// this.detail.payTime=null;
+					//this.detail.payStatus=1
+					if(this.detail.billAmount>5000){
+						this.submitType="2";
+						//this.$forceUpdate()
+					}else{
+						this.amountList.push(this.detail.billAmount)
+						this.selectNum=this.detail.billAmount;
+						var amountList=[1000,2000,3000,4000,5000]
+						for(var i =0 ;i<amountList.length;i++){
+							var num=amountList[i]
+							if(num>this.detail.billAmount){
+								this.amountList.push(num)
+								
+							}
+						}
+					}
+					
+					//this.transferAccountsInfo=this.detail.accountInfo;
+				}).catch(error => {
+					uni.hideLoading();
+					uni.showToast({
+						title: error
+					})
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	/deep/.u-navbar{
+		    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
+	}
+	.background{
+		padding-bottom: 160rpx;
+	}
+	.cashier-btn-row{
+		display: flex;
+		justify-content: space-between;
+		position: fixed;
+		bottom: 0px;
+		width: 100%;
+		background: white;
+		z-index: 999;
+		    box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.15);
+		 font-size: 44rpx;
+		 .cashier-btn-amount{
+			  padding:32rpx ;
+			  
+		 }
+		 .cashier-btn-span{
+			color: red;
+			margin-left: 20rpx;
+		 }
+		 .cashier-btn-go{
+			  padding:32rpx ;
+			background: #4586f7; 
+			color: white;
+		 }
+		 .cashier-btn-go1{
+		 			  padding:32rpx ;
+		 			// background: #4586f7; 
+		 			// color: white;
+		 }
+		
+	}
+	
+	
+	.flew-items{
+		display: flex;
+		align-items: center;
+		 padding:24rpx;
+		font-size: 32rpx;
+		 border-bottom:  1px solid #f2f2f2;
+		.img{
+			width: 60rpx;
+			height: 60rpx;
+		}
+	}
+	
+	.navbar-box{
+		box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.15);
+	}
+	.details-title{
+		display: flex;
+		 justify-content: space-between;
+		  padding:24rpx;
+		   font-size: 32rpx;
+		  //  border-bottom:  1px solid #d5d5d5;
+		.name{
+			color: #8b898c;
+		}
+		.remark{
+			color: #F44336;
+		}
+	}
+	.details,.details-list{
+		background-color: white;
+		
+		.billAmount{
+			 font-size: 44rpx;
+			 color: red;
+		}
+		.billAmount1{
+			 font-size: 44rpx;
+			 color: #2196f3;
+		}
+		.item{
+			display: flex;
+			 justify-content: space-between;
+			 padding:24rpx;
+			 font-size: 32rpx;
+			 border-bottom:  1px solid #f2f2f2;
+			 .item-title{
+				 width: 240rpx;
+				 min-width: 240rpx;
+			 }
+			 .item-value{
+				 .item-value-btn1{
+					 margin:  0 20px;
+					     color: #4586f7;
+				 }
+				 .item-value-btn2{
+					     color: #4586f7;
+				 }
+			 }
+		}
+	}
+	.details-list{
+		
+		.item-list,.item-remark{
+			display: flex;
+			    align-items: center;
+			 justify-content: space-between;
+			 padding:24rpx;
+			 font-size: 36rpx;
+			 border-bottom:  1px solid #f2f2f2;
+			 // .item-title{
+				//  width: 400rpx;
+			 // }
+		}
+		.item-title{
+			 font-size: 36rpx;
+			 .item-title-name{
+				 color: #31b3ff;
+			 }
+			 .item-title-remark{
+				 color: #303133;
+				 margin-left: 8px;
+			 }
+		}
+		
+		.item-remark,.item-title-span{
+			 font-size: 28rpx;
+			 color: #8b898c;
+		}
+		
+	}
+ 
+ 
+ 
+
+ 
+ 	.main {
+ 		margin: 24rpx 0;
+		padding: 24rpx;
+ 		overflow: hidden;
+		background: white;
+ 
+ 			// 缴费金额
+ 			.payment-amount {
+ 				margin-top: 32rpx;
+ 
+ 				.title {
+ 					color: rgb(48, 48, 48);
+ 					font-size: 36rpx;
+ 				}
+ 
+ 				.amount-options {
+ 					margin-top: 32rpx;
+ 					display: flex;
+ 					flex-wrap: wrap;
+ 					justify-content: space-between;
+ 
+ 					.options-item {
+ 						width: 200rpx;
+ 						height: 80rpx;
+ 						line-height: 80rpx;
+ 						border-radius: 4px;
+ 						text-align: center;
+ 						background-color: rgba(242, 242, 242, 1);
+ 						color: rgba(16, 16, 16, 1);
+ 						font-size: 32rpx;
+ 						margin-bottom: 20rpx;
+ 					}
+ 
+ 					.chosen {
+ 						background-color: rgba(22, 119, 255, 1);
+ 						color: rgba(255, 255, 255, 1);
+ 					}
+ 				}
+ 			}
+ 
+ 			// 输入金额
+ 			.input-amount {
+ 				margin-top: 24rpx;
+ 				display: flex;
+ 				font-size: 48rpx;
+ 				height: 100rpx;
+ 				line-height: 100rpx;
+ border-bottom: 1px solid rgba(242,242,242,1);
+ 				.symbol {
+ 					margin-right: 32rpx;
+ 				}
+                
+ 				.input {
+ 					height: 100rpx;
+ 					font-size: 40rpx;
+ 					 
+ 					 
+ 				}
+ 
+ 				/deep/.uni-input-placeholder {
+ 					color: rgba(204, 204, 204, 1);
+ 				}
+ 			}
+ 
+ 
+ 			// 支付方式
+ 			.payment-way {
+ 				margin-top: 24rpx;
+ 
+ 				.title {
+ 					color: rgb(48, 48, 48);
+ 					font-size: 36rpx;
+ 				}
+ 
+ 				.way {
+ 					margin-top: 24rpx;
+ 
+ 					.way-item {
+ 						display: flex;
+ 						justify-content: space-between;
+ 						align-items: center;
+ 						margin-bottom: 24rpx;
+ 
+ 						.way-name {
+ 							display: flex;
+ 							align-items: center;
+ 							color: rgb(51, 51, 51);
+                             .text{
+								 font-size: 36rpx;
+							 }
+ 							.img {
+ 								width: 48rpx;
+ 								height: 48rpx;
+ 								vertical-align: middle;
+ 								margin-right: 16rpx;
+ 								margin-left: -3rpx;
+ 							}
+ 							.img2{
+ 								width: 40rpx;
+ 								height: 40rpx;
+ 								vertical-align: middle;
+ 								margin-right: 20rpx;
+ 							}
+ 							.img3{
+ 								background-color: #1677FF;
+ 								 width: 40rpx;
+ 								 height: 40rpx;
+ 								 vertical-align: middle;
+ 								 margin-right: 20rpx;
+ 								 border-radius: 999px;
+ 							}
+ 						}
+ 
+ 						/deep/.uni-radio-input {
+ 							width: 40rpx;
+ 							height: 40rpx;
+ 						}
+ 					}
+ 				}
+ 			}
+ 
+ 			// 按钮
+ 			.btn {
+ 				height: 96rpx;
+ 				border-radius: 50px;
+ 				background-color: rgba(51, 133, 255, 1);
+ 				color: rgba(255, 255, 255, 1);
+ 				font-size: 36rpx;
+ 				margin-top: 48rpx;
+ 			}
+ 
+ 		
+ 	}
+ 
+ 
+ 	// 对公转账弹窗
+ 	.modal-content {
+ 
+ 		padding: 40rpx 0;
+ 
+ 		.title-icon {
+ 			text-align: center;
+ 		}
+ 
+ 		.img {
+ 			width: 96rpx;
+ 			height: 96rpx;
+ 
+ 		}
+ 
+ 		.title {
+ 			text-align: center;
+ 			color: rgba(16, 16, 16, 1);
+ 			font-size: 36rpx;
+ 			font-weight: 600;
+ 			margin-top: 8rpx;
+ 		}
+ 
+ 		.infos-group {
+ 			margin: 40rpx 32rpx 0;
+ 
+ 			.item {
+ 				display: flex;
+ 				justify-content: space-between;
+ 				margin-bottom: 16rpx;
+ 
+ 				.item-title {
+ 					color: rgba(119, 119, 119, 1);
+ 					font-size: 32rpx;
+ 					 white-space: pre;
+ 				}
+ 
+ 				.item-value {
+ 					color: rgba(51, 51, 51, 1);
+ 					font-size: 32rpx;
+ 					margin-left: 16rpx;
+ 				}
+ 			}
+ 		}
+ 	}
+</style>

+ 490 - 0
pages/tenantList/billReminder.vue

@@ -0,0 +1,490 @@
+<template>
+	<view>
+		<u-navbar title="账单管理" title-color="#101010"></u-navbar>
+		
+		<u-picker v-model="tabsFrom.show1" mode="selector"
+		 :default-selector="[tabsFrom.show1Index]"
+		 :range="tabsFrom.selector1" range-key="label"
+			@confirm="selector1confirm"></u-picker>
+			
+			
+		<view class="head-head" style=" padding: 12px 0;" >
+			<view class="tabs-box" v-if="!popShow" >
+				<view class="tabs1" v-show="tenantList.length>1" :style="{width: tenantList.length>4 ? '' : '100%'}" >
+					<u-tabs :list="tenantList1"   inactive-color="#777777" active-color="#333333	" 
+					 bg-color="#fff" :is-scroll="false" :current="current" @change="change"></u-tabs>
+				</view>
+				<view class="icon"  @click="popShow=true" v-if="tenantList.length >= 4" >
+					<u-icon name="arrow-down" color="#777777" size="28"></u-icon>
+				</view>
+			</view>
+			<view style="
+				text-align: center;
+				display: flex;
+				align-items: center;
+				" >
+				<view style="width: 40%;" @click="tabsFrom.show1=true">
+						{{statusName?statusName:'支付状态'}} <u-icon name="arrow-down" color="#999999"></u-icon>
+				</view>
+				<view style="width: 60%;" >
+					<u-search placeholder="请输入收费项目"  style="padding: 0 12px;" :show-action="false"	@change="merchantChangeApi(1)"	 v-model="keyword2"></u-search>
+				</view>
+			</view>
+			
+		</view>
+		<view class="head-head-placeholder2 ">
+			
+		</view>
+		<!-- 标签弹出层 -->
+		<u-popup v-model="popShow"  @close="keyword=''"   length="80%" duration="10" mode="top" :negative-top="188" border-radius="32">
+			<u-navbar title="账单管理"  title-color="#101010" >
+				
+			</u-navbar>
+			<view class="head-head">
+				<u-search placeholder="请输入租户名称" :show-action="false"		 v-model="keyword"></u-search>
+				
+			</view>
+			<view class="head-head-placeholder ">
+				
+			</view>
+			
+			<view class="popup-tabs" v-if="false">
+				<view class="tabs1">
+					<!-- <u-tabs :list="tenantList1"   inactive-color="#777777" active-color="#333333	"
+					 bg-color="#fff" :is-scroll="false" :current="current" @change="change"></u-tabs> -->
+					<u-tabs :list="tenantList1" :is-scroll="false" :current="current" @change="change"></u-tabs >
+				</view>
+				<view class="more">
+					<u-icon name="arrow-up" color="#777777" size="40" @click="popShow=false"></u-icon>
+				</view>
+			</view>
+			<view class="tabs-options">
+				<view class="item" v-for="(item, index) in tenantList"
+				v-show="keyword==''||(item.name&&item.name.indexOf(keyword)!=-1)"
+				
+				 :class="{
+				 	'item-index' : item.id==formData.tenantId
+				 }"
+				 :key="index"
+					@click="merchantChange(item,index)">
+					{{item.name}}
+				</view>
+				<u-divider   nonetext="没有找到相关内容"
+					border-color="#CFD2D5">已经到底了</u-divider>
+			</view>
+		</u-popup>
+		<view class="background">
+			
+			
+				
+			<view class="rules" v-if="queryList.length">
+				
+			
+				<view class="content" v-for="(item,i) in queryList" 
+				
+			 
+				@click="gotoUrl('/pages/tenantList/billPush?site=1&id='+item.id)"
+				:key="i">
+					
+					<view class="name">
+						缴费单位:{{item.tenantName}}
+			
+					</view>
+					<view class="name">
+						收费项目:{{item.name}}
+								
+					</view>
+					<view class="name">
+						账单总额:<span style="color: red;">¥{{item.billAmount}}</span>
+								
+					</view>
+					
+					<view class="value">
+						<view class="time">推送时间:{{item.pushTime?item.pushTime:item.pushStatusName}}</view>
+						<view class="state" :class="{
+							'state1':item.payTime
+						}" >{{item.payTime?'已支付':'未支付'}}</view>
+					</view>
+					
+			
+			
+				</view>
+				
+				
+			</view>
+			
+			<u-divider :isnone="queryList.length==0"  nonetext="没有找到相关内容"
+				border-color="#CFD2D5">已经到底了</u-divider>
+			
+		</view>
+	
+
+
+	</view>
+</template>
+
+<script>
+	import * as API from '@/apis/pagejs/tenantList.js'
+	import {
+			parseUnixTime,newDate
+		
+		} from '@/apis/utils'
+
+	export default {
+		data() {
+			return {
+				tenantList:[],
+				tenantList1:[],
+				popShow:false,
+				current:0,
+				current1:0,
+				current2: 0,
+				formData:{
+					pageIndex: 1,
+					pageSize: 20,
+				},
+				recordsTotal:0,
+				queryList: [],
+				companyInfo:{},
+				tenantInfo:{},
+				queryBl:false,
+				queryBl2:false,
+				keyword:'',
+				keyword2:"",
+				statusName:"",
+				tabsFrom: {
+					show1: false,
+					show1Index: 0,
+					show2Index: '',
+					show2: false,
+					show1Text: "全部类型",
+					show2Text: "全部时间",
+					selector1: [
+						{label: "全部",
+						value: '',},
+						{label: "已支付",
+						value: '1',},
+						{label: "未支付",
+						value: '0',}
+					]
+					
+				},
+				
+			}
+		},
+		onLoad(op) {
+			if(op.id){
+				
+			}
+		
+		},
+		onReady() {
+			this.getTenantList()
+			
+		},
+		methods: {
+			selector1confirm(e) {
+			
+				var index = e[0]
+				this.tabsFrom.show1Index = index
+				this.tabsFrom.show1Text = this.tabsFrom.selector1[index].label
+				this.formData.payStatus = this.tabsFrom.selector1[index].value
+				this.getContractList(true)
+			},
+			merchantChangeApi(bl){
+				this.getContractList(bl)
+			},
+			thisparseUnixTime(time){
+				return parseUnixTime(newDate(time),'{y}年{m}月{d}日')
+			},
+			change(index) {
+				
+				this.current = index;
+				this.formData.tenantId = this.tenantList1[index].id;
+				 this.popShow = false;
+				this.merchantChangeApi(true)
+			},
+			merchantChange(item, index) {
+				if(this.current==0){
+					this.current=1;
+				}
+				this.formData.tenantId= item.id;
+				
+				
+				 //this.$forceUpdate()
+				
+				this.getTenantListSort()
+				this.merchantChangeApi(true)
+				this.popShow = false;
+			},
+			getTenantListSort( ){
+				var list=this.tenantList
+				for(var i  in list){
+					var obj=list[i]
+					if(this.formData.tenantId==obj.id){
+						var obj1=list[this.current-1];
+						list[this.current-1]=obj;
+						list[i]=obj1;
+					}
+				}
+				
+				var mList1=[]
+				mList1.push({
+					id: '',
+					name: '全部'
+				});
+				for (var i = 0; i < list.length; i++) {
+					if (i >= 3) {
+					
+					} else {
+						mList1.push(list[i]);
+					}
+				}
+				this.tenantList1 = mList1;
+			},
+			getTenantList(){
+				uni.showLoading({
+					title: "加载中",
+					mask: true,
+				})
+				API.tenantList().then((response) => {
+					uni.hideLoading();
+					
+					var list=response.data.tenantInfoList;
+					this.tenantList=list
+					if(list.length==1){
+						this.queryBl2=true
+					}else{
+						//this.formData.tenantId=list[0].id
+						this.merchantChangeApi()
+						this.getTenantListSort()
+					}
+				
+					
+				}).catch(error => {
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
+				})
+			},
+			onReachBottom() {
+				if (this.queryList.length < this.recordsTotal) {
+					this.myLoadmore();
+				}
+			},
+			myLoadmore() {
+				this.formData.pageIndex += 1;
+				this.getContractList();
+			},
+			getContractList(bl){
+				uni.showLoading({
+					mask:true,title:'加载中...'
+				})
+				if (bl) {
+					this.queryList = [];
+					this.formData.pageIndex = 1;
+				}
+				this.formData.name=this.keyword2
+				API.billAdminList(this.formData).then((response) => {
+					uni.hideLoading();
+					//this.list=response.data.data;
+					
+					this.queryList = [
+						...this.queryList,
+						...response.data.data
+					];
+					this.recordsTotal = response.data.recordsTotal;
+					
+					this.queryBl=true
+				}).catch(error => {
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
+				})
+			},
+			change1(index) {
+				this.current1 = index;
+			},
+			change2(index) {
+				this.current2 = index;
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	// 标签
+	.tabs-box{
+		  display: flex;
+		  align-items: center;
+		  justify-content: space-between;
+		 // padding: 16rpx 32rpx 16rpx 0;
+		  .tabs{
+			  width: 96%;
+		  }
+	}
+	.background {
+		// background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(22,119,255,0) 100%);
+		// padding: 32rpx 0;
+		// height: 720rpx;
+	
+		.unit {
+			background-color: #fff;
+			margin: 0 32rpx;
+			border-radius: 8px;
+			padding: 32rpx;
+	
+			.title {
+				color: rgba(153, 153, 153, 1);
+			}
+	
+			.value {
+				color: rgba(51, 51, 51, 1);
+				font-size: 40rpx;
+				margin-top: 16rpx;
+			}
+		}
+	}
+	
+	// 规则
+	.rules {
+		
+		
+	
+		/deep/.u-tabs {
+			border-radius: 8px;
+	
+		}
+	
+		.content {
+			background-color: #fff;
+			padding-bottom: 24rpx;
+			border-radius: 8px;
+			padding: 24rpx;
+			margin: 24rpx 32rpx;
+			.name-title {
+			    color: #999999;
+			}
+			.name {
+				margin: 16rpx 0;
+				color: rgba(16, 16, 16, 1);
+				font-size: 28rpx;
+				
+			}
+	
+			.value{
+				    display: flex;
+				    align-items: center;
+				    justify-content: space-between;
+					
+				.time{
+					color: #9E9E9E;
+					font-size: 24rpx;
+				}
+				.state{
+					font-size: 24rpx;
+					border-radius: 3px;
+					border: 1px solid #FF8800;
+					color: #FF8800;
+					padding:2px 3px;
+
+				}
+				.state1{
+					border: 1px solid #389E0D;
+					color: #389E0D;
+				}
+			}
+	
+	
+		}
+	
+		// 备注
+		.remark {
+			padding: 40rpx 32rpx;
+			margin-top:  24rpx;
+			border-radius: 8px;
+			background-color: rgba(242, 244, 246, 1);
+			color: rgba(16, 16, 16, 1);
+			font-size: 24rpx;
+			line-height: 34rpx;
+	
+			.value {
+				margin-top: 16rpx;
+			}
+	
+			.item {
+				margin-bottom: 8rpx;
+			}
+		}
+	}
+	.tabs-box{
+		background-color: #fff;
+		  display: flex;
+		  align-items: center;
+		  justify-content: space-between;
+		  padding: 16rpx 0 16rpx 0;
+		  .tabs1{
+			  width: 96%;
+		  }
+	}
+	
+	
+	.popup-tabs {
+		background-color: #fff;
+		display: flex;
+		align-items: center;
+		justify-content: space-between;
+		padding-top: 32rpx;
+		padding-right: 32rpx;
+		color: rgba(51, 51, 51, 1);
+		font-size: 32rpx;
+	
+		.tabs1 {
+			width: 88%;
+	
+		}
+	}
+	
+	/deep/.u-tab-item {
+		width: 25% !important;
+		flex: none !important;
+	}
+	
+	.tabs-options {
+		//display: flex;
+		padding: 24rpx 32rpx ;
+		flex-wrap: wrap;
+	
+		.item {
+			//width: 25%;
+			color:rgb(119, 119, 119);
+			margin-bottom: 24rpx;
+			font-size: 32rpx;
+		}
+		.item-index{
+			    color: rgb(51, 51, 51);
+				font-weight: bold;
+		}
+	}
+	.head-head{
+		box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
+		background: #fff;
+		padding:24rpx;
+		position: fixed;
+		    left: 0;
+		    right: 0;
+		    top: 80rpx;
+		    z-index: 991;
+	}
+	.head-head-placeholder{
+		height: 112rpx;
+		
+	}
+	.head-head-placeholder2{
+		height: 222rpx;
+		
+	}
+</style>