微信小程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

515 linhas
31 KiB

  1. <!--pages/handle/expenditureAudit/expenditureAudit.wxml-->
  2. <view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">支出申请审批</text>
  5. </view>
  6. <view class="pure_top" style="top:{{isIPX?'88px':'64px'}};"></view>
  7. <view class="center" style="margin-top:{{isIPX?'100px':'75px'}};">
  8. <!-- ------------------------------基础信息 start------------------------------ -->
  9. <van-collapse accordion value="{{ activeNames }}" bind:change="onChangeBox" bind:open="onOpen" bind:close="onCloseSecond">
  10. <van-collapse-item name="1" disabled="{{false}}" is-link="{{false}}">
  11. <view slot="title" wx:if="{{!form.showTitle}}">
  12. <text class="title">{{ form.transferTypeText }}</text>
  13. </view>
  14. <view slot="title" class="tit_box" wx:if="{{!form.showTitle}}">
  15. <!-- <text class="title" style="text-align: center;">事项</text> -->
  16. <view class="top-box">
  17. <view class="money_box">¥<input class="input_money" disabled placeholder="金额" placeholder-style="color:#E90000;" value="{{form.expenditureAmount}}"/></view>
  18. <van-cell-group border="{{ false }}">
  19. <van-cell title="{{form.payer}}" border="{{ false }}" center >
  20. <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_fu.png" style="width: 20px;height: 20px;vertical-align: middle;"></image></view>
  21. </van-cell>
  22. <van-cell title="{{form.payeeList[0].payee}}" wx:if="{{form.payeeList.length < 2}}" center border="{{ false }}">
  23. <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_shou.png" style="width: 20px;height: 20px;vertical-align: middle;"></image></view>
  24. </van-cell>
  25. <van-cell title="共{{form.payeeList.length}}条" wx:if="{{form.payeeList.length > 1}}" center border="{{ false }}">
  26. <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_shou.png" style="width: 20px;height: 20px;"></image></view>
  27. </van-cell>
  28. <van-field readonly value="转账附言:{{ form.remark }}" border="{{ false }}" input-align="left"/>
  29. <van-field readonly value="说明情况:{{ form.explainSituation==null?'':form.explainSituation }}" border="{{ false }}" input-align="left"/>
  30. <van-field readonly value="申请时间:{{ form.applyDate }}" border="{{ false }}" input-align="left"/>
  31. <view class="btnBox">
  32. <image src="/image/apply/down.png" class="down"></image>
  33. <!-- <image src="/image/apply/icon_update.png" class="update" bindtap="goUpdate"></image> -->
  34. </view>
  35. </van-cell-group>
  36. </view>
  37. </view>
  38. <view class="center">
  39. <text class="title">基础信息</text>
  40. <view class="main-box table-box">
  41. <!-- 申请时间 start -->
  42. <van-field required label="申请时间:" readonly value="{{ form.applyDate }}" placeholder="请选择申请时间" border="{{ false }}" bind:change="onChangeTime" bindtap="openBox" data-name="showApplyDate" input-align="right" />
  43. <van-calendar show="{{ showApplyDate }}" bind:close="closeBox" bind:confirm="onConfirmTime" show-confirm="{{ false }}" data-name="showApplyDate" />
  44. <!-- 申请时间 end -->
  45. <!-- 资金支出类别 start -->
  46. <van-popup show="{{showCapitalExpenditureType}}" round position="bottom" data-name="showCapitalExpenditureType" bind:close="closeBox">
  47. <van-picker
  48. columns="{{capitalExpenditureTypeOptions}}"
  49. show-toolbar
  50. value-key="dictLabel"
  51. bind:cancel="closeBox"
  52. bind:confirm="onConfirmPick"
  53. data-name="showCapitalExpenditureType"
  54. data-value="form.capitalExpenditureType"
  55. />
  56. </van-popup>
  57. <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"/>
  58. <!-- 资金支出类别 end -->
  59. <!-- 转账类型 start -->
  60. <!-- <van-field required input-align="right" label="转账类型" center border="{{false}}">
  61. <view slot="input" style="margin-left: auto;">
  62. <van-radio-group
  63. value="{{ form.transferType }}"
  64. bind:change="onChange"
  65. direction="horizontal"
  66. data-value="form.transferType"
  67. style="margin-left: auto;"
  68. disabled
  69. >
  70. <van-radio name="1" checked-color="#2C8E68">银行转账</van-radio>
  71. <van-radio name="2" checked-color="#2C8E68">信用卡转账</van-radio>
  72. </van-radio-group>
  73. </view>
  74. </van-field> -->
  75. <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"/>
  76. <!-- 转账类型 end -->
  77. <!-- 审批流程 start -->
  78. <van-popup show="{{showApprovalTemplateName}}" round position="bottom" bind:close="closeBox">
  79. <van-picker
  80. columns="{{approvalTemplateNameOptions}}"
  81. show-toolbar
  82. value-key="name"
  83. bind:cancel="closeBox"
  84. bind:confirm="onConfirmPickApproval"
  85. data-name="showApprovalTemplateName"
  86. data-value="approvalTemplateName"
  87. />
  88. </van-popup>
  89. <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"/>
  90. <!-- 审批流程 end -->
  91. <!-- <text style="text-align: center;color: #2C8E68;padding: 0 0 10px 0;" bind:tap="showS">{{showSteps?'点击关闭审批模板':'点击查看审批模板'}}</text> -->
  92. <!-- 支出总金额 start -->
  93. <van-field required readonly label="支出总金额" type="digit" value="{{form.expenditureAmount}}" placeholder="根据下方收款金额自动核算" border="{{ false }}" input-align="right" bind:input="onChangeMoney"/>
  94. <!-- 支出总金额 end -->
  95. <van-collapse value="{{ activeStepsNames }}" border="{{false}}" bind:change="onChangeSteps" bind:close="onCloseSteps">
  96. <van-collapse-item name="1" border="{{false}}" is-link="{{false}}">
  97. <view slot="title"><text style="text-align: center;color: #2C8E68;padding: 0;" bind:tap="showS">{{showSteps?'点击关闭审批模板':'点击查看审批模板'}}</text></view>
  98. <view class="main-box steps-box" style="width: 99%;margin-bottom: 15px;">
  99. <view class="steps-tit">审批模板</view>
  100. <van-row wx:for="{{steps}}" wx:key="index">
  101. <van-col span="3">
  102. <view class="index">{{index+1}}</view>
  103. <block wx:if="{{index==0}}">
  104. <view class="indexBorder">
  105. <view class="ssT" wx:if="{{index>0}}"></view>
  106. <view class="yq"></view>
  107. <view class="ss" wx:if="{{steps.length != index+1}}"></view>
  108. </view>
  109. </block>
  110. <block wx:else>
  111. <view class="indexBorder indexCenter">
  112. <view class="ssT" wx:if="{{index>0}}"></view>
  113. <view class="yq"></view>
  114. <view class="ss" wx:if="{{steps.length != index+1}}"></view>
  115. </view>
  116. </block>
  117. </van-col>
  118. <van-col span="21">
  119. <van-cell title="{{item.name}}" center="{{true}}" border="{{false}}">
  120. <view class="agree" wx:if="{{item.type=='1'}}">{{ item.name }}</view>
  121. <view class="in" wx:if="{{item.type=='2'}}">{{ item.name }}</view>
  122. <view class="disagree" wx:if="{{item.type=='3'}}">{{ item.name }}</view>
  123. <view style="color: #999999;font-size: 12px;">{{ item.approvalLevel == 1 ? '组级审批' : item.approvalLevel == 2 ? '村级审批' : item.approvalLevel == 3 ? '镇级审批' : item.approvalLevel == 4 ? '区县审批' : '' }}</view>
  124. </van-cell>
  125. <van-cell center border="{{false}}">
  126. <view slot="title">
  127. <view style="color: #999999;">
  128. {{ item.nickName }}
  129. <span wx-if="{{item.feeLimit != 0 && item.nickName != null}}">({{item.feeLimit}}元)</span>
  130. </view>
  131. </view>
  132. </van-cell>
  133. </van-col>
  134. </van-row>
  135. </view>
  136. </van-collapse-item>
  137. </van-collapse>
  138. </view>
  139. <!-- ------------------------------关联项目 start------------------------------ -->
  140. <block wx:if="{{form.capitalExpenditureType == 2}}">
  141. <text class="title">关联项目</text>
  142. <view class="main-box table-box">
  143. <van-popup show="{{showProject}}" round position="bottom" bind:close="closeBox" data-name="showProject">
  144. <van-picker
  145. columns="{{projectOptions}}"
  146. show-toolbar
  147. value-key="projectName"
  148. bind:cancel="closeBox"
  149. bind:confirm="onConfirmProject"
  150. data-name="showProject"
  151. data-value="form.projectForm"
  152. />
  153. </van-popup>
  154. <van-field label="项目名称" readonly value="{{ form.projectForm.projectName }}" placeholder="请输入项目名称" border="{{ false }}" bind:change="onChange" input-align="right" bindtap="openBox" data-name="showProject"/>
  155. <van-field label="承建单位" readonly value="{{ form.projectForm.projectContractor }}" placeholder="请输入承建单位" border="{{ false }}" bind:change="onChange" input-align="right"/>
  156. <van-field label="合同价款(元)" readonly value="{{ form.projectForm.projectAmount }}" placeholder="请输入合同价款(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
  157. <van-popup show="{{showProjectFundType}}" round position="bottom" bind:close="closeBox" data-name="showProjectFundType">
  158. <van-picker
  159. columns="{{projectFundTypeOptions}}"
  160. show-toolbar
  161. value-key="dictLabel"
  162. bind:cancel="closeBox"
  163. bind:confirm="onConfirmPick"
  164. data-name="showProjectFundType"
  165. data-value="form.projectForm.projectFundType"
  166. />
  167. </van-popup>
  168. <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"/>
  169. <van-field readonly label="工程发票号" value="{{ form.projectForm.projectBillNum }}" placeholder="请输入工程发票号" border="{{ false }}" data-value="form.projectForm.projectBillNum" bind:change="onChange" input-align="right"/>
  170. </view>
  171. </block>
  172. <!-- ------------------------------关联项目 end------------------------------ -->
  173. <!-- ------------------------------关联合同 start------------------------------ -->
  174. <block wx:if="{{form.capitalExpenditureType == 4}}">
  175. <text class="title">关联合同</text>
  176. <view class="main-box table-box">
  177. <van-popup show="{{form.showContraction}}" round position="bottom" bind:close="closeBox" data-name="form.showContraction">
  178. <van-picker
  179. columns="{{contractionOptions}}"
  180. show-toolbar
  181. value-key="name"
  182. bind:cancel="closeBox"
  183. bind:confirm="onConfirmContraction"
  184. data-name="form.showContraction"
  185. data-value="form.contractionForm"
  186. />
  187. </van-popup>
  188. <van-field label="合同名称" readonly value="{{ form.contractionForm.name }}" placeholder="请选择合同名称" border="{{ false }}" bind:change="onChange" input-align="right" bindtap="openBox" data-name="form.showContraction"/>
  189. <van-field label="合同编码" readonly value="{{ form.contractionForm.code }}" placeholder="请输入合同编码" border="{{ false }}" bind:change="onChange" input-align="right"/>
  190. <van-field label="合同价款(元)" readonly value="{{ form.contractionForm.totalAmount }}" placeholder="请输入合同价款(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
  191. </view>
  192. </block>
  193. <!-- ------------------------------关联合同 end------------------------------ -->
  194. <!-- ------------------------------基础信息 end------------------------------ -->
  195. <text class="title">付款方信息</text>
  196. <view class="main-box table-box">
  197. <!-- <van-popup show="{{form.showTransferType}}" round position="bottom" bind:close="closeBox" data-name="form.showTransferType">
  198. <van-picker
  199. columns="{{transferTypeOptions}}"
  200. show-toolbar
  201. value-key="dictLabel"
  202. bind:cancel="closeBox"
  203. bind:confirm="onConfirmaTransfer"
  204. data-name="form.showTransferType"
  205. data-value="form.transfers[{{index}}]"
  206. />
  207. </van-popup>
  208. <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"/> -->
  209. <van-popup show="{{showAccount}}" round position="bottom" bind:close="closeBox" data-name="showAccount">
  210. <van-picker
  211. columns="{{accountOptions}}"
  212. show-toolbar
  213. value-key="accountName"
  214. bind:cancel="closeBox"
  215. bind:confirm="onConfirmAccount"
  216. data-name="showAccount"
  217. data-value="form"
  218. />
  219. </van-popup>
  220. <van-field required readonly value="{{ form.payer }}" placeholder="请选择付款方名称" border="{{ false }}" bind:change="onChange" input-align="right" arrow-direction ="down" bindtap="openBox" data-name="showAccount">
  221. <view slot="label" style="color: var(--field-label-color,#646566);">
  222. 付款方<van-tag plain type="danger" color="#5CAE77" round style="margin-left:10px;">选择</van-tag>
  223. </view>
  224. </van-field>
  225. <!-- <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"/>
  226. <block wx:elif="{{form.transferType == 12}}">
  227. <van-popup show="{{form.showMoneyOrder}}" round position="bottom" bind:close="closeBox" data-name="showMoneyOrder">
  228. <van-picker
  229. columns="{{moneyOrderOptions}}"
  230. show-toolbar
  231. value-key="billPayUnit"
  232. bind:cancel="closeBox"
  233. bind:confirm="onConfirmMoneyOrder"
  234. data-name="form.showMoneyOrder"
  235. data-value="form.transfers[{{index}}]"
  236. data-index="{{index}}"
  237. />
  238. </van-popup>
  239. <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"/>
  240. <van-field readonly label="汇票号码" value="{{ form.moneyOrderForm.orderNum }}" placeholder="汇票号码" border="{{ false }}" bind:change="onChange" input-align="right"/>
  241. <van-field readonly label="出票金额(元)" value="{{ form.moneyOrderForm.orderAmount }}" placeholder="出票金额(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
  242. <van-field readonly label="汇票类型" value="{{ form.moneyOrderForm.orderType }}" placeholder="汇票类型" border="{{ false }}" bind:change="onChange" input-align="right"/>
  243. <van-field readonly label="开票日" value="{{ form.moneyOrderForm.startTime }}" placeholder="开票日" border="{{ false }}" bind:change="onChange" input-align="right"/>
  244. <van-field readonly label="到期日" value="{{ form.moneyOrderForm.endTime }}" placeholder="到期日" border="{{ false }}" bind:change="onChange" input-align="right"/>
  245. </block> -->
  246. <!-- <block wx:else> -->
  247. <van-field required readonly label="付款方账户" value="{{ form.payerAccount }}" placeholder="请输入付款方账号" border="{{ false }}" bind:change="onChange" input-align="right"/>
  248. <!-- <van-field required readonly label="所属银行" value="{{ form.bankTypeText }}" placeholder="请输入所属银行" border="{{ false }}" bind:change="onChange" input-align="right"/>
  249. <van-field readonly label="可用余额(元)" value="{{ form.balance }}" placeholder="可用余额" border="{{ false }}" input-align="right"/> -->
  250. <!-- </block> -->
  251. </view>
  252. <!-- 转账附言 start -->
  253. <view class="main-box table-box" style="margin-top: 10px;">
  254. <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"/>
  255. </view>
  256. <!-- 转账附言 end -->
  257. <!-- 说明情况 start -->
  258. <view class="main-box table-box" style="margin-top: 10px;">
  259. <van-field readonly value="{{form.explainSituation}}" label="说明情况" type="textarea" autosize="{{autosize}}" placeholder="请输入说明情况" border="{{ false }}" input-align="right" bind:input="onChange" data-value="form.explainSituation"/>
  260. </view>
  261. <!-- 说明情况 end -->
  262. <view class="payee_box">
  263. <text class="title">收款方信息</text>
  264. <!-- <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">
  265. <image src="/image/apply/icon_exel.png" style="width: 15px;height: 15px;"></image>
  266. <text>批量上传</text>
  267. </view>
  268. <view class="add" bind:tap="addPayee">+</view> -->
  269. </view>
  270. <view class="main-box table-box" style="margin-bottom: 10px;" wx:if="{{form.bankType == 2 || form.bankType == 3 || form.bankType == 4}}">
  271. <van-field required input-align="right" label="行内转账" center border="{{false}}">
  272. <view slot="input" style="margin-left: auto;">
  273. <van-radio-group
  274. value="{{ form.isPeers }}"
  275. bind:change="onChange"
  276. data-value="form.isPeers"
  277. direction="horizontal"
  278. style="margin-left: auto;"
  279. disabled
  280. >
  281. <van-radio name="Y" checked-color="#2C8E68">是</van-radio>
  282. <van-radio name="N" checked-color="#2C8E68">否</van-radio>
  283. </van-radio-group>
  284. </view>
  285. </van-field>
  286. </view>
  287. <view class="center-box">
  288. <view class="main-box table-box" wx:for="{{form.payeeList}}" wx:if="{{form.payeeList.length <= 10}}" wx:for-index="childrenIndex" wx:key="payeeId">
  289. <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 }}">
  290. <view slot="label" style="color: var(--field-label-color,#646566);">
  291. 收款方
  292. </view>
  293. </van-field>
  294. <van-field required readonly label="收款账户" value="{{ form.payeeList[childrenIndex].payeeAccount }}" placeholder="请输入收款账户" border="{{ false }}" bind:change="onChange" input-align="right"/>
  295. <van-field required readonly label="开户银行" value="{{ form.payeeList[childrenIndex].bankDeposit }}" placeholder="请输入开户银行" border="{{ false }}" bind:change="onChange" input-align="right" arrow-direction ="down"/>
  296. <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"/>
  297. <van-field required readonly label="所属银行" value="{{ form.payeeList[childrenIndex].bankTypeText }}" placeholder="请输入所属银行" border="{{ false }}" input-align="right"/>
  298. </view>
  299. <view class="main-box table-box payeeList" wx:if="{{form.payeeList.length > 10}}">
  300. <van-collapse accordion value="{{ form.activeName }}" data-index="{{index}}" bind:change="onChangePayee" bind:close="onClosePayee">
  301. <van-collapse-item name="{{childrenIndex}}" wx:for="{{form.payeeList}}" wx:if="{{childrenIndex<10}}" wx:for-index="childrenIndex" wx:key="payeeId">
  302. <view slot="title">
  303. {{ 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>
  304. </view>
  305. <view slot="value" wx:if="{{ form.activeName != childrenIndex }}">
  306. ¥{{ form.payeeList[childrenIndex].incomeAmount }}
  307. </view>
  308. <van-field required readonly label="收款账户" value="{{ form.payeeList[childrenIndex].payeeAccount }}" border="{{ false }}" input-align="right"/>
  309. <van-field required readonly label="开户银行" value="{{ form.payeeList[childrenIndex].bankDeposit }}" border="{{ false }}" input-align="right"/>
  310. <van-field required readonly label="收入金额" value="{{ form.payeeList[childrenIndex].incomeAmount }}" border="{{ false }}" input-align="right"/>
  311. <van-field required readonly label="所属银行" value="{{ form.payeeList[childrenIndex].bankTypeText }}" border="{{ false }}" input-align="right"/>
  312. <!-- <van-field required readonly label="转账状态" value="{{ form.payeeList[childrenIndex].transferStatusText }}" border="{{ false }}" input-align="right"/>
  313. <van-field required readonly label="交易结果描述" value="{{ form.payeeList[childrenIndex].causeFailure }}" border="{{ false }}" input-align="right"/> -->
  314. </van-collapse-item>
  315. </van-collapse>
  316. <text wx:if="{{form.payeeList.length>10}}" style="text-align: center;color: #2C8E68;padding-top: 10px;" data-option="{{form.payeeList}}" bindtap="goPayee">查看更多</text>
  317. <!--
  318. <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" /> -->
  319. </view>
  320. </view>
  321. <!-- wx:if="{{showFile}}" -->
  322. </view>
  323. </van-collapse-item>
  324. </van-collapse>
  325. <view class="file_box" wx:if="{{showFile}}">
  326. <view class="title">上传附件</view>
  327. <view class="add van-cell-text">总数<van-tag round color="#5CAE77" plain style="margin-left: 10px;"> {{form.fileNum?form.fileNum:0}}张 </van-tag></view>
  328. </view>
  329. <view class="main-box" wx:if="{{showFile}}">
  330. <view class="fj-box">
  331. <view class="fj-li">
  332. <view class="fj-tt">
  333. <text>收据</text><van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag>
  334. </view>
  335. <view class="img_box">
  336. <view class="img_list" wx:for="{{form.SJimage}}" wx:for-index="childrenIndex" wx:key="id">
  337. <image class="img_li" src="{{item.tempFilePath}}" data-option="{{form.SJimage}}" data-index="{{childrenIndex}}" bindtap="openPreview"></image>
  338. </view>
  339. <view class="img_list" wx:if="{{!form.SJimage}}">
  340. <image class="img_li img_add" src="/image/apply/fj_upload.png"></image>
  341. </view>
  342. <!-- <van-empty wx:if="{{!form.SJimage}}" description="暂无收据" style="margin: 0 auto;" /> -->
  343. </view>
  344. </view>
  345. <view class="fj-li">
  346. <view class="fj-tt">
  347. <text>发票</text><van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag>
  348. </view>
  349. <view class="img_box">
  350. <view class="img_list" wx:for="{{form.FPimage}}" wx:for-index="childrenIndex" wx:key="id">
  351. <image class="img_li" src="{{item.tempFilePath}}" data-option="{{form.FPimage}}" data-index="{{childrenIndex}}" bindtap="openPreview"></image>
  352. </view>
  353. <view class="img_list" wx:if="{{!form.FPimage}}">
  354. <image class="img_li img_add" src="/image/apply/fj_upload.png"></image>
  355. </view>
  356. </view>
  357. </view>
  358. <view class="fj-li">
  359. <view class="fj-tt">
  360. <text>其他</text><van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag>
  361. </view>
  362. <view class="img_box">
  363. <view class="img_list" wx:for="{{form.QTimage}}" wx:for-index="childrenIndex" wx:key="id">
  364. <image class="img_li" src="{{item.tempFilePath}}" data-option="{{form.QTimage}}" data-index="{{childrenIndex}}" bindtap="openPreview" ></image>
  365. </view>
  366. <view class="img_list" wx:if="{{!form.QTimage}}">
  367. <image class="img_li img_add" src="/image/apply/fj_upload.png"></image>
  368. </view>
  369. </view>
  370. </view>
  371. </view>
  372. </view>
  373. <!-- <view class="main-box steps-box">
  374. <view class="steps-tit">审批流程</view>
  375. <van-row wx:for="{{steps}}" wx:key="index">
  376. <van-col span="3">
  377. <view class="index">{{index+1}}</view>
  378. <block wx:if="{{index==0}}">
  379. <view class="indexBorder">
  380. <view class="ssT" wx:if="{{index>0}}"></view>
  381. <view class="yq"></view>
  382. <view class="ss" wx:if="{{steps.length != index+1}}"></view>
  383. </view>
  384. </block>
  385. <block wx:else>
  386. <view class="indexBorder indexCenter">
  387. <view class="ssT" wx:if="{{index>0}}"></view>
  388. <view class="yq"></view>
  389. <view class="ss" wx:if="{{steps.length != index+1}}"></view>
  390. </view>
  391. </block>
  392. </van-col>
  393. <van-col span="21">
  394. <van-cell title="{{item.activityName}}" center="{{true}}" border="{{false}}">
  395. <view class="agree" wx:if="{{item.type=='1'}}">{{ item.assigneeName }}</view>
  396. <view class="in" wx:if="{{item.type=='2'}}">{{ item.assigneeName }}</view>
  397. <view class="disagree" wx:if="{{item.type=='3'}}">{{ item.assigneeName }}</view>
  398. </van-cell>
  399. <van-cell center border="{{false}}">
  400. <view slot="title">
  401. <view style="color: #999999;">{{ item.durationInMillis }}</view>
  402. </view>
  403. <view style="color: #999999;font-size: 12px;">{{ item.endTime }}</view>
  404. </van-cell>
  405. </van-col>
  406. </van-row>
  407. </view> -->
  408. </view>
  409. <text class="title" style="padding: 0 calc(3% + 20px);">审批流程</text>
  410. <view class="main-box steps-box">
  411. <!-- <view class="steps-tit">审批流程</view> -->
  412. <van-row wx:for="{{spsxOptions}}" wx:key="index">
  413. <van-col span="3">
  414. <view class="index {{(item.approverStatus != null||index==0) ? 'active':'' }}">{{index+1}}</view>
  415. <!-- :class="{'indexCenter':index==0 ? false : true}" -->
  416. <block wx:if="{{index==0}}">
  417. <view class="indexBorder">
  418. <view class="ssT" wx:if="{{index>0}}"></view>
  419. <view class="yq"></view>
  420. <view class="ss" wx:if="{{spsxOptions.length != index+1}}"></view>
  421. </view>
  422. </block>
  423. <block wx:else>
  424. <view class="indexBorder indexCenter">
  425. <view class="ssT" wx:if="{{index>0}}"></view>
  426. <view class="yq"></view>
  427. <view class="ss" wx:if="{{spsxOptions.length != index+1}}"></view>
  428. </view>
  429. </block>
  430. </van-col>
  431. <van-col span="21" style="height: 77px;">
  432. <van-cell center="{{true}}" border="{{false}}">
  433. <view slot="title" class="cellTit">
  434. <text wx:if="{{item.electronicSignature == null}}">{{item.assigneeName}}</text>
  435. <image wx:else src="{{item.electronicSignature}}" style="height: 24px;width: 48px;"></image>
  436. <text wx:if="{{item.deptLabel != null}}">{{item.deptLabel}}</text>
  437. </view>
  438. <view class="agree" wx:if="{{item.approverStatus=='2'}}">同意</view>
  439. <view class="in" wx:elif="{{(item.assigneeName==nickName && pageType!='see')}}">审核中</view>
  440. <view class="disagree" wx:elif="{{item.approverStatus=='3'}}">驳回</view>
  441. </van-cell>
  442. <van-cell center border="{{false}}">
  443. <view slot="title" style="margin-top: 10px;">
  444. <view style="color: #999999;line-height: 32px;">{{ item.comment }}</view>
  445. </view>
  446. <view style="color: #999999;font-size: 12px;margin-top: 10px;line-height: 32px;">{{ sub.times(item.time) }}</view>
  447. </van-cell>
  448. </van-col>
  449. </van-row>
  450. </view>
  451. <van-empty wx:if="{{spsxOptions.length<1&&pageType=='see'}}" description="暂无审核数据" />
  452. <view class="main-box" wx:if="{{pageType!='see'}}">
  453. <input class="input_tit" value="{{comment}}" placeholder="请输入审批意见" bindinput="commentInput" style="margin-top: 10px;margin-bottom: 0;"/>
  454. <!-- -->
  455. </view>
  456. <view class="bottom" style="margin-bottom: 0px;" wx:if="{{pageType!='see'}}">
  457. <button type="warn" plain class="btnDis" bindtap="goDis">驳回</button>
  458. <button type="primary" class="btnAgree" bindtap="goAgree">同意</button>
  459. </view>
  460. <!-- <view class="bottom" wx:if="{{pageType!='see'}}">
  461. <button type="primary" plain class="btnOther" bindtap="goAgree">转办</button>
  462. </view> -->
  463. <view class="ipXbtn"></view>
  464. <wxs module="sub">
  465. var times = function(time){
  466. console.log(time)
  467. return time.substring(0,10);
  468. }
  469. module.exports.times = times;
  470. </wxs>