approvalExpenses.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <!-- include 'header' -->
  2. <script src="<?= WEB_SITE_GLOBAL ?>js/receipt.js"></script>
  3. <body>
  4. <div class="mainLayout">
  5. <div class="mainMenu">
  6. <div class="menuItem">
  7. <a href="/" class="mLogo">CLD</a>
  8. <ul>
  9. <!-- include 'menuReceipt' -->
  10. </ul>
  11. </div>
  12. </div>
  13. <div class="warpContent">
  14. <div class="subMenu fL">
  15. <div class="menuItem">
  16. <ul>
  17. <!-- include 'receipt_menu' -->
  18. </ul>
  19. </div>
  20. </div>
  21. <div class="adminContent autoHeight" style="height: 821px;">
  22. <legend><div class="fR"></div>
  23. 您有{{receiptApprovalCount}}份报销单需要审批
  24. </legend>
  25. <div class="demandCate">
  26. <form action="/approvalExpenses/{{status}}" id="up" method="get">
  27. <ul class=" cateList " >
  28. <li>
  29. <a <!-- if {{status}}=='pendApproval' --> class="now" <!-- endif --> href="/approvalExpenses/pendApproval">待审批</a>
  30. <a <!-- if {{status}}=='ongoing' --> class="now" <!-- endif --> href="/approvalExpenses/ongoing">进行中</a>
  31. <a <!-- if {{status}}=='done' --> class="now" <!-- endif --> href="/approvalExpenses/done">费用完成</a>
  32. <a <!-- if {{status}}=='termination' --> class="now" <!-- endif --> href="/approvalExpenses/termination">终止</a>
  33. </li>
  34. <!-- if {{status}}=='pendApproval' -->
  35. <li>
  36. <select id="report" onChange="reportPM();">
  37. <option value="ALL">员工</option>
  38. {{reportHtml}}
  39. </select>
  40. </li>
  41. <!-- endif -->
  42. <!-- if {{status}}=='done' || {{status}}=='termination' -->
  43. <li >
  44. <input type="month" name="date" id="date" style="width:120px" onChange="receiptDate();" value="">
  45. </li>
  46. <li>
  47. <select name="year" id="Y" onChange="receiptYear();">
  48. <!-- include 'year' -->
  49. </select>
  50. <select name="month" id="M" onChange="receiptMoth();">
  51. <option value="">所有月份</option>
  52. {{mothHtml}}
  53. </select>
  54. </li>
  55. <li>
  56. <select name="cid" onChange="receiptYear();">
  57. <option value="">办事处</option>
  58. <!-- loop categoryList -->
  59. <option <!-- if {{categoryList' value.cid}}=={{cid}} --> selected <!-- endif --> value="{{categoryList' value.cid}}">{{categoryList' value.title}}</option>
  60. <!-- endloop -->
  61. </select>
  62. <select name="sid" onChange="receiptYear();">
  63. <option value="">员工</option>
  64. <!-- loop staffList -->
  65. <option <!-- if {{categoryList' value.sid}}=={{sid}} --> selected <!-- endif --> value="{{categoryList' value.sid}}">{{categoryList' value.username}}</option>
  66. <!-- endloop -->
  67. </select>
  68. </li>
  69. <!-- endif -->
  70. </ul>
  71. </form>
  72. </div>
  73. <div class="saeaList">
  74. <div class="entry">
  75. <table class="table table-bordered table-condensed">
  76. <thead><tr><th width="54">上报人</th><th width="80" class="taC">费用类型</th><th width="100">报销总金额</th>
  77. <th width="120">费用所在办事处</th><th width="120">报销单号</th><th>报销说明</th><th width="100">状态</th><th width="100">操作</th></tr></thead>
  78. <tbody>
  79. <!-- loop receiptList -->
  80. <tr node-all='true' node-box='{{receiptList' value.staffDetail.username}}' >
  81. <td><div class="avtra"><img src="{{receiptList' value.staffDetail.avatar}}_2.jpg" width="32"><br>{{receiptList' value.staffDetail.username}}</div></td>
  82. <td><!-- if {{receiptDetail' value.Rtype}}==1 -->
  83. 借款
  84. <!-- elseif {{receiptDetail' value.Rtype}}==2 -->
  85. 对公汇款
  86. <!-- else -->
  87. 报销单
  88. <!-- endif -->
  89. </td>
  90. <td class="taR colOrange"><b>¥{{receiptDetail' value.sum}}</b>
  91. <!-- if {{receiptList' value.Rtype}}==1 -->
  92. <b <!-- if {{receiptList' value.sum}}>{{receiptList' value.loanSum}} --> class="colRed" <!-- else --> class="colGreen" <!-- endif --> >
  93. ¥{{receiptList' value.loanSum}}</b>
  94. <!-- endif -->
  95. </td>
  96. <td>{{receiptDetail' value.category}}</td>
  97. <td>{{receiptDetail' value.receiptOrder}}<p class="colGray">{{receiptDetail' value.date}}</p></td>
  98. <td>{{receiptDetail' value.explanation}}</td>
  99. <td>
  100. <!-- if {{receiptDetail' value.status}}==2 -->
  101. 审批中
  102. <!-- elseif {{receiptDetail' value.status}}==5 or {{receiptDetail' value.status}}==7 -->
  103. 待审批
  104. <!-- elseif {{receiptDetail' value.status}}==1 or {{receiptDetail' value.status}}==6 -->
  105. 执行中
  106. <!-- elseif {{receiptDetail' value.status}}==8 or {{receiptDetail' value.status}}==9 -->
  107. <!-- if {{receiptDetail' value.loanDate}}!=0 -->
  108. 借款完成
  109. <p class="colGray">{{receiptDetail' value.loanDate}}</p>
  110. <!-- endif -->
  111. 费用完成
  112. <p class="colGray">{{receiptDetail' value.pastDate}}</p>
  113. <!-- elseif {{receiptDetail' value.status}}==4 -->
  114. 撤回
  115. <!-- elseif {{receiptDetail' value.status}}==3 -->
  116. 终止
  117. <!-- endif -->
  118. </td>
  119. <td>
  120. <!-- if {{receiptDetail' value.status}}==2&&in_array({{staff.0.sid}}, {{receiptDetail' value.nowStaffArray}}) -->
  121. <!-- if {{receiptDetail' value.Rtype}}==1 -->
  122. <!-- if {{receiptDetail' value.isBK}}==1 -->
  123. <a class="button" target="_blank" href="/receiptburEdi/{{receiptDetail' value.rid}}">去审批</a>
  124. <!-- else -->
  125. <a class="button" target="_blank" href="/expensesEdi/{{receiptDetail' value.rid}}">去审批</a>
  126. <!-- endif -->
  127. <!-- elseif {{receiptDetail' value.Rtype}}==2 -->
  128. <a class="button" target="_blank" href="/remitApproval/{{receiptDetail' value.rid}}">去审批</a>
  129. <!-- else -->
  130. <a class="button" target="_blank" href="/receiptburEdi/{{receiptDetail' value.rid}}">去审批</a>
  131. <!-- endif -->
  132. <!-- else -->
  133. <a target="_blank" href="/expensesDoc/{{receiptDetail' value.rid}}">详情</a>
  134. <!-- endif -->
  135. </td>
  136. </tr>
  137. <!-- endloop -->
  138. </tbody>
  139. </table>
  140. <!-- if {{status}}=='done' || {{status}}=='termination' -->
  141. <ul class="pagination fR">
  142. <!-- if {{page.previous}}==0 -->
  143. <li><a href="javascript:void(0)" title="上一页">&lt;</a></li>
  144. <!-- else -->
  145. <li><a href="/approvalExpenses/{{status}}/{{page.previous}}" title="上一页">&lt;</a></li>
  146. <!-- endif -->
  147. <!-- if {{page.on_page}}>=3 -->
  148. <li><a href="/approvalExpenses/{{status}}/1" title="上一页">1</a></li>
  149. <li class="point"><span>...</span></li>
  150. <!-- endif -->
  151. {{page.page}}
  152. <!-- if {{page.on_page}}<3 && {{page.total_page}}>5 -->
  153. <li><a href="/approvalExpenses/{{status}}/4" >4</a></li>
  154. <li><a href="/approvalExpenses/{{status}}/5" >5</a></li>
  155. <!-- endif -->
  156. <!-- if {{page.total_page}}>3 -->
  157. <li class="point"><span>...</span></li>
  158. <!-- endif -->
  159. <!-- if {{page.next}}=={{page.on_page}} -->
  160. <li><a href="javascript:void(0)" title="下一页">&gt;</a></li>
  161. <!-- else -->
  162. <li><a href="/approvalExpenses/{{status}}/{{page.next}}" title="下一页">&gt;</a></li>
  163. <!-- endif -->
  164. </ul>
  165. <!-- endif -->
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <!--弹出-->
  172. <div class="modal hide fade" id="addCallout">
  173. <div class="modal-header">
  174. <h3>添加批注</h3>
  175. </div>
  176. <div class="modal-body">
  177. <form class="">
  178. <div class="control-group">
  179. <div class="controls clearfix">
  180. <label>
  181. 批注内容
  182. </label>
  183. <textarea rows="8" class="span6"></textarea>
  184. </div>
  185. </div>
  186. </form>
  187. </div>
  188. <div class="modal-footer">
  189. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">取消</a>
  190. <a href="#" class="button">确定</a>
  191. </div>
  192. </div>
  193. <!--弹出内容-->
  194. <script type="text/javascript">autoFlashHeight();</script>
  195. </body>