invoiceApprovalAchieve.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <!-- include 'header' -->
  2. <script src="<?= WEB_SITE_GLOBAL ?>js/invoice.js"></script>
  3. <link href="<?= WEB_SITE_GLOBAL ?>css/datepicker.min.css" rel="stylesheet" type="text/css">
  4. <script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.min.js"></script>
  5. <script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.zh.js"></script>
  6. <link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>js/DataTables/jquery.dataTables.css">
  7. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/DataTables/jquery.dataTables.min.js"></script>
  8. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/dataTables.fixedColumns.min.js"></script>
  9. <body>
  10. <div class="mainLayout">
  11. <div class="mainMenu">
  12. <div class="menuItem">
  13. <a href="#" class="mLogo">CLD</a>
  14. <ul>
  15. <!-- include 'menuReceipt' -->
  16. </ul>
  17. </div>
  18. </div>
  19. <div class="warpContent">
  20. <div class="subMenu fL">
  21. <div class="menuItem">
  22. <!-- include 'invoiceMenu' -->
  23. </div>
  24. </div>
  25. <div class="adminContent autoHeight">
  26. <legend>
  27. 审批发票
  28. </legend>
  29. <div class="demandCate">
  30. <form action="/invoiceApprovalAchieve/{{status}}" id="iaa" method="get" >
  31. <ul class="cateList">
  32. <li>
  33. <a <!-- if {{status}}=='ALL' --> class="now" <!-- endif --> href="/invoiceApprovalAchieve/ALL">所有</a>
  34. <a <!-- if {{status}}=='PEND' --> class="now" <!-- endif --> href="/invoiceApprovalAchieve/PEND" title="待审批发票">待审批发票</a>
  35. <a <!-- if {{status}}=='APPROVED' --> class="now" <!-- endif --> href="/invoiceApprovalAchieve/APPROVED" title="已审批发票">已审批发票</a>
  36. </li>
  37. <li>
  38. <select name="invoiceType" node-invoiceType >
  39. <option <!-- if {{invoiceType}}=='ALL' --> selected <!-- endif --> value="ALL">类型</option>
  40. <option <!-- if {{invoiceType}}=='ORDINARY' --> selected <!-- endif --> value="ORDINARY">普通发票</option>
  41. <option <!-- if {{invoiceType}}=='SPECIAL' --> selected <!-- endif --> value="SPECIAL">专用发票</option>
  42. </select>
  43. </li>
  44. <li>
  45. <select name="invoiceTrain" node-invoiceTrain id="sel">
  46. <option <!-- if {{invoiceTrain}}=='ALL' --> selected <!-- endif --> value="ALL">所有</option>
  47. <option <!-- if {{invoiceTrain}}=='ORDINARY' --> selected <!-- endif --> value="ORDINARY">个人发票</option>
  48. <option <!-- if {{invoiceTrain}}=='TRAIN' --> selected <!-- endif --> value="TRAIN">培训班发票</option>
  49. </select>
  50. </li>
  51. <!-- if {{invoiceTrain}}=='TRAIN' -->
  52. <li>
  53. <select name="invoiceTrainName" node-invoiceTrainName style="width:150px;">
  54. <option <!-- if {{invoiceTrainName}}=='ALL' --> selected <!-- endif --> value="ALL"">所有</option>
  55. <!-- loop trainList -->
  56. <option <!-- if {{invoiceTrainName}}=={{trainList' value.itidKey}} --> selected <!-- endif --> value="{{trainList' value.itidKey}}">{{trainList' value.trainName}}</option>
  57. <!-- endloop -->
  58. </select>
  59. </li>
  60. <!-- endif -->
  61. <li>
  62. <div class="search">
  63. <div class="input-append">
  64. <input class="datepicker-here span3" name="date" value="{{dateString}}" placeholder="按时间筛选" type="text" data-range="true" data-multiple-dates-separator=" : " data-language="zh">
  65. <button class="btn btn-small" type="submit">查询</button>
  66. </div>
  67. </div>
  68. </li>
  69. </ul>
  70. </form>
  71. </div>
  72. <div class="saeaList">
  73. <table id="example" class="stripe row-border order-column" cellspacing="0" width="2400" >
  74. <thead>
  75. <tr class="thead">
  76. <th>操作</th>
  77. <th>开票流水号</th>
  78. <th>开票单位(抬头)</th>
  79. <th>纳税人识别码</th>
  80. <th>注册地址~电话</th>
  81. <th>开户银行~账号</th>
  82. <th>发票备注</th>
  83. <th>开票内容</th>
  84. <th>数量</th>
  85. <th>单价</th>
  86. <th>开票金额</th>
  87. <th>收件人~电话</th>
  88. <th>收件地址</th>
  89. <th>邮寄物品</th>
  90. <th>提交开票</th>
  91. <th>审批意见</th>
  92. <th>完成审批</th>
  93. </tr>
  94. </thead>
  95. <tbody>
  96. </tbody>
  97. </table>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div loading-msg='true' style="position:absolute; left:50%; top:50%; "></div>
  103. <div class="modal fade" id="approvalInvice">
  104. <div id="nc"></div>
  105. </div>
  106. <!--弹出内容-->
  107. <script type="text/javascript">autoFlashHeight();</script>
  108. <script type="text/javascript">
  109. $(document).ready( function () {
  110. var table =$('#example').DataTable({
  111. language: {
  112. "sProcessing": "处理中...",
  113. "sLengthMenu": "显示 _MENU_ 项结果",
  114. "sSearch": "搜索:",
  115. "sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
  116. "sEmptyTable": "表中数据为空",
  117. "oPaginate": {
  118. "sFirst": "首页",
  119. "sPrevious": "上页",
  120. "sNext": "下页",
  121. "sLast": "末页"
  122. },
  123. "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
  124. },
  125. "paging": false,
  126. "ordering": false,
  127. "info": false,
  128. //'filter':false,
  129. scrollY: "700px",
  130. scrollX: true,
  131. scrollCollapse: true,
  132. paging: true,
  133. serverSide: true,
  134. ajax: {
  135. url: '/ajaxGetinvoiceApprovalAchieve',
  136. type: 'POST',
  137. "data": function ( d ) {
  138. return $.extend( {}, d, {
  139. "status": '{{status}}',
  140. 'invoiceType':'{{invoiceType}}',
  141. 'invoiceTrain':'{{invoiceTrain}}',
  142. 'invoiceTrainName':'{{invoiceTrainName}}',
  143. 'date':'{{dateString}}',
  144. } );
  145. }
  146. }
  147. });
  148. <!-- if {{invoiceTrain}}=='TRAIN' -->
  149. setSearchLo('approval','850px');
  150. <!-- else -->
  151. setSearchLo('approval');
  152. <!-- endif -->
  153. } );
  154. function nodeInvoiceApproval(iidKey){
  155. var postData = iidKey;
  156. var type =$(this).attr("data-type");
  157. $("#nc").html('');
  158. $("div[loading-msg='true']").html("<img src='/global/img/loadIco.gif' />");
  159. var url = "/ajaxGetInvoiceApprovalDetail";
  160. $.ajax({
  161. url : url,
  162. type : "post",
  163. cache : false,
  164. dataType : "json",
  165. data : {
  166. serial : postData
  167. },
  168. global : true,
  169. success : function(data) {
  170. if (data.status == 1) {
  171. $("#nc").html(data.html);
  172. } else
  173. $("div[loading-msg='true']").html("illegal request");
  174. },
  175. error : function(err) {
  176. $("div[loading-msg='true']").html("");
  177. }
  178. });
  179. }
  180. function nodeInvoice(iidKey){
  181. var postData = iidKey;
  182. var type =$(this).attr("data-type");
  183. $("#nc").html('');
  184. var po='INVOICE';
  185. $("div[loading-msg='true']").html("<img src='/global/img/loadIco.gif' />");
  186. var url = "/ajaxGetInvoiceInfoByType";
  187. $.ajax({
  188. url : url,
  189. type : "post",
  190. cache : false,
  191. dataType : "json",
  192. data : {
  193. serial : postData,
  194. type:po
  195. },
  196. global : true,
  197. success : function(data) {
  198. if (data.status == 1) {
  199. $("div[loading-msg='true']").html("");
  200. if(type=='receivables')
  201. $("#nr").html(data.html);
  202. else
  203. $("#nc").html(data.html);
  204. } else
  205. $("div[loading-msg='true']").html("illegal request");
  206. },
  207. error : function(err) {
  208. $("div[loading-msg='true']").html("");
  209. }
  210. });
  211. }
  212. </script>
  213. </body>