invoiceApprovalAchieveDevelopment.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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="/invoiceApprovalAchieveDevelopment/{{status}}" id="iaa" method="get" >
  31. <ul class="cateList">
  32. <li>
  33. <a <!-- if {{status}}=='ALL' --> class="now" <!-- endif --> href="/invoiceApprovalAchieveDevelopment/ALL">所有</a>
  34. <a <!-- if {{status}}=='PEND' --> class="now" <!-- endif --> href="/invoiceApprovalAchieveDevelopment/PEND" title="待审批发票">待审批发票</a>
  35. <a <!-- if {{status}}=='APPROVED' --> class="now" <!-- endif --> href="/invoiceApprovalAchieveDevelopment/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. </tr>
  82. </thead>
  83. <tbody>
  84. </tbody>
  85. </table>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div loading-msg='true' style="position:absolute; left:50%; top:50%; "></div>
  91. <div class="modal fade" id="approvalInvice">
  92. <div id="nc"></div>
  93. </div>
  94. <!--弹出内容-->
  95. <script type="text/javascript">autoFlashHeight();</script>
  96. <script type="text/javascript">
  97. $(document).ready( function () {
  98. var table =$('#example').DataTable({
  99. language: {
  100. "sProcessing": "处理中...",
  101. "sLengthMenu": "显示 _MENU_ 项结果",
  102. "sSearch": "搜索:",
  103. "sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
  104. "sEmptyTable": "表中数据为空",
  105. "oPaginate": {
  106. "sFirst": "首页",
  107. "sPrevious": "上页",
  108. "sNext": "下页",
  109. "sLast": "末页"
  110. },
  111. "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
  112. },
  113. scrollY: "700px",
  114. scrollX: true,
  115. scrollCollapse: true,
  116. paging: true,
  117. serverSide: true,
  118. ajax: {
  119. url: '/ajaxGetinvoiceApprovalAchieveDevelopment',
  120. type: 'POST',
  121. "data": function ( d ) {
  122. return $.extend( {}, d, {
  123. "status": '{{status}}',
  124. 'invoiceType':'{{invoiceType}}',
  125. 'invoiceTrain':'{{invoiceTrain}}',
  126. 'date':'{{dateString}}',
  127. } );
  128. }
  129. }
  130. });
  131. } );
  132. function nodeInvoiceApproval(iidKey){
  133. var postData = iidKey;
  134. var type =$(this).attr("data-type");
  135. $("#nc").html('');
  136. $("div[loading-msg='true']").html("<img src='/global/img/loadIco.gif' />");
  137. var url = "/ajaxGetInvoiceApprovalDetail";
  138. $.ajax({
  139. url : url,
  140. type : "post",
  141. cache : false,
  142. dataType : "json",
  143. data : {
  144. serial : postData
  145. },
  146. global : true,
  147. success : function(data) {
  148. if (data.status == 1) {
  149. $("#nc").html(data.html);
  150. } else
  151. $("div[loading-msg='true']").html("illegal request");
  152. },
  153. error : function(err) {
  154. $("div[loading-msg='true']").html("");
  155. }
  156. });
  157. }
  158. function nodeInvoice(iidKey){
  159. var postData = iidKey;
  160. var type =$(this).attr("data-type");
  161. $("#nc").html('');
  162. var po='INVOICE';
  163. $("div[loading-msg='true']").html("<img src='/global/img/loadIco.gif' />");
  164. var url = "/ajaxGetInvoiceInfoByType";
  165. $.ajax({
  166. url : url,
  167. type : "post",
  168. cache : false,
  169. dataType : "json",
  170. data : {
  171. serial : postData,
  172. type:po
  173. },
  174. global : true,
  175. success : function(data) {
  176. if (data.status == 1) {
  177. $("div[loading-msg='true']").html("");
  178. if(type=='receivables')
  179. $("#nr").html(data.html);
  180. else
  181. $("#nc").html(data.html);
  182. } else
  183. $("div[loading-msg='true']").html("illegal request");
  184. },
  185. error : function(err) {
  186. $("div[loading-msg='true']").html("");
  187. }
  188. });
  189. }
  190. </script>
  191. </body>