<template>
	<div>
		<div style="display: inline-block;font-size:18px;margin-bottom: 15px;">
			<a href="#" @click="prev" style="text-decoration:none;font-size: 14px;">
				<icon-svg name="jiantou" style="width: 1.2em;height: 1.2em;position: relative;top: 0.3em;"></icon-svg>
				返回
			</a>
			<span style="display: inline-block;margin: 0 15px;color: #D9D9D9;">|</span>
			<span>用户详情</span>
		</div>
		<el-tabs v-model="activeName" @tab-click="handleClick">
			<el-tab-pane label="用户详情" name="first">
				<div class="detailtabel">
					<div class="table_main">
						<table>
							<tbody>
								<tr>
									<th>本月订单数量</th>
									<td>{{ tablenum.ordersCount ? `${tablenum.ordersCount}笔` : '0笔' }}</td>
									<th>本月充值金额</th>
									<td>{{ tablemoney.consume ? `${tablemoney.consume}元` : '0元' }}</td>
									<th>本月邀请数量</th>
									<td class="border-rt">{{ tablemoney.count ? `${tablemoney.count}人` : '0人' }}
									</td>
								</tr>
								<tr>
									<th>本月收入</th>
									<td>{{ tablemoney.ordersMoney ? `${tablemoney.ordersMoney}元` : '0元' }}</td>
									<th>本月提现金额</th>
									<td>{{ tablemoney.income ? `${tablemoney.income}元` : '0元' }}</td>
									<th>小程序openId</th>
									<td class="border-rt">{{ tableData.openId ? tableData.openId : '未绑定' }}</td>
								</tr>
								<tr>
									<th>邀请人邀请码</th>
									<td>{{ tableData.inviterCode }}</td>
									<th>余额</th>
									<td style="color: rgb(245, 108, 108)">
										{{ tablemoney.money ? `${tablemoney.money.money}元` : '0元' }}
										<el-button size="mini" :disabled="!isAuth('userList:updatejf')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="rechargenone(1,tableData.userId)">修改</el-button>
									</td>
									<th>保证金</th>
									<td class="border-rt" style="color: rgb(245, 108, 108)">
										{{ tablemoney.money ? `${tablemoney.money.cashDeposit}元` : '0元' }}
										<el-button size="mini" :disabled="!isAuth('userList:updatejf')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="rechargenone(2,tableData.userId)">修改</el-button>
									</td>
								</tr>
								<tr>
									<th>邀请好友佣金比例</th>
									<td>{{ tableData.userRate ? `${tableData.userRate}` : '0' }}
										<el-button size="mini" :disabled="!isAuth('userList:updatebl')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="xiugai(tableData,'userRate')">修改</el-button>
										</span>
									</td>
									<th>邀请师傅佣金比例</th>
									<td>{{ tableData.shopRate ? `${tableData.shopRate}` : '0' }}
										<el-button size="mini" :disabled="!isAuth('userList:updatebl')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="xiugai(tableData,'shopRate')">修改</el-button>
									</td>
									<th>是否是会员</th>
									<td class="border-rt">
										{{ tableData.member==1 ? `是` : '否' }}
									</td>
								</tr>

								<tr>
									<th>创建时间</th>
									<td>{{ tableData.createTime }}</td>
									<th>手机号</th>
									<td>{{ tableData.phone ? tableData.phone : '未绑定' }}
										<el-button size="mini" :disabled="!isAuth('userList:updateXx')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="updataUser(tableData)">修改</el-button>
									</td>
									<th>图像</th>
									<td class="border-rt">
										<img v-if="tableData.avatar==null" src="~@/assets/img/avatar.png" alt=""
											width="80" height="80">
										<img v-else :src="tableData.avatar" width="80" height="80" />
										<el-button size="mini" :disabled="!isAuth('userList:updateXx')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="updataUser(tableData)">修改</el-button>
									</td>
								</tr>
								<tr>
									<th>微信名称</th>
									<td>{{ tableData.userName }}
										<el-button size="mini" :disabled="!isAuth('userList:updateXx')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="updataUser(tableData)">修改</el-button>
									</td>
									<th>地址</th>
									<td>{{ tableData.address ? tableData.address : '未绑定' }}</td>
									<th>支付宝姓名</th>
									<td class="border-rt">{{ tableData.zhiFuBaoName ? tableData.zhiFuBaoName : '未绑定' }}
									</td>
								</tr>
								<tr>
									<th>邀请码</th>
									<td>{{ tableData.invitationCode }}</td>
									<th>支付宝账号</th>
									<td>{{ tableData.zhiFuBao ? tableData.zhiFuBao : '未绑定' }}</td>
									<th>用户状态</th>
									<td class=" border-rt">
										<span v-if="tableData.status == 1 ">正常</span>
										<span v-if="tableData.status == 2 " style="color: #f56c6c;">禁用</span>
										<el-button size="mini" :disabled="!isAuth('userList:updateStatus')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="stateChange(tableData.userId)">更改状态</el-button>
									</td>
								</tr>
								<tr>
									<th>是否实名</th>
									<td>
										<span v-if="tableData.isAuthentication==1">个人实名审核中</span>
										<span v-else-if="tableData.isAuthentication==2">个人实名成功</span>
										<span v-else-if="tableData.isAuthentication==3">个人已实名</span>
										<span v-else-if="tableData.isAuthentication==4">企业实名审核中</span>
										<span v-else-if="tableData.isAuthentication==5">企业已实名</span>
										<span v-else-if="tableData.isAuthentication==6">企业实名失败</span>
										<span v-else>未实名</span>
									</td>
									<th>年龄</th>
									<td>
										<span v-if="tableData.age">{{tableData.age}}</span>
										<span v-else>未设置</span>
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
											:disabled="!isAuth('userList:updateXx')" @click="ageChange(tableData)">修改
										</el-button>
									</td>
									<th>是否是师傅</th>
									<td class="border-rt">
										<span v-if="tableData.isAuthentication==2">是</span>
										<span v-else>否</span>
										<!-- <el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
											@click="ageChange1(tableData.userId,tableData.age)">修改</el-button> -->
									</td>
								</tr>
								<tr>
									<th>会员到期时间</th>
									<td>
										{{ tableData.vipEndTime }}
									</td>
									<th>编号</th>
									<td>{{ tableData.userId }}
									</td>
									<th>是否是推广员</th>
									<td class="border-rt">
										<span v-if="tableData.isAgency==1">是</span>
										<span v-else>否</span>
										<el-button size="mini" :disabled="!isAuth('userList:updateTgy')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="updateDl(tableData.isAgency,tableData.userId)">更改</el-button>
									</td>
								</tr>
								<tr>
									<th>银行名称</th>
									<td>
										{{ tableData.bankCardName }}
									</td>
									<th>绑定银行卡姓名</th>
									<td>{{ tableData.bankCardUserName }}
									</td>
									<th>银行卡账号</th>
									<td class="border-rt">
										{{ tableData.bankCard }}
									</td>
								</tr>
								<tr>
									<th class="border-bt">渠道来源</th>
									<td class="border-bt">
										{{tableData.platform}}
									</td>
									<th class="border-bt">开户行地址</th>
									<td class="border-bt">
										{{ tableData.bankCardAddress }}
									</td>
									<th class="border-bt">公众号openId</th>
									<td class="border-bt border-rt">
										{{tableData.wxOpenId}}
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</el-tab-pane>
			<el-tab-pane label="师傅详情" name="jishi" v-if="tableData.isAuthentication==2">
				<div class="detailtabel">
					<div class="table_main">
						<table>
							<tbody>
								<tr>
									<th>师傅名称</th>
									<td>{{ artificer.artificerName ? `${artificer.artificerName}` : '未绑定' }}
										<el-button size="mini" :disabled="!isAuth('userList:updatebl')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="xiugaiJsxx(artificer)">修改信息</el-button>
									</td>
									<th>师傅Id</th>
									<td>{{ artificer.artificerId }}</td>
									<th>师傅头像</th>
									<td class="border-rt">
										<img v-if="artificer.artificerImg==null" src="~@/assets/img/avatar.png" alt=""
											width="80" height="80">
										<img v-else :src="artificer.artificerImg" width="80" height="80" />
									</td>
									</td>
								</tr>
								<tr>
									<th>证书</th>
									<td>
										<div v-if="artificer.certificate">
											<img v-for="(item,index) in artificer.certificate" :key="index" :src="item"
												alt="" width="80" height="80" style="margin: 2px;">
										</div>
										<div v-else> - </div>
									</td>
									<th>师傅生活照</th>
									<td>
										<div v-if="artificer.lifePhoto" style="min-width: 300px;">
											<img v-for="(item,index) in artificer.lifePhoto" :key="index" :src="item"
												alt="" width="80" height="80" style="margin: 2px;">
										</div>
										<div v-else> - </div>
									</td>
									<th>经度</th>
									<td class="border-rt">
										{{ artificer.longitude }}
									</td>
								</tr>
								<tr>
									<th>简介</th>
									<td>
										<div style="max-width: 300px;">
											{{ artificer.content}}
										</div>
									</td>
									</td>
									<!-- <th>从业时长</th>
									<td >
										{{ artificer.workingTime }}
									</td> -->
									</td>
									<th>师傅销量</th>
									<td>
										{{ artificer.ordersCount?artificer.ordersCount:0 }}
									</td>
									<th>纬度</th>
									<td class="border-rt">{{ artificer.latitude }}</td>
								</tr>
								<tr>
									<th>是否优选</th>
									<td>
										<span>{{artificer.isGoods==1?'是':'否'}}</span>
									</td>
									<th>是否热度最高</th>
									<td>
										<span>{{artificer.isHot==1?'是':'否'}}</span>
									</td>
									<th>项目类型</th>
									<td class="border-rt">
										{{artificer.classifyName}}
									</td>
								</tr>
								<tr>
									<th>收藏数量</th>
									<td>
										{{artificer.collectCount}}
									</td>
									<th>信誉分</th>
									<td>
										{{artificer.creditScore}}
										<el-button size="mini" v-if="tablenum.artificer"
											:disabled="!isAuth('userList:updateXyf')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="ageChange2(tableData.userId,tableData.creditScore)">修改</el-button>

									</td>
									<th>完成订单数量</th>
									<td class="border-rt">
										{{artificer.ordersCount}}
									</td>
								</tr>
								<tr>
									<th>师傅抽成</th>
									<td>
										{{artificer.rate}}
										<el-button size="mini" :disabled="!isAuth('userList:updatebl')"
											style="color: #4f9dec;background: #fff;border: none;" @click="xiugaiJs(artificer)">
											修改</el-button>
										</span>
									</td>
									<th>城市</th>
									<td>{{artificer.city}}</td>
									<th></th>
									<td class=" border-rt"></td>
								</tr>
								<tr>
									<th class="border-bt">评分</th>
									<td class="border-bt">
										{{artificer.ordersScore}}
									</td>
									<th class="border-bt">出行方式</th>
									<td class="border-bt">
										<span v-if="artificer.tripWay==1">公交</span>
										<span v-if="artificer.tripWay==2">出租</span>
										<span v-if="artificer.tripWay==3">免费</span>
									</td>
									<th class="border-bt">忙时</th>
									<td class="border-bt border-rt" style="min-width: 300px;">
										<span>日期：</span>
										<el-date-picker style="width: 160px;margin-left: 10px;" v-model="artificerDate"
											align="right" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
											placeholder="选择时间" @change="mangshi(artificerDate)">
										</el-date-picker>
										<div v-if="timeList.length>0" style="margin-top: 5px;">
											<el-tag v-for="(item,index) in timeList" :key="index" style="margin:3px">
												{{item.artificerTime}}
											</el-tag>
										</div>
										<el-tag type="info" style="cursor:pointer" @click="updateMs">修改</el-tag>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</el-tab-pane>
			<el-tab-pane label="商家详情" name="shops" v-if="tableData.isShop==1">
				<div class="detailtabel">
					<div class="table_main">
						<table>
							<tbody>
								<tr>
									<th>商家名称</th>
									<td>{{ consortia.consortiaName ? `${consortia.consortiaName}` : '未绑定' }}
										<!-- <el-button size="mini" :disabled="!isAuth('userList:updatebl')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="xiugaiJs(consortia)">修改信息</el-button> -->
									</td>
									<th>商家Id</th>
									<td>{{ consortia.consortiaId }}</td>
									<th>商家头像</th>
									<td class="border-rt">
										<img v-if="consortia.logo==null" src="~@/assets/img/avatar.png" alt=""
											width="80" height="80">
										<img v-else :src="consortia.logo" width="80" height="80" />
									</td>
									</td>
								</tr>
								<tr>
									<th>资质证书</th>
									<td>
										<div v-if="consortia.qualificationCertificate">
											<img v-for="(item,index) in consortia.qualificationCertificate" :key="index" :src="item"
												alt="" width="80" height="80" style="margin: 2px;">
										</div>
										<div v-else> - </div>
									</td>
									<th>营业执照</th>
									<td>
										<div v-if="consortia.businessLicense" style="min-width: 300px;">
											<img v-for="(item,index) in consortia.businessLicense" :key="index" :src="item"
												alt="" width="80" height="80" style="margin: 2px;">
										</div>
										<div v-else> - </div>
									</td>
									<th>详细地址</th>
									<td class="border-rt">
										{{ consortia.address }}
									</td>
								</tr>
								<tr>
									<th>商家公告</th>
									<td>
										<div style="max-width: 300px;">
											{{ consortia.consortiaContent}}
										</div>
									</td>
									</td>
									</td>
									<th>身份证姓名</th>
									<td>
										{{ consortia.identityName }}
									</td>
									<th>身份证号</th>
									<td class="border-rt">{{ consortia.identityCard }}</td>
								</tr>
								<tr>
									<th>商家抽成</th>
									<td>
										<span>{{consortia.rate}}</span>
									</td>
									<th>电话</th>
									<td>
										{{ consortia.phone }}
									</td>
									<th></th>
									<td class="border-rt">

									</td>
								</tr>
								<tr>
									<th class="border-bt"></th>
									<td class="border-bt">
									</td>
									<th class="border-bt"></th>
									<td class="border-bt">
									</td>
									<th class="border-bt"></th>
									<td class="border-bt border-rt">
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</el-tab-pane>
			<el-tab-pane label="提现记录" name="sixth">
				<el-table v-loading="tableDataLoading" :data="withdrawData.list">
					<el-table-column fixed prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="classify" label="提现类型" width="100">
						<template slot-scope="scope">
							<span v-if="scope.row.classify == 1">支付宝</span>
							<span v-else-if="scope.row.classify == 2">银行卡</span>
							<span v-else> -</span>
						</template>
					</el-table-column>
					<el-table-column prop="zhifubao" label="支付宝账号">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;"
								@click="updates(scope.row)">{{scope.row.zhifubao ? scope.row.zhifubao : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="zhifubaoName" label="支付宝名称">
						<template slot-scope="scope">
							<span>{{scope.row.zhifubaoName ? scope.row.zhifubaoName : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="bankCardUserName" label="绑定银行卡姓名" width="100">
						<template slot-scope="scope">
							<span>{{scope.row.bankCardUserName ? scope.row.bankCardUserName : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="bankCardName" label="银行名称" width="100">
						<template slot-scope="scope">
							<span>{{scope.row.bankCardName ? scope.row.bankCardName : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="bankCard" label="银行卡账号" width="100">
						<template slot-scope="scope">
							<span>{{scope.row.bankCard ? scope.row.bankCard : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="bankCardAddress" label="开户行地址" width="100">
						<template slot-scope="scope">
							<span>{{scope.row.bankCardAddress ? scope.row.bankCardAddress : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="money" label="提现金额" width="100">
					</el-table-column>
					<el-table-column prop="state" label="状态" width="100" fixed="right">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 0">待转账</span>
							<span v-if="scope.row.state == 1">已转账</span>
							<span v-if="scope.row.state == -1">已退款</span>
						</template>
					</el-table-column>
					<el-table-column prop="refund" label="退款原因" width="220">
					</el-table-column>
					<el-table-column prop="createAt" label="申请时间" width="170">
					</el-table-column>
					<el-table-column prop="outAt" label="转账/退款时间" width="180">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeTx" @current-change="handleCurrentChangeTx"
						:page-sizes="[5, 10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="withdrawData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="钱包明细" name="eighth">
				<el-table v-loading="tableDataLoading" :data="walletData.records">
					<el-table-column prop="id" label="编号" width="100"></el-table-column>
					<el-table-column prop="title" label="标题"></el-table-column>
					<el-table-column prop="content" label="内容"></el-table-column>
					<el-table-column prop="money" label="金额" width="100">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.type==2">- {{ scope.row.money }}</span>
							<span style="color: #006600;" v-if="scope.row.type==1">+ {{ scope.row.money }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeQb" @current-change="handleCurrentChangeQb"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="walletData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="充值明细" name="seventh">
				<div style="display: inline-block;">
					<span>开始时间：</span>
					<el-date-picker style="width: 160px;margin-left: 10px;" v-model="startTime" align="right"
						type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择开始时间">
					</el-date-picker>&nbsp;&nbsp;&nbsp;
					<span>截止时间：</span>
					<el-date-picker style="width: 160px;margin-left: 10px;" v-model="endTime" align="right"
						type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择截止时间">
					</el-date-picker>
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="timeDate2">
						查询</el-button>
				</div>
				<el-table v-loading="tableDataLoading" :data="rechargeData.list">
					<el-table-column prop="id" label="编号" width="50"></el-table-column>
					<el-table-column prop="orderId" label="充值订单号" width="200"></el-table-column>
					<el-table-column prop="money" label="充值金额"></el-table-column>
					<el-table-column prop="userId" label="会员编号"></el-table-column>
					<el-table-column label="分类">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 1">app微信</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 2">微信公众号</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 3">微信小程序</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 4">支付宝</span>
						</template>
					</el-table-column>
					<el-table-column label="状态">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 0">待支付</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 1">支付成功</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 2">支付失败</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="170">
					</el-table-column>
					<el-table-column prop="payTime" label="支付时间" width="170">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeCz" @current-change="handleCurrentChangeCz"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="rechargeData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的评价" name="dingdan">
				<el-table v-loading="tableDataLoading" :data="pingluData.list">
					<el-table-column prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="userName" label="师傅昵称" width="150">
						<template slot-scope="scope">
							　<span>{{scope.row.artificerName?scope.row.artificerName:'未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="artificerImg" label="师傅头像" width="150">
						<template slot-scope="scope">
							<div v-if="scope.row.artificerImg &&scope.row.artificerImg!=''"
								style="display: inline-block; margin: 3px;">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="scope.row.artificerImg" alt=""
										slot="reference">
									<img style="width: 300px; height: auto" :src="scope.row.artificerImg" alt="">
								</el-popover>
							</div>
							<span v-else>暂无图片</span>
						</template>
					</el-table-column>
					<el-table-column prop="content" label="评价内容">
					</el-table-column>
					<el-table-column prop="score" label="评分" width="80">
					</el-table-column>
					<el-table-column prop="createTime" label="评价时间" width="180">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangePl" @current-change="handleCurrentChangePl"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="pingluData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="收到的评价" name="dingdanS" v-if="tableData.isAuthentication==2">
				<el-table v-loading="tableDataLoading" :data="pinglunData.list">
					<el-table-column prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="userName" label="评论用户" width="150">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;"
								@click="updates(scope.row.userId)">{{scope.row.userName ? scope.row.userName : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="avatar" label="头像">
						<template slot-scope="scope">
							<img :src="scope.row.avatar" alt="" width="60" height="60">
						</template>
					</el-table-column>
					<el-table-column prop="title" label="项目">
					</el-table-column>
					<el-table-column prop="content" label="评价内容">
					</el-table-column>
					<el-table-column prop="score" label="评分">
						<template slot-scope="scope">
							<span>{{scope.row.score?scope.row.score:'暂无评分'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangebPl" @current-change="handleCurrentChangebPl"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="pinglunData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的下单" name="qiye">
				<el-table v-loading="tableDataLoading" :data="dingdanData.list">
					<el-table-column prop="ordersId" label="编号" width="80" fixed="left">
					</el-table-column>
					<el-table-column prop="userName" label="师傅用户">
						<template slot-scope="scope">
							<span style="color: #008000;cursor: pointer;"
								@click="updates(scope.row.artificerUserId)">{{ scope.row.artificerName?scope.row.artificerName:'未绑定' }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="ordersNo" label="订单编号">
					</el-table-column>
					<el-table-column prop="price" label="项目价格">
					</el-table-column>
					<el-table-column prop="couponName" label="优惠券名称">
					</el-table-column>
					<el-table-column prop="couponMoney" label="优惠券价格">
					</el-table-column>
					<el-table-column prop="artificerMoney" label="师傅收益">
					</el-table-column>
					<el-table-column prop="payMoney" label="支付金额">
					</el-table-column>
					<el-table-column prop="taxiMoney" label="打车费">
					</el-table-column>
					<el-table-column prop="oneUserName" label="推广用户名称">
						<template slot-scope="scope">
							<span style="color: #008000;cursor: pointer;"
								@click="updates(scope.row.oneUserId)">{{ scope.row.oneUserName?scope.row.oneUserName:'未绑定' }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="oneUserMoney" label="推广用户佣金">
					</el-table-column>
					<el-table-column prop="oneArtificerUserName" label="推广师傅用户名">
						<template slot-scope="scope">
							<span style="color: #B94A48;cursor: pointer;"
								@click="updates(scope.row.oneArtificerUserId)">{{ scope.row.oneArtificerUserName?scope.row.oneArtificerUserName:'未绑定' }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="oneArtificerMoney" label="推广师傅佣金">
					</el-table-column>
					<el-table-column prop="addMoney" label="加钟价格">
					</el-table-column>
					<el-table-column prop="addTime" label="加钟时长">
					</el-table-column>
					<el-table-column prop="addNum" label="加钟次数">
					</el-table-column>
					<el-table-column prop="addArtificerMoney" label=" 加钟师傅收益">
					</el-table-column>
					<el-table-column prop="sumArtificerMoney" label="师傅总收益">
					</el-table-column>
					<el-table-column prop="sumMoney" label="订单总金额">
					</el-table-column>
					<el-table-column prop="payWay" label="支付方式">
						<template slot-scope="scope">
							<span v-if="scope.row.payWay==1">app微信</span>
							<span v-if="scope.row.payWay==2">微信公众号</span>
							<span v-if="scope.row.payWay==3">微信小程序</span>
							<span v-if="scope.row.payWay==4">支付宝</span>
							<span v-if="scope.row.payWay==5">零钱</span>
						</template>
					</el-table-column>
					<el-table-column prop="phone" label="联系电话">
					</el-table-column>
					<el-table-column prop="serveTime" label="服务时间" width="100">
					</el-table-column>
					<el-table-column prop="startTime" label="开始服务时间">
					</el-table-column>
					<el-table-column prop="endTime" label="服务地址" width="200">
						<template slot-scope="scope">
							<span>{{scope.row.address}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="remark" label="备注">
					</el-table-column>
					<el-table-column prop="status" label="是否加钟" fixed="right">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.status==1">是</span>
							<span style="color: #999;" v-else>否</span>
						</template>
					</el-table-column>
					<el-table-column prop="status" label="订单状态" fixed="right">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.status==1">待支付</span>
							<span style="color: #E87D0D;" v-if="scope.row.status==2">待服务</span>
							<span style="color: #009900;" v-if="scope.row.status==3">待评价</span>
							<span style="color: #999;" v-if="scope.row.status==4">已取消</span>
							<span style="color: #999;" v-if="scope.row.status==5">已完成</span>
							<span style="color: red;" v-if="scope.row.status==6">服务中</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160">
					</el-table-column>
					<el-table-column prop="createTime" fixed="right" label="操作" width="100">
						<template slot-scope="scope">
							<el-button style="margin:5px;" size="mini" type="primary" icon="document"
								@click="selectBtn(scope.row)">加钟记录
							</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeXd" @current-change="handleCurrentChangeXd"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="dingdanData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的接单" name="jiedan" v-if="tableData.isAuthentication==2">
				<el-table v-loading="tableDataLoading" :data="jiedanData.list">
					<el-table-column prop="ordersId" label="编号" width="80" fixed="left">
					</el-table-column>
					<el-table-column prop="userName" label="下单用户昵称">
						<template slot-scope="scope">
							　<span>{{scope.row.userName?scope.row.userName:'未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="artificerImg" label="师傅头像">
						<template slot-scope="scope">
							<div v-if="scope.row.artificerImg &&scope.row.artificerImg!=''"
								style="display: inline-block; margin: 3px;">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="scope.row.artificerImg" alt=""
										slot="reference">
									<img style="width: 300px; height: auto" :src="scope.row.artificerImg" alt="">
								</el-popover>
							</div>
							<span v-else>暂无图片</span>
						</template>
					</el-table-column>
					<el-table-column prop="ordersNo" label="订单编号">
					</el-table-column>
					<el-table-column prop="payMoney" label="支付金额">
					</el-table-column>
					<el-table-column prop="payWay" label="支付方式">
						<template slot-scope="scope">
							<span v-if="scope.row.payWay==1">app微信</span>
							<span v-if="scope.row.payWay==2">微信公众号</span>
							<span v-if="scope.row.payWay==3">微信小程序</span>
							<span v-if="scope.row.payWay==4">支付宝</span>
							<span v-if="scope.row.payWay==5">零钱</span>
						</template>
					</el-table-column>
					<el-table-column prop="phone" label="联系电话">
					</el-table-column>
					<el-table-column prop="serveTime" label="服务时间" width="100">
					</el-table-column>
					<el-table-column prop="artificerMoney" label="师傅收益">
					</el-table-column>
					<el-table-column prop="endTime" label="服务地址" width="200">
						<template slot-scope="scope">
							<span>{{scope.row.address}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="remark" label="备注">
					</el-table-column>
					<el-table-column prop="status" label="订单状态" fixed="right">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.status==1">待支付</span>
							<span style="color: #E87D0D;" v-if="scope.row.status==2">服务中</span>
							<span style="color: #009900;" v-if="scope.row.status==3">待评价</span>
							<span style="color: #999;" v-if="scope.row.status==4">已取消</span>
							<span style="color: #999;" v-if="scope.row.status==5">已完成</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeJd" @current-change="handleCurrentChangeJd"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="jiedanData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的项目" name="fabu" v-if="tableData.isAuthentication==2">
				<el-table v-loading="tableDataLoading" :data="takeData">
					<el-table-column prop="massageTypeId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="title" label="项目名称">
					</el-table-column>
					<el-table-column prop="massageImg" label="项目图片">
						<template slot-scope="scope">
							　　<img v-if="scope.row.massageImg &&scope.row.massageImg!=''" :src="scope.row.massageImg"
								width="40" height="40" />
							<span v-else>暂无图片</span>
						</template>
					</el-table-column>
					<el-table-column prop="contentImg" label="项目详情图" width="250">
						<template slot-scope="scope">
							<div v-if="scope.row.contentImg.length>0">
								<div v-for="(item,index) in scope.row.contentImg" :key="index"
									style="display: inline-block; margin: 3px;">
									<el-popover placement="top-start" title="" trigger="hover">
										<img style="width: 50px; height: 50px" :src="item" alt="" slot="reference">
										<img style="width: 300px; height: auto" :src="item" alt="">
									</el-popover>
								</div>
							</div>
							<div v-else>暂无图片</div>
						</template>
					</el-table-column>
					<el-table-column prop="region" label="城市" width="100">
						<template slot-scope="scope">
							<span v-if="scope.row.city">{{scope.row.city}}</span>
							<span v-else>不限</span>
						</template>
					</el-table-column>
					<el-table-column prop="oldPrice" label="原价">
					</el-table-column>
					<el-table-column prop="price" label="现价">
					</el-table-column>
					<el-table-column prop="memberPrice" label="会员价">
					</el-table-column>
					<el-table-column prop="artificerPrice" label="师傅价">
					</el-table-column>
					<el-table-column prop="duration" label="时长">
					</el-table-column>
					<el-table-column prop="labels" label="标签" width="200">
					</el-table-column>
					<el-table-column prop="sales" label="销量">
					</el-table-column>
					<el-table-column prop="content" label="详情" width="300">
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180">
					</el-table-column>
				</el-table>
			</el-tab-pane>
			<el-tab-pane label="项目统计" name="shouyi" v-if="tableData.isAuthentication==2">
				<div style="display: inline-block;">
					<span>开始时间：</span>
					<el-date-picker style="width: 160px;margin-left: 10px;" v-model="startTime" align="right"
						type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择开始时间">
					</el-date-picker>&nbsp;&nbsp;&nbsp;
					<span>截止时间：</span>
					<el-date-picker style="width: 160px;margin-left: 10px;" v-model="endTime" align="right"
						type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择截止时间">
					</el-date-picker>
					<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="timeDate">查询
					</el-button>
				</div>
				<div>
					<el-row>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">总收益</div>
									<div class="text_color">
										<span>{{guanzhuData.sumMoney ? guanzhuData.sumMoney : 0}}</span>元
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">总销量</div>
									<div class="text_color">
										<span>{{guanzhuData.countOrderNum ? guanzhuData.countOrderNum : 0}}</span>元
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">用户评价数</div>
									<div class="text_color">
										<span>{{guanzhuData.countTakingByUserId ? guanzhuData.countTakingByUserId : 0}}</span>个
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">订单总数</div>
									<div class="text_color">
										<span>{{guanzhuData.countOrder ? guanzhuData.countOrder : 0}}</span>单
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">退款金额</div>
									<div class="text_color">
										<span>{{guanzhuData.sumRefund ? guanzhuData.sumRefund : 0}}</span>元
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">访问人数</div>
									<div class="text_color">
										<span>{{guanzhuData.countByUserId ? guanzhuData.countByUserId : 0}}</span>人
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">服务中的订单</div>
									<div class="text_color">
										<span>{{guanzhuData.countOrderIng ? guanzhuData.countOrderIng : 0}}</span>单
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">待评价订单</div>
									<div class="text_color">
										<span>{{guanzhuData.countOrderAppraise ? guanzhuData.countOrderAppraise : 0}}</span>单
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">已取消订单</div>
									<div class="text_color">
										<span>{{guanzhuData.countOrderCancel ? guanzhuData.countOrderCancel : 0}}</span>单
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">已完成订单</div>
									<div class="text_color">
										<span>{{guanzhuData.countOrderEnd ? guanzhuData.countOrderEnd : 0}}</span>单
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">上架中(我的项目)</div>
									<div class="text_color">
										<span>{{guanzhuData.putaway ? guanzhuData.putaway : 0}}</span>个
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">已下架(我的项目)</div>
									<div class="text_color">
										<span>{{guanzhuData.soldOut ? guanzhuData.soldOut : 0}}</span>个
									</div>
								</div>
							</div>
						</el-col>
					</el-row>
				</div>
			</el-tab-pane>
			<!-- <el-tab-pane label="聊天记录" name="ltjl">
				<el-table v-loading="tableDataLoading" :data="liaotianData.list">
					<el-table-column fixed prop="chatConversationId" label="id" width="80">
					</el-table-column>
					<el-table-column prop="nickName" label="用户昵称" width="150">
						<template slot-scope="scope">
							<div style="color: #4f9dec;cursor: pointer;">
								{{scope.row.userName ? scope.row.userName : '未绑定'}}
							</div>
							<div style="color: #4f9dec;cursor: pointer;" @click="updates1(scope.row.byUserId)">
								{{scope.row.byUserName ? scope.row.byUserName : '未绑定'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="picture" label="用户头像">
						<template slot-scope="scope">
							<div v-if="scope.row.avatar == null || scope.row.avatar == ''">
								暂无图片
							</div>
							<div v-else>
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="scope.row.avatar" alt=""
										slot="reference">
									<img style="width: 200px; height: 200px" :src="scope.row.avatar" alt="">
								</el-popover>
							</div>
							<div v-if="scope.row.byAvatar == null || scope.row.byAvatar == ''">
								暂无图片
							</div>
							<div v-else style="margin-top: 5px;">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="scope.row.byAvatar" alt=""
										slot="reference">
									<img style="width: 200px; height: 200px" :src="scope.row.byAvatar" alt="">
								</el-popover>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="content" label="最新聊天内容">
						<template slot-scope="scope">
							<div v-if="scope.row.messageType==1">{{scope.row.content}}</div>
							<div v-if="scope.row.messageType==2">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="scope.row.content" alt=""
										slot="reference">
									<img style="width: 200px; height: 200px" :src="scope.row.content" alt="">
								</el-popover>
							</div>
				 		<div v-if="scope.row.messageType==3">
								<audio :src="scope.row.content" type="audio/wav" controls="controls"></audio>
							</div>
							<div v-if="scope.row.messageType==4">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px"
										:src="'https://xxpwadmin.xianmxkj.com/emoji/'+scope.row.content" alt=""
										slot="reference">
									<img style="width: 200px; height: 200px"
										:src="'https://xxpwadmin.xianmxkj.com/emoji/'+scope.row.content" alt="">
								</el-popover>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="updateTime" label="创建时间" width="160">
					</el-table-column>
					<el-table-column fixed='right' prop="contentCount" label="状态" width="100">
						<template slot-scope="scope">
							<span style="color: #4f9dec;" v-if="scope.row.contentCount==0 ">未读</span>
							<span v-if="scope.row.contentCount == 1 ">已读</span>
						</template>
					</el-table-column>
					<el-table-column fixed='right' label="操作" width="150">
						<template slot-scope="scope">
							<el-button size="mini" type="primary" @click="complainDetails(scope.row)">聊天内容
							</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeLtjl" @current-change="handleCurrentChangeLtjl"
						:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="liaotianData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane> -->
			<!-- 我的团队 -->
			<el-tab-pane label="我的团队" name="tuandui">
				<div>
					<span>用户类型：</span>
					<el-select v-model="types" style="width:150px;margin-left: 10px;" @change="animeDat(types)">
						<el-option v-for="item in typesList" :key="item.type" :label="item.name" :value="item.type">
						</el-option>
					</el-select>&nbsp;&nbsp;&nbsp;
				</div>
				<el-table v-loading="tableDataLoading" :data="tuanduiData.list">
					<el-table-column fixed prop="userId" label="id" width="80">
					</el-table-column>
					<el-table-column prop="nickName" label="用户昵称" width="150">
						<template slot-scope="scope">
							<div style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">
								{{scope.row.userName ? scope.row.userName : '未绑定'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="avatar" label="用户头像">
						<template slot-scope="scope">
							<div style="margin-top: 5px;" v-if="scope.row.avatar">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="scope.row.avatar" alt=""
										slot="reference">
									<img style="width: 200px; height: 200px" :src="scope.row.avatar" alt="">
								</el-popover>
							</div>
							<div v-else><img style="width: 50px; height: 50px" src="~@/assets/img/avatar.png" alt=""
									slot="reference"></div>
						</template>
					</el-table-column>
					<el-table-column prop="money" label="收益(单位:元)">
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeTd" @current-change="handleCurrentChangeTd"
						:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="tuanduiData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的优惠券" name="youhuiquan">
				<el-table v-loading="tableDataLoading" :data="youhuiquanData.list">
					<el-table-column prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="couponName" label="优惠券名称" width="150">
					</el-table-column>
					<el-table-column prop="couponPicture" label="优惠券图片">
						<template slot-scope="scope">
							<img v-if="scope.row.couponPicture" :src="scope.row.couponPicture" alt="" width="40"
								height="40">
						</template>
					</el-table-column>
					<el-table-column prop="money" label="优惠券面值">
					</el-table-column>
					<el-table-column prop="minMoney" label="优惠券最低消费">
					</el-table-column>
					<el-table-column prop="expirationTime" label="优惠券失效时间" width="150">
					</el-table-column>
					<el-table-column label="状态">
						<template slot-scope="scope">
							<span style="color: #3E8EF7;" v-if="scope.row.status == 0">未使用</span>
							<span v-if="scope.row.status == 1">已使用</span>
							<span v-if="scope.row.status == 2">已过期</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="150">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeYhq" @current-change="handleCurrentChangeYhq"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next" :total="youhuiquanData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="信用分明细" name="xinyongfen">
				<el-table v-loading="tableDataLoading" :data="tableDataXyf.list">
					<el-table-column prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="title" label="标题">
					</el-table-column>
					<el-table-column prop="content" label="内容">
					</el-table-column>
					<el-table-column prop="createAt" label="创建时间" width="100"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeXyf" @current-change="handleCurrentChangeXyf"
						:page-sizes="[10, 20, 30, 40]" :page-size="size1" :current-page="page1"
						layout="total,sizes, prev, pager, next,jumper" :total="tableDataXyf.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="签到记录" name="qiandao">
				<el-table v-loading="tableDataLoading" :data="tableDataQd.list">
					<el-table-column prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="artificerName" label="用户昵称" width="150">
						<template slot-scope="scope">
							<span
								style="color: #4f9dec;cursor: pointer;">{{scope.row.artificerName ? scope.row.artificerName : '未绑定'}}</span>
						</template>
					</el-table-column>

					<el-table-column prop="avatar" label="头像" width="100">
						<template slot-scope="scope">
							<img :src="scope.row.artificerImg" alt="" width="60" height="60">
						</template>
					</el-table-column>
					<el-table-column prop="phone" label="手机号" width="120">
					</el-table-column>
					<el-table-column prop="address" label="签到地址">
					</el-table-column>
					<el-table-column prop="longitude" label="经度">
					</el-table-column>
					<el-table-column prop="latitude" label="纬度">
					</el-table-column>
					<el-table-column prop="createTime" label="签到时间" width="180">
					</el-table-column>
					<el-table-column label="操作" width="100">
						<template slot-scope="scope">
							<el-button size="mini" type="danger" :disabled="!isAuth('signIn:delete')"
								@click="deleteClick(scope.row)">
								删除
							</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeQd" @current-change="handleCurrentChangeQd"
						:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next" :total="tableDataQd.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="师傅位置记录" name="weizhi">
				<el-table v-loading="tableDataLoading" :data="tableDataWz.list">
					<el-table-column fixed prop="id" label="编号" width="80">
						<template slot-scope="scope">
							<span>
								{{scope.$index+1}}
							</span>
						</template>
					</el-table-column>

					<el-table-column prop="phone" label="电话" width="160">
					</el-table-column>
					<el-table-column prop="address" label="地址" ></el-table-column>
					<el-table-column prop="longitude" label="经度" width="160">
					</el-table-column>
					<el-table-column prop="latitude" label="纬度" width="160">
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeWz" @current-change="handleCurrentChangeWz"
						:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next" :total="tableDataWz.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>			<el-tab-pane label="充值的师傅" name="chongzhi">
				<div style="text-align: right;">
					<el-button size="mini" type="primary" @click="addShifu()" :disabled="!isAuth('userList:addcz')">添加充值</el-button>
				</div>
				<el-table v-loading="tableDataLoading" :data="tableDataDf.records">
					<el-table-column prop="userMoneyArtificerId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="artificerName" label="用户昵称">
						<template slot-scope="scope">
							<span
								style="color: #4f9dec;cursor: pointer;">{{scope.row.artificer? scope.row.artificer.artificerName : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="money" label="充值金额">
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间">
					</el-table-column>
					<el-table-column label="操作" width="100">
						<template slot-scope="scope">
							<el-button style="margin:5px;" size="mini" type="primary" icon="document"
								@click="selectXfUpdate(scope.row)" :disabled="!isAuth('userList:updatecz')">修改
							</el-button>
							<el-button style="margin:5px;" size="mini" type="primary" icon="document"
								@click="selectXfBtn(scope.row)">消费明细
							</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeSf" @current-change="handleCurrentChangeSf"
						:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next" :total="tableDataDf.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<!-- 我的订单 -->
			<el-tab-pane label="我的订单" name="myorder">
			  <el-table v-loading="tableDataLoading" :data="orderData.content">
			    <el-table-column prop="id" label="编号" width="80" fixed="left">
			    </el-table-column>
			    <el-table-column prop="title" label="标题">
			    </el-table-column>
			    <el-table-column prop="orderNum" label="订单编号" width="200">
			    </el-table-column>
			    <el-table-column prop="number" label="购买数量">
			    </el-table-column>
			    <el-table-column prop="price" label="购买金额">
			    </el-table-column>
			   <!-- <el-table-column prop="price" label="佣金" width="100">
			      <template slot-scope="scope">
			        <div v-if="scope.row.relationList.length>0">
			          {{scope.row.relationList[0].commissionPrice}}
			        </div>
			      </template>
			    </el-table-column> -->
			   <!-- <el-table-column prop="price" label="直属佣金" width="200" align="center">
			      <template slot-scope="scope">
			        <div v-if="scope.row.relationList.length>0">
			          用户【 <span style="color: #4f9dec;cursor: pointer;"
			            @click="updates(scope.row.relationList[1])">{{scope.row.relationList[1].userName}}</span>】：{{scope.row.relationList[1].commissionPrice}}
			        </div>
			      </template>
			    </el-table-column>
			    <el-table-column prop="price" label="非直属佣金" width="250" align="center">
			      <template slot-scope="scope">
			        <div v-if="scope.row.relationList.length>0">
			          用户【<span style="color: #4f9dec;cursor: pointer;"
			            @click="updates(scope.row.relationList[2])">{{scope.row.relationList[2].userName}}</span>】：{{scope.row.relationList[2].commissionPrice}}
			        </div>
			      </template>
			    </el-table-column> -->
			    <el-table-column prop="createAt" label="创建时间" width="160">
			    </el-table-column>

			    <el-table-column prop="status" label="状态" width="100" fixed="right">
			      <template slot-scope="scope">
			        <span style="color: #4f9dec;" v-if="scope.row.status === 1 ">待付款</span>
			        <span style="color: #4f9dec;" v-if="scope.row.status === 2 ">待发货 </span>
			        <span style="color: #999999;" v-if="scope.row.status === 3 ">已发货 </span>
			        <span style="color: #999999;" v-if="scope.row.status === 4 ">已收货</span>
			        <span style="color: #999999;" v-if="scope.row.status === 5 ">已取消</span>
			        <span style="color: #4f9dec;" v-if="scope.row.status === 6 ">退款中</span>
			        <span style="color: #999999;" v-if="scope.row.status === 7 ">已退款</span>
			        <span style="color: #999999;" v-if="scope.row.status === 8 ">已驳回</span>
			      </template>
			    </el-table-column>
			  </el-table>
			  <div style="text-align: center;margin-top: 10px;">
			    <el-pagination @size-change="handleSizeChange8" @current-change="handleCurrentChange8"
			      :page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page" layout="total,sizes, prev, pager, next"
			      :total="orderData.totalElements">
			    </el-pagination>
			  </div>
			</el-tab-pane>
			<!-- 不可提现添加金额 -->
			<el-dialog title="修改金额" :visible.sync="dialogFormVisible1" center>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">修改类型：</span>
					<el-radio-group v-model="type">
						<el-radio :label="1">添加</el-radio>
						<el-radio :label="2">减少</el-radio>
					</el-radio-group>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">金额：</span>
					<el-input style="width:50%;" v-model="money" type="number" :min="0" :max="100" :controls="false"
						placeholder="请输入金额"></el-input>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible1 = false">取 消</el-button>
					<el-button type="primary" @click="StairNoticeTo1()">确 定</el-button>
				</div>
			</el-dialog>
			<!-- 修改年龄 -->
			<el-dialog title="修改信息" :visible.sync="dialogFormVisible2" center>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">姓名：</span>
					<el-input style="width:50%;" v-model="userName" type="text" :min="0" :controls="false"
						placeholder="请输入姓名"></el-input>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">手机号：</span>
					<el-input style="width:50%;" v-model="phones" type="text" :min="0" :controls="false"
						placeholder="请输入手机号"></el-input>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">年龄：</span>
					<el-input style="width:50%;" v-model="age" type="number" :min="0" :controls="false"
						placeholder="请输入年龄"></el-input>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">头像：</span>
					<div
						style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;">
						<el-upload class="avatar-uploader" v-model="avatar"
							:action="uploadUrl" :show-file-list="false"
							:on-success="handleAvatarSuccessT">
							<!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> -->
							<img v-if="avatar!=''" :src="avatar" class="avatar"
								style="border-radius: 6px;width: 148px;height: 148px;" />
							<i v-else class="el-icon-plus avatar-uploader-icon iconss"></i>
							<!-- <el-progress v-if="percentage2>0&&percentage2<100" type="circle" :percentage="percentage2">
							</el-progress> -->
						</el-upload>
					</div>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible2 = false">取 消</el-button>
					<el-button type="primary" @click="StairNoticeToXx()">确 定</el-button>
				</div>
			</el-dialog>
			<!-- 聊天内容 -->
			<el-dialog title="聊天内容" :visible.sync="dialogFormVisible4" center>
				<el-table v-loading="tableDataLoading1" :data="huihuaData.list">
					<el-table-column prop="chatContentId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="userName" label="用户昵称">
						<template slot-scope="scope">
							<div style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">
								{{scope.row.userName ? scope.row.userName : '未绑定'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="title" label="用户头像">
						<template slot-scope="scope">
							<div v-if="scope.row.avatar == null || scope.row.avatar == ''">
								暂无图片
							</div>
							<div v-else>
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="scope.row.avatar" alt=""
										slot="reference">
									<img style="width: 200px; height: 200px" :src="scope.row.avatar" alt="">
								</el-popover>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="content" label="信息内容" width="280">
						<template slot-scope="scope">
							<div v-if="scope.row.messageType==1">{{scope.row.content}}</div>
							<div v-if="scope.row.messageType==2">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="scope.row.content" alt=""
										slot="reference">
									<img style="width: 200px; height: 200px" :src="scope.row.content" alt="">
								</el-popover>
							</div>
							<div v-if="scope.row.messageType==3">
								<audio :src="scope.row.content" type="audio/wav" controls="controls"></audio>
							</div>
							<div v-if="scope.row.messageType==4">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px"
										:src="'https://xxpwadmin.xianmxkj.com/emoji/'+scope.row.content" alt=""
										slot="reference">
									<img style="width: 200px; height: 200px"
										:src="'https://xxpwadmin.xianmxkj.com/emoji/'+scope.row.content" alt="">
								</el-popover>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="150">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeLtnr" @current-change="handleCurrentChangeLtnr"
						:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit1" :current-page="page1"
						layout="total,sizes, prev, pager, next" :total="huihuaData.totalCount">
					</el-pagination>
				</div>
			</el-dialog>
			<!-- 修改信用分 -->
			<el-dialog title="修改信用分" :visible.sync="dialogFormVisible5" center>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">修改类型：</span>
					<el-radio-group v-model="type">
						<el-radio :label="1">添加</el-radio>
						<el-radio :label="2">减少</el-radio>
					</el-radio-group>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">分数：</span>
					<el-input style="width:50%;" v-model="age" type="number" :min="0" :controls="false"
						placeholder="请输入分数"></el-input>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible5 = false">取 消</el-button>
					<el-button type="primary" @click="StairNoticeTo5()">确 定</el-button>
				</div>
			</el-dialog>
		</el-tabs>
		<!-- 加钟记录 -->
		<el-dialog title="加钟记录" :visible.sync="dialogFormVisibleJz" center>
			<el-table v-loading="tableDataLoading1" :data="jiazhongData">
				<el-table-column prop="ordersId" label="编号" width="80">
				</el-table-column>
				<el-table-column prop="ordersMassageList" label="加钟名称">
					<template slot-scope="scope">
						<span style="color: #f56c6c;" v-if="scope.row.ordersMassageList.length>0">{{scope.row.ordersMassageList[0].massageType?scope.row.ordersMassageList[0].massageType.title:''}}</span>
					</template>
				</el-table-column>
				<el-table-column prop="payMoney" label="加钟金额">
				</el-table-column>
				<el-table-column prop="artificerMoney" label="师傅收益">
				</el-table-column>
				<el-table-column prop="oneArtificerMoney" label="推广师傅佣金">
				</el-table-column>
				<el-table-column prop="shopMoney" label=" 商家收益">
					<template slot-scope="scope">
						<span style="color: #B94A48;" >{{ scope.row.shopMoney?scope.row.shopMoney:'0' }}</span>
					</template>
				</el-table-column>
				<el-table-column prop="pingMoney" label="平台收益">
					<template slot-scope="scope">
						<span style="color: #B94A48;" >{{ scope.row.pingMoney?scope.row.pingMoney:'0' }}</span>
					</template>
				</el-table-column>
				<el-table-column prop="cityAgencyMoney" label="城市代理收益">
					<template slot-scope="scope">
						<span style="color: #B94A48;" >{{ scope.row.cityAgencyMoney?scope.row.cityAgencyMoney:'0' }}</span>
					</template>
				</el-table-column>
				<el-table-column prop="duration" label="加钟时长">
					<template slot-scope="scope">
						<span v-if="scope.row.ordersMassageList.length>0">{{scope.row.ordersMassageList[0].massageType?scope.row.ordersMassageList[0].massageType.duration:''}}</span>
					</template>
				</el-table-column>
				<el-table-column prop="createTime" label="创建时间">
				</el-table-column>
			</el-table>
		</el-dialog>
		<!-- 修改比例 -->
		<el-dialog :title="titleBl" :visible.sync="dialogFormVisible9" center>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;" v-if="titleBl=='公会编号'">公会编号：</span>
				<span style="width: 200px;display: inline-block;text-align: right;" v-else>比例：</span>
				<el-input style="width:50%;" v-model="proportion" type="number" :min="0" :controls="false"
					:placeholder="titleBl"></el-input>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="dialogFormVisible9 = false">取 消</el-button>
				<el-button type="primary" @click="StairNoticeTo2()">确 定</el-button>
			</div>
		</el-dialog>
		<!-- 修改师傅信息 -->
		<el-dialog title="修改师傅信息" :visible.sync="dialogFormVisible10" center>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">师傅名称：</span>
				<el-input style="width:50%;" v-model="artificerName" type="text" placeholder="请输入师傅名称"></el-input>
			</div>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">简介：</span>
				<el-input style="width:50%;" v-model="content" type="text" placeholder="请输入简介"></el-input>
			</div>
			<!-- <div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">接单开始时间：</span>
				<el-date-picker style="width: 50%;margin-left: 10px;" v-model="beginTime" align="right"
					type="datetime"  format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择时间">
				</el-date-picker>&nbsp;&nbsp;&nbsp;
			</div>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">接单结束时间：</span>
				<el-date-picker style="width: 50%;margin-left: 10px;" v-model="finishTime" align="right"
					type="datetime"  format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择时间">
				</el-date-picker>&nbsp;&nbsp;&nbsp;
			</div> -->

			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">城市：</span>
				<el-input style="width:50%;" v-model="city" type="text" placeholder="请输入城市"></el-input>
			</div>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">经度：</span>
				<el-input style="width:50%;" v-model="longitude" type="text" placeholder="请输入经度"></el-input>
			</div>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">纬度：</span>
				<el-input style="width:50%;" v-model="latitude" type="text" placeholder="请输入纬度"></el-input>
			</div>
			<div style="margin-bottom: 10px;display:flex;">
				<span style="width: 200px;display: inline-block;text-align: right;">项目类型：</span>
				<el-select v-model="classifyId" style="width:50%;margin-left: 10px;">
					<el-option v-for="item in fwData" :key="item.id" :label="item.value" :value="item.id">
					</el-option>
				</el-select>&nbsp;&nbsp;
			</div>
			<div style="margin-bottom: 10px;display:flex;">
				<span style="width: 200px;display: inline-block;text-align: right;">是否优选：</span>
				<el-radio-group v-model="isGoods">
					<el-radio :label="1">是</el-radio>
					<el-radio :label="2">否</el-radio>
				</el-radio-group>
			</div>
			<div style="margin-bottom: 10px;display:flex;">
				<span style="width: 200px;display: inline-block;text-align: right;">是否热度最高：</span>
				<el-radio-group v-model="isHot">
					<el-radio :label="1">是</el-radio>
					<el-radio :label="2">否</el-radio>
				</el-radio-group>
			</div>
			<div style="margin-bottom: 10px;display:flex;">
				<span style="width: 200px;display: inline-block;text-align: right;">出行方式：</span>
				<el-radio-group v-model="tripWay">
					<el-radio :label="1">公交</el-radio>
					<el-radio :label="2">出租</el-radio>
					<el-radio :label="3">免费</el-radio>
				</el-radio-group>
			</div>
			<div style="margin-bottom: 10px;display:flex;">
				<span style="width: 200px;display: inline-block;text-align: right;">师傅头像：</span>
				<div
					style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
					<el-upload class="avatar-uploader" v-model="artificerImg"
						:action="uploadUrl" :show-file-list="false"
						:on-success="handleAvatarSuccess1" :on-progress="onprogress2">
						<!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> -->
						<img v-if="artificerImg!=''" :src="artificerImg" class="avatar"
							style="border-radius: 6px;width: 148px;height: 148px;" />
						<i v-else class="el-icon-plus avatar-uploader-icon iconss"></i>
						<!-- <el-progress v-if="percentage2>0&&percentage2<100" type="circle" :percentage="percentage2">
						</el-progress> -->
					</el-upload>
				</div>
			</div>
			<div style="margin-bottom: 10px;display:flex;">
				<span style="width: 200px;display: inline-block;text-align: right;">证书：</span>
				<div class="imgs" v-for="(item,index) in certificate" :key="index">
					<img width="100%" class="images" height="100%" :src="item" alt="">
					<span class="dels">
						<i class="el-icon-delete" @click="clear1(index)"></i>
					</span>
				</div>
				<div class="imgs" style="width: 50%;">
					<el-upload :action="uploadWatermarkUrl"
						list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess3"
						:on-progress="onprogress1">
						<el-progress v-if="percentage1>0 && percentage1<100" type="circle" :percentage="percentage1">
						</el-progress>
						<i v-else class="el-icon-plus"></i>
					</el-upload>
				</div>
			</div>
			<div style="margin-bottom: 10px;display:flex;">
				<span style="width: 200px;display: inline-block;text-align: right;">师傅生活照：</span>
				<div class="imgs" v-for="(item,index) in lifePhoto" :key="index">
					<img width="100%" class="images" height="100%" :src="item" alt="">
					<span class="dels">
						<i class="el-icon-delete" @click="clear2(index)"></i>
					</span>
				</div>
				<div class="imgs" style="width: 50%;">
					<el-upload :action="uploadUrl" list-type="picture-card"
						:show-file-list="false" :on-success="handleUploadSuccess4" :on-progress="onprogress1">
						<el-progress v-if="percentage1>0 && percentage1<100" type="circle" :percentage="percentage1">
						</el-progress>
						<i v-else class="el-icon-plus"></i>
					</el-upload>
				</div>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="dialogFormVisible10 = false">取 消</el-button>
				<el-button type="primary" @click="refusetoUp()">确 定</el-button>
			</div>
		</el-dialog>
		<!-- 修改忙时 -->
		<el-dialog title="修改忙时" :visible.sync="dialogFormVisibleMs" center>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">日期：</span>
				<el-date-picker style="width: 160px;margin-left: 10px;" v-model="artificerDates" align="right"
					type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择时间"
					@change="mangshi(artificerDates)">
				</el-date-picker>
			</div>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">时间：</span>
				<el-checkbox-group v-model="times">
					<el-checkbox v-for="(item,index) in timeLis" :key="index" :label="item.times"
						:disabled="item.classify==1">{{item.times}}</el-checkbox>
				</el-checkbox-group>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="dialogFormVisibleMs = false">取 消</el-button>
				<el-button type="primary" @click="timesUp()">确 定</el-button>
			</div>
		</el-dialog>
		<!-- 消费记录 -->
		<el-dialog title="消费记录" :visible.sync="dialogFormVisibleCfjl" center width="60%">
			<el-table v-loading="tableDataLoading1" :data="jiazhongData.records">
				<el-table-column prop="id" label="编号" width="80">
				</el-table-column>
				<el-table-column prop="title" label="标题">
				</el-table-column>
				<el-table-column prop="content" label="信息内容">
				</el-table-column>
				<el-table-column prop="money" label="金额" width="80">
					<template slot-scope="scope">
						<span style="color: #3E8EF7;" v-if="scope.row.type == 1"> + {{scope.row.money}}</span>
						<span style="color: red;" v-if="scope.row.type == 2"> - {{scope.row.money}}</span>
					</template>
				</el-table-column>
				<el-table-column prop="createTime" label="创建时间" width="160">
				</el-table-column>
			</el-table>
			<div style="text-align: center;margin-top: 10px;">
				<el-pagination @size-change="handleSizeChangeXfjl" @current-change="handleCurrentChangeXfjl"
					:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit1" :current-page="page1"
					layout="total,sizes, prev, pager, next" :total="jiazhongData.total">
				</el-pagination>
			</div>
		</el-dialog>
		<!-- 用户列表 -->
		<el-dialog title="用户列表" :visible.sync="dialogFormVisibleU" center width="70%">
			<!-- <div style="margin:5px;display: inline-block;">
				<span>是否是会员:</span>
				<el-select v-model="member" style="width:150px;margin-left: 10px;" @change="select1()">
					<el-option v-for="item in memberList" :key="item.value" :label="item.title" :value="item.value">
					</el-option>
				</el-select>&nbsp;&nbsp;&nbsp;
			</div>&emsp;&emsp; -->
			<div style="display: inline-block;margin-top: 5px;">
				<span>邀请人邀请码:</span>
				<el-input style="width: 150px;" @keydown.enter.native="select1" clearable placeholder="请输入邀请人邀请码"
					v-model="inviterCode">
				</el-input>&nbsp;&nbsp;&nbsp;&nbsp;
			</div>
			<div style="display: inline-block;margin-top: 5px;">
				<span>手机号:</span>
				<el-input style="width: 150px;" @keydown.enter.native="select1" clearable placeholder="请输入手机号"
					v-model="phoneU">
				</el-input>&nbsp;&nbsp;&nbsp;&nbsp;
			</div>
			<div style="display: inline-block;margin-top: 5px;">
				<span>昵称:</span>
				<el-input style="width: 150px;" @keydown.enter.native="select1" clearable placeholder="请输入昵称"
					v-model="nickName">
				</el-input>&nbsp;&nbsp;&nbsp;
			</div>
			<div style="display: inline-block;margin-top: 5px;">
				<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="select1">查询
				</el-button>
				<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleans1">重置
				</el-button>
			</div>

			<el-table v-loading="tableDataLoading1" :data="usersData.list">
				<el-table-column prop="userId" label="id" width="80">
				</el-table-column>
				<el-table-column prop="userName" label="昵称" width="120">
					<template slot-scope="scope">
						<span style="color: #f56c6c;"
							@click="updates(scope.row)">{{ scope.row.userName ? scope.row.userName : '未设置' }}</span>
					</template>
				</el-table-column>
				<el-table-column label="图像">
					<template slot-scope="scope">
						<img v-if="scope.row.avatar==null" src="~@/assets/img/avatar.png" alt="" width="40"
							height="40">
						<img v-else :src="scope.row.avatar" alt="" width="40" height="40">
					</template>
				</el-table-column>
				<el-table-column prop="phone" label="手机号">
					<template slot-scope="scope">
						<span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">
							{{ scope.row.phone ? scope.row.phone : '未绑定' }}
						</span>
					</template>
				</el-table-column>
				<el-table-column prop="shopName" label="绑定商家">
				</el-table-column>
				<el-table-column prop="member" label="是否是会员">
					<template slot-scope="scope">
						<span v-if="scope.row.member==1">是</span>
						<span v-else>否</span>
					</template>
				</el-table-column>
				<el-table-column prop="inviterCode" label="邀请人邀请码">
					<template slot-scope="scope">
						<span>{{ scope.row.inviterCode ? scope.row.inviterCode : '-' }}</span>
					</template>
				</el-table-column>
				<el-table-column prop="inviterCode" label="邀请人邀请码">
					<template slot-scope="scope">
						<el-button style="margin-left:15px;" size="mini" type="primary"
							icon="document" @click="xuanze(scope.row,1)">选择</el-button>
					</template>
				</el-table-column>

			</el-table>
			<div style="text-align: center;margin-top: 10px;">
				<el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2"
					:page-sizes="[10, 20, 30, 50, 100]" :page-size="size1" :current-page="page1"
					layout="total,sizes, prev, pager, next,jumper" :total="usersData.totalCount">
				</el-pagination>
			</div>
		</el-dialog>
		<!-- 添加、修改金额 -->
		<el-dialog :title="titles" :visible.sync="dialogFormVisibleJes" center>
			<div style="margin-bottom: 10px;display:flex;" v-if="titles=='修改金额'">
				<span style="width: 200px;display: inline-block;text-align: right;">修改类型：</span>
				<el-radio-group v-model="moneyType">
					<el-radio :label="1">添加</el-radio>
					<el-radio :label="2">减少</el-radio>
				</el-radio-group>
			</div>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">金额：</span>
				<el-input style="width:50%;" v-model="moneys" type="text" placeholder="请输入金额"></el-input>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="dialogFormVisibleJes = false">取 消</el-button>
				<el-button type="primary" @click="timesJe()">确 定</el-button>
			</div>
		</el-dialog>
		<!-- 修改比例 -->
		<el-dialog title="抽成比例" :visible.sync="dialogFormVisibleJs" center>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">比例：</span>
				<el-input style="width:50%;" v-model="proportion" type="number" :min="0" :controls="false"
					placeholder="抽成比例"></el-input>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="dialogFormVisibleJs = false">取 消</el-button>
				<el-button type="primary" @click="StairNoticeToJs()">确 定</el-button>
			</div>
		</el-dialog>
	</div>
</template>

<script>
import { serverPaths } from '@/utils/enumData'
	export default {
		data() {
			return {
				uploadUrl: serverPaths.uploadUrl,
				uploadWatermarkUrl: serverPaths.uploadWatermarkUrl,
				openValue: 1,
				closeValue: 0,
				state: 0,
				limit: 10,
				page: 1,
				limit1: 10,
				page1: 1,
				size1: 10,
				userId: '',
				money: '',
				title: '',
				content: '',
				phone: '',
				startTime: '',
				endTime: '',
				invitationCode: '',
				feiDatamin: '',
				info: {
					stockDate: this.getNowTime(), //日期
				},
				info2: {
					stockDate2: this.getNowTime2(), //日期
				},
				tablejifen: '',
				autonymData: {},
				tablemoney: {},
				artificer: {},
				tablenum: {},
				tableData: {},
				userData: {},
				fangkeData: {},
				tableDatamin: [],
				withdrawData: {},
				walletData: {},
				rechargeData: {},
				sendData: [],
				takeData: [],
				myorderData: {},
				dizhiData: {},
				jiedanData: {},
				dingdanData: {},
				pingluData: {},
				fensiData: {},
				guanzhuData: {},
				activeName: 'first',
				dialogFormVisible: false,
				dialogFormVisible1: false,
				dialogFormVisible2: false,
				dialogFormVisible4: false,
				dialogFormVisible5: false,
				tableDataLoading: true,
				tableDataLoading1: true,
				relation_id: '',
				relationId: '',
				tkstatus: '',
				invitation: '',
				nowMonthOver: '',
				lastMonthOver: '',
				nowMonthPaid: '',
				lastMonthPaid: '',
				nowMonthOrderNumber: '',
				nowDayOrderNumber: '',
				hasCash: '',
				search: '',
				classifyIds: 0,
				statusId: -1,
				myPhone: '',
				type: '',
				age: '',
				authentication: 1,
				flag: 1,
				flags: [{
					value: 1,
					label: '按天查询'
				}, {
					value: 2,
					label: '按月查询'
				}, {
					value: 3,
					label: '按年查询'
				}],
				tableData2: {},
				tableData3: {},
				liaotianData: {},
				huihuaData: {},
				chatConversationId: '',

				tuanduiData: {},
				types: 1,
				typesList: [{
						type: 1,
						name: '用户'
					},
					{
						type: 2,
						name: '师傅'
					}
				],
				youhuiquanData: {},
				tableDataXyf: {},
				moneyIndex: 1,
				dialogFormVisibleJz: false,
				jiazhongData: [],
				dialogFormVisible9: false,
				titleBl: '修改佣金比例',
				proportion: '',
				dialogFormVisible10: false,
				percentage1: 0,
				percentage2: 0,
				artificerXg: {},
				// 师傅信息
				artificerName: '',
				content: '',
				beginTime: '',
				finishTime: '',
				longitude: '',
				latitude: '',
				artificerImg: '',
				certificate: [],
				lifePhoto: [],
				artificerId: '',
				fwData: [],
				classifyId: '',
				classType: '',
				isGoods: '',
				isHot: '',
				tripWay: '',
				city:'',
				artificerDate: '',
				timeList: [],
				timeLis: [{
						times: '00:00',
						classify: 2
					}, {
						times: '01:00',
						classify: 2
					}, {
						times: '02:00',
						classify: 2
					}, {
						times: '03:00',
						classify: 2
					}, {
						times: '04:00',
						classify: 2
					},
					{
						times: '05:00',
						classify: 2
					}, {
						times: '06:00',
						classify: 2
					}, {
						times: '07:00',
						classify: 2
					}, {
						times: '08:00',
						classify: 2
					},
					{
						times: '09:00',
						classify: 2
					}, {
						times: '10:00',
						classify: 2
					}, {
						times: '11:00',
						classify: 2
					}, {
						times: '12:00',
						classify: 2
					},
					{
						times: '13:00',
						classify: 2
					}, {
						times: '14:00',
						classify: 2
					}, {
						times: '15:00',
						classify: 2
					}, {
						times: '16:00',
						classify: 2
					},
					{
						times: '17:00',
						classify: 2
					}, {
						times: '18:00',
						classify: 2
					}, {
						times: '19:00',
						classify: 2
					}, {
						times: '20:00',
						classify: 2
					},
					{
						times: '21:00',
						classify: 2
					}, {
						times: '22:00',
						classify: 2
					}, {
						times: '23:00',
						classify: 2
					},
				],
				timeLis2: [{
						times: '00:00',
						classify: 2
					}, {
						times: '00:30',
						classify: 2
					},{
						times: '01:00',
						classify: 2
					}, {
						times: '01:30',
						classify: 2
					},{
						times: '02:00',
						classify: 2
					},  {
						times: '02:30',
						classify: 2
					},{
						times: '03:00',
						classify: 2
					}, {
						times: '03:30',
						classify: 2
					}, {
						times: '04:00',
						classify: 2
					}, {
						times: '04:30',
						classify: 2
					},{
						times: '05:00',
						classify: 2
					}, {
						times: '05:30',
						classify: 2
					}, {
						times: '06:00',
						classify: 2
					},  {
						times: '06:30',
						classify: 2
					},{
						times: '07:00',
						classify: 2
					},  {
						times: '07:30',
						classify: 2
					}, {
						times: '08:00',
						classify: 2
					},  {
						times: '08:30',
						classify: 2
					}, {
						times: '09:00',
						classify: 2
					},  {
						times: '09:30',
						classify: 2
					},{
						times: '10:00',
						classify: 2
					},  {
						times: '10:30',
						classify: 2
					},{
						times: '11:00',
						classify: 2
					},  {
						times: '11:30',
						classify: 2
					},{
						times: '12:00',
						classify: 2
					},  {
						times: '12:30',
						classify: 2
					},{
						times: '13:00',
						classify: 2
					},  {
						times: '13:30',
						classify: 2
					},{
						times: '14:00',
						classify: 2
					},  {
						times: '14:30',
						classify: 2
					},{
						times: '15:00',
						classify: 2
					},  {
						times: '15:30',
						classify: 2
					},{
						times: '16:00',
						classify: 2
					}, {
						times: '16:30',
						classify: 2
					}, {
						times: '17:00',
						classify: 2
					},  {
						times: '17:30',
						classify: 2
					},{
						times: '18:00',
						classify: 2
					},  {
						times: '18:30',
						classify: 2
					},{
						times: '19:00',
						classify: 2
					},  {
						times: '19:30',
						classify: 2
					},{
						times: '20:00',
						classify: 2
					},  {
						times: '20:30',
						classify: 2
					},{
						times: '21:00',
						classify: 2
					},  {
						times: '21:30',
						classify: 2
					},{
						times: '22:00',
						classify: 2
					},  {
						times: '22:30',
						classify: 2
					},{
						times: '23:00',
						classify: 2
					}, {
						times: '23:30',
						classify: 2
					},
				],
				artificerDates: '',
				times: [],

				userName: '',
				phones: '',
				avatar: '',
				pinglunData: {},
				tableDataQd: {},
				tableDataWz:{},
				dialogFormVisibleMs: false,
				tableDataDf:{},
				orderData:{},
				dialogFormVisibleCfjl:false,
				dialogFormVisibleU:false,
				consortia:{},
				usersData:{},
				nickName: '',
				phoneU: '',
				inviterCode : '',
				dialogFormVisibleJes:false,
				titles:'',
				moneyType:1,
				moneys:'',
				JsartificerId:'',

				dialogFormVisibleJs:false,


			}
		},
		methods: {
			// 返回上一级
			prev() {
				this.$router.back()
			},
			// 详情跳转
			updates(row) {
				this.$router.push({
					path: '/userDetail',
					query: {
						userId: row.userId
					}
				})
			},
			updatesvideo(row) {
				this.$router.push({
					path: '/userDetail',
					query: {
						userId: row.artificerUserId
					}
				})
			},
			// 详情跳转
			updates1(row) {
				this.$router.push({
					path: '/userDetail',
					query: {
						userId: row.ordersUserId
					}
				})
			},
			//处理默认选中当前日期
			getNowTime() {
				var now = new Date()
				var year = now.getFullYear() //得到年份
				var month = now.getMonth() //得到月份
				var date = now.getDate() //得到日期
				month = month + 1
				month = month.toString().padStart(2, '0')
				date = date.toString().padStart(2, '0')
				var defaultDate = `${year}-${month}-${date}`
				return defaultDate
				this.$set(this.info, 'stockDate', defaultDate)
			},
			//处理默认选中当前日期
			getNowTime2() {
				var now = new Date()
				var year = now.getFullYear() //得到年份
				var month = now.getMonth() - now.getMonth() //得到月份
				var date = now.getDate() - now.getDate() + 1 //得到日期
				month = month + 1
				month = month.toString().padStart(2, '0')
				date = date.toString().padStart(2, '0')
				var defaultDate = `${year}-${month}-${date}`
				return defaultDate
				this.$set(this.info, 'stockDate', defaultDate)
			},
			// tabs切换
			handleClick(tab, event) {
				if (tab._props.label == '用户详情') {
					this.dataSelect()
					// this.autonymSelect()
				}
				if (tab._props.label == '师傅详情') {
					this.autonymSelect()
					this.mangshiSelect(this.artificerDate)
				}
				if (tab._props.label == '提现记录') {
					this.limit = 10,
						this.page = 1,
						this.withdrawSelect()
				}
				if (tab._props.label == '钱包明细') {
					this.limit = 10
					this.page = 1
					this.walletSelect()
				}
				if (tab._props.label == '充值明细') {
					this.limit = 10
					this.page = 1
					this.rechargeSelect()
				}

				if (tab._props.label == '我的项目') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.authentication = 1
					this.takeSelect()
				}
				if (tab._props.label == '我的下单') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.roderSelect()
				}
				if (tab._props.label == '我的接单') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.jiedanSelect()
				}

				if (tab._props.label == '我的评价') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.dingdanSelect()
				}
				if (tab._props.label == '项目统计') {
					this.page = 1
					this.limit = 10
					this.flag = 1
					this.taskData()
				}
				// if (tab._props.label == '聊天记录') {
				// 	this.limit = 10
				// 	this.page = 1
				// 	this.liaotianSelect()
				// }
				if (tab._props.label == '我的团队') {
					this.limit = 10
					this.page = 1
					this.types = 1
					this.tuanduiSelect()
				}
				if (tab._props.label == '我的优惠券') {
					this.page = 1
					this.limit = 10
					this.youhuiquanSelect()
				}
				if (tab._props.label == '信用分明细') {
					this.size1 = 10
					this.page1 = 1
					this.xinyongSelect()
				}
				if (tab._props.label == '收到的评价') {
					this.limit = 10
					this.page = 1
					this.pinglunSelect()
				}
				if (tab._props.label == '签到记录') {
					this.limit = 10
					this.page = 1
					this.dataSelectQd()
				}
				if (tab._props.label == '师傅位置记录') {
					this.limit = 10
					this.page = 1
					this.dataSelectWz()
				}				if (tab._props.label == '充值的师傅') {
					this.limit = 10
					this.page = 1
					this.dataSelectSf()
				}
				if (tab._props.label == '我的订单') {
				  this.limit = 10
				    this.page = 1
				  this.orderSelect()
				}
				if (tab._props.label == '商家详情') {
				  this.shopsSelect()
				}


			},
			handleSizeChangeTx(val) {
				this.limit = val
				this.withdrawSelect()
			},
			handleCurrentChangeTx(val) {
				this.page = val
				this.withdrawSelect()
			},
			handleSizeChangeQb(val) {
				this.limit = val
				this.walletSelect()
			},
			handleCurrentChangeQb(val) {
				this.page = val
				this.walletSelect()
			},
			handleSizeChangeCz(val) {
				this.limit = val
				this.rechargeSelect()
			},
			handleCurrentChangeCz(val) {
				this.page = val
				this.rechargeSelect()
			},
			handleSizeChangeXd(val) {
				this.limit = val
				this.roderSelect()
			},
			handleCurrentChangeXd(val) {
				this.page = val
				this.roderSelect()
			},
			handleSizeChangeJd(val) {
				this.limit = val
				this.jiedanSelect()
			},
			handleCurrentChangeJd(val) {
				this.page = val
				this.jiedanSelect()
			},
			handleSizeChangePl(val) {
				this.limit = val
				this.dingdanSelect()
			},
			handleCurrentChangePl(val) {
				this.page = val
				this.dingdanSelect()
			},
			handleSizeChangebPl(val) {
				this.limit = val
				this.pinglunSelect()
			},
			handleCurrentChangebPl(val) {
				this.page = val
				this.pinglunSelect()
			},
			handleSizeChangeLtnr(val) {
				this.limit1 = val
				this.neirongSelect(this.chatConversationId)
			},
			handleCurrentChangeLtnr(val) {
				this.page1 = val
				this.neirongSelect(this.chatConversationId)
			},
			handleSizeChangeLtjl(val) {
				this.limit = val
				this.liaotianSelect()
			},
			handleCurrentChangeLtjl(val) {
				this.page = val
				this.liaotianSelect()
			},
			handleSizeChangeTd(val) {
				this.limit = val
				this.tuanduiSelect()
			},
			handleCurrentChangeTd(val) {
				this.page = val
				this.tuanduiSelect()
			},
			handleSizeChangeYhq(val) {
				this.limit = val
				this.youhuiquanSelect()
			},
			handleCurrentChangeYhq(val) {
				this.page = val
				this.youhuiquanSelect()
			},
			handleSizeChangeXyf(val) {
				this.size1 = val
				this.xinyongSelect()
			},
			handleCurrentChangeXyf(val) {
				this.page1 = val
				this.xinyongSelect()
			},
			handleSizeChangeQd(val) {
				this.limit = val
				this.dataSelectQd()
			},
			handleCurrentChangeQd(val) {
				this.page = val
				this.dataSelectQd()
			},
			handleSizeChangeWz(val) {
				this.limit = val
				this.dataSelectWz()
			},
			handleCurrentChangeWz(val) {
				this.page = val
				this.dataSelectWz()
			},			handleSizeChangeQd(val) {
				this.limit = val
				this.dataSelectQd()
			},
			handleCurrentChangeQd(val) {
				this.page = val
				this.dataSelectQd()
			},
			handleSizeChangeSf(val) {
				this.limit = val
				this.dataSelectSf()
			},
			handleCurrentChangeSf(val) {
				this.page = val
				this.dataSelectSf()
			},
			handleSizeChangeXfjl(val) {
				this.limit1 = val
				this.selectCfMx()
			},
			handleCurrentChangeXfjl(val) {
				this.page1 = val
				this.selectCfMx()
			},
			handleSizeChange8(val) {
			  this.limit = val
			  this.orderSelect()
			},
			handleCurrentChange8(val) {
			  this.page = val
			  this.orderSelect()
			},
			handleSizeChange2(val) {
				this.size1 = val;
				this.dataSelect1()
			},
			handleCurrentChange2(val) {
				this.page1 = val;
				this.dataSelect1()
			},
			timeDate2() {
				this.rechargeSelect()
			},
			timeDate() {
				this.taskData()
			},
			// 可提现金额
			withdraw(id, val) {
				if (val == 0) {
					this.$message({
						message: '可提现金额为0元',
						type: 'error',
						duration: 1500,
						onClose: () => {
							this.dataSelect()
						}
					})
				} else {
					this.$confirm(`确定要推送提现消息吗?`, '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {
						this.$http({
							url: this.$http.adornUrl(`user/notification/${id}`),
							method: 'post',
							data: this.$http.adornData({})
						}).then(({
							data
						}) => {
							this.$message({
								message: '推送成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.dataSelect()
								}
							})
						})
					}).catch(() => {})
				}
			},
			// 不可提现金额充值
			rechargenone(index, userId) {
				this.moneyIndex = index
				this.dialogFormVisible1 = true
			},
			StairNoticeTo1() {
				let userId = this.$route.query.userId
				if (this.type == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请选择修改类型',
						type: 'warning'
					})
					return
				}
				if (this.money == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入金额',
						type: 'warning'
					})
					return
				}
				if (this.moneyIndex == 1) {
					this.$http({
						url: this.$http.adornUrl(`user/addCannotMoney/${userId}/${this.money}/${this.type}`),
						method: 'post',
						data: this.$http.adornData({})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.type = ''
									this.money = ''
									this.dataSelect()
								}
							})
							this.dialogFormVisible1 = false
						} else {
							this.$message.error(data.msg)
						}
					})
				} else {
					this.$http({
						url: this.$http.adornUrl('user/updateSafetyMoney'),
						method: 'post',
						params: this.$http.adornParams({
							'userId': userId,
							'type': this.type,
							'money': this.money
						})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.type = ''
									this.money = ''
									this.dataSelect()
								}
							})
							this.dialogFormVisible1 = false
						} else {
							this.$message.error(data.msg)
						}
					})
				}
			},
			StairNoticeToXx() {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('user/updateUserByUserId'),
					method: 'post',
					data: this.$http.adornData({
						'userId': userId,
						'userName': this.userName,
						'phone': this.phones,
						'avatar': this.avatar,
						'age': this.age,

					})
				}).then(({
					data
				}) => {
					console.log('data', data)
					this.$message({
						message: '修改成功',
						type: 'success',
						duration: 1500,
						onClose: () => {
							this.dialogFormVisible2 = false
							this.dataSelect()
						}
					})
				})
			},
			// 更改状态
			stateChange(userId) {
				this.$confirm(`确定要更改用户状态吗?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl(`user/updateUserStatusByUserId?userId=${userId}`),
						method: 'get',
						data: this.$http.adornData({})
					}).then(({
						data
					}) => {
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dataSelect()
							}
						})
					})
				}).catch(() => {})
			},
			// 修改性别
			sexChange(userId, sex) {
				var sexs = 1;
				if (sex == 1) {
					sexs = 2
				}
				if (sex == 2) {
					sexs = 1
				}
				this.$confirm(`确定要更改用户性别吗?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl('user/updateUserByUserId'),
						method: 'post',
						data: this.$http.adornData({
							'userId': userId,
							'sex': sexs
						})
					}).then(({
						data
					}) => {
						console.log('data', data)
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dataSelect()
							}
						})
					})
				}).catch(() => {})
			},
			ageChange(row) {
				this.userName = row.userName
				this.phones = row.phone
				this.avatar = row.avatar
				this.age = row.age
				this.dialogFormVisible2 = true
			},
			// 修改师傅
			ageChange1(userId, age) {
				console.log('设置师傅')
			},
			// 获取数据列表
			dataSelect() {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl(`user/${userId}`),
					method: 'get',
					params: this.$http.adornParams({
						// 'userId': userId
					})
				}).then(({
					data
				}) => {
					if (data.code === 0) {
						let returnData = data.data
						this.tablenum = returnData
						this.tablemoney = returnData
						// if (this.tablemoney.artificer) {
						// 	if (this.tablemoney.artificer.certificate) {
						// 		this.tablemoney.artificer.certificate = this.tablemoney.artificer.certificate
						// 			.split(",")
						// 	}
						// 	if (this.tablemoney.artificer.lifePhoto) {
						// 		this.tablemoney.artificer.lifePhoto = this.tablemoney.artificer.lifePhoto.split(
						// 			",")
						// 	}
						// 	if (this.tablemoney.artificer.artificerImg) {
						// 		this.tablemoney.artificer.artificerImg = this.tablemoney.artificer.artificerImg.split(
						// 			",")
						// 	}
						// }
						this.tableData = returnData.userEntity
						this.phone = returnData.userEntity.phone
						this.invitationCode = returnData.userEntity.invitationCode
					}
				})
			},
			// 获取团队成员
			teamSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('user/selectInviteByUserIdLists'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.tableDatamin = returnData
				})
			},
			// 非直属
			feiSelect() {
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('user/selectInvitationCodeByUserIdLists'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'invitationCode': this.invitationCode
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.feiDatamin = returnData
				})
			},
			// 我的足迹数据
			userSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('userBrowse/myBrowse'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.userData = returnData
				})
			},
			// 获取用户提现记录
			withdrawSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('/cash/selectPayDetails'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.withdrawData = returnData
				})
			},
			// 获取钱包明细
			walletSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('Details/queryUserMoneyDetails'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.walletData = returnData
				})
			},
			// 获取充值明细
			rechargeSelect() {
				if (this.endTime == '') {
					this.endTime = this.info.stockDate
				}
				if (this.startTime == '') {
					this.startTime = this.info2.stockDate2
				}
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('cash/selectUserRechargeByUserId'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'endTime': this.endTime,
						'startTime': this.startTime,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					if (data.code == 0) {

						let returnData = data.data
						this.rechargeData = returnData
					}
					if (data.code == 500) {
						this.$message({
							message: data.msg,
							type: 'error',
							duration: 2500,
							onClose: () => {
								this.tableDataLoading = false
							}
						})
					}
				})
			},
			// 获取接单
			sendSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('help/selectRunHelpOrder'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'status': this.state,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.sendData = returnData
				})
			},
			// 我的项目
			takeSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('artificer/selectArtificerMassageList'),
					method: 'get',
					params: this.$http.adornParams({
						'artificerId': this.tablenum.artificer.artificerId,
						'status': ''
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.takeData = returnData
					if (this.takeData.length > 0) {
						for (var i in this.takeData) {
							if (this.takeData[i].contentImg) {
								this.takeData[i].contentImg = this.takeData[i].contentImg
									.split(',')
							}
							if (this.takeData[i].workImg) {
								this.takeData[i].workImg = this.takeData[i].workImg.split(',')
							}
							if (this.takeData[i].detailsImg) {
								this.takeData[i].detailsImg = this.takeData[i].detailsImg.split(',')
							}
						}
					}
				})
			},
			// 我的接单
			jiedanSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('artificer/selectOrdersList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'artificerId': this.tablenum.artificer.artificerId,
						'status': ''
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.jiedanData = returnData
				})
			},
			// 我的评价
			dingdanSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('takingComment/queryMyComment'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.pingluData = returnData
				})
			},
			// 我的下单
			roderSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('artificer/selectOrdersList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						'status': ''
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.dingdanData = returnData
				})
			},
			// 获取师傅详情
			autonymSelect() {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('artificer/selectArtificerById'),
					method: 'get',
					params: this.$http.adornParams({
						'artificerId': this.tablemoney.artificer.artificerId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.artificer = returnData
					if (this.artificer.certificate&&this.artificer.certificate!='') {
						this.artificer.certificate = this.artificer.certificate.split(",")
					}else{
						this.artificer.certificate = []
					}
					if (this.artificer.lifePhoto&&this.artificer.lifePhoto!='') {
						this.artificer.lifePhoto = this.artificer.lifePhoto.split(",")

					}else{
						this.artificer.lifePhoto = []
					}

				})
			},
			// 信息数据
			InformationSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl(`information/selectInformationList`),
					method: 'get',
					params: this.$http.adornParams({
						'userId': userId,
						'page': this.page,
						'limit': this.limit,
						'search': this.search,
						'classify': this.classifyIds,
						'status': this.statusId,
						'phone': this.myPhone
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					for (var i in data.data.records) {
						if (data.data.records[i].img) {
							data.data.records[i].imgs = data.data.records[i].img.split(',')
						}
					}
					let returnData = data.data
					this.userData = returnData
				})
			},
			// 查询
			phoneSelect() {
				this.page = 1
				this.InformationSelect()
			},
			// 重置
			cleans2() {
				this.status = -1
				this.classify = 0
				this.phone = ''
				this.search = ''
				this.page = 1
				this.InformationSelect()
			},
			// 我的访客
			fangkeSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('userBrowse/myVisitor'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.fangkeData = returnData
				})
			},
			// 我的地址
			dizhiSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('address/selectAddressListById'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.dizhiData = returnData
				})
			},
			// 我的粉丝
			fensiSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('userFollow/selectFans'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.fensiData = returnData
				})
			},
			// 我的关注
			guanzhuSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('userFollow/selectMyFollow'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.guanzhuData = returnData
				})
			},
			// 状态
			change(val, userId) {
				this.$http({
					url: this.$http.adornUrl(`user/updateUserStatusByUserId?userId=${userId}`),
					method: 'get',
					data: this.$http.adornData({})
				}).then(({
					data
				}) => {
					this.$message({
						message: '操作成功',
						type: 'success',
						duration: 1500,
						onClose: () => {
							this.fangkeSelect()
						}
					})
				})
			},
			//删除足迹
			deleteuser(row) {
				let delid = row.id
				this.$confirm(`确定删除此条信息?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl('userBrowse/deleteMyBrowse?id=' + delid),
						method: 'post',
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '删除成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.userSelect()
								}
							})
						} else {
							this.$message({
								message: data.msg,
								type: 'warning',
								duration: 1500,
								onClose: () => {}
							})
						}
					})
				})
			},
			// 删除我的访客
			deleteuser1(row) {
				let delid = row.id
				this.$confirm(`确定删除此条信息?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl('userBrowse/deleteMyVisitor?id=' + delid),
						method: 'post',
						params: this.$http.adornData({
							'id': delid
						})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '删除成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.fangkeSelect()
								}
							})
						} else {
							this.$message({
								message: data.msg,
								type: 'warning',
								duration: 1500,
								onClose: () => {}
							})
						}
					})
				})
			},
			// 关注/取关
			select(row) {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('userFollow/insert?userId=' + userId + '&followUserId=' + row.userId),
					method: 'post',
					params: this.$http.adornData({})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.fensiSelect()
								this.guanzhuSelect()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {}
						})
					}
				})
			},
			// 订单分析选择日期
			animeOrder() {
				console.log('info', this.info)
				this.taskData()
				// this.colonel()
			},
			// 订单分析年月日
			orderfenxi(value) {
				this.page = 1
				let vanumber = value
				this.flag = value
				this.taskData()

			},
			// 获取收入统计
			taskData() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('artificer/selectArtificerIndex'),
					method: 'get',
					params: this.$http.adornParams({
						'startTime': this.startTime,
						'endTime': this.endTime,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.guanzhuData = returnData
				})
			},
			// 我的聊天会话
			liaotianSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('chat/selectChatConversationPage'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.liaotianData = returnData;
				})
			},
			// 聊天内容
			complainDetails(row) {
				this.chatConversationId = row.chatConversationId
				this.neirongSelect(this.chatConversationId)
				this.dialogFormVisible4 = true
			},
			// 获取聊天内容列表
			neirongSelect(chatConversationId) {
				this.tableDataLoading1 = true
				this.$http({
					url: this.$http.adornUrl('chat/selectChatContent'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page1,
						'limit': this.limit1,
						'chatConversationId': this.chatConversationId
						// 'content': this.content
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading1 = false
					let returnData = data.data;
					this.huihuaData = returnData
				})
			},
			// 我的tuandui
			tuanduiSelect() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('artificer/selectTeamUserList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'type': this.types,
						'userId': userId
						// 'chatConversationId': this.chatConversationId
						// 'content': this.content
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.tuanduiData = returnData
				})
			},
			// 等级选择事件
			animeDat(state) {
				this.page = 1
				this.tuanduiSelect()
			},
			// 我的团队收入
			tuanduiSelect1() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('orders/selectTeamOrdersList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						'type': this.types
						// 'chatConversationId': this.chatConversationId
						// 'content': this.content
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.tuanduiData = returnData
				})
			},
			// 我的优惠券
			youhuiquanSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('couponUser/selectCouponUserList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'couponName': '',
						'phone': '',
						'userId': userId
					})
				}).then(({
					data
				}) => {
					console.log(data)
					this.tableDataLoading = false
					let returnData = data.data
					this.youhuiquanData = returnData
				})
			},
			// 修改信息弹框
			updataUser(row) {
				console.log('row', row.phone)
				this.userName = row.userName
				this.phones = row.phone
				this.avatar = row.avatar
				this.age = row.age
				this.dialogFormVisible2 = true
			},
			ageChange2(userId, creditScore) {
				this.type = ''
				this.age = ''
				this.dialogFormVisible5 = true
			},
			StairNoticeTo5() {
				if (this.type == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请选择修改类型',
						type: 'warning'
					});
					return
				}
				if (this.age == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入分数',
						type: 'warning'
					});
					return
				}
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('artificer/updateArtificerCreditScore'),
					method: 'post',
					params: this.$http.adornParams({
						'artificerId': this.tablenum.artificer.artificerId,
						'creditScore': this.age,
						'type': this.type
					})
				}).then(({
					data
				}) => {
					console.log('data', data)
					if (data.code == 0) {
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisible5 = false
								this.autonymSelect()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {}
						})
					}
				})
			},
			// 信用分明细数据
			xinyongSelect() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('message/selectMessageByUserId'),
					method: 'get',
					params: this.$http.adornParams({
						'userId': userId,
						'page': this.page1,
						'limit': this.size1,
						'state': 8
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.tableDataLoading = false
						let returnData = data.data
						this.tableDataXyf = returnData
					} else {
						this.$notify({
							title: '提示',
							duration: 1800,
							message: data.msg,
							type: 'warning'
						});
					}
				})
			},
			// 加钟记录弹框
			selectBtn(row) {
				this.dialogFormVisibleJz = true
				this.tableDataLoading1 = true
				this.$http({
					url: this.$http.adornUrl('artificer/selectOrdersList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': 1,
						'limit': 10,
						'phone': '',
						'name': '',
						'status': '',
						'city': '',
						'parentId': row.ordersId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading1 = false
					let returnData = data.data.list;
					this.jiazhongData = returnData
				})
			},
			// 设置推广员
			updateDl(isAgency, userId) {
				if (isAgency == 1) {
					var isAgencys = 2
				} else {
					var isAgencys = 1
				}
				this.$http({
					url: this.$http.adornUrl(`user/updateUserIsAgency`),
					method: 'post',
					params: this.$http.adornParams({
						'userId': userId,
						'isAgency': isAgencys
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dataSelect()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {
								this.dataSelect()
							}
						})
					}
				})
			},
			xiugai(row, text) {
				this.titleBl = '修改佣金比例'
				if (text == 'userRate') {
					this.proportion = row.userRate
				}
				if (text == 'shopRate') {
					this.proportion = row.shopRate
				}
				this.texts = text
				this.userIdss = row.userId
				this.dialogFormVisible9 = true
			},
			StairNoticeTo2() {
				var datas = {}
				if (this.texts == 'userRate') {
					datas.userRate = this.proportion
				}
				if (this.texts == 'shopRate') {
					datas.shopRate = this.proportion
				}
				datas.userId = this.userIdss
				this.$http({
					url: this.$http.adornUrl('user/updateUserByUserId'),
					method: 'post',
					data: this.$http.adornData(datas)
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisible9 = false
								this.dataSelect()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {}
						})
					}
				})

			},
			// 修改师傅信息
			xiugaiJsxx(row) {

				this.artificerXg = this.artificer
				this.artificerId = this.artificerXg.artificerId
				this.userId = this.artificerXg.userId
				this.artificerName = this.artificerXg.artificerName
				this.content = this.artificerXg.content
				this.beginTime = this.artificerXg.beginTime
				this.finishTime = this.artificerXg.finishTime
				this.longitude = this.artificerXg.longitude
				this.latitude = this.artificerXg.latitude
				this.artificerImg = this.artificerXg.artificerImg
				this.certificate = this.artificerXg.certificate
				this.lifePhoto = this.artificerXg.lifePhoto
				this.classifyId = this.artificerXg.classifyId
				this.isGoods = this.artificerXg.isGoods
				this.isHot = this.artificerXg.isHot
				this.tripWay = this.artificerXg.tripWay
				this.city = this.artificerXg.city

				this.dialogFormVisible10 = true
			},
			handleAvatarSuccessT(file, fileList) {
				this.avatar = file.data
			},
			handleAvatarSuccess1(file, fileList) {
				this.artificerImg = file.data
			},
			handleAvatarSuccess2(file, fileList) {
				this.back = file.data
			},
			//上传成功
			handleUploadSuccess3(file, fileList) {
				this.certificate.push(file.data)
				console.log('this.contentImg', this.certificate)
			},
			onprogress1(event, file, fileList) {
				console.log('详情图上传进度', parseInt(event.percent))
				this.percentage1 = parseInt(event.percent)
			},
			//上传成功
			handleUploadSuccess4(file, fileList) {
				this.lifePhoto.push(file.data)
				console.log('this.contentImg', this.lifePhoto)
			},
			// 删除
			clear1(index) {
				this.certificate.splice(index, 1);
			},
			clear2(index) {
				this.lifePhoto.splice(index, 1);
			},
			refusetoUp() {
				this.$http({
					url: this.$http.adornUrl('artificer/updateArtificers'),
					method: 'post',
					data: this.$http.adornData({
						'userId': this.userId,
						'artificerId': this.artificerId,
						'artificerName': this.artificerName,
						'content': this.content,
						// 'beginTime': this.beginTime,
						// 'finishTime': this.finishTime,
						'longitude': this.longitude,
						'latitude': this.latitude,
						'artificerImg': this.artificerImg,
						'certificate': this.certificate.toString(),
						'lifePhoto': this.lifePhoto.toString(),
						'classifyId': this.classifyId,
						'isGoods': this.isGoods,
						'isHot': this.isHot,
						'tripWay': this.tripWay,
						'city':this.city,

					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisible10 = false
								this.autonymSelect()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {}
						})
					}
				})
			},
			onprogress2(event, file, fileList) {
				console.log('event, file, fileList', parseInt(event.percent))
				this.percentage2 = parseInt(event.percent)
			},
			// 收到的评价列表
			pinglunSelect() {

				this.userId = this.$store.state.user.id
				this.$http({
					url: this.$http.adornUrl('takingComment/selectOrderTakingComment'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'id': this.tablemoney.artificer.artificerId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.pinglunData = returnData
				})
			},
			// 签到记录
			dataSelectQd() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('message/selectSignList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						'address': '',
						'phone': '',
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.tableDataQd = returnData
				})
			},
			// 项目类型
			fwSelect() {
				this.$http({
					url: this.$http.adornUrl('sys/dict/selectDictList'),
					method: 'get',
					params: this.$http.adornParams({
						'type': '服务类型'
					})
				}).then(({
					data
				}) => {
					let returnData = data.data
					this.fwData = returnData
				})
			},
			// 获取忙时
			mangshi(artificerDate) {
				this.mangshiSelect(artificerDate)
			},
			// 获取忙时数据
			mangshiSelect(artificerDate) {
				this.$http({
					url: this.$http.adornUrl('artificerTime/selectArtificerTimeByArtificerId'),
					method: 'get',
					params: this.$http.adornParams({
						'artificerId': this.tablemoney.artificer.artificerId,
						'artificerDate': artificerDate,
					})
				}).then(({
					data
				}) => {
					this.times = []
					let returnData = data.data
					if (data.data.length > 0) {
						for (var i in data.data) {
							// 	var datas = {}
							// 	datas.times = data.data[i].artificerTime
							// 	datas.classify = data.data[i].classify
							// 	this.times.push(datas)
							this.times.push(data.data[i].artificerTime)
							if (data.data[i].classify == 1) {
								for (var j in this.timeLis) {
									if (this.timeLis[j].times == data.data[i].artificerTime) {
										this.timeLis[j].classify = 1
									}
								}
							}else{
								for (var j in this.timeLis) {
									if (this.timeLis[j].times == data.data[i].artificerTime) {
										this.timeLis[j].classify = 2
									}
								}
							}
						}
					}
					this.timeList = returnData
					console.log('`````````````',this.timeLis)
				})
			},
			// 修改忙时弹框
			updateMs() {
				this.artificerDates = this.artificerDate
				this.dialogFormVisibleMs = true

			},
			// 修改忙时
			timesUp() {
				var arrs = []

				for (var i in this.times) {
					for (var j in this.timeLis) {
						if(this.timeLis[j].classify == 2){
							console.log('this.timeLis[j].classify',this.timeLis[j].classify)
							if(this.timeLis[j].times==this.times[i]){
								arrs.push(this.times[i])
							}
						}

					}

				}
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('artificerTime/updateArtificerTime'),
					method: 'post',
					params: this.$http.adornParams({
						'artificerId': this.tablemoney.artificer.artificerId,
						'artificerDate': this.artificerDates,
						'times': arrs.toString(),
						'userId': userId
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisibleMs = false
								this.autonymSelect()
								this.mangshiSelect(this.artificerDate)
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {}
						})
					}
				})
			},
			// 充值师傅数据
			dataSelectSf() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('Details/selectUserMoneyArtificer'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						// 'classify': 7

					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.tableDataDf = returnData
				})
			},
			// 师傅位置记录
			dataSelectWz() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('message/selectArtificerLocation'),
					method: 'get',
					params: this.$http.adornParams({
						'page':this.page,
						'limit':this.limit,
						'artificerName':'',
						'phone':'',
						'userId':userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.tableDataWz = returnData
				})
			},
			// 师傅消费明细弹框
			selectXfBtn(row){
				this.dialogFormVisibleCfjl = true
				this.artificerId = row.artificerId
				this.selectCfMx()
			},
			// 师傅消费记录
			selectCfMx(row) {
				this.tableDataLoading1 = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('Details/queryUserMoneyDetails'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page1,
						'limit': this.limit1,
						'userId': userId,
						'classify': 8,
						'artificerId': this.artificerId,
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading1 = false
					let returnData = data.data
					this.jiazhongData = returnData
				})
			},
			// 我的订单
			orderSelect() {
			  this.tableDataLoading = true
			  let userId = this.$route.query.userId
			  this.$http({
			    url: this.$http.adornUrl('orders/findMyList'),
			    method: 'get',
			    params: this.$http.adornParams({
			      'page': this.page - 1,
			      'size': this.limit,
			      'status': 0,
			      'userId': userId
			    })
			  }).then(({
			    data
			  }) => {
			    this.tableDataLoading = false
			    let returnData = data.data;
			    this.orderData = returnData;
			  })
			},
			// 获取商家详情
			shopsSelect() {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('consortia/selectConsortiaByUserId'),
					method: 'get',
					params: this.$http.adornParams({
						'consortiaId': this.tablemoney.userEntity.consortiaId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.consortia = returnData
					if (this.consortia.businessLicense) {
						this.consortia.businessLicense = this.consortia.businessLicense.split(",")
					}
					if (this.consortia.qualificationCertificate) {
						this.consortia.qualificationCertificate = this.consortia.qualificationCertificate.split(",")
					}
				})
			},
			// 添加师傅弹框
			addShifu(){
				this.dialogFormVisibleU = true
				this.page1 = 1
				this.nickName = ''
				this.phoneU = ''
				this.inviterCode = ''

				this.dataSelect1()
			},
			// 获取用户数据列表
			dataSelect1() {

				this.tableDataLoading1 = true
				this.$http({
					url: this.$http.adornUrl('user/selectUserList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page1,
						'limit': this.size1,
						'isAuthentication': 2,
						'phone': this.phoneU,
						'userName': this.nickName,
						'inviterCode': this.inviterCode,
						'platform': '',
						'member': '',
						'sex':'',
						'ordersUser':'',
						'invitationCode':'',
						'isAgency':''

					})
				}).then(({
					data
				}) => {
					this.tableDataLoading1 = false
					let returnData = data.data
					this.usersData = returnData
				})
			},
			// 查询
			select1() {
				this.page1 = 1
				this.dataSelect1()
			},
			// 重置
			cleans1() {
				this.page1 = 1
				this.phoneU = ''
				this.member = ''
				this.nickName = ''
				this.inviterCode = ''
				this.dataSelect1()
			},
			// 选择师傅弹框
			xuanze(row,index){
				this.titles = '添加金额'
				this.moneyType = 1
				this.moneys = ''
				this.JsartificerId = row.artificerId
				this.dialogFormVisibleJes = true
			},
			// 修改师傅金额弹框
			selectXfUpdate(row){
				this.titles = '修改金额'
				this.moneyType = ''
				this.moneys = ''
				this.JsartificerId = row.artificerId
				this.dialogFormVisibleJes = true
			},
			// 添加、修改师傅金额
			timesJe(){
				if(this.moneyType === ''){
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请选择修改类型',
						type: 'warning'
					});
					return
				}
				let userId = this.$route.query.userId
				var datas={}
				datas.artificerId = this.JsartificerId
				datas.money = this.moneys
				datas.userId = userId
				if(this.titles == '修改金额'){
					datas.type = this.moneyType
				}
				this.$http({
					url: this.$http.adornUrl('Details/updateUserMoneyArtificer'),
					method: 'post',
					params: this.$http.adornParams(datas)
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisibleJes = false
								this.dialogFormVisibleU = false
								this.dataSelectSf()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {}
						})
					}
				})
			},
			xiugaiJs(row) {

					this.proportion = row.rate
				this.artificerId = row.artificerId
				this.dialogFormVisibleJs = true
			},
			StairNoticeToJs() {

				this.$http({
					url: this.$http.adornUrl('artificer/updateArtificers'),
					method: 'post',
					// params: this.$http.adornParams({
					data: this.$http.adornData({
						'artificerId':this.artificerId,
						'rate':this.proportion
					})
				}).then(({
					data
				}) => {
					console.log('data', data)
					if(data.code==0){
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisibleJs = false
								this.autonymSelect()
								this.mangshiSelect(this.artificerDate)
							}
						})
					}else{
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {
							}
						})
					}

				})
			},
			// 删除签到
			deleteClick(row) {
				let delid = row.id
				this.$confirm(`确定删除此条信息?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl('message/deleteMessageById'),
						method: 'post',
						params: this.$http.adornParams({
							'id': delid
						})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '删除成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.dataSelectQd()
								}
							})
						} else {
							this.$message({
								message: data.msg,
								type: 'warning',
								duration: 1500,
								onClose: () => {}
							})
						}

					})
				}).catch(() => {})
			},
			// 获取时间类型
			xianshi () {
			  this.$http({
			    url: this.$http.adornUrl('common/type/392'),
			    method: 'get',
			    data: this.$http.adornData({})
			  }).then(({data}) => {
				if (data.code == 0) {
					if (data.data.value == '30') {
						// this.show = true
						this.timeLis = this.timeLis2
					}
				}
			  })
			},
		},
		mounted() {
			this.artificerDate = this.info.stockDate
			this.dataSelect()
			this.fwSelect()
			this.xianshi()
		},
	}
</script>

<style scoped="scoped">
	.detailtabel h2 {
		margin-top: 0;
	}

	.detailtabel .table_main table {
		width: 100%;
	}

	.detailtabel .table_main {
		border: 1px solid #e8e8e8;
	}

	.detailtabel table tr {
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table tr th {
		background-color: #fafafa;
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table tr td {
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table th {
		color: rgba(0, 0, 0, .85);
		font-weight: 400;
		font-size: 14px;
		line-height: 1.5;
	}

	.border-rt {
		border-right: none !important;
	}

	.border-bt {
		border-bottom: none !important;
	}

	.box {
		padding: 44px;
		border: 1px solid #eee;
		margin: 15px 10px;
	}

	.box_num {
		font-size: 14px;
		color: #66b1ff;
	}

	.box_num .box_color {
		color: #333;
		font-size: 14px;
		margin-bottom: 15px;
	}

	.box_num div span {
		font-size: 20px;
		margin-left: 5px;
	}

	.text_color {
		color: #4f9dec;
	}

	.text_color span {
		margin-right: 5px;
	}

	/* 图片 */
	.imgs {
		position: relative;
		border-radius: 6px;
		width: 148px;
		height: 148px;
		margin-right: 10px;
		display: inline-block;
	}

	.dels {
		position: absolute;
		top: 0;
		left: 0;
		display: none;
	}

	.dels .el-icon-delete {
		line-height: 148px;
		padding-left: 58px;
		font-size: 25px;
		color: #fff;
	}

	.imgs:hover .dels {
		width: 100%;
		height: 100%;
		background: #000;
		display: block;
		opacity: 0.5;
	}
</style>
