companyOprationsInfo_list.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. #form-content-edit{padding-top:70px}
  9. .text-c>div>input{margin-top:5px;display:block;}
  10. .text-c>label{margin-top:5px;display:block;}
  11. </style>
  12. </head>
  13. <body layout:fragment="content">
  14. <nav class="breadcrumb">
  15. <i class="Hui-iconfont">&#xe67f;</i>
  16. 首页
  17. <span class="c-gray en">&gt;</span>企业经营数据 <span class="c-gray en"></span>
  18. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  19. <i class="Hui-iconfont">&#xe68f;</i>
  20. </a>
  21. </nav>
  22. <form id="myForm" th:action="@{/company/companyOprationsInfo/list}" th:method="get">
  23. <div class="page-container">
  24. <div class="text-c">
  25. <div class="text-c">
  26. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>企业名称:</label>
  27. <div class="col-xs-6 col-sm-2">
  28. <input type="text" class="input-text" maxlength="50" placeholder="请输入企业名称查询" name="Kcompany_name" th:value="${companyInfoManageDto.Kcompany_name}" />
  29. </div>
  30. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>统一社会信用代码:</label>
  31. <div class="col-xs-6 col-sm-2">
  32. <input type="text" class="input-text" maxlength="50" placeholder="请输入统一社会信用代码查询" name="Kuscc" th:value="${companyInfoManageDto.Kuscc}" />
  33. </div><!-- th:value="${Kindustry_code}" -->
  34. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>组织机构代码:</label>
  35. <div class="col-xs-6 col-sm-2">
  36. <input type="text" class="input-text" maxlength="50" placeholder="请输入组织机构代码查询" name="Korganization_code" th:value="${companyInfoManageDto.Korganization_code}" />
  37. </div>
  38. <!--<label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>行业代码:</label>
  39. <div class="col-xs-6 col-sm-2">
  40. <input type="text" class="input-text" maxlength="50" placeholder="请输入行业代码查询" name="Kindustry_code" th:value="${companyInfoManageDto.Kindustry_code}" />
  41. </div>-->
  42. <label class="form-label col-xs-4 col-sm-2">注册资金最小金额:</label>
  43. <div class="col-xs-6 col-sm-2">
  44. <input type="text" class="input-text" placeholder="请输入金额" name="Kregistration_capital_min" th:value="${companyInfoManageDto.Kregistration_capital_min}" />
  45. </div>
  46. <label class="form-label col-xs-4 col-sm-2">注册资金最大金额:</label>
  47. <div class="col-xs-6 col-sm-2">
  48. <input type="text" class="input-text" placeholder="请输入金额" name="Kregistration_capital_max" th:value="${companyInfoManageDto.Kregistration_capital_max}"/>
  49. </div>
  50. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>法人:</label>
  51. <div class="col-xs-6 col-sm-2"><!-- th:value="${Klegal_representative}" th:value="${registration_capital_max}" th:value="${registration_capital_min}" -->
  52. <input type="text" class="input-text" maxlength="50" placeholder="请输入法人查询" name="Klegal_representative" th:value="${companyInfoManageDto.Klegal_representative}"/>
  53. </div>
  54. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>街道:</label>
  55. <div class="formControls col-xs-6 col-sm-2" style="margin-top:5px;";>
  56. <input type="hidden" name="Kstreet_id" id="Kstreet_id"/>
  57. <span class="select-box">
  58. <select class="select" id="Streets" onchange="getStreet_ids1()" >
  59. <option value="">--请选择街道--</option>
  60. <option th:each="item : ${streetList}" th:value="${item.id}" th:text="${item.name}" th:selected="${companyInfoManageDto.Kstreet_id}==${item.id}"/>
  61. </select>
  62. </span>
  63. </div>
  64. <!-- th:value="${Kbuild_name}" th:value="${Kstreet_name}"-->
  65. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>园区:</label>
  66. <div class="formControls col-xs-6 col-sm-2" style="margin-top:5px;">
  67. <input type="hidden" name="Kbuild_id" id="build_id"/>
  68. <span class="select-box">
  69. <select class="select" id="Builds" style="width:100%" onchange="getBuild_ids1()" >
  70. <option value="">--请选择园区--</option>
  71. <option th:each="item : ${buildInfo}" th:value="${item.id}" th:text="${item.name}" th:selected="${companyInfoManageDto.Kbuild_id}==${item.id}"/>
  72. </select>
  73. </span>
  74. </div>
  75. <button type="submit" class="btn btn-primary" style="float:right;margin-top:5px;margin-right:15px;">
  76. 搜索
  77. </button>
  78. <div style="clear:both;"></div>
  79. </div>
  80. <div class="cl pd-5 bg-1 bk-gray mt-20">
  81. <span class="l">
  82. </span>
  83. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total" >54</strong> 条</span><!-- -->
  84. </div>
  85. <table class="table table-border table-bordered table-bg table-hover">
  86. <thead>
  87. <tr class="text-c">
  88. <!--<th><input type="hidden" name="" value=""/></th>-->
  89. <th>序号</th>
  90. <th>企业名称</th>
  91. <th>统一社会信用代码</th>
  92. <th>组织机构代码</th>
  93. <th>所属行业</th>
  94. <th>法人</th>
  95. <th>街道</th>
  96. <th>园区</th>
  97. <th>管理部门</th>
  98. <th>注册资本</th>
  99. <th>状态</th>
  100. <th >操作</th>
  101. </tr>
  102. </thead>
  103. <tbody>
  104. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  105. <!--<td><input type="hidden" th:value="*{id}" th:id="${iterStat.index+1}" name="id"/></td>-->
  106. <td th:text="${iterStat.index+1}"></td>
  107. <td th:text="*{company_name}"></td>
  108. <td th:text="*{uscc}"></td>
  109. <td th:text="*{organization_code}"></td>
  110. <td th:text="*{industry_code}"></td>
  111. <td th:text="*{legal_representative}"></td>
  112. <td th:text="*{street_name}"></td>
  113. <td th:text="*{build_name}"></td>
  114. <td th:text="*{relation_name}"></td>
  115. <td th:text="*{registration_capital}"></td>
  116. <td class="td-status">
  117. <span class="label radius" th:unless="*{is_start}">禁用</span>
  118. <span class="label radius label-success" th:if="*{is_start}">启用</span>
  119. </td>
  120. <td class="td-manage">
  121. <a title="经营数据" href="javascript:;" th:onclick="'javascript:oprationsCkeck_dialog(\'经营数据\',\'/company/companyOprationsInfo/checkData/'+*{id}+'\');'"
  122. class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">经营数据</i></a>
  123. </td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. <div th:replace="admin/common/page :: page"></div>
  128. </div>
  129. </form>
  130. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  131. <script type="text/javascript" th:src="@{/js/company/companyOprationsInfo/companyOprationsInfo_list.js}"></script>
  132. <script th:inline="javascript">
  133. /*绑定街道id*/
  134. function getStreet_ids1(){
  135. var value = $("#Streets").find("option:selected").val();
  136. var text = $("#Streets").find("option:selected").text();
  137. $("#Kstreet_id").val(value);
  138. console.log("Kstreet_id = " + $("#Kstreet_id").val());
  139. getBuilds();
  140. }
  141. function getBuilds(){
  142. $.ajax({
  143. url : pagePath+"/company/companyInfoManage/selectBuildByStreetId",
  144. type : "post",
  145. data : {
  146. 'street_id' : $("#Kstreet_id").val()
  147. },
  148. dataType : "json",
  149. success: function (result) {
  150. if (result.success) {
  151. var buildInfo = result.obj;
  152. bidBuild(buildInfo);
  153. } else {
  154. //errorMessage(result.message);
  155. }
  156. },
  157. error: function () {
  158. errorMessage('系统错误!');
  159. }
  160. });
  161. }
  162. function bidBuild(buildInfo){
  163. $("#Builds option").remove();
  164. var option = '<option value="-1">' + "--请选择园区--" + '</option>'
  165. for (var i = 0; i < buildInfo.length; i++) {
  166. option += '<option value="'+ buildInfo[i].id +'" name = "'+ buildInfo[i].name +'" id = "'+ buildInfo[i].id +'" >'
  167. option += buildInfo[i].name
  168. option += '</option>'
  169. }
  170. $("#Builds").append(option);
  171. }
  172. /*绑定园区id*/
  173. function getBuild_ids1(){
  174. var value = $("#Builds").find("option:selected").val();
  175. console.log("value = " + value);
  176. var text = $("#Builds").find("option:selected").text();
  177. $("#build_id").val(value);
  178. }
  179. </script>
  180. </body>
  181. </html>