微信小程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

208 строки
14 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="main-box top-box" style="margin-top:{{isIPX?'100px':'75px'}};">
  8. <text class="box-title">审批事项</text>
  9. <input class="input_tit" placeholder="请输入审批事项" value="{{form.approvalItemTemplate.approvalItems}}" bindinput="bindKeyInput"/>
  10. <text>提交单位:{{form.approvalItemTemplate.submitCompany}}</text>
  11. <text>提交日期:{{form.approvalItemTemplate.submitDate}}</text>
  12. <text>提 交 人:{{form.approvalItemTemplate.submitter}}</text>
  13. <text>联系电话:{{form.approvalItemTemplate.telephone}}</text>
  14. </view>
  15. <block wx:for="{{form.transfers}}" wx:key="index">
  16. <view class="main-title">事项{{form.transfers[index].num}}</view>
  17. <view class="center">
  18. <text class="title">基础信息</text>
  19. <view class="main-box table-box">
  20. <van-field label="申请时间" readonly is-link value="{{ form.transfers[index].applyDate }}" placeholder="请选择申请时间" border="{{ false }}" bind:change="onChange" input-align="right" bindtap="openBox" data-name="showApplyDate" />
  21. <van-field readonly label="合计支出" value="{{ form.transfers[index].expenditureAmount }}" placeholder="(自动计算)" border="{{ false }}" data-formname="form.transfers[{{index}}].expenditureAmount" input-align="right"/>
  22. <van-field label="支出原因" readonly value="{{ form.transfers[index].remark }}" placeholder="请输入支出原因" border="{{ false }}" bind:change="onChange" input-align="right" data-formname="form.transfers[{{index}}].remark" data-value="form.transfers[{{index}}].remark"/>
  23. <van-field label="资金支出类别" readonly value="{{ form.transfers[index].capitalExpenditureTypeText }}" placeholder="请选择资金支出类别" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down" bindtap="openBox" data-name="showCapitalExpenditureType"/>
  24. </view>
  25. <block wx:if="{{form.transfers[index].capitalExpenditureType == 2}}">
  26. <text class="title">关联项目</text>
  27. <view class="main-box table-box">
  28. <van-field label="项目名称" readonly value="{{ projectForm.projectName }}" placeholder="请输入项目名称" border="{{ false }}" bind:change="onChange" input-align="right" is-link bindtap="openBox" data-name="showProject"/>
  29. <van-field label="承建单位" readonly value="{{ projectForm.projectContractor }}" placeholder="请输入承建单位" border="{{ false }}" bind:change="onChange" input-align="right"/>
  30. <van-field label="合同价款(元)" readonly value="{{ projectForm.projectAmount }}" placeholder="请输入合同价款(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
  31. <van-field label="工程款类型" readonly value="{{ projectForm.projectFundTypeText }}" placeholder="请选择工程款类型" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down" bindtap="openBox" data-name="showProjectFundType"/>
  32. <van-field label="工程发票号" readonly value="{{ projectForm.projectBillNum }}" placeholder="请输入工程发票号" border="{{ false }}" bind:change="onChange" input-align="right"/>
  33. </view>
  34. </block>
  35. <block wx:if="{{form.transfers[index].capitalExpenditureType == 4}}">
  36. <text class="title">关联合同</text>
  37. <view class="main-box table-box">
  38. <van-field label="合同名称" readonly value="{{ contractionForm.name }}" placeholder="请选择合同名称" border="{{ false }}" bind:change="onChange" input-align="right" is-link bindtap="openBox" data-name="showContraction"/>
  39. <van-field label="合同编码" readonly value="{{ contractionForm.code }}" placeholder="请输入合同编码" border="{{ false }}" bind:change="onChange" input-align="right"/>
  40. <van-field label="合同价款(元)" readonly value="{{ contractionForm.totalAmount }}" placeholder="请输入合同价款(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
  41. </view>
  42. </block>
  43. <text class="title">付款方信息</text>
  44. <view class="main-box table-box">
  45. <van-field label="付款方式" readonly value="{{ form.transfers[index].transferTypeText }}" placeholder="请输入付款方式" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down" bindtap="openBox" data-name="showTransferType"/>
  46. <van-field wx:if="{{form.transfers[index].transferType != 12}}" readonly value="{{ form.transfers[index].payer }}" placeholder="请选择付款方名称" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down" bindtap="openBox" data-name="showAccount">
  47. <view slot="label">
  48. 付款方<van-tag plain type="danger" color="red" round style="margin-left:10px;">必填</van-tag>
  49. </view>
  50. </van-field>
  51. <van-field readonly wx:if="{{form.transfers[index].transferType == 11}}" label="可用余额(元)" value="{{ balance }}" placeholder="可用余额" border="{{ false }}" bind:change="onChange" input-align="right"/>
  52. <block wx:elif="{{form.transfers[index].transferType == 12}}">
  53. <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"/>
  54. <van-field readonly label="汇票号码" value="{{ form.transfers[index].bankTypeText }}" placeholder="汇票号码" border="{{ false }}" bind:change="onChange" input-align="right"/>
  55. <van-field readonly label="出票金额(元)" value="{{ form.transfers[index].bankTypeText }}" placeholder="出票金额(元)" border="{{ false }}" bind:change="onChange" input-align="right"/>
  56. <van-field readonly label="汇票类型" value="{{ form.transfers[index].bankTypeText }}" placeholder="汇票类型" border="{{ false }}" bind:change="onChange" input-align="right"/>
  57. <van-field readonly label="开票日" value="{{ form.transfers[index].bankTypeText }}" placeholder="开票日" border="{{ false }}" bind:change="onChange" input-align="right"/>
  58. <van-field readonly label="到期日" value="{{ form.transfers[index].bankTypeText }}" placeholder="到期日" border="{{ false }}" bind:change="onChange" input-align="right"/>
  59. </block>
  60. <block wx:else>
  61. <van-field readonly label="付款方账号" value="{{ form.transfers[index].payerAccount }}" placeholder="请输入付款方账号" border="{{ false }}" bind:change="onChange" input-align="right"/>
  62. <van-field readonly label="所属银行" value="{{ form.transfers[index].bankTypeText }}" placeholder="请输入所属银行" border="{{ false }}" bind:change="onChange" input-align="right"/>
  63. </block>
  64. </view>
  65. <text class="title">收款方信息</text>
  66. <view class="center-box">
  67. <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}}">
  68. <van-cell title="收款账户类型" center border="{{false}}">
  69. <view style="float: right;">
  70. <van-radio-group
  71. value="{{ form.transfers[index].bankAccountType }}"
  72. bind:change="onChange"
  73. direction="horizontal"
  74. data-value="form.transfers[{{index}}].bankAccountType"
  75. >
  76. <van-radio name="1" checked-color="#2C8E68">公户</van-radio>
  77. <van-radio name="2" checked-color="#2C8E68">私户</van-radio>
  78. </van-radio-group>
  79. </view>
  80. </van-cell>
  81. </view>
  82. <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)}}">
  83. <van-cell title="是否同行" center border="{{false}}">
  84. <view style="float: right;">
  85. <van-radio-group
  86. value="{{ form.transfers[index].isPeers }}"
  87. bind:change="onChange"
  88. direction="horizontal"
  89. data-value="form.transfers[{{index}}].isPeers"
  90. >
  91. <van-radio name="Y" checked-color="#2C8E68">是</van-radio>
  92. <van-radio name="N" checked-color="#2C8E68">否</van-radio>
  93. </van-radio-group>
  94. </view>
  95. </van-cell>
  96. </view>
  97. <view class="main-box table-box" wx:for="{{form.transfers[index].payeeList}}" wx:for-index="childrenIndex" wx:key="payeeId">
  98. <van-field readonly value="{{ form.transfers[index].payeeList[childrenIndex].payee }}" placeholder="请输入姓名" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down" bindtap="goPayeeList" data-payer="{{form.transfers[index].payer}}" data-index="{{index}}" data-isPeers="{{ form.transfers[index].isPeers }}" data-bankType="{{ form.transfers[index].bankType }}" data-accountType="{{ form.transfers[index].bankAccountType }}" data-transferType="{{ form.transfers[index].transferType }}">
  99. <view slot="label">
  100. 姓名<van-tag plain type="danger" color="#5CAE77" round style="margin-left:10px;">收款方</van-tag>
  101. </view>
  102. </van-field>
  103. <van-field readonly label="收款账户" value="{{ form.transfers[index].payeeList[childrenIndex].payeeAccount }}" placeholder="请输入收款账户" border="{{ false }}" bind:change="onChange" input-align="right"/>
  104. <van-field readonly label="开户银行" value="{{ form.transfers[index].payeeList[childrenIndex].bankDeposit }}" placeholder="请输入开户银行" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down"/>
  105. <van-field readonly 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}}"/>
  106. <van-field readonly label="所属银行" value="{{ form.transfers[index].payeeList[childrenIndex].bankTypeText }}" placeholder="请输入所属银行" border="{{ false }}" bind:change="onChange" input-align="right" is-link arrow-direction ="down"/>
  107. </view>
  108. </view>
  109. <view class="main-box">
  110. <van-cell>
  111. <!-- <view slot="icon">
  112. <van-icon class-prefix="my-icon" name="extra" />
  113. </view> -->
  114. <view slot="title">
  115. <view class="van-cell-text">附件<van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag></view>
  116. </view>
  117. <view>
  118. <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>
  119. </view>
  120. </van-cell>
  121. <view class="fj-box">
  122. <view class="fj-li">
  123. <view>
  124. <text>收\n据</text>
  125. </view>
  126. <view class="img_box">
  127. <image wx:for="{{form.transfers[index].SJimage}}" src="{{item.tempFilePath}}" wx:key="index" data-option="{{form.transfers[index].SJimage}}" data-index="{{index}}" bindtap="openPreview"></image>
  128. <!-- <image src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="SJtakephoto"></image> -->
  129. </view>
  130. </view>
  131. <view class="fj-li">
  132. <view>
  133. <text>发\n票</text>
  134. </view>
  135. <view class="img_box">
  136. <image wx:for="{{form.transfers[index].FPimage}}" src="{{item.tempFilePath}}" data-option="{{form.transfers[index].FPimage}}" data-index="{{index}}" bindtap="openPreview" wx:key="index"></image>
  137. <!-- <image src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="FPtakephoto"></image> -->
  138. </view>
  139. </view>
  140. <view class="fj-li">
  141. <view>
  142. <text>其\n他</text>
  143. </view>
  144. <view class="img_box">
  145. <image wx:for="{{form.transfers[index].QTimage}}" src="{{item.tempFilePath}}" data-option="{{form.transfers[index].QTimage}}" data-index="{{index}}" bindtap="openPreview" wx:key="index"></image>
  146. <!-- <image src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="QTtakephoto"></image> -->
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="main-box steps-box">
  152. <view class="steps-tit">审批流程</view>
  153. <van-row wx:for="{{spsxOptions}}" wx:key="index">
  154. <van-col span="3">
  155. <view class="index">{{index+1}}</view>
  156. <!-- :class="{'indexCenter':index==0 ? false : true}" -->
  157. <block wx:if="{{index==0}}">
  158. <view class="indexBorder">
  159. <view class="ssT" wx:if="{{index>0}}"></view>
  160. <view class="yq"></view>
  161. <view class="ss" wx:if="{{spsxOptions.length != index+1}}"></view>
  162. </view>
  163. </block>
  164. <block wx:else>
  165. <view class="indexBorder indexCenter">
  166. <view class="ssT" wx:if="{{index>0}}"></view>
  167. <view class="yq"></view>
  168. <view class="ss" wx:if="{{spsxOptions.length != index+1}}"></view>
  169. </view>
  170. </block>
  171. </van-col>
  172. <van-col span="21">
  173. <van-cell title="{{item.assigneeName}}{{item.deptLabel}}" center="{{true}}" border="{{false}}">
  174. <view class="agree" wx:if="{{item.type=='1'}}">{{ item.comment }}</view>
  175. <view class="in" wx:if="{{item.type=='2'}}">{{ item.comment }}</view>
  176. <view class="disagree" wx:if="{{item.type=='3'}}">{{ item.comment }}</view>
  177. </van-cell>
  178. <van-cell center border="{{false}}">
  179. <view slot="title">
  180. <view style="color: #999999;">{{ item.durationInMillis }}</view>
  181. </view>
  182. <view style="color: #999999;font-size: 12px;">{{ item.time.substr(0,10) }}</view>
  183. </van-cell>
  184. </van-col>
  185. </van-row>
  186. </view>
  187. </view>
  188. </block>
  189. <view class="bottom">
  190. <button type="warn" plain class="btnDis" bindtap="goDis">驳回</button>
  191. <button type="primary" class="btnAgree" bindtap="goAgree">同意</button>
  192. </view>