	<wxs module="time" src="../../utils/time.wxs"></wxs>
	<wxs module="subqian" src="../../utils/subqian.wxs"></wxs>
	<wxs module="subhou" src="../../utils/subhou.wxs"></wxs>
	<wxs module="urls" src="../../utils/photoUrl.wxs"></wxs>
	<wxs module="oldMind" src="../../utils/oldmind.wxs"></wxs>
	<wxs module="oldHealth" src="../../utils/oldhealth.wxs"></wxs>
	<wxs module="oldSecurity" src="../../utils/oldsecurity.wxs"></wxs>
	<view>
		<view id='tabs'>
			<view class='tabs-box'>
				<block wx:for="{{['采集记录','探访记录']}}" wx:key="index">
					<view class="tabs-item {{currentTabIndex == index ? 'selected' : '' }}" bindtap='onTabsItemTap' data-index='{{index}}'>
						{{item}}
					</view>
				</block>
			</view>
			<view class='ordert-detail'>
				<view hidden='{{currentTabIndex != 0}}'>
					<van-tabs active="{{ active }}" bind:change="tabsChange" color='#2087F7'>
						<van-tab title="全部"></van-tab>
						<van-tab title="填全未审"></van-tab>
						<van-tab title="未完成"></van-tab>
						<van-tab title="审核中"></van-tab>
						<van-tab title="审核完成"></van-tab>
						<van-tab title="审核失败"></van-tab>
					</van-tabs>
					<view class="zizi">共<text class="number">{{listData.length}}</text>条采集数据</view>
					<scroll-view class="center" scroll-y="true" style='height: {{scrollHeight + "px"}}'>
						<view class="tr" style=" border-bottom: 1px solid #dadada; padding-bottom: 15rpx;">
							<view class="td " style="border-bottom: unset; width: 38%; ">
								<checkbox checked="{{isAllTrue}}" bindtap="selectall" />
							</view>
							<view class="td" style="border-bottom: unset;">姓名</view>
							<view class="td " style="border-bottom: unset;  margin-left: 100rpx;">保存时间</view>
							<view class="td" style="border-bottom: unset;">状态</view>
						</view>
						<checkbox-group bindchange="checkboxChange">
							<view class="tr" wx:for="{{listData}}" wx:key="">
								<view class="td td22">
									<checkbox disabled="{{item.status == '3'}}" value="{{item._id}}" checked="{{item.checked}}" />
								</view>
								<view class="td idcard" value="{{item.text}}" bindtap="cellClick" data-infos='{{item}}'>
									<view>{{item.name}}</view>
									<!-- <view wx:if='{{item.idNumber}}' class="oldzi">({{item.idNumber}}</view> -->
									<view wx:if='{{item.idNumber}}' class="oldzi">({{subqian.subqian(item.idNumber)}}</view>
									<view wx:if='{{item.idNumber}}' class="oldzi">{{subhou.subhou(item.idNumber)}})</view>
								</view>
								<view class="td" bindtap="cellClick" data-infos='{{item}}' value="{{item.text}}">{{time.formatDate(item.time)}}</view>
								<view class="td status" bindtap="cellClick" data-infos='{{item}}' wx:if="{{item.status == '1'}}" style="color: #67C23A">填全未审</view>
								<view class="td status" bindtap="cellClick" data-infos='{{item}}' wx:if="{{item.status == '0'}}" style="color: #F56C6C">未完成</view>
								<view class="td status" bindtap="cellClick" data-infos='{{item}}' wx:if="{{item.status == '2'}}" style="color: #909399">审核中</view>
								<view class="td status" bindtap="cellClick" data-infos='{{item}}' wx:if="{{item.status == '3'}}" style="color: #409EFF">审核完成</view>
								<view class="td status" bindtap="cellClick" data-infos='{{item}}' wx:if="{{item.status == '4'}}" style="color: #E6A23C">审核失败</view>
							</view>
						</checkbox-group>
					</scroll-view>
				</view>
				<view hidden='{{currentTabIndex != 1}}'>
					<view class="zizi">共<text class="number">{{list.length}}</text>条探访数据</view>
					<scroll-view class="table0" scroll-y="true" style='height: {{scrollHeight1 + "px"}}'>
						<view class="tr0 bg-w0" style="padding:0">
							<view class="th0">老人姓名</view>
							<view class="th0">探访时间</view>
						</view>
						<block wx:for="{{list}}" wx:key="unique">
							<view class="tr0" bindtap="bindtap" data-infos="{{item}}" bindtap="visitJilu">
								<view class="td0"><text>{{item.oldInfo}}<text wx:if='{{item.oldIdNumber}}' class="oldzi">({{item.oldIdNumber}})</text></text></view>
								<view class="td0 td11" style="  padding: 0rpx 10rpx;"><text> {{time.formatDate(item.visitTime)}}</text></view>
							</view>
						</block>
					</scroll-view>
					<!-- <view class="table0">
						<view class="tr0 bg-w0" style="padding:0">
							<view class="th0">老人姓名</view>
							<view class="th0">探访时间</view>
						</view>
						<block wx:for="{{list}}" wx:key="unique">
							<view class="tr0" bindtap="bindtap" data-infos="{{item}}" bindtap="visitJilu">
								<view class="td0"><text>{{item.oldInfo}}<text class="oldzi">({{item.oldIdNumber}})</text></text></view>
								<view class="td0 td11"><text> {{time.formatDate(item.visitTime)}}</text></view>
							</view>
						</block>
					</view> -->
					<van-overlay show="{{ show }}" bind:click="onClickHide">
						<view class="wrapper">
							<scroll-view scroll-y="true" class="block">
								<view class="flex-box">
									<view>
										探访时间
									</view>
									<view style=" margin-left: 20rpx;">
										{{time.formatDate(infos.visitTime)}}
									</view>
								</view>
								<view>
									探访位置
								</view>
								<view class="wai-box">
									<view>{{infos.visitLocation}}</view>
									<view class="flex-box">
										<view>经度:<text>{{infos.lng}}</text></view>
										<view>纬度:<text>{{infos.lat}}</text></view>
									</view>
								</view>
								<view>
									老人姓名
								</view>
								<view class="pop-oldtitle">{{infos.oldInfo}}<text class="oldzi">（{{infos.oldIdNumber}}）</text></view>
								<view>
									1、探访情况
								</view>
								<view class="tanfang">
									<view class="flex-box" style=" margin: 10rpx 0;">
										<view>
											<view>健康情况：<van-tag plain size='large' type="{{oldHealth.url(infos.health)}}">{{infos.health}}</van-tag>
											</view>
										</view>
										<view>
											<view class="box-end">精神状态：<van-tag plain size='large' type="{{oldMind.url(infos.mind)}}">{{infos.mind}}</van-tag>
											</view>
										</view>
									</view>
									<view class="flex-box" style=" margin: 10rpx 0;">
										<view>
											<view>安全情况：<van-tag plain size='large' type="{{oldSecurity.url(infos.security)}}">{{infos.security}}</van-tag>
											</view>
										</view>
										<view>
											<view class="box-end">卫生环境：<van-tag plain size='large' type="{{oldMind.url(infos.hygiene)}}">{{infos.hygiene}}</van-tag>
											</view>
										</view>
									</view>
									<view>居住环境：<van-tag size='large' plain type="{{oldMind.url(infos.live)}}">{{infos.live}}</van-tag>
									</view>
								</view>
								<view>
									2、老人需求说明
								</view>
								<view class="wai-box"> {{infos.demand}}</view>
								<view> 3、探访备注说明</view>
								<view class="wai-box">{{infos.visitMessage}}</view>
								<view> 4、现场喊含面部照片</view>
								<view class="pop-boxs">
									<view wx:for='{{photos}}'>
										<view class="tanfang">
											照片{{index+1}}
										</view>
										<image src="{{urls.url(item)}}" style="width: 200rpx; height: 200rpx;margin-top: 4%" />
									</view>
								</view>
							</scroll-view>
						</view>
					</van-overlay>
				</view>
				<view wx:if='{{currentTabIndex != 1}}' class="delete-box" bindtap="deletes">删除</view>
			</view>
		</view>

	</view>