addListDetail.wxml 16.3 KB
<!-- 保障方案弹窗 -->
<view class='mask_box' wx:if='{{popup_state}}'>
  <view class='popup_box'>
    <view class='main_container'>
      <view class='popup_item'>
        <view class='popup_list' wx:for='{{projectlist}}' wx:key=''>
          <view bindtap='popupState' data-index='{{index}}'>
            <view class="iconfont icon-fangkuang  {{item.choose_status?'icon-xuanzhongkuang':''}}"></view>
          </view>
          <view class='popup_info_box'>
            <view class='popup_content'>
              <view class='popup_title'>{{item.name}}</view>
              <view class='popup_input'>
                <input type='number' placeholder='请输入' value='{{item.num}}' bindinput='popupNum' data-index='{{index}}' data-id='{{item.id}}'></input>
                <!-- <text>{{item.title}}</text> -->
              </view>
            </view>
            <view class='popup_label_box'>
              <view class="popup_label_item {{sitem.current === sub_index ? 'popup_label_active' :''}}" wx:for='{{item.title}}' wx:for-index='sub_index' data-sindex='{{sub_index}}' wx:for-item='sitem' data-index='{{index}}' wx:key='' bindtap='getUnit'>
                {{sitem.name}}</view>
            </view>
          </view>
        </view>
      </view>
      <view class='popup_btn' bindtap='confirmCase'>确认</view>
    </view>
  </view>
</view>

<!-- 表单部分 -->
<!-- <block wx:else> -->
<form bindsubmit='listVerify' bindreset="formReset">
  <view class='content_item'>
    <view class='item_list'>
      <view class='list_title'>保单号</view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <input type='text' placeholder='请输入' name='list_num' value='{{listdetail.in_num}}' bindinput='itemNum'></input>
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <input type='text' placeholder='请输入' name='policy_num' value='{{nullNum}}' bindinput='policyNum'></input>
      </view>
      <!-- </block> -->
    </view>
    <view class='item_list'>
      <view class='list_title'>所属公司</view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <input type='text' placeholder='请输入' name='company' value='{{listdetail.firm}}'></input>
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <input type='text' placeholder='请输入' name='company' value='{{nullNum}}'></input>
      </view>
      <!-- </block> -->
    </view>
    <view class='item_list'>
      <view class='list_title'>投保人</view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <picker class='picker' range='{{insure}}' value='{{insureindex}}' bindchange='insureSelect'>
            <input type='text' placeholder='请选择' name='policy_holder' value='{{insure[insureindex]}}'></input>
          </picker>
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <picker class='picker' range='{{insure}}' value='{{insureindex}}' bindchange='insureSelect'>
          <input type='text' placeholder='请选择' name='policy_holder' value='{{insure[insureindex]}}' disabled='true'></input>
        </picker>
        <!-- <input type='text' placeholder='请填写' name='policy_holder' value='{{nullNum}}'></input> -->
      </view>
      <!-- </block> -->
    </view>
    <view class='item_list'>
      <view class='list_title'>被保险人</view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <picker class='picker' range='{{recognizee}}' value='{{recognizeeindex}}' bindchange='recognizeeSelect'>
            <text>{{recognizee[recognizeeindex]}}</text>
          </picker>
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <picker class='picker' range='{{recognizee}}' value='{{recognizeeindex}}' bindchange='recognizeeSelect'>
          <input placeholder='请选择' value='{{recognizee[recognizeeindex]}}' disabled='true'></input>
        </picker>
      </view>
      <!-- </block> -->
    </view>
    <view>
      <view class='item_list' wx:for='{{beneficiary_list}}' wx:key='' wx:for-index='its'>
        <view class='list_title'>受益人</view>
        <view class='list_input_box'>
          <view class='list_input'>
            <picker class='picker' range='{{item.name}}' range-key='' value='{{beneficiaryindex}}' wx:for-index='index' bindchange='beneficiarySelect' data-mindex='{{its}}'>
              <input type='text' placeholder='请选择' name='beneficiary' value='{{item.beneficiary_name}}' disabled='true'></input>
            </picker>
          </view>
          <view class='list_input'>
            <input class='income_input' type='text' placeholder='受益比例%' name='beneficiary' value='{{item.unit}}' bindinput='addUnit'></input>
          </view>
        </view>
      </view>
      <view class='iconfont icon-wuuiconxiangjifangda add_person' data-mindex='{{its}}' data-sindex='{{index}}' bindtap='addPersons'>
        <text>添加受益人</text>
      </view>
    </view>
  </view>
  <view class='content_item'>
    <view class='item_list'>
      <view class='list_title'>
        <text class='symbol_icon'>*</text>
        <text>主险名称</text>
      </view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <input type='text' placeholder='请填写' name='main_risks' value='{{listdetail.main_risks}}'></input>
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <input type='text' placeholder='请填写' name='main_risks' value='{{nullNum}}'></input>
      </view>
      <!-- </block> -->
    </view>
    <view class='protec_item_box'>
      <view>
        <view class='protec_item' wx:for='{{main_array}}' wx:key='' if='{{item.choose_status}}'>
          <view>{{item.name}}</view>
          <view class='protec_num'>{{item.num}}{{item.title}}
          </view>
        </view>
      </view>
      <view class='protec_bottom_box'>
        <view class='add_risk_btn protec_btn' bindtap='ensureProject'>
          <text class='iconfont icon-shezhi'></text>
          <text>管理保障项目</text>
        </view>
      </view>
    </view>
  </view>
  <view class='content_item'>
    <view class='item_list'>
      <view class='list_title'>
        <text class='symbol_icon'>*</text>
        <text>保费</text>
      </view>
      <view class='list_input_box'>
        <view class='list_input'>
          <input type='text' placeholder='请填写' name='beneficiary' value='{{listdetail.favoree}}'></input>
        </view>
        <view class='list_input'>
          <input class='income_input' type='text' placeholder='请填写' name='beneficiary' value='元/年' disabled='true'></input>
        </view>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>合同生效日</view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <picker class='picker' mode="date" bindchange='compactTime' value='{{compact_time}}'>
            <view>{{compact_time}}</view>
            <input placeholder='请选择' value='{{compact_time}}' disabled='true'></input>
          </picker>
          <text class='iconfont icon-riqi'></text>
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <picker class='picker' mode="date" bindchange='compactTime' value='{{compact_time}}'>
          <input placeholder='请选择' value='{{compact_time}}' disabled='true'></input>
        </picker>
        <text class='iconfont icon-riqi'></text>
      </view>
      <!-- </block> -->
    </view>
    <view class='item_list'>
      <view class='list_title'>保障期</view>
      <view class='list_input_box'>
        <view class='list_input'>
          <input type='text' placeholder='请输入' name='beneficiary' value='{{listdetail.favoree}}'></input>
        </view>
        <view class='list_label_box'>
          <view class="list_label_item {{unit==1?'list_label_active':''}}" bindtap='selectUnit' data-unit='1'>年</view>
          <view class="list_label_item {{unit==2?'list_label_active':''}}" bindtap='selectUnit' data-unit='2'>岁 </view>
          <view class="list_label_item {{unit==3?'list_label_active':''}}" bindtap='selectUnit' data-unit='3'>终身</view>
        </view>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>缴费时长</view>
      <view class='list_input_box'>
        <view class='list_input'>
          <input type='text' placeholder='请输入' name='beneficiary' value='{{listdetail.favoree}}'></input>
        </view>
        <view class='list_label_box'>
          <view class="list_label_item {{unit2==4?'list_label_active':''}}" bindtap='selectUnit2' data-unit='4'>年</view>
          <view class="list_label_item {{unit2==5?'list_label_active':''}}" bindtap='selectUnit2' data-unit='5'>岁 </view>
          <view class="list_label_item {{unit2==6?'list_label_active':''}}" bindtap='selectUnit2' data-unit='6'>终身</view>
        </view>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>缴费方式</view>
      <view class='list_label_box'>
        <view class="list_label_item {{unit3==7?'list_label_active':''}}" bindtap='selectUnit3' data-unit='7'>年交</view>
        <view class="list_label_item {{unit3==8?'list_label_active':''}}" bindtap='selectUnit3' data-unit='8'>趸交(一次付清)</view>
        <view class="list_label_item {{unit3==9?'list_label_active':''}}" bindtap='selectUnit3' data-unit='9'>年交</view>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>续费银行</view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <input type='text' placeholder='请填写' name='Renew_bank' value='{{listdetail.bank}}'></input>
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <input type='text' placeholder='请填写' name='Renew_bank' value='{{nullNum}}'></input>
      </view>
      <!-- </block> -->
    </view>
    <view class='item_list'>
      <view class='list_title'>续费账号</view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <input type='number' placeholder='输入后四位' name='renew_num' value='{{listdetail.bank_num}}'></input>
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <input type='text' placeholder='请填写' name='renew_num' value='{{nullNum}}'></input>
      </view>
      <!-- </block> -->
    </view>

    <view class='item_list'>
      <view class='list_title'>缴费期满日</view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <picker class='picker' mode="date" bindchange='impletionTime' value='{{impletion_time}}'>
            <view>{{impletion_time}}</view>
          </picker>
          <text class='iconfont icon-riqi'></text>
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <picker class='picker' mode="date" bindchange='impletionTime' value='{{impletion_time}}'>
          <input placeholder='请选择' value='{{impletion_time}}' disabled='true'></input>
        </picker>
        <text class='iconfont icon-riqi'></text>
      </view>
      <!-- </block> -->
    </view>
    <view class='item_list'>
      <view class='list_title'>主险保障期</view>
      <!-- <block wx:if='{{inforid}}'>
        <view class='list_input'>
          <input type='number' placeholder='请填写' name='Guarantee_period' value='{{listdetail.warranty}}'></input>
          <!-- <text class='iconfont icon-riqi'></text> 
        </view>
      </block>
      <block wx:else> -->
      <view class='list_input'>
        <picker class='picker' range='{{period_time}}' value='{{period_index}}' bindchange='periodTime'>
          <input placeholder='请选择' value='{{period_time[period_index]}}' disabled='true'></input>
        </picker>
        <!-- <text class='iconfont icon-riqi'></text> -->
      </view>
      <!-- </block> -->
    </view>
  </view>

  <view class='content_item'>
    <!-- wx:for='{{addlist}}' wx:key='' -->
    <view class='risk_box'>
      <view class='risk_item' wx:for='{{risk_list}}' wx:key=''>
        <view class='iconfont icon-guanbi symool_box' bindtap='deleteRisk' data-index='{{index}}'></view>
        <view class='item_list'>
          <view class='list_title project'>附加险名称</view>
          <view class='list_input'>
            <input type='text' placeholder='请填写' bindinput='additional_risk' value='{{item.name}}'></input>
          </view>
        </view>
        <view class='protec_item_box'>
          <view>
            <view class='protec_item'>
              <view>轻症重大疾病</view>
              <view class='protec_num'>50万</view>
            </view>
            <view class='protec_item'>
              <view>轻症重大疾病</view>
              <view class='protec_num'>50万</view>
            </view>
            <view class='protec_item'>
              <view>轻症重大疾病</view>
              <view class='protec_num'>50万</view>
            </view>
          </view>
          <view class='protec_bottom_box'>
            <view class='add_risk_btn protec_btn' bindtap='ensureProject'>
              <text class='iconfont icon-shezhi'></text>
              <text>管理保障项目</text>
            </view>
          </view>
        </view>
        <view class='item_list'>
          <view class='list_title'>保障期</view>
          <view class='list_input_box'>
            <view class='list_input'>
              <input type='text' placeholder='请输入' name='beneficiary' value='{{listdetail.favoree}}'></input>
            </view>
            <view class='list_label_box'>
              <view class="list_label_item {{unit4==10?'list_label_active':''}}" bindtap='selectUnit4' data-unit='10'>年</view>
              <view class="list_label_item {{unit4==11?'list_label_active':''}}" bindtap='selectUnit4' data-unit='11'>岁 </view>
              <view class="list_label_item {{unit4==12?'list_label_active':''}}" bindtap='selectUnit4' data-unit='12'>终身</view>
            </view>
          </view>
        </view>
      </view>
      <view class='add_risk_box'>
        <!-- <view class='add_risk_btn' bindtap='deleteRisk' data-index='{{index}}'>
          <text class='iconfont icon-shanchu'></text>
          <text>删除</text>
        </view> -->
        <view class='add_risk_btn' bindtap='addRisk'>
          <text class='iconfont icon-tianjia'></text>
          <text>继续添加附加险</text>
        </view>
      </view>
    </view>
  </view>

  <view class='popup_item' wx:if='{{show}}'>
    <!-- <block wx:if='{{inforid}}'>
      <view class='popup_list' wx:for='{{projectlist}}' wx:key='' wx:if='{{item.status}}'>
        <view class='popup_content popup_content2'>
          <view class=''>{{item.name}}</view>
          <view class='popup_input'>
            <view class='input_content'>{{item.num}}{{item.title}}</view>
          </view>
        </view>
      </view>
    </block>
    <block wx:else> -->
    <view class='popup_list' wx:for='{{projectlist}}' wx:key='' wx:if='{{item.status}}'>
      <view class='popup_content popup_content2'>
        <view class=''>{{item.name}}</view>
        <view class='popup_input'>
          <view class='input_content'>{{item.num}}{{item.title}}</view>
        </view>
      </view>
    </view>
    <!-- </block> -->
  </view>
  <view class='box'>
    <!-- 上传图片  -->
    <view class='upload_box'>
      <block wx:for='{{imgs}}' wx:key=''>
        <view class='popup_img'>
          <view class='iconfont icon-guanbi' catchtap='deleteImg' data-index='{{index}}'></view>
          <image src='{{item}}' bindtap='viewImg' data-index='{{index}}'></image>
        </view>
      </block>
      <view class='popup_img' bindtap='uploadImage' wx:if='{{imgs.length<6}}'>
        <view class='iconfont icon-add'></view>
        <view>请上传清晰的保单照片</view>
      </view>
    </view>
  </view>
  <!-- 继续添加保单按钮 -->
  <button class='add_btn' data-type='continue1' formType='submit'>继续添加保单</button>
  <!--底部按钮  -->
  <view class='null_box'></view>
  <view class='bottom_box'>
    <button class='bottom_btn save_btn'>暂存</button>
    <button class='bottom_btn' data-type='complete' formType='submit'>完成</button>
  </view>
</form>
<!-- </block> -->