statCost.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <div id="budget-toolbar" style="padding:10px 5px;font-size: 14px;">
  2. 仓库:
  3. <input id="grainId" class="easyui-combobox bd-w-type grainId" name="grainId" editable="true">&emsp;
  4. 年份:
  5. <selset class="easyui-combobox year" name="year" style="width: 120px;" editable="false"></selset>&emsp;
  6. <!-- <input class="easyui-datetimespinner beginFeeDate" value="2016-01" data-options="formatter:formatter2,parser:parser2,selections:[[0,4],[5,7]]" name="beginFeeDate" style="width:100px;height:26px;">-<input class="easyui-datetimespinner endFeeDate" value="2016-06" name="endFeeDate" data-options="formatter:formatter2,parser:parser2,selections:[[0,4],[5,7]]" style="width:100px;height:26px;">&emsp; -->
  7. <a href="javascript:;" class="easyui-linkbutton bd-add-s budget-search">查询</a>
  8. <a href="#" class="easyui-linkbutton bd-add-s clear-btn" plain="true">清空</a>
  9. <a href="javascript:;" class="easyui-linkbutton bd-add-s budget-lineChart" style="float: right;">统计图</a>
  10. </div>
  11. <table class="easyui-datagrid" id="budget-info" style="width:100%;">
  12. </table>
  13. <div class="bugget-lineChart">
  14. <div class="bugget-lineChart-div"></div>
  15. </div>
  16. <!-- <script type="text/html">
  17. <table>
  18. <thead>
  19. <th>
  20. <td></td>{{#dateList}}<td>{{.}}</td>{{/dateList}}
  21. </th>
  22. </thead>
  23. <tbody>
  24. <tr>
  25. {{#feeList}}
  26. <td></td>
  27. {{/feeList}}
  28. </tr>
  29. </tbody>
  30. </table>
  31. </script> -->
  32. <script type="text/javascript">
  33. utils.buildYearList('.year');
  34. // $.parser.parse('.combobox-year');
  35. // function formatter1(date){
  36. // if (!date){return '';}
  37. // return $.fn.datebox.defaults.formatter.call(this, date);
  38. // }
  39. // function parser1(s){
  40. // if (!s){return null;}
  41. // return $.fn.datebox.defaults.parser.call(this, s);
  42. // }
  43. // function formatter2(date){
  44. // if (!date){return '';}
  45. // var y = date.getFullYear();
  46. // var m = date.getMonth() + 1;
  47. // return y + "-"+(m<10?('0'+m):m);
  48. // }
  49. // function parser2(s){
  50. // if (!s){return null;}
  51. // var ss = s.split('-');
  52. // var y = parseInt(ss[0],10);
  53. // var m = parseInt(ss[1],10);
  54. // if (!isNaN(y) && !isNaN(m)){
  55. // return new Date(y,m-1,1);
  56. // } else {
  57. // return new Date();
  58. // }
  59. // }
  60. </script>