invoiceApprovalAchieve.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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 >
  46. <option <!-- if {{invoiceTrain}}=='ORDINARY' --> selected <!-- endif --> value="ORDINARY">个人发票</option>
  47. <option <!-- if {{invoiceTrain}}=='TRAIN' --> selected <!-- endif --> value="TRAIN">培训班发票</option>
  48. </select>
  49. </li>
  50. <li>
  51. <div class="search">
  52. <div class="input-append">
  53. <input class="datepicker-here span3" name="date" value="{{dateString}}" placeholder="按时间筛选" type="text" data-range="true" data-multiple-dates-separator=" : " data-language="zh">
  54. <button class="btn btn-small" type="submit">查询</button>
  55. </div>
  56. </div>
  57. </li>
  58. </ul>
  59. </form>
  60. </div>
  61. <div class="saeaList">
  62. <table id="example" class="stripe row-border order-column" cellspacing="0" width="2400" >
  63. <thead>
  64. <tr class="thead">
  65. <th>操作</th>
  66. <th>开票流水号</th>
  67. <th>开票单位(抬头)</th>
  68. <th>纳税人识别码</th>
  69. <th>注册地址~电话</th>
  70. <th>开户银行~账号</th>
  71. <th>发票备注</th>
  72. <th>收件人~电话</th>
  73. <th>收件地址</th>
  74. <th>邮寄物品</th>
  75. <th>开票内容</th>
  76. <th>数量</th>
  77. <th>单价</th>
  78. <th>开票金额</th>
  79. <th>提交开票</th>
  80. <th>审批意见</th>
  81. <th>完成审批</th>
  82. </tr>
  83. </thead>
  84. <tbody>
  85. </tbody>
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div loading-msg='true' style="position:absolute; left:50%; top:50%; "></div>
  92. <div class="modal fade" id="approvalInvice">
  93. <div id="nc"></div>
  94. </div>
  95. <!--弹出内容-->
  96. <script type="text/javascript">autoFlashHeight();</script>
  97. <script type="text/javascript">
  98. $(document).ready( function () {
  99. var table =$('#example').DataTable({
  100. language: {
  101. "sProcessing": "处理中...",
  102. "sLengthMenu": "显示 _MENU_ 项结果",
  103. "sSearch": "搜索:",
  104. "sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
  105. "sEmptyTable": "表中数据为空",
  106. "oPaginate": {
  107. "sFirst": "首页",
  108. "sPrevious": "上页",
  109. "sNext": "下页",
  110. "sLast": "末页"
  111. },
  112. "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
  113. },
  114. "paging": false,
  115. "ordering": false,
  116. "info": false,
  117. //'filter':false,
  118. scrollY: "700px",
  119. scrollX: true,
  120. scrollCollapse: true,
  121. paging: true,
  122. serverSide: true,
  123. ajax: {
  124. url: '/ajaxGetinvoiceApprovalAchieve',
  125. type: 'POST',
  126. "data": function ( d ) {
  127. return $.extend( {}, d, {
  128. "status": '{{status}}',
  129. 'invoiceType':'{{invoiceType}}',
  130. 'invoiceTrain':'{{invoiceTrain}}',
  131. 'date':'{{dateString}}',
  132. } );
  133. }
  134. }
  135. });
  136. } );
  137. function nodeInvoiceApproval(iidKey){
  138. var postData = iidKey;
  139. var type =$(this).attr("data-type");
  140. $("#nc").html('');
  141. $("div[loading-msg='true']").html("<img src='/global/img/loadIco.gif' />");
  142. var url = "/ajaxGetInvoiceApprovalDetail";
  143. $.ajax({
  144. url : url,
  145. type : "post",
  146. cache : false,
  147. dataType : "json",
  148. data : {
  149. serial : postData
  150. },
  151. global : true,
  152. success : function(data) {
  153. if (data.status == 1) {
  154. $("#nc").html(data.html);
  155. } else
  156. $("div[loading-msg='true']").html("illegal request");
  157. },
  158. error : function(err) {
  159. $("div[loading-msg='true']").html("");
  160. }
  161. });
  162. }
  163. function nodeInvoice(iidKey){
  164. var postData = iidKey;
  165. var type =$(this).attr("data-type");
  166. $("#nc").html('');
  167. var po='INVOICE';
  168. $("div[loading-msg='true']").html("<img src='/global/img/loadIco.gif' />");
  169. var url = "/ajaxGetInvoiceInfoByType";
  170. $.ajax({
  171. url : url,
  172. type : "post",
  173. cache : false,
  174. dataType : "json",
  175. data : {
  176. serial : postData,
  177. type:po
  178. },
  179. global : true,
  180. success : function(data) {
  181. if (data.status == 1) {
  182. $("div[loading-msg='true']").html("");
  183. if(type=='receivables')
  184. $("#nr").html(data.html);
  185. else
  186. $("#nc").html(data.html);
  187. } else
  188. $("div[loading-msg='true']").html("illegal request");
  189. },
  190. error : function(err) {
  191. $("div[loading-msg='true']").html("");
  192. }
  193. });
  194. }
  195. </script>
  196. </body>