approvalExpenses.html 10 KB

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