<!-- 拜访记录 -新增 -->
<view class="wrap">

    <view class="rgc_info"> 
  <text>{{address}}</text> 
  <text>{{rgcData.desc}}</text> 
  <text>{{rgcData.business}}</text> 
</view>
 <l-form name="student" l-form-btn-class="l-form-btn-class" bind:linsubmit="submit">
 

    <!-- <l-form-item label="客户名称" name="customerName" label-width="300rpx;" rules="{{rules.customerName}}">
        <picker bindchange="change_customer" mode = "selector" range-key="name" value="{{customerIndex}}" range="{{customerNameList}}">
          <l-input id="customerName" value="{{customerNameList[customerIndex]['name']}}" hide-label show-row="{{false}}" placeholder="请选择客户名称" disabled/>
      </picker>
    </l-form-item> -->

 
    <l-form-item label="客户名称" name="customerName" label-width="300rpx;"   rules="{{rules.customerName}}">
        <l-input id="customerName" value="{{create.temp.customerName}}" hide-label show-row="{{false}}" clear="{{true}}" placeholder="请输入客户名称" bind:lininput="change_customer_input"/>
    </l-form-item>
    <scroll-view class = "customer_bx" scroll-y="true" wx:if="{{customerShow}}">
        <view  class = "customer_txt" wx:if="{{c_txt_Show}}">暂无内容</view>
        <block wx:for="{{customerNameList}}" wx:for-item="item"  wx:key="index">
            <view class = "customer_txt" bindtap="on_cust_tap" data-id="{{item.id}}" data-name="{{item.name}}"> {{item.name}} </view>
        </block>
    </scroll-view>
    
 
  
    <l-form-item label="集团" name="groupName" label-width="300rpx;padding-left:32rpx;">
        <l-input id="groupName" value="{{create.temp.groupName}}" hide-label show-row="{{false}}" disabled/>
    </l-form-item>

    <l-form-item label="拜访日期" name="vdate"  label-width="300rpx" rules="{{rules.vdate}}">
        <picker    name="vdate" mode="date" value="{{create.temp.vdate}}" start="2015-09-01" bindchange="on_vdate_tap" wx:if="{{allDisabled}}" >
            {{table.getdataListParm.parammaps.beginDate}}
            <l-input id="vdate"  value="{{create.temp.vdate}}" hide-label disabled  bindtap="on_vdate_tap" l-input-class="import_txt" />
        </picker>
    </l-form-item>

    

    <l-form-item label="拜访人" name="visiterName" label-width="300rpx;padding-left:30rpx;"  >
        <l-input id="visiterName" value="{{create.temp.visiterName}}" hide-label show-row="{{false}}" disabled/>
    </l-form-item>

    

    <l-form-item label="接待人" name="receiverName" label-width="300rpx" rules="{{rules.receiverName}}" >
        <l-input id="receiverName" value="{{create.temp.receiverName}}" hide-label show-row="{{false}}" bind:lininput="change_receiver_input" bind:linconfirm="confirm_receiver_input" bind:linblur="confirm_receiver_input" clear="{{true}}" placeholder="请输入接待人"/>
    </l-form-item>
    <scroll-view class = "receiver_bx" scroll-y="true" wx:if="{{receiverShow}}" style = "top:450rpx;">
        <view  class = "receiver_txt" wx:if="{{r_txt_Show}}">暂无内容</view>
        <block wx:for="{{receiverNameList}}" wx:for-item="item"  wx:key="index">
            <view class = "receiver_txt" bindtap="on_rece_tap" data-id="{{item.id}}" data-name="{{item.name}}"> {{item.name}} </view>
        </block>
    </scroll-view>
    <!-- <l-form-item label="接待人" name="receiverName" label-width="300rpx;" rules="{{rules.receiverName}}">
        <picker bindchange="change_receiver" mode = "selector" range-key="name" value="{{receiverIndex}}" range="{{receiverNameList}}" wx:if="{{allDisabled}}" >
          <l-input id="receiverName" value="{{receiverNameList[receiverIndex]['name']}}" hide-label show-row="{{false}}" placeholder="请选择接待人"/>
      </picker>
    </l-form-item> -->


    <l-form-item label="接待人电话" name="receiverTel" label-width="" rules="{{rules.receiverTel}}"  >
        <l-input id="receiverTel" value="{{create.temp.receiverTel}}" hide-label show-row="{{false}}" placeholder="请输入电话"/>
    </l-form-item>


    <l-form-item label="现场照片" name="scenePhoto" label-width="300rpx" rules="{{rules.scenePhoto}}" label-placement="column" >
        <l-image-picker size="3"   count="9"  id="scenePhoto" bind:linchange="change_scenePhoto" bind:linremove="clear_scenePhoto" urls="{{scenePhotoUrlList}}"/>
    </l-form-item>

    <l-form-item label="定位" name="location" label-width="300rpx"  rules="{{rules.location}}" >
        <!-- <l-input id="location" value="{{create.temp.location}}" hide-label show-row="{{false}}" disabled/> -->
        <l-textarea id="location" value="{{create.temp.location}}" auto-height="{{true}}"  indicator ='{{false}}' disabled/>
    </l-form-item>

    <l-form-item label="情况说明" name="content" label-width="300rpx;" rules="{{rules.content}}">
        <l-textarea id="content" value="{{create.temp.content}}" auto-height="{{true}}"  maxlength='255'/>
    </l-form-item>

    <l-form-item label="下一步计划" name="nextName" label-width="300rpx;padding-left:30rpx;"  >
        <picker bindchange="change_next" mode = "selector" range-key="name" value="{{nextIndex}}" range="{{nextNameList}}" wx:if="{{allDisabled}}" >
          <l-input id="nextName" value="{{nextNameList[nextIndex]['name']}}" hide-label show-row="{{false}}" placeholder="请选择下一步计划" disabled/>
      </picker>
    </l-form-item>

 

    <l-form-item label="备注" name="remark" label-width="300rpx;padding-left:30rpx;" >
        <l-textarea id="remark" value="{{create.temp.remark}}" auto-height="{{true}}"    maxlength='255'/>
    </l-form-item>

    <l-form-item label="录入日期" name="created" label-width="300rpx;padding-left:32rpx;">
        <l-input id="created" value="{{create.temp.created}}" hide-label show-row="{{false}}" disabled/>
    </l-form-item>

 
 

    <view slot="submit" style="padding-left:200rpx">
        <l-button>保存</l-button>
    </view>
   
</l-form>

</view>

