<!--pages/apply/paymentTemplate/add/add.wxml-->
<view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image>
  <text style="top:{{isIPX?'54px':'30px'}};">支出申请</text>
</view>
<view class="pure_top" style="top:{{isIPX?'88px':'64px'}};"></view>

      <view class="center" style="margin-top:{{isIPX?'100px':'75px'}};">
      
        <!-- ------------------------------基础信息 start------------------------------ -->
        <text class="title">基础信息</text>
        <view class="main-box table-box">
          <!-- 申请时间 start -->
          <van-field required label="申请时间：" readonly is-link value="{{ form.applyDate }}" placeholder="请选择申请时间" border="{{ false }}" bind:change="onChangeTime" bindtap="openBox" data-name="showApplyDate" input-align="right" />
          <van-calendar show="{{ showApplyDate }}" bind:close="closeBox" bind:confirm="onConfirmTime" show-confirm="{{ false }}" data-name="showApplyDate" />
          <!-- 申请时间 end -->

          <!-- 资金支出类别 start -->
          <van-popup show="{{showCapitalExpenditureType}}" round position="bottom" data-name="showCapitalExpenditureType" bind:close="closeBox">
            <van-picker
              columns="{{capitalExpenditureTypeOptions}}"
              show-toolbar
              value-key="dictLabel"
              bind:cancel="closeBox"
              bind:confirm="onConfirmPick"
              data-name="showCapitalExpenditureType"
              data-value="form.capitalExpenditureType"
            />
          </van-popup>
          <van-field required label="资金支出类别" readonly value="{{ form.capitalExpenditureTypeText }}" placeholder="请选择" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down" bindtap="openBox" data-name="showCapitalExpenditureType"/>
          <!-- 资金支出类别 end -->

          <!-- 转账类型 start -->
          <van-popup show="{{showTransferTypeOption}}" round position="bottom" data-name="showTransferTypeOption" bind:close="closeBox">
            <van-picker
              columns="{{transferTypeOption}}"
              show-toolbar
              value-key="dictLabel"
              bind:cancel="closeBox"
              bind:confirm="onConfirmPick"
              data-name="showTransferTypeOption"
              data-value="form.transferType"
            />
          </van-popup>
          <van-field required label="转账类型" readonly value="{{ form.transferTypeText }}" placeholder="请选择" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down" bindtap="openBox" data-name="showTransferTypeOption"/>
          <!-- 转账类型 end -->

          <!-- 审批流程 start -->
          <van-popup show="{{showApprovalTemplateName}}" round position="bottom"  bind:close="closeBox">
            <van-picker
              columns="{{approvalTemplateNameOptions}}"
              show-toolbar
              value-key="name"
              bind:cancel="closeBox"
              bind:confirm="onConfirmPickApproval"
              data-name="showApprovalTemplateName"
              data-value="approvalTemplateName"
            />
          </van-popup>
          <van-field required readonly value="{{form.approvalTemplateName}}" placeholder="请选择" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down" bindtap="openBox" data-name="showApprovalTemplateName">
            <view slot="label">
              审批流程
            </view>
          </van-field>
          <!-- 审批流程 end -->
          <!-- <text style="text-align: center;color: #2C8E68;padding: 0 0 10px 0;" bind:tap="showS">{{showSteps?'点击关闭审批模板':'点击查看审批模板'}}</text> -->
          <!-- 支出总金额 start -->
          <van-field required readonly label="支出总金额" type="digit" value="{{form.expenditureAmount}}" placeholder="根据下方收款金额自动核算" border="{{ false }}" input-align="right"  bind:input="onChangeMoney"/>
          <!-- 支出总金额 end -->
          <van-collapse value="{{ activeStepsNames }}" border="{{false}}" bind:change="onChangeSteps" bind:close="onCloseSteps">
            <van-collapse-item name="1" border="{{false}}" is-link="{{false}}">
              <view slot="title"><text style="text-align: center;color: #2C8E68;padding: 0;" bind:tap="showS">{{showSteps?'点击关闭审批模板':'点击查看审批模板'}}</text></view>
              <view class="main-box steps-box" style="width: 99%;margin-bottom: 15px;">
                <view class="steps-tit">审批模板</view>
                <van-row wx:for="{{steps}}" wx:key="index">
                  <van-col span="3">
                    <view class="index">{{index+1}}</view>
                    <block wx:if="{{index==0}}">
                      <view class="indexBorder">
                        <view class="ssT" wx:if="{{index>0}}"></view>
                        <view class="yq"></view>
                        <view class="ss" wx:if="{{steps.length != index+1}}"></view>
                      </view>
                    </block>
                    <block wx:else>
                      <view class="indexBorder indexCenter">
                        <view class="ssT" wx:if="{{index>0}}"></view>
                        <view class="yq"></view>
                        <view class="ss" wx:if="{{steps.length != index+1}}"></view>
                      </view>
                    </block>
                  </van-col>
                  <van-col span="21">
                    <van-cell title="{{item.name}}" center="{{true}}" border="{{false}}">
                      <view class="agree" wx:if="{{item.type=='1'}}">{{ item.name }}</view>
                      <view class="in" wx:if="{{item.type=='2'}}">{{ item.name }}</view>
                      <view class="disagree" wx:if="{{item.type=='3'}}">{{ item.name }}</view>
                    </van-cell>

                    <van-cell center border="{{false}}">
                      <view slot="title">
                        <view style="color: #999999;">
                          {{ item.nickName }}
                          <span wx-if="{{item.feeLimit != 0 && item.nickName != null}}">({{item.feeLimit}}元)</span>
                        </view>
                      </view>
                      <view style="color: #999999;font-size: 12px;">{{ item.approvalLevel == 1 ? '组级审批' : item.approvalLevel == 2 ? '村级审批' : item.approvalLevel == 3 ? '镇级审批' : item.approvalLevel == 4 ? '区县审批' : '' }}</view>
                    </van-cell>
                  </van-col>
                </van-row>
              </view>
            </van-collapse-item>
          </van-collapse>
        </view>

        

        <!-- ------------------------------关联项目 start------------------------------ -->
        <block wx:if="{{form.capitalExpenditureType == 2}}">
          <text class="title">关联项目</text>
          <view class="main-box table-box">
            <van-popup show="{{showProject}}" round position="bottom"  bind:close="closeBox" data-name="showProject">
              <van-picker
                columns="{{projectOptions}}"
                show-toolbar
                value-key="projectName"
                bind:cancel="closeBox"
                bind:confirm="onConfirmProject"
                data-name="showProject"
                data-value="form.projectForm"
              />
            </van-popup>
            <van-field required label="项目名称" readonly value="{{ form.projectForm.projectName }}" placeholder="请输入项目名称" border="{{ false }}" bind:change="onChange" input-align="right" is-link bindtap="openBox" data-name="showProject"/>
            <van-field required label="承建单位" readonly value="{{ form.projectForm.projectContractor }}" placeholder="请输入承建单位" border="{{ false }}" bind:change="onChange" input-align="right"/>
            <van-field required label="合同价款(元)" readonly value="{{ form.projectForm.projectAmount }}" placeholder="请输入合同价款（元）" border="{{ false }}" bind:change="onChange" input-align="right"/>

            <van-popup show="{{showProjectFundType}}" round position="bottom"  bind:close="closeBox" data-name="showProjectFundType">
              <van-picker
                columns="{{projectFundTypeOptions}}"
                show-toolbar
                value-key="dictLabel"
                bind:cancel="closeBox"
                bind:confirm="onConfirmPick"
                data-name="showProjectFundType"
                data-value="form.projectForm.projectFundType"
              />
            </van-popup>
            <van-field required label="工程款类型" readonly value="{{ form.projectForm.projectFundTypeText }}" placeholder="请选择工程款类型" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down" bindtap="openBox" data-name="showProjectFundType"/>

            <van-field required label="工程发票号" value="{{ form.projectForm.projectBillNum }}" placeholder="请输入工程发票号" border="{{ false }}" data-value="form.projectForm.projectBillNum" bind:change="onChange" input-align="right"/>
          </view>
        </block>
        <!-- ------------------------------关联项目 end------------------------------ -->

        <!-- ------------------------------关联合同 start------------------------------ -->
        <block wx:if="{{form.capitalExpenditureType == 4}}">
          <text class="title">关联合同</text>
          <view class="main-box table-box">
            <van-popup show="{{form.showContraction}}" round position="bottom"  bind:close="closeBox" data-name="form.showContraction">
              <van-picker
                columns="{{contractionOptions}}"
                show-toolbar
                value-key="name"
                bind:cancel="closeBox"
                bind:confirm="onConfirmContraction"
                data-name="form.showContraction"
                data-value="form.contractionForm"
              />
            </van-popup>
            <van-field required label="合同名称" readonly value="{{ form.contractionForm.name }}" placeholder="请选择合同名称" border="{{ false }}" bind:change="onChange" input-align="right" is-link bindtap="openBox" data-name="form.showContraction"/>
            <van-field required label="合同编码" readonly value="{{ form.contractionForm.code }}" placeholder="请输入合同编码" border="{{ false }}" bind:change="onChange" input-align="right"/>
            <van-field required label="合同价款(元)" readonly value="{{ form.contractionForm.totalAmount }}" placeholder="请输入合同价款（元）" border="{{ false }}" bind:change="onChange" input-align="right"/>
            
          </view>
        </block>
        <!-- ------------------------------关联合同 end------------------------------ -->

        <!-- ------------------------------基础信息 end------------------------------ -->

        <text class="title">付款方信息</text>
        <view class="main-box table-box">
          <!-- <van-popup show="{{form.showTransferType}}" round position="bottom"  bind:close="closeBox" data-name="form.showTransferType">
            <van-picker
              columns="{{transferTypeOptions}}"
              show-toolbar
              value-key="dictLabel"
              bind:cancel="closeBox"
              bind:confirm="onConfirmaTransfer"
              data-name="form.showTransferType"
              data-value="form.transfers[{{index}}]"
            />
          </van-popup>
          <van-field required label="付款方式" readonly value="{{ form.transferTypeText }}" placeholder="请输入付款方式" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down" bindtap="openBox" data-name="form.showTransferType"/> -->

          <van-popup show="{{showAccount}}" round position="bottom"  bind:close="closeBox" data-name="showAccount">
            <van-picker
              columns="{{accountOptions}}"
              show-toolbar
              value-key="accountName"
              bind:cancel="closeBox"
              bind:confirm="onConfirmAccount"
              data-name="showAccount"
              data-value="form"
            />
          </van-popup>
          <van-field required readonly value="{{ form.payer }}" placeholder="请选择付款方名称" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down" bindtap="openBox" data-name="showAccount">
            <view slot="label" style="color: var(--field-label-color,#646566);">
              付款方<van-tag plain type="danger" color="#5CAE77" round style="margin-left:10px;">选择</van-tag>
            </view>
          </van-field>

          <!-- <van-field readonly wx:if="{{form.transferType == 11}}" label="可用余额(元)" value="{{ form.payerAccount }}" placeholder="可用余额" border="{{ false }}" data-value="form.payerAccount" bind:change="onChange" input-align="right"/>
          <block wx:elif="{{form.transferType == 12}}">
            <van-popup show="{{form.showMoneyOrder}}" round position="bottom"  bind:close="closeBox" data-name="showMoneyOrder">
              <van-picker
                columns="{{moneyOrderOptions}}"
                show-toolbar
                value-key="billPayUnit"
                bind:cancel="closeBox"
                bind:confirm="onConfirmMoneyOrder"
                data-name="form.showMoneyOrder"
                data-value="form.transfers[{{index}}]"
                data-index="{{index}}"
              />
            </van-popup>
            <van-field readonly label="出票方" value="{{form.moneyOrderForm.billPayUnit }}" placeholder="请选择出票方" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down" bindtap="openBox" data-name="form.showMoneyOrder"/>

            <van-field readonly label="汇票号码" value="{{ form.moneyOrderForm.orderNum }}" placeholder="汇票号码" border="{{ false }}" bind:change="onChange" input-align="right"/>
            <van-field readonly label="出票金额(元)" value="{{ form.moneyOrderForm.orderAmount }}" placeholder="出票金额(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
            <van-field readonly label="汇票类型" value="{{ form.moneyOrderForm.orderType }}" placeholder="汇票类型" border="{{ false }}" bind:change="onChange" input-align="right"/>
            <van-field readonly label="开票日" value="{{ form.moneyOrderForm.startTime }}" placeholder="开票日" border="{{ false }}" bind:change="onChange" input-align="right"/>
            <van-field readonly label="到期日" value="{{ form.moneyOrderForm.endTime }}" placeholder="到期日" border="{{ false }}" bind:change="onChange" input-align="right"/>
          </block> -->
          <!-- <block wx:else> -->
            <van-field required readonly label="付款方账户" value="{{ form.payerAccount }}" placeholder="请输入付款方账号" border="{{ false }}" bind:change="onChange" input-align="right"/>
            <!-- <van-field required readonly label="所属银行" value="{{ form.bankTypeText }}" placeholder="请输入所属银行" border="{{ false }}" bind:change="onChange" input-align="right"/>
            <van-field readonly label="可用余额(元)" value="{{ form.balance }}" placeholder="可用余额" border="{{ false }}" input-align="right"/> -->
          <!-- </block> -->

        </view>
        <!-- 转账附言 start -->
        <view class="main-box table-box" style="margin-top: 10px;">
          <van-field value="{{form.remark}}" required label="转账附言" type="textarea" maxlength="{{form.bankType == '5'?'10':form.bankType == '6' || form.bankType == '7'?'20':'30'}}" show-word-limit="true" autosize="{{autosize}}" placeholder="附言请尽量简洁并减少标点符号的使用，对私转账时不要出现工资、奖金和劳务费，详情可在‘说明情况’中描述。" border="{{ false }}" input-align="right"  bind:input="onChangeZZFY" data-value="form.remark"/>
        </view>
        <!-- 转账附言 end -->

        <!-- 说明情况 start -->
        <view class="main-box table-box" style="margin-top: 10px;">
          <van-field value="{{form.explainSituation}}" label="说明情况" type="textarea" autosize="{{autosize}}" placeholder="请输入说明情况" border="{{ false }}" input-align="right" bind:input="onChange" data-value="form.explainSituation"/>
        </view>
        <!-- 说明情况 end -->
        <view class="payee_box">
          <text class="title">收款方信息</text>
          <view data-index="{{index}}" data-payer="{{form.payer}}" data-isPeers="{{ form.isPeers }}" data-bankType="{{ form.bankType }}" data-expenditureAmount="{{form.expenditureAmount}}" data-accountType="{{ form.accountType }}" data-totalAmount="{{form.approvalItemTemplate.totalAmount}}" bindtap="uploadFile">
            <image src="/image/apply/icon_exel.png" style="width: 15px;height: 15px;"></image>
            <text>批量上传</text>
          </view>
          <!-- <view class="add" bind:tap="addPayee">+</view> -->
        </view>
        <view class="main-box table-box" style="margin-bottom: 10px;" wx:if="{{form.bankType == 2 || form.bankType == 3}}">
          <van-field required input-align="right" label="行内转账" center border="{{false}}">
            <view slot="input" style="margin-left: auto;">
              <van-radio-group
                value="{{ form.isPeers }}"
                bind:change="onChangeHnzz"
                data-value="form.isPeers"
                direction="horizontal"
                style="margin-left: auto;"
              >
                <van-radio name="Y" checked-color="#2C8E68">是</van-radio>
                <van-radio name="N" checked-color="#2C8E68">否</van-radio>
              </van-radio-group>
            </view>
          </van-field>
        </view>
        <view class="main-box table-box" style="margin-bottom: 10px;"wx:if="{{form.bankType == 10}}">
          <!--  -->
          <van-field required input-align="right" label="账户类型" center border="{{false}}">
            <view slot="input" style="margin-left: auto;">
              <van-radio-group
                value="{{ form.accountType }}"
                bind:change="onChangeHnzz"
                data-value="form.accountType"
                direction="horizontal"
                style="margin-left: auto;"
              >
                <van-radio name="1" checked-color="#2C8E68">公户</van-radio>
                <van-radio name="2" checked-color="#2C8E68">私户</van-radio>
              </van-radio-group>
            </view>
          </van-field>
        </view>
        <view class="center-box">
            <view class="main-box table-box" wx:for="{{form.payeeList}}" wx:if="{{form.payeeList.length <= 10}}" wx:for-index="childrenIndex" wx:key="payeeId">
              <view style="background-color: #2C8E68;display: inline-block;width: 20px;height: 20px;text-align: center;border-radius: 50%;position: absolute;top: -10px;right: {{childrenIndex == 0 ? 0 : 30}}px;" wx:if="{{ childrenIndex+1  == form.payeeList.length}}" data-index="{{childrenIndex}}" bind:tap="addPayee">
                <van-icon name="plus" color="#ffffff" />
              </view>
              <view style="background-color: red;display: inline-block;width: 20px;height: 20px;text-align: center;border-radius: 50%;position: absolute;top: -10px;right: 0;" wx:if="{{ childrenIndex > 0}}" data-index="{{childrenIndex}}" bind:tap="removePayer">
                <van-icon name="minus" color="#ffffff" />
              </view>
              <van-field required readonly value="{{ form.payeeList[childrenIndex].payee }}" placeholder="请选择收款方" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down" bindtap="goPayeeList" data-payer="{{form.payer}}" data-index="{{childrenIndex}}" data-isPeers="{{ form.isPeers }}" data-bankType="{{ form.bankType }}" data-accountType="{{ form.accountType }}" data-transferType="{{ form.transferType }}">
                <view slot="label" style="color: var(--field-label-color,#646566);">
                  收款方<van-tag plain type="danger" color="#5CAE77" round style="margin-left:10px;">选择</van-tag>
                </view>
              </van-field>
              <van-field required readonly label="收款账户" value="{{ form.payeeList[childrenIndex].payeeAccount }}" placeholder="请输入收款账户" border="{{ false }}" bind:change="onChange" input-align="right"/>
              <van-field required readonly label="开户银行" value="{{ form.payeeList[childrenIndex].bankDeposit }}" placeholder="请输入开户银行" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction	="down"/>
              <van-field required label="收入金额" type="digit" type="digit" value="{{ form.payeeList[childrenIndex].incomeAmount }}" placeholder="请输入收入金额"  border="{{ false }}" input-align="right" bind:input="onChangePayeeMoney" data-value="form.payeeList[{{childrenIndex}}].incomeAmount"/>
              <van-field required readonly label="所属银行" value="{{ form.payeeList[childrenIndex].bankTypeText }}" placeholder="请输入所属银行" border="{{ false }}" input-align="right"/>
            </view>

            <view class="main-box table-box payeeList" wx:if="{{form.payeeList.length > 10}}">

              <van-collapse accordion value="{{ form.activeName }}" data-index="{{index}}" bind:change="onChangePayee" bind:close="onClosePayee">
                <van-collapse-item name="{{childrenIndex}}" wx:for="{{form.payeeList}}" wx:if="{{childrenIndex<10}}" wx:for-index="childrenIndex" wx:key="payeeId">

                  <view slot="title">
                    {{ form.payeeList[childrenIndex].payee }}<van-tag wx:if="{{ form.activeName == childrenIndex && form.activeName != '' }}" plain type="danger" color="#5CAE77" round style="margin-left:10px;">收款方</van-tag>
                  </view>
                  <view slot="value" wx:if="{{ form.activeName != childrenIndex }}">
                    ￥{{ form.payeeList[childrenIndex].incomeAmount }}
                  </view>
                  
                  <van-field required readonly label="收款账户" value="{{ form.payeeList[childrenIndex].payeeAccount }}"  border="{{ false }}"  input-align="right"/>
                  <van-field required readonly label="开户银行" value="{{ form.payeeList[childrenIndex].bankDeposit }}" border="{{ false }}"  input-align="right"/>
                  <van-field required readonly label="收入金额" value="{{ form.payeeList[childrenIndex].incomeAmount }}" border="{{ false }}" type="digit" input-align="right"/>
                  <van-field required readonly label="所属银行" value="{{ form.payeeList[childrenIndex].bankTypeText }}" border="{{ false }}" input-align="right"/>
                  <!-- <van-field required readonly label="转账状态" value="{{ form.payeeList[childrenIndex].transferStatusText }}" border="{{ false }}" input-align="right"/>
                  <van-field required readonly label="交易结果描述" value="{{ form.payeeList[childrenIndex].causeFailure }}" border="{{ false }}" input-align="right"/> -->
                  
                </van-collapse-item>
              </van-collapse>
              <text wx:if="{{form.payeeList.length>10}}" style="text-align: center;color: #2C8E68;padding-top: 10px;" data-option="{{form.payeeList}}" bindtap="goPayee">查看更多</text>
<!-- 

              <van-field required readonly label="{{ form.payeeList[childrenIndex].payee }}" value="￥{{ form.payeeList[childrenIndex].incomeAmount }}" wx:for="{{form.payeeList}}"  wx:for-index="childrenIndex" wx:key="payeeId" is-link placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" input-class="aaa" /> -->
            </view>
        </view>

        <!-- wx:if="{{showFile}}" -->

        <view class="file_box" wx:if="{{showFile}}" >
          <view class="title">上传附件</view>
          <view class="add van-cell-text">总数<van-tag round color="#5CAE77" plain style="margin-left: 10px;"> {{form.fileNum?form.fileNum:0}}张 </van-tag></view>
        </view>
        <view class="main-box" wx:if="{{showFile}}" >
          <view class="fj-box">
            <view class="fj-li">
              <view class="fj-tt">
                <text>收据</text><van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag>
              </view>
              <view class="img_box">
                <view class="img_list" wx:for="{{form.SJimage}}" wx:for-index="childrenIndex" wx:key="id">
                  <image class="img_li" src="{{item.tempFilePath}}" data-option="{{form.SJimage}}" data-index="{{childrenIndex}}" bindtap="openPreview"></image>
                  <van-icon name="/image/apply/img_delete.png" size="14px" data-index="{{childrenIndex}}" data-parentsIndex="{{index}}" data-name="form.SJimage" data-options="{{form.SJimage}}" data-id="{{item.id}}" bindtap="deleteimg" />
                </view>
                <view class="img_list">
                  <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="SJtakephoto"></image>
                </view>
              </view>
            </view>
            <view class="fj-li">
              <view class="fj-tt">
                <text>发票</text><van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag>
              </view>
              <view class="img_box">

                <view class="img_list" wx:for="{{form.FPimage}}" wx:for-index="childrenIndex" wx:key="id">
                  <image class="img_li" src="{{item.tempFilePath}}" data-option="{{form.FPimage}}" data-index="{{childrenIndex}}" bindtap="openPreview"></image>
                  <van-icon name="/image/apply/img_delete.png" size="14px" data-index="{{childrenIndex}}" data-parentsIndex="{{index}}" data-name="form.FPimage" data-options="{{form.FPimage}}" data-id="{{item.id}}" bindtap="deleteimg" />
                </view>
                <view class="img_list">
                  <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="FPtakephoto"></image>
                </view>
              </view>
            </view>
            <view class="fj-li">
              <view class="fj-tt">
                <text>其他</text><van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag>
              </view>
              <view class="img_box">
                <view class="img_list" wx:for="{{form.QTimage}}" wx:for-index="childrenIndex" wx:key="id">
                  <image class="img_li" src="{{item.tempFilePath}}" data-option="{{form.QTimage}}" data-index="{{childrenIndex}}" bindtap="openPreview" ></image>
                  <van-icon name="/image/apply/img_delete.png" size="14px" data-index="{{childrenIndex}}" data-parentsIndex="{{index}}" data-name="form.QTimage" data-options="{{form.QTimage}}" data-id="{{item.id}}" bindtap="deleteimg" />
                </view>
                <view class="img_list">
                  <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="QTtakephoto"></image>
                </view>
              </view>
            </view>
            <view class="fj-li">
              <view class="fj-tt">
                <text>四议两公开</text><van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag>
              </view>
              <view class="img_box">
                <view class="img_list" wx:for="{{form.SYLGKimage}}" wx:for-index="childrenIndex" wx:key="id">
                  <image class="img_li" src="{{item.tempFilePath}}" data-option="{{form.SYLGKimage}}" data-index="{{childrenIndex}}" bindtap="openPreview" ></image>
                  <van-icon name="/image/apply/img_delete.png" size="14px" data-index="{{childrenIndex}}" data-parentsIndex="{{index}}" data-name="form.SYLGKimage" data-options="{{form.SYLGKimage}}" data-id="{{item.id}}" bindtap="deleteimg" />
                </view>
                <view class="img_list">
                  <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="SYLGKtakephoto"></image>
                </view>
              </view>
            </view>
          </view>
        </view>

        <!-- <view class="main-box steps-box">
          <view class="steps-tit">审批流程</view>
          <van-row wx:for="{{steps}}" wx:key="index">
            <van-col span="3">
              <view class="index">{{index+1}}</view>
              <block wx:if="{{index==0}}">
                <view class="indexBorder">
                  <view class="ssT" wx:if="{{index>0}}"></view>
                  <view class="yq"></view>
                  <view class="ss" wx:if="{{steps.length != index+1}}"></view>
                </view>
              </block>
              <block wx:else>
                <view class="indexBorder indexCenter">
                  <view class="ssT" wx:if="{{index>0}}"></view>
                  <view class="yq"></view>
                  <view class="ss" wx:if="{{steps.length != index+1}}"></view>
                </view>
              </block>
            </van-col>
            <van-col span="21">
              <van-cell title="{{item.activityName}}" center="{{true}}" border="{{false}}">
                <view class="agree" wx:if="{{item.type=='1'}}">{{ item.assigneeName }}</view>
                <view class="in" wx:if="{{item.type=='2'}}">{{ item.assigneeName }}</view>
                <view class="disagree" wx:if="{{item.type=='3'}}">{{ item.assigneeName }}</view>
              </van-cell>

              <van-cell center border="{{false}}">
                <view slot="title">
                  <view style="color: #999999;">{{ item.durationInMillis }}</view>
                </view>
                <view style="color: #999999;font-size: 12px;">{{ item.endTime }}</view>
              </van-cell>
            </van-col>
          </van-row>
        </view> -->
      </view>

<block wx:if="{{!isUpdate}}">
  <view class="bottom">
    <!-- <view class="btn1" data-type="3" bindtap="goSubmit">提交复核</view> -->
    <!-- <view class="btn1" bindtap="back">上一步</view> -->
    <view class="btn2" data-type="0" bindtap="goSubmitNew" hover-class="btnView" wx:if="{{!showFile}}">保存</view>
    <view class="btn1" bindtap="back" wx:if="{{showFile}}">返回</view>
    <view class="btn2" data-type="0" bindtap="goCustomSubmit" hover-class="btnView" wx:if="{{showFile}}">提交</view>
  </view>
</block>
<block wx:if="{{isUpdate}}">
  <view class="bottom">
    <view class="btn1" data-type="2" bindtap="goKeepNew">保存</view>
    <view class="btn2" data-type="0" bindtap="goCustomSubmit2" hover-class="btnView">提交</view>
  </view>
</block>
<view class="ipXbtn"></view>
<van-dialog
  use-slot
  title="支付模板"
  show="{{ showDialog }}"
  bind:close="onClose"
  theme='round-button'
  confirmButtonText="保存"
  data-type="1"
  bind:confirm="goSubmit"
  closeOnClickOverlay="{{ true }}"
>
  <input class="input_tit" placeholder="请输入模板名称" style="width: 90%;margin: 0 auto;margin-top: 15px;margin-bottom: 10px;text-align: center;" value="{{form.approvalItemTemplate.templateName}}" bindinput="bindNameInput"/> 
</van-dialog>