<!-- 拜访记录 -->
<view class="wrap">
  <view class="bx">
    <view class = "search-bx"> 
     <form catchsubmit="formSubmit" >
      <!-- <input class="search-input" name="inputvalue" placeholder="  请输入客户/单号/拜访人进行搜索" /> -->

      <view style = "position:relative">
        <l-icon name="research" bindtap="on_search_tap" size="30" class="search-icon"  />
        <input class="search-input" bindinput="change_inputvalue" name="inputvalue" placeholder="请输入客户/单号/拜访人进行搜索" value ="{{inputvalue}}"/>
        <l-icon name="error" bindtap="on_error_tap" size="30" class="error-icon"  />
      </view>

      <view>
        <picker  class="search-date"  name="beginDate" mode="date" value="{{table.getdataListParm.parammaps.beginDate}}" start="2015-09-01" bindchange="bindDateChange1">{{table.getdataListParm.parammaps.beginDate}}</picker>
        <view class ="fenge">-</view>
        <picker  class="search-date"  name="endDate" mode="date" value="{{table.getdataListParm.parammaps.endDate}}" start="2015-09-01" bindchange="bindDateChange2">{{table.getdataListParm.parammaps.endDate}}</picker>
      </view>


       
      
       
      <!-- <button class ="btn-search" formType="submit">搜索</button> -->
 
  
      



      
     </form>
      
    </view>

  

    <block wx:if="{{isShow}}">
      <view class="table">
 
        <block wx:for="{{table.list}}" wx:for-item="item"  wx:key="index">
 
          <view class="table_box" catchtap="on_see_tap"  data-id="{{item.id}}"  >
            <view class="hd">
               <text class="hd_tt">客户：{{item.customerName2}}</text>
               <text class="hd_date">{{item.vdate}}</text>
            </view>
            <view class="bd">
               <text class="bd_tt">拜访单号：</text>
               <text>{{item.visitCode}}</text>
            </view>
            <view class="bd">
               <text class="bd_tt">拜访人：</text>
               <text>{{item.visiterName}}</text>
            </view>
            <view class="bd">
               <text class="bd_tt">情况说明：</text>
               <text>{{item.content2}} </text>
            </view>
   
            
            <view  catchtap="on_edit_tap" data-id="{{item.id}}"  wx:if="{{item.createrId == g_createrId && item.isModify == '1'}}">
               <l-button  class="btn-edit" type="warning" size="mini" >编辑</l-button>
            </view>
          </view>
 

        </block>
      </view>
    </block>
    <block wx:else="{{isShow}}">
      <view class="table">
         <image style="width: 400rpx; height: 400rpx;margin:0 auto" mode="aspectFit" src="{{noData}}"></image>
         <text style="margin:0 auto">{{dataListTips}}</text> 
      </view>
    </block>

    <l-button  class="btn-add"  size="medium" bindtap="on_add_tap" type="default"  formType="submit">新增</l-button>
   

  </view>

 
</view>

