companyReport_list.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>企业报表</title>
  7. <style>
  8. /*#report_table td,#report_table th{*/
  9. /*min-width: 80px;*/
  10. /*}*/
  11. #report_table{
  12. /*width: 1200px;*/
  13. }
  14. #summary{
  15. /*width: 1189px;*/
  16. }
  17. #pageContent{
  18. width: 1200px;
  19. }
  20. .page-container{
  21. width: 1200px;
  22. }
  23. </style>
  24. </head>
  25. <body layout:fragment="content">
  26. <nav class="breadcrumb" th:if="${isShow}">
  27. <i class="Hui-iconfont">&#xe67f;</i>
  28. 首页
  29. <span class="c-gray en">&gt;</span>企业报表
  30. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
  31. href="javascript:location.replace(location.href);" title="刷新">
  32. <i class="Hui-iconfont">&#xe68f;</i>
  33. </a>
  34. </nav>
  35. <form id="myForm" th:action="@{'/government/companyReport/list/'+${build_id}}" th:method="get">
  36. <div class="">
  37. <div th:unless="${isCompany}" class="text-c">
  38. <input type='text' style="width:200px" placeholder="请选择日期" readonly class='input-text' id='date' name='date' th:value="${date}"/>
  39. <input type="text" class="input-text keyword" style="width:250px" placeholder="请输入单位名称" name="keyword"
  40. th:value="${keyword}"/>
  41. <button type="submit" class="btn btn-primary">
  42. 搜索
  43. </button>
  44. </div>
  45. <div class="cl pd-5 bg-1 bk-gray mt-20" id="summary">
  46. <span class="l">
  47. <a th:unless="${isCompany}" onclick="report_export()" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe640;</i> 导出Excel</a>
  48. <a th:if="${isCompany}" th:onclick="'javascript:report_dialog(\'填报\',\'/government/companyReport/add\',\'1000\',\'500\');'" class="btn btn-primary radius">填报</a>
  49. </span>
  50. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span>
  51. </div>
  52. <table class="table table-border table-bordered table-bg table-hover" id="report_table">
  53. <thead>
  54. <tr class="text-c">
  55. <!-- <th width="25"><input type="checkbox" name="" value=""/></th>
  56. <th>序号</th> -->
  57. <th style="width:200px;">单位名称</th>
  58. <th>填报月份</th>
  59. <th>营业收入(元)</th>
  60. <th>营业成本(元)</th>
  61. <th>帐款(元)</th>
  62. <th>税费(元)</th>
  63. <th>利润(元)</th>
  64. <th>用电量(度)</th>
  65. <th>从业人数(人)</th>
  66. <th style="min-width:100px;">应付薪酬(千元)</th>
  67. <th>资产(千元)</th>
  68. <th>负债(千元)</th>
  69. <th style="min-width:60px;" th:unless="${isShow}">状态</th>
  70. <th style="max-width:150px; ">附件</th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  75. <!-- <td><input type="checkbox" th:value="*{id}" th:id="${iterStat.index+1}" name="id"/></td>
  76. <td th:text="${iterStat.index+1}"></td> -->
  77. <td th:text="*{company_name}"></td>
  78. <td th:text="*{report_year}+'年'+*{report_month}+'月'"></td>
  79. <td th:text="*{revenue}"></td>
  80. <td th:text="*{cost}"></td>
  81. <td th:text="*{account}"></td>
  82. <td th:text="*{taxs}"></td>
  83. <td th:text="*{profits}"></td>
  84. <td th:text="*{electricity}"></td>
  85. <td th:text="*{employees}"></td>
  86. <td th:text="*{wages}" style="min-width:60px;"></td>
  87. <td th:text="*{assets}"></td>
  88. <td th:text="*{debt}"></td>
  89. <td th:unless="${isShow}"><span th:if="*{status==0}">未填报</span><span th:if="*{status==1}">已填报</span></td>
  90. <td><a th:href="${fileUrl} + *{fileDown.file_url}" target="_blank">[[*{fileDown.file_name}]]</a>
  91. </td>
  92. </tr>
  93. </tbody>
  94. </table>
  95. <div th:replace="admin/common/page :: page" id="pageContent"></div>
  96. </div>
  97. </form>
  98. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  99. <script th:inline="javascript">
  100. function report_export(){
  101. window.open(pagePath + "/export/companyReport?build_id=[[${build_id}]]&keyword="+$(".keyword").val());
  102. }
  103. function report_dialog(title,url,w,h){
  104. var index = layer_show(title,pagePath+url,w,h);
  105. layer.full(index);
  106. }
  107. laydate.render({
  108. elem: '#date'
  109. , type: 'month'
  110. // ,btns: ['now', 'confirm']
  111. // ,showBottom: false
  112. // ,done: function(value){//控件选择完毕后的回调---点击日期、清空、现在、确定均会触发。
  113. // initPie(value);
  114. // }
  115. });
  116. </script>
  117. </body>
  118. </html>