微信小程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

expenditureAudit.wxml 22 KiB

3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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="main-box top-box topBox" style="margin-top:{{isIPX?'100px':'75px'}};">
  8. <text class="box-title">审批事项</text>
  9. <van-field required readonly focus="{{topInputTirme}}" error="{{topInputTirme}}" class="input_tittop {{topInputTirme?'error':''}}" data-formname="topInput" value="{{ form.approvalItemTemplate.approvalItems }}" placeholder="请输入审批事项" border="{{ false }}" bind:input="bindKeyInput" bind:blur="errorPd"/>
  10. <text>支出总金额</text>
  11. <view class="money_box">¥<input class="input_money" type="digit" disabled placeholder="总金额" placeholder-style="color:#E90000;" value="{{form.approvalItemTemplate.totalAmount}}"/></view>
  12. <text>提交单位:{{form.approvalItemTemplate.submitCompany}}</text>
  13. <!-- <text>提交日期:{{form.approvalItemTemplate.submitDate}}</text> class="input_tit" -->
  14. <text>提<text style="margin-right:0.5rem;display: inline-block;"></text>交<text style="margin-right:0.5rem;display: inline-block;"></text>人:{{form.approvalItemTemplate.submitter}}</text>
  15. <text>联系电话:{{form.approvalItemTemplate.telephone}}</text>
  16. <van-field required label="申请时间:" readonly is-link value="{{ form.transfers[0].applyDate }}" placeholder="请选择申请时间" border="{{ false }}" bind:change="onChangeTime" bindtap="openBox" data-name="showApplyDate" />
  17. <van-calendar show="{{ showApplyDate }}" bind:close="closeBox" data-name="showApplyDate" bind:confirm="onConfirmTime" data-value="form.transfers[{{index}}].applyDate" show-confirm="{{ false }}" />
  18. </view>
  19. <van-collapse accordion value="{{ activeNames }}" bind:change="onChangeBox" bind:open="onOpen" bind:close="onCloseSecond">
  20. <van-collapse-item name="{{index}}" disabled="{{item.collapseDis}}" is-link="{{false}}" wx:for="{{form.transfers}}" wx:key="index">
  21. <view slot="title" wx:if="{{item.showTitle}}" class="main-title">事项{{form.transfers[index].num}}
  22. <image src="/image/apply/icon_close.png" style="width: 24px;height: 24px;position: absolute;right: 4% ;top: 10px;transform: rotateX(180deg);" data-index="{{index}}" ></image>
  23. </view>
  24. <view slot="title" class="tit_box" wx:if="{{!item.showTitle}}">
  25. <text class="title" style="text-align: center;">事项{{item.num}}</text>
  26. <view class="top-box">
  27. <text>支出金额</text>
  28. <view class="money_box">¥<input class="input_money" disabled placeholder="金额" placeholder-style="color:#E90000;" value="{{item.expenditureAmount}}"/></view>
  29. <van-cell-group border="{{ false }}">
  30. <van-cell title="{{item.remark}}" border="{{ false }}" >
  31. <view slot="icon" style="width: 15%;">事由:</view>
  32. </van-cell>
  33. <van-cell title="{{item.payer}}" border="{{ false }}" center >
  34. <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_fu.png" style="width: 20px;height: 20px;"></image></view>
  35. </van-cell>
  36. <van-cell title="{{item.payeeList[0].payee}}" center border="{{ false }}" >
  37. <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_shou.png" style="width: 20px;height: 20px;"></image></view>
  38. </van-cell>
  39. <view class="btnBox">
  40. <image src="/image/apply/down.png" data-index="{{index}}" class="down"></image>
  41. <!-- <image src="/image/apply/icon_update.png" class="update" bindtap="goUpdate"></image> -->
  42. </view>
  43. </van-cell-group>
  44. </view>
  45. </view>
  46. <view class="center">
  47. <text class="title">基础信息</text>
  48. <view class="main-box table-box">
  49. <!-- <van-field label="申请流水号" value="{{ form.approvalItemTemplate.telephone }}" placeholder="请输入申请流水号" border="{{ false }}" bind:change="onChange" input-align="right"/> -->
  50. <van-field required readonly label="支出金额" focus="{{form.transfers[index].expenditureAmountTirme}}" error="{{form.transfers[index].expenditureAmountTirme}}" type="digit" value="{{ form.transfers[index].expenditureAmount }}" placeholder="请输入支出金额" border="{{ false }}" data-formname="form.transfers[{{index}}].expenditureAmount" data-index="{{index}}" input-align="right" bind:change="onChangeMoney" bind:blur="errorJE"/>
  51. <!-- <van-field required label="收入金额" value="{{ form.transfers[index].payeeList[childrenIndex].incomeAmount }}" placeholder="请输入收入金额" border="{{ false }}" bind:change="onChangeMoney" input-align="right" data-formname="form.transfers[{{index}}].payeeList[{{childrenIndex}}]" data-index="{{index}}" data-childrenIndex="{{childrenIndex}}"/> -->
  52. <van-field required readonly label="支出原因" value="{{ form.transfers[index].remark }}" placeholder="请输入支出原因" border="{{ false }}" input-align="right" />
  53. <van-field required label="支付方式" readonly value="{{ form.transfers[index].paymentPatternText }}" placeholder="请选择支付方式" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down" bindtap="openBox" data-name="form.transfers[{{index}}].showTransferType"/>
  54. <van-field required label="支出类别" readonly value="{{ form.transfers[index].capitalExpenditureTypeText }}" placeholder="请选择支出类别" border="{{ false }}" input-align="right" is-link arrow-direction ="down"/>
  55. </view>
  56. <block wx:if="{{form.transfers[index].capitalExpenditureType == 2}}">
  57. <text class="title">关联项目</text>
  58. <view class="main-box table-box">
  59. <van-field label="项目名称" readonly value="{{ form.transfers[index].projectForm.projectName }}" placeholder="请输入项目名称" border="{{ false }}" bind:change="onChange" input-align="right" is-link/>
  60. <van-field label="承建单位" readonly value="{{ form.transfers[index].projectForm.projectContractor }}" placeholder="请输入承建单位" border="{{ false }}" bind:change="onChange" input-align="right"/>
  61. <van-field label="合同价款(元)" readonly value="{{ form.transfers[index].projectForm.projectAmount }}" placeholder="请输入合同价款(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
  62. <van-field label="工程款类型" readonly value="{{ form.transfers[index].projectForm.projectFundTypeText }}" placeholder="请选择工程款类型" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down"/>
  63. <van-field label="工程发票号" value="{{ form.transfers[index].projectForm.projectBillNum }}" placeholder="请输入工程发票号" border="{{ false }}" data-value="form.transfers[{{index}}].projectForm.projectBillNum" bind:change="onChange" input-align="right"/>
  64. </view>
  65. </block>
  66. <block wx:if="{{form.transfers[index].capitalExpenditureType == 4}}">
  67. <text class="title">关联合同</text>
  68. <view class="main-box table-box">
  69. <van-popup show="{{form.transfers[index].showContraction}}" round position="bottom" bind:close="closeBox" data-name="form.transfers[{{index}}].showContraction">
  70. <van-picker
  71. columns="{{contractionOptions}}"
  72. show-toolbar
  73. value-key="name"
  74. bind:cancel="closeBox"
  75. bind:confirm="onConfirmContraction"
  76. data-name="form.transfers[{{index}}].showContraction"
  77. data-value="form.transfers[{{index}}].contractionForm.name"
  78. />
  79. </van-popup>
  80. <van-field label="合同名称" readonly value="{{ form.transfers[index].contractionForm.name }}" placeholder="请选择合同名称" border="{{ false }}" bind:change="onChange" input-align="right" is-link bindtap="openBox" data-name="form.transfers[{{index}}].showContraction"/>
  81. <van-field label="合同编码" value="{{ form.transfers[index].contractionForm.code }}" placeholder="请输入合同编码" border="{{ false }}" bind:change="onChange" input-align="right"/>
  82. <van-field label="合同价款(元)" readonly value="{{ form.transfers[index].contractionForm.totalAmount }}" placeholder="请输入合同价款(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
  83. </view>
  84. </block>
  85. <text class="title">付款方信息</text>
  86. <view class="main-box table-box">
  87. <van-field required label="付款方式" readonly value="{{ form.transfers[index].transferTypeText }}" placeholder="请输入付款方式" border="{{ false }}" input-align="right" is-link arrow-direction ="down"/>
  88. <van-field required wx:if="{{form.transfers[index].transferType != 12}}" readonly value="{{ form.transfers[index].payer }}" placeholder="请选择付款方名称" border="{{ false }}" input-align="right" is-link arrow-direction ="down">
  89. <view slot="label">
  90. 付款方<van-tag plain type="danger" color="#5CAE77" round style="margin-left:10px;">选择</van-tag>
  91. </view>
  92. </van-field>
  93. <van-field readonly wx:if="{{form.transfers[index].transferType == 11}}" label="可用余额(元)" value="{{ balance }}" placeholder="可用余额" border="{{ false }}" bind:change="onChange" input-align="right"/>
  94. <block wx:elif="{{form.transfers[index].transferType == 12}}">
  95. <van-popup show="{{showAccount}}" round position="bottom" bind:close="closeBox" data-name="showMoneyorder">
  96. <van-picker
  97. columns="{{moneyorderOptions}}"
  98. show-toolbar
  99. value-key="accountName"
  100. bind:cancel="closeBox"
  101. bind:confirm="onConfirmMoneyorder"
  102. data-name="showMoneyorder"
  103. data-value="form.transfers[{{index}}]"
  104. />
  105. </van-popup>
  106. <van-field readonly label="出票方" value="{{ form.transfers[index].payerAccount }}" placeholder="请选择出票方" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down" bindtap="openBox" data-name="showMoneyorder"/>
  107. <van-field readonly label="汇票号码" value="{{ form.transfers[index].bankTypeText }}" placeholder="汇票号码" border="{{ false }}" bind:change="onChange" input-align="right"/>
  108. <van-field readonly label="出票金额(元)" value="{{ form.transfers[index].bankTypeText }}" placeholder="出票金额(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
  109. <van-field readonly label="汇票类型" value="{{ form.transfers[index].bankTypeText }}" placeholder="汇票类型" border="{{ false }}" bind:change="onChange" input-align="right"/>
  110. <van-field readonly label="开票日" value="{{ form.transfers[index].bankTypeText }}" placeholder="开票日" border="{{ false }}" bind:change="onChange" input-align="right"/>
  111. <van-field readonly label="到期日" value="{{ form.transfers[index].bankTypeText }}" placeholder="到期日" border="{{ false }}" bind:change="onChange" input-align="right"/>
  112. </block>
  113. <block wx:else>
  114. <van-field required readonly label="付款账号" value="{{ form.transfers[index].payerAccount }}" placeholder="请输入付款方账号" border="{{ false }}" bind:change="onChange" input-align="right"/>
  115. <van-field required readonly label="所属银行" value="{{ form.transfers[index].bankTypeText }}" placeholder="请输入所属银行" border="{{ false }}" bind:change="onChange" input-align="right"/>
  116. </block>
  117. </view>
  118. <text class="title">收款方信息</text>
  119. <view class="center-box">
  120. <view class="main-box table-box" wx:if="{{form.transfers[index].bankType == 1 && form.transfers[index].transferType != 10 && form.transfers[index].transferType != 11 && form.transfers[index].transferType != 12}}">
  121. <van-cell title="收款账户类型" center border="{{false}}">
  122. <view style="float: right;">
  123. <van-radio-group
  124. value="{{ form.transfers[index].bankAccountType }}"
  125. bind:change="onChange"
  126. direction="horizontal"
  127. data-value="form.transfers[{{index}}].bankAccountType"
  128. >
  129. <van-radio name="1" disabled checked-color="#2C8E68">公户</van-radio>
  130. <van-radio name="2" disabled checked-color="#2C8E68">私户</van-radio>
  131. </van-radio-group>
  132. </view>
  133. </van-cell>
  134. </view>
  135. <!-- <view class="main-box table-box" wx:if="{{(form.transfers[index].bankType == 2 || form.transfers[index].bankType == 3 || form.transfers[index].bankType == 4) && (form.transfers[index].transferType != 10 && form.transfers[index].transferType != 11 && form.transfers[index].transferType != 12)}}">
  136. <van-cell title="是否同行" center border="{{false}}">
  137. <view style="float: right;">
  138. <van-radio-group
  139. value="{{ form.transfers[index].isPeers }}"
  140. bind:change="onChange"
  141. direction="horizontal"
  142. data-value="form.transfers[{{index}}].isPeers"
  143. >
  144. <van-radio name="Y" checked-color="#2C8E68">是</van-radio>
  145. <van-radio name="N" checked-color="#2C8E68">否</van-radio>
  146. </van-radio-group>
  147. </view>
  148. </van-cell>
  149. </view> -->
  150. <view class="main-box table-box" wx:for="{{form.transfers[index].payeeList}}" wx:for-index="childrenIndex" wx:key="payeeId">
  151. <van-field required readonly value="{{ form.transfers[index].payeeList[childrenIndex].payee }}" placeholder="请输入姓名" border="{{ false }}" input-align="right" is-link arrow-direction ="down">
  152. <view slot="label">
  153. 收款方<van-tag plain type="danger" color="#5CAE77" round style="margin-left:10px;">选择</van-tag>
  154. </view>
  155. </van-field>
  156. <van-field required readonly label="收款账号" value="{{ form.transfers[index].payeeList[childrenIndex].payeeAccount }}" placeholder="请输入收款账户" border="{{ false }}" input-align="right"/>
  157. <van-field required readonly label="开户银行" value="{{ form.transfers[index].payeeList[childrenIndex].bankDeposit }}" placeholder="请输入开户银行" border="{{ false }}" input-align="right" is-link arrow-direction ="down"/>
  158. <!-- <van-field required label="收入金额" value="{{ form.transfers[index].payeeList[childrenIndex].incomeAmount }}" placeholder="请输入收入金额" border="{{ false }}" bind:change="onChangeMoney" input-align="right" data-formname="form.transfers[{{index}}].payeeList[{{childrenIndex}}]" data-index="{{index}}" data-childrenIndex="{{childrenIndex}}"/> -->
  159. <van-field required readonly label="所属银行" value="{{ form.transfers[index].payeeList[childrenIndex].bankTypeText }}" placeholder="请输入所属银行" border="{{ false }}" input-align="right" is-link arrow-direction ="down"/>
  160. </view>
  161. </view>
  162. <view class="main-box">
  163. <van-cell>
  164. <!-- <view slot="icon">
  165. <van-icon class-prefix="my-icon" name="extra" />
  166. </view> -->
  167. <view slot="title">
  168. <view class="van-cell-text">附件<van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag></view>
  169. </view>
  170. <view>
  171. <view class="van-cell-text">总数<van-tag round color="#5CAE77" plain style="margin-left: 10px;"> {{form.transfers[index].fileNum?form.transfers[index].fileNum:0}}张 </van-tag></view>
  172. </view>
  173. </van-cell>
  174. <view class="fj-box">
  175. <view class="fj-li">
  176. <view>
  177. <text>收\n据</text>
  178. </view>
  179. <view class="img_box">
  180. <image wx:for="{{form.transfers[index].SJimage}}" wx:for-index="childrenIndex" src="{{item.tempFilePath}}" wx:key="childrenIndex" data-option="{{form.transfers[index].SJimage}}" data-index="{{childrenIndex}}" bindtap="openPreview"></image>
  181. </view>
  182. </view>
  183. <view class="fj-li">
  184. <view>
  185. <text>发\n票</text>
  186. </view>
  187. <view class="img_box">
  188. <image wx:for="{{form.transfers[index].FPimage}}" wx:for-index="childrenIndex" src="{{item.tempFilePath}}" data-option="{{form.transfers[index].FPimage}}" data-index="{{childrenIndex}}" bindtap="openPreview" wx:key="childrenIndex"></image>
  189. </view>
  190. </view>
  191. <view class="fj-li">
  192. <view>
  193. <text>其\n他</text>
  194. </view>
  195. <view class="img_box">
  196. <image wx:for="{{form.transfers[index].QTimage}}" wx:for-index="childrenIndex" src="{{item.tempFilePath}}" data-option="{{form.transfers[index].QTimage}}" data-index="{{childrenIndex}}" bindtap="openPreview" wx:key="childrenIndex"></image>
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. <!-- <view class="main-box steps-box">
  202. <view class="steps-tit">审批流程</view>
  203. <van-row wx:for="{{steps}}" wx:key="index">
  204. <van-col span="3">
  205. <view class="index">{{index+1}}</view>
  206. <block wx:if="{{index==0}}">
  207. <view class="indexBorder">
  208. <view class="ssT" wx:if="{{index>0}}"></view>
  209. <view class="yq"></view>
  210. <view class="ss" wx:if="{{steps.length != index+1}}"></view>
  211. </view>
  212. </block>
  213. <block wx:else>
  214. <view class="indexBorder indexCenter">
  215. <view class="ssT" wx:if="{{index>0}}"></view>
  216. <view class="yq"></view>
  217. <view class="ss" wx:if="{{steps.length != index+1}}"></view>
  218. </view>
  219. </block>
  220. </van-col>
  221. <van-col span="21">
  222. <van-cell title="{{item.activityName}}" center="{{true}}" border="{{false}}">
  223. <view class="agree" wx:if="{{item.type=='1'}}">{{ item.assigneeName }}</view>
  224. <view class="in" wx:if="{{item.type=='2'}}">{{ item.assigneeName }}</view>
  225. <view class="disagree" wx:if="{{item.type=='3'}}">{{ item.assigneeName }}</view>
  226. </van-cell>
  227. <van-cell center border="{{false}}">
  228. <view slot="title">
  229. <view style="color: #999999;">{{ item.durationInMillis }}</view>
  230. </view>
  231. <view style="color: #999999;font-size: 12px;">{{ item.endTime }}</view>
  232. </van-cell>
  233. </van-col>
  234. </van-row>
  235. </view> -->
  236. </view>
  237. </van-collapse-item>
  238. </van-collapse>
  239. <view class="main-box steps-box">
  240. <view class="steps-tit">审批流程</view>
  241. <van-row wx:for="{{spsxOptions}}" wx:key="index">
  242. <van-col span="3">
  243. <view class="index {{(item.approverStatus != null||index==0) ? 'active':'' }}">{{index+1}}</view>
  244. <!-- :class="{'indexCenter':index==0 ? false : true}" -->
  245. <block wx:if="{{index==0}}">
  246. <view class="indexBorder">
  247. <view class="ssT" wx:if="{{index>0}}"></view>
  248. <view class="yq"></view>
  249. <view class="ss" wx:if="{{spsxOptions.length != index+1}}"></view>
  250. </view>
  251. </block>
  252. <block wx:else>
  253. <view class="indexBorder indexCenter">
  254. <view class="ssT" wx:if="{{index>0}}"></view>
  255. <view class="yq"></view>
  256. <view class="ss" wx:if="{{spsxOptions.length != index+1}}"></view>
  257. </view>
  258. </block>
  259. </van-col>
  260. <van-col span="21" style="height: 77px;">
  261. <van-cell center="{{true}}" border="{{false}}">
  262. <view slot="title" class="cellTit">
  263. <text>{{item.assigneeName}}</text>
  264. <text>{{item.deptLabel}}</text>
  265. </view>
  266. <view class="agree" wx:if="{{item.approverStatus=='true'}}">同意</view>
  267. <view class="in" wx:elif="{{(item.assigneeName==nickName && pageType!='see')}}">审核中</view>
  268. <view class="disagree" wx:elif="{{item.approverStatus=='false'}}">驳回</view>
  269. </van-cell>
  270. <view wx:if="{{item.assigneeName==nickName && pageType!='see'}}">
  271. <input class="input_tit" value="{{comment}}" placeholder="意见输入" bindinput="commentInput" style="margin-top: 10px;margin-bottom: 0;"/>
  272. <!-- -->
  273. </view>
  274. <van-cell wx:elif="{{item.approverStatus!=null}}" center border="{{false}}">
  275. <view slot="title" style="margin-top: 10px;">
  276. <view style="color: #999999;line-height: 32px;">{{ item.comment }}</view>
  277. </view>
  278. <view style="color: #999999;font-size: 12px;margin-top: 10px;line-height: 32px;">{{ sub.times(item.time) }}</view>
  279. </van-cell>
  280. </van-col>
  281. </van-row>
  282. </view>
  283. <view class="bottom" style="margin-bottom: 0px;" wx:if="{{pageType!='see'}}">
  284. <button type="warn" plain class="btnDis" bindtap="goDis">驳回</button>
  285. <button type="primary" class="btnAgree" bindtap="goAgree">同意</button>
  286. </view>
  287. <view class="bottom" wx:if="{{pageType!='see'}}">
  288. <button type="primary" plain class="btnOther" bindtap="goAgree">转办</button>
  289. </view>
  290. <view class="ipXbtn"></view>
  291. <wxs module="sub">
  292. var times = function(time){
  293. console.log(time)
  294. return time.substring(0,10);
  295. }
  296. module.exports.times = times;
  297. </wxs>