<!-- 拜访记录 -新增 -->
<view class="wrap">
 <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}}">
        <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="rdate"  label-width="300rpx" rules="{{rules.rdate}}">
        <picker   name="rdate" mode="date" value="{{create.temp.rdate}}" start="2015-09-01" bindchange="on_rdate_tap"   >
            <l-input id="rdate"  value="{{create.temp.rdate}}" hide-label disabled  bindtap="on_rdate_tap" l-input-class="import_txt" />
        </picker>
    </l-form-item>

    
    <l-form-item label="技术人员" name="employeeName" label-width="300rpx;padding-left:30rpx;"  >
        <l-input id="employeeName" value="{{create.temp.employeeName}}" 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="请选择接待人" disabled/>
      </picker>
    </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="visitName" label-width="300rpx;padding-left:30rpx;"  >
        <picker bindchange="change_visit" mode = "selector" range-key="name" value="{{visitIndex}}" range="{{visitNameList}}" wx:if="{{allDisabled}}" >
          <l-input id="visitName" value="{{visitNameList[visitIndex]['name']}}" hide-label show-row="{{false}}" placeholder="请选择记录" disabled/>
      </picker>
    </l-form-item>

    <l-form-item label="回访记录关联" name="telvisitName" label-width="300rpx;padding-left:30rpx;"  >
        <picker bindchange="change_telvisit" mode = "selector" range-key="name" value="{{telvisitIndex}}" range="{{telvisitNameList}}" wx:if="{{allDisabled}}" >
          <l-input id="telvisitName" value="{{telvisitNameList[telvisitIndex]['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>

