rock_page_finpiaototal.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * 模块:finpiao.发票统计,
  4. */
  5. defined('HOST') or die ('not access');
  6. ?>
  7. <script>
  8. $(document).ready(function(){
  9. var a = $('#view_{rand}').bootstable({
  10. tablename:'finpiao',
  11. url:publicmodeurl('finpiao','piaototal'),
  12. columns:[{
  13. text:'月份',dataIndex:'month'
  14. },{
  15. text:'收到发票金额',dataIndex:'moneyshou'
  16. },{
  17. text:'开出去发票金额',dataIndex:'moneykai'
  18. },{
  19. text:'合计(开出去-收到)的发票',dataIndex:'moneyzong'
  20. }],
  21. load:function(d){
  22. get('dt1_{rand}').value = d.dt1;
  23. get('dt2_{rand}').value = d.dt2;
  24. }
  25. });
  26. var c = {
  27. search:function(){
  28. a.setparams({dt1:get('dt1_{rand}').value,dt2:get('dt2_{rand}').value},true);
  29. },
  30. daochu:function(o1){
  31. publicdaochuobj({
  32. 'objtable':a,
  33. 'modename':'发票统计',
  34. 'btnobj':o1
  35. });
  36. }
  37. };
  38. js.initbtn(c);
  39. });
  40. </script>
  41. <div>
  42. <table width="100%"><tr>
  43. <td nowrap>月份&nbsp;</td>
  44. <td>
  45. <input onclick="js.datechange(this,'month')" style="width:110px" readonly class="form-control datesss" id="dt1_{rand}" >
  46. </td>
  47. <td>&nbsp;至&nbsp;</td>
  48. <td align="left">
  49. <input onclick="js.datechange(this,'month')" style="width:110px" readonly class="form-control datesss" id="dt2_{rand}" >
  50. </td>
  51. <td style="padding-left:10px">
  52. <button class="btn btn-default" click="search" type="button">统计</button>
  53. </td>
  54. <td width="90%"></td>
  55. <td align="right" nowrap>
  56. <button class="btn btn-default" click="daochu,1" type="button">导出 <i class="icon-angle-down"></i></button>
  57. </td>
  58. </tr></table>
  59. </div>
  60. <div class="blank10"></div>
  61. <div id="view_{rand}"></div>
粤ICP备19079148号