| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>内容列表</title>
- <style>
- .layui-layer-iframe{top:10px !important}
- </style>
- </head>
- <body layout:fragment="content">
- <nav class="breadcrumb">
- <i class="Hui-iconfont"></i>
- 首页
- <span class="c-gray en">></span> 合同管理
- <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
- <i class="Hui-iconfont"></i>
- </a>
- </nav>
- <form id="myForm" th:action="@{/build/contract/endList}" th:method="get">
- <div class="page-container">
- <div class="text-c">
- <input type="text" class="input-text keyword" style="width:300px" placeholder="请输入合同编号,客户名称,联系人,联系电话" name="keyword" th:value="${keyword}"/>
- <button type="submit" class="btn btn-primary">
- 搜索
- </button>
- </div>
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <span class="l">
- <!-- <a onClick="contract_stop('/build/contract/stop')" class="btn btn-danger radius"><i class="Hui-iconfont"></i>终止</a>
- -->
- <a onClick="contract_archive('/build/contract/archive')" class="btn btn-danger radius"><i class="Hui-iconfont"></i> 归档</a>
- <a onClick="report_export()" class="btn btn-primary radius"><i class="Hui-iconfont"></i> 导出Excel</a>
- <a onclick="contract_dialog('新增','/build/contract/add','950','500')" class="btn btn-primary radius"><i class="Hui-iconfont"></i> 新增</a>
- </span>
- <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span>
- </div>
- <table class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th width="25"><input type="checkbox" name="" value=""/></th>
- <th>合同编号</th>
- <th>客户名称</th>
- <th>联系人</th>
- <th>联系电话</th>
- <th>租赁平方(平方米)</th>
- <th>合同生效日期</th>
- <th>合同到期日期</th>
- <th>合同终止日期</th>
- <th>状态</th>
- <th width="100">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
- <td><input type="checkbox" th:value="*{id}" th:id="${iterStat.index+1}" name="id" th:status="*{status}"/></td>
- <td th:text="*{contract_no}"></td>
- <td th:text="*{company_name}"></td>
- <td th:text="*{company_contact}"></td>
- <td th:text="*{company_phone}"></td>
- <td th:text="*{area}"></td>
- <td th:text="*{contract_start_date}"></td>
- <td th:text="*{contract_end_date}"></td>
- <td th:text="*{contract_terminate_date}"></td>
- <td class="td-status">
- <span class="label radius label-success" th:if="*{status==0}">使用中</span>
- <span class="label radius" th:if="*{status==1}">终止</span>
- <span class="label radius" th:if="*{status==2}">到期</span>
- <span class="label radius" th:if="*{status==3}">未生效</span>
- </td>
- <td class="td-manage">
- <a th:if="*{status==3}" title="编辑" th:onclick="'javascript:contract_dialog(\'合同编辑\',\'/build/contract/edit/'+*{id}+'\',\'950\',\'700\');'" class="ml-5" style="text-decoration:none">编辑</a>
- <a title="详情" th:onclick="'javascript:contract_dialog(\'详情\',\'/build/contract/check/'+*{id}+'\',\'950\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a>
- <a th:if="*{status==0}" th:onClick="'javascript:contract_dialog(\'终止\',\'/build/contract/stop/'+*{id}+'\',\'950\',\'705\');'" class="ml-5" style="text-decoration:none" >终止</a>
- <a title="删除" th:unless="*{status==0}" th:onclick="'javascript:contract_del(\'/build/contract/delete/'+*{id}+'\');'" class="ml-5" style="text-decoration:none">删除</a>
- </td>
- </tr>
- </tbody>
- </table>
- <div th:replace="admin/common/page :: page"></div>
- </div>
- </form>
- <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
- <script type="text/javascript" th:src="@{/js/build/contract/contract_list.js}"></script>
- <script th:inline="javascript">
- function report_export(){
- window.open(pagePath + "/export/contract?keyword="+$(".keyword").val());
- }
- </script>
- </body>
- </html>
|