<!--pages/selectPersonnel/selectPersonnel.wxml-->
<van-search value="{{ searchValue }}" placeholder="请输入搜索关键词" use-action-slot bind:change="onChange" class="searchInput">
  <view slot="action" bind:tap="onClick">搜索</view>
</van-search>
<view class="mTop">
  <view class="" wx:for="{{personList}}" wx:for-item="data" wx:key="index">
    <van-cell-group>
        <van-cell title="{{data.name}}" value="{{data.phone}}" bind:click="clickOnPeople" data-item="{{data}}"  border="{{ false }}" />  
    </van-cell-group>
  </view>
</view>
<van-popup show="{{ show }}" custom-style="width: 90%" bind:close="onClose" round>
  <van-cell-group>
    <van-field value="{{ personInfo.name }}" label="名称" placeholder="请输入名称" border="{{ true }}" disabled="{{true}}" />
    <van-field value="{{ personInfo.content.userTelephone }}" label="手机号" type="number" placeholder="请输入手机号" border="{{ true }}"  disabled="{{true}}" />
    <picker mode="date" value="{{starttime}}" start="{{minDate}}" bindchange="bindDateChange">		
    <van-field value="{{ starttime }}" placeholder="请选择开始时间" label="开始时间" border="{{ true }}" readonly />
    </picker>
    <picker mode="date" value="{{endtime}}" start="{{minDate1}}" bindchange="bindDateChange1">		
    <van-field value="{{ endtime }}" placeholder="请选择结束时间" label="结束时间" border="{{ true }}" readonly />
    </picker>
    <van-button type="primary" size="normal" bindtap="addperson" block>确定</van-button>
  </van-cell-group>
</van-popup>
