|
- <!--pages/handle/expenditureAudit/expenditureAudit.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------------------------------ -->
- <van-collapse accordion value="{{ activeNames }}" bind:change="onChangeBox" bind:open="onOpen" bind:close="onCloseSecond">
- <van-collapse-item name="1" disabled="{{false}}" is-link="{{false}}">
- <view slot="title" wx:if="{{!form.showTitle}}">
- <text class="title">{{ form.transferTypeText }}</text>
- </view>
- <view slot="title" class="tit_box" wx:if="{{!form.showTitle}}">
- <!-- <text class="title" style="text-align: center;">事项</text> -->
- <view class="top-box">
- <view class="money_box">¥<input class="input_money" disabled placeholder="金额" placeholder-style="color:#E90000;" value="{{form.expenditureAmount}}"/></view>
- <van-cell-group border="{{ false }}">
- <van-cell title="{{form.payer}}" border="{{ false }}" center >
- <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_fu.png" style="width: 20px;height: 20px;vertical-align: middle;"></image></view>
- </van-cell>
-
- <van-cell title="{{form.payeeList[0].payee}}" wx:if="{{form.payeeList.length < 2}}" center border="{{ false }}">
- <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_shou.png" style="width: 20px;height: 20px;vertical-align: middle;"></image></view>
- </van-cell>
- <van-cell title="共{{form.payeeList.length}}条" wx:if="{{form.payeeList.length > 1}}" center border="{{ false }}">
- <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_shou.png" style="width: 20px;height: 20px;"></image></view>
- </van-cell>
-
- <van-field readonly value="转账附言:{{ form.remark }}" border="{{ false }}" input-align="left"/>
- <van-field readonly value="说明情况:{{ form.explainSituation==null?'':form.explainSituation }}" border="{{ false }}" input-align="left"/>
- <van-field readonly value="申请时间:{{ form.applyDate }}" border="{{ false }}" input-align="left"/>
-
- <view class="btnBox">
- <image src="/image/apply/down.png" class="down"></image>
- <!-- <image src="/image/apply/icon_update.png" class="update" bindtap="goUpdate"></image> -->
- </view>
- </van-cell-group>
- </view>
- </view>
- <view class="center">
- <text class="title">基础信息</text>
- <view class="main-box table-box">
- <!-- 申请时间 start -->
- <van-field required label="申请时间:" readonly 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" arrow-direction ="down" bindtap="openBox" data-name="showCapitalExpenditureType"/>
- <!-- 资金支出类别 end -->
-
- <!-- 转账类型 start -->
- <!-- <van-field required input-align="right" label="转账类型" center border="{{false}}">
- <view slot="input" style="margin-left: auto;">
- <van-radio-group
- value="{{ form.transferType }}"
- bind:change="onChange"
- direction="horizontal"
- data-value="form.transferType"
- style="margin-left: auto;"
- disabled
- >
- <van-radio name="1" checked-color="#2C8E68">银行转账</van-radio>
- <van-radio name="2" checked-color="#2C8E68">信用卡转账</van-radio>
- </van-radio-group>
- </view>
- </van-field> -->
- <van-field required label="转账类型" readonly value="{{ form.transferTypeText }}" placeholder="请选择" border="{{ false }}" bind:change="onChange" input-align="right" 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 label="审批流程" readonly value="{{form.approvalTemplateName}}" placeholder="请选择" border="{{ false }}" bind:change="onChange" input-align="right" arrow-direction ="down" bindtap="openBox" data-name="showApprovalTemplateName"/>
- <!-- 审批流程 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>
- <view style="color: #999999;font-size: 12px;">{{ item.approvalLevel == 1 ? '组级审批' : item.approvalLevel == 2 ? '村级审批' : item.approvalLevel == 3 ? '镇级审批' : item.approvalLevel == 4 ? '区县审批' : '' }}</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>
- </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 label="项目名称" readonly value="{{ form.projectForm.projectName }}" placeholder="请输入项目名称" border="{{ false }}" bind:change="onChange" input-align="right" bindtap="openBox" data-name="showProject"/>
- <van-field label="承建单位" readonly value="{{ form.projectForm.projectContractor }}" placeholder="请输入承建单位" border="{{ false }}" bind:change="onChange" input-align="right"/>
- <van-field 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 label="工程款类型" readonly value="{{ form.projectForm.projectFundTypeText }}" placeholder="请选择工程款类型" border="{{ false }}" bind:change="onChange" input-align="right" arrow-direction ="down" bindtap="openBox" data-name="showProjectFundType"/>
-
- <van-field readonly 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 label="合同名称" readonly value="{{ form.contractionForm.name }}" placeholder="请选择合同名称" border="{{ false }}" bind:change="onChange" input-align="right" bindtap="openBox" data-name="form.showContraction"/>
- <van-field label="合同编码" readonly value="{{ form.contractionForm.code }}" placeholder="请输入合同编码" border="{{ false }}" bind:change="onChange" input-align="right"/>
- <van-field 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" 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 readonly value="{{form.remark}}" required label="转账附言" type="textarea" autosize="{{autosize}}" placeholder="附言请尽量简洁减少标点符号的使用,详情可在”说明情况“中描述" border="{{ false }}" input-align="right" bind:input="onChange" data-value="form.remark"/>
- </view>
- <!-- 转账附言 end -->
-
- <!-- 说明情况 start -->
- <view class="main-box table-box" style="margin-top: 10px;">
- <van-field readonly 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.bankAccountType }}" 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 || form.bankType == 4}}">
- <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="onChange"
- data-value="form.isPeers"
- direction="horizontal"
- style="margin-left: auto;"
- disabled
- >
- <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="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">
- <van-field required readonly value="{{ form.payeeList[childrenIndex].payee }}" placeholder="请选择收款方" border="{{ false }}" bind:change="onChange" input-align="right" arrow-direction ="down" data-payer="{{form.payer}}" data-index="{{childrenIndex}}" data-isPeers="{{ form.isPeers }}" data-bankType="{{ form.bankType }}" data-accountType="{{ form.bankAccountType }}" data-transferType="{{ form.transferType }}">
- <view slot="label" style="color: var(--field-label-color,#646566);">
- 收款方
- </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" arrow-direction ="down"/>
- <van-field required readonly label="收入金额" 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 }}" 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>
- </van-collapse-item>
- </van-collapse>
-
-
- <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>
- </view>
- <view class="img_list" wx:if="{{!form.SJimage}}">
- <image class="img_li img_add" src="/image/apply/fj_upload.png"></image>
- </view>
- <!-- <van-empty wx:if="{{!form.SJimage}}" description="暂无收据" style="margin: 0 auto;" /> -->
- </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>
- </view>
- <view class="img_list" wx:if="{{!form.FPimage}}">
- <image class="img_li img_add" src="/image/apply/fj_upload.png"></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>
- </view>
- <view class="img_list" wx:if="{{!form.QTimage}}">
- <image class="img_li img_add" src="/image/apply/fj_upload.png"></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>
- <text class="title" style="padding: 0 calc(3% + 20px);">审批流程</text>
-
- <view class="main-box steps-box">
- <!-- <view class="steps-tit">审批流程</view> -->
- <van-row wx:for="{{spsxOptions}}" wx:key="index">
- <van-col span="3">
- <view class="index {{(item.approverStatus != null||index==0) ? 'active':'' }}">{{index+1}}</view>
- <!-- :class="{'indexCenter':index==0 ? false : true}" -->
- <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="{{spsxOptions.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="{{spsxOptions.length != index+1}}"></view>
- </view>
- </block>
- </van-col>
- <van-col span="21" style="height: 77px;">
- <van-cell center="{{true}}" border="{{false}}">
- <view slot="title" class="cellTit">
- <text wx:if="{{item.electronicSignature == null}}">{{item.assigneeName}}</text>
- <image wx:else src="{{item.electronicSignature}}" style="height: 24px;width: 48px;"></image>
- <text wx:if="{{item.deptLabel != null}}">{{item.deptLabel}}</text>
- </view>
- <view class="agree" wx:if="{{item.approverStatus=='2'}}">同意</view>
- <view class="in" wx:elif="{{(item.assigneeName==nickName && pageType!='see')}}">审核中</view>
- <view class="disagree" wx:elif="{{item.approverStatus=='3'}}">驳回</view>
- </van-cell>
-
- <van-cell center border="{{false}}">
- <view slot="title" style="margin-top: 10px;">
- <view style="color: #999999;line-height: 32px;">{{ item.comment }}</view>
- </view>
- <view style="color: #999999;font-size: 12px;margin-top: 10px;line-height: 32px;">{{ sub.times(item.time) }}</view>
- </van-cell>
-
- </van-col>
- </van-row>
- </view>
- <van-empty wx:if="{{spsxOptions.length<1&&pageType=='see'}}" description="暂无审核数据" />
- <view class="main-box" wx:if="{{pageType!='see'}}">
- <input class="input_tit" value="{{comment}}" placeholder="请输入审批意见" bindinput="commentInput" style="margin-top: 10px;margin-bottom: 0;"/>
- <!-- -->
- </view>
- <view class="bottom" style="margin-bottom: 0px;" wx:if="{{pageType!='see'}}">
- <button type="warn" plain class="btnDis" bindtap="goDis">驳回</button>
- <button type="primary" class="btnAgree" bindtap="goAgree">同意</button>
- </view>
- <!-- <view class="bottom" wx:if="{{pageType!='see'}}">
- <button type="primary" plain class="btnOther" bindtap="goAgree">转办</button>
- </view> -->
- <view class="ipXbtn"></view>
- <wxs module="sub">
- var times = function(time){
- console.log(time)
- return time.substring(0,10);
- }
- module.exports.times = times;
- </wxs>
|