contract_archive_list.html 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. </head>
  8. <body layout:fragment="content">
  9. <nav class="breadcrumb">
  10. <i class="Hui-iconfont">&#xe67f;</i>
  11. 首页
  12. <span class="c-gray en">&gt;</span>归档管理
  13. <span class="c-gray en">&gt;</span>合同归档
  14. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  15. <i class="Hui-iconfont">&#xe68f;</i>
  16. </a>
  17. </nav>
  18. <form id="myForm" th:action="@{/build/contract/listByStatus}" th:method="get">
  19. <div class="page-container">
  20. <div class="text-c">
  21. <input type="text" class="input-text keyword" style="width:330px" placeholder="请输入合同编号,客户名称,联系人,联系电话" name="keyword" th:value="${keyword}"/>
  22. <button type="submit" class="btn btn-primary">
  23. 搜索
  24. </button>
  25. </div>
  26. <div class="cl pd-5 bg-1 bk-gray mt-20">
  27. <span class="l">
  28. <a onClick="report_export()" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe640;</i> 导出Excel</a>
  29. </span>
  30. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span>
  31. </div>
  32. <table class="table table-border table-bordered table-bg table-hover">
  33. <thead>
  34. <tr class="text-c">
  35. <!--<th width="25"><input type="checkbox" name="" value=""/></th>-->
  36. <th>合同编号</th>
  37. <th>客户名称</th>
  38. <th>联系人</th>
  39. <th>联系电话</th>
  40. <th>租赁平方(平方米)</th>
  41. <th>合同生效日期</th>
  42. <th>合同到期日期</th>
  43. <th>合同终止日期</th>
  44. <th>状态</th>
  45. <th width="100">操作</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  50. <!--<td><input type="checkbox" th:value="*{id}" th:id="${iterStat.index+1}" name="id"/></td>-->
  51. <td th:text="*{contract_no}"></td>
  52. <td th:text="*{company_name}"></td>
  53. <td> <span th:each="companyContact,iterStat:*{companyContacts}" th:object="${companyContact}">
  54. [[*{contact}]] <span th:if="${iterStat.last}"></span><span th:unless="${iterStat.last}">,</span>
  55. </span></td>
  56. <td> <span th:each="companyContact,iterStat:*{companyContacts}" th:object="${companyContact}">
  57. [[*{phone}]] <span th:if="${iterStat.last}"></span><span th:unless="${iterStat.last}">,</span>
  58. </span></td>
  59. <td th:text="*{area}"></td>
  60. <td th:text="*{contract_start_date}"></td>
  61. <td th:text="*{contract_end_date}"></td>
  62. <td th:text="*{contract_terminate_date}"></td>
  63. <td class="td-status">
  64. <span class="label radius label-success" th:if="*{status==0}">使用中</span>
  65. <span class="label radius" th:if="*{status==1}">终止</span>
  66. </td>
  67. <td class="td-manage">
  68. <!--<a title="编辑" th:onclick="'javascript:contract_dialog(\'合同编辑\',\'/build/contract/edit/'+*{id}+'\',\'950\',\'700\');'" class="ml-5" style="text-decoration:none">编辑</a>-->
  69. <a title="详情" th:onclick="'javascript:contract_dialog(\'详情\',\'/build/contract/check/'+*{id}+'\',\'950\',\'700\');'" class="ml-5" style="text-decoration:none">详情</a>
  70. </td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. <div th:replace="admin/common/page :: page"></div>
  75. </div>
  76. </form>
  77. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  78. <script type="text/javascript" th:src="@{/js/build/contract/contract_archive_list.js}"></script>
  79. <script th:inline="javascript">
  80. function report_export(){
  81. window.open(pagePath + "/export/contract?is_archive=true&keyword="+$(".keyword").val());
  82. }
  83. </script>
  84. </body>
  85. </html>