微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

474 line
31 KiB

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