<!--pages/payee/add/add.wxml-->
<view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back"></image>
  <text style="top:{{isIPX?'54px':'30px'}};">{{form.id?"":"新增"}}重大项目</text>
</view>
<view class="main-box table-box table-boxs" style="margin-top:{{isIPX?'100px':'75px'}};">
  <van-field label="项目名称" value="{{ form.eventName }}" placeholder="项目名称" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.eventName"/>
    <view class="section" style="margin-top: -28rpx;">
      <view class="section__title"><text style="color:red;margin-right: 8rpx;">*</text>发生日期</view>
      <picker mode="date" value="{{form.eventTime}}"  bindchange="onConfirmEventTime">
          <view class="picker">
              {{form.eventTime?form.eventTime:'发生日期'}}
          </view>
      </picker>
    </view>
      <van-popup show="{{form.showMajorType}}" round position="bottom"  bind:close="closeBox" data-name="form.showMajorType">
        <van-picker
          columns="{{majorTypeOptions}}"
          show-toolbar
          value-key="dictLabel"
          bind:cancel="closeBox"
          bind:confirm="onConfirm"
          data-name="form.showMajorType"
          data-value="form.majorType"
        />
      </van-popup>
      <van-field required label="事项类型" readonly value="{{ form.majorTypeText }}" placeholder="请选择事项类型" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down" bindtap="openBox" data-name="form.showMajorType"/>

      <van-popup show="{{form.showApprovalTemplateName}}" round position="bottom"  bind:close="closeBox" data-name="form.showApprovalTemplateName">
        <van-picker
          columns="{{approvalTemplateList}}"
          show-toolbar
          value-key="name"
          bind:cancel="closeBox"
          bind:confirm="onConfirmPickApproval"
          data-name="form.showApprovalTemplateName"
          data-value="form.approvalTemplateId"
        />
      </van-popup>
      <van-field required label="审批流程" readonly value="{{ form.approvalTemplateName }}" placeholder="请选择审批流程" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction="down" bindtap="openBox" data-name="form.showApprovalTemplateName"/>


      <van-field required label="事项内容" readonly border="{{ false }}" />
      <view style="width:100%;margin-bottom: 15px;">
        <hf_editor style="width:100%" height="600rpx" insertPicture="{{true}}" placeholder="编写文章..." bind:Content="getHtml" data-name="form.eventContent" bind:insertImage="insertImage" data-id='hf_editor' id="hf_editor"/>
      </view>

    <van-field required label="理事会提议" readonly border="{{ false }}"/>
    <view style="width:100%;margin-bottom: 15px;">
      <hf_editor style="width:100%" height="600rpx" insertPicture="{{true}}" placeholder="编写文章..." bind:Content="getHtml" data-name="form.dzbty" bind:insertImage="insertImage" id="hf_editor2" data-id='hf_editor2'/>
    </view>
    
    <van-field label="村党支部和理事会商议" border="{{ false }}" required/>
      <view style="width:100%;margin-bottom: 15px;">
        <hf_editor style="width:100%" height="600rpx" insertPicture="{{true}}" placeholder="编写文章..." bind:Content="getHtml" data-name="form.lwhsy" bind:insertImage="insertImage" id="hf_editor3" data-id='hf_editor3'/>
      </view>
    
    <van-field label="党员会审议" border="{{ false }}" required/>
      <view style="width:100%;margin-bottom: 15px;">
        <hf_editor style="width:100%" height="600rpx" insertPicture="{{true}}" placeholder="编写文章..." bind:Content="getHtml" data-name="form.dqyshsyhjy" bind:insertImage="insertImage" id="hf_editor4" data-id='hf_editor4'/>
      </view>
    
    <van-field label="成员（代表）会决议" border="{{ false }}" required/>
      <view style="width:100%;margin-bottom: 15px;">
        <hf_editor style="width:100%" height="600rpx" insertPicture="{{true}}" placeholder="编写文章..." bind:Content="getHtml" data-name="form.cydbhjy" bind:insertImage="insertImage" id="hf_editor5" data-id='hf_editor5'/>
      </view>
    
    <van-field label="决策结果公开" border="{{ false }}" required/>
      <view style="width:100%;margin-bottom: 15px;">
        <hf_editor style="width:100%" height="600rpx" insertPicture="{{true}}" placeholder="编写文章..." bind:Content="getHtml" data-name="form.jcjggk" bind:insertImage="insertImage" id="hf_editor6" data-id='hf_editor6'/>
      </view>
    
    <van-field label="实施情况公开" border="{{ false }}" required/>
      <view style="width:100%;margin-bottom: 15px;">
        <hf_editor style="width:100%" height="600rpx" insertPicture="{{true}}" placeholder="编写文章..." bind:Content="getHtml" data-name="form.ssqkgk" bind:insertImage="insertImage" id="hf_editor7" data-id='hf_editor7'/>
      </view>

    <van-field label="备注" value="{{ form.remark }}" placeholder="备注" border="{{ false }}" bind:change="onChange" input-align="right" data-value="form.remark"/>
</view>
<view class="bottom" wx:if="{{showBtn}}">
  <view class="btn2" bindtap="goSubmit">保存</view>
</view>
<view style="height: 30px;"></view>