approvalExpenses.html 8.6 KB

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