| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <!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>
- .line{display: block;
- text-align: left;
- background-color: #fff;
- color: #333;
- border-bottom: 1px solid #0a6999;
- border-color: #fff;
- border-bottom: 1px solid #0a6999;
- margin-top: 10px;
- vertical-align: middle;
- padding: 4px 12px;
- height: 31px;
- line-height: 31px;
- font-size: 14px;
- font-weight: bold;
- }
- </style>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-property-edit">
- <input type="hidden" th:name="id" th:id="property_id" th:value="${property.id}"/>
-
- <div id="contractInfo" th:if="${contract}">
- <div class="line">基本信息</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 客户名称:</label>
- <div class="formControls col-xs-8 col-sm-9">
- [[${contract.company_name}]]
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 合同编号:</label>
- <div class="formControls col-xs-8 col-sm-9">
- [[${contract.contract_no}]]
- </div>
- </div>
- <div class="row cl" th:each="companyContact,iterStat:${contract.companyContacts}" th:object="${companyContact}">
- <label class="form-label col-xs-4 col-sm-2"> <span th:if="${iterStat.first}">联系人:</span></label>
- <div class="formControls col-xs-8 col-sm-4">
- [[*{contact}]]
- </div>
- <label class="form-label col-xs-4 col-sm-2"><span th:if="${iterStat.first}"> 联系电话:</span></label>
- <div class="formControls col-xs-8 col-sm-4">
- [[*{phone}]]
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 位置:</label>
- <div class="formControls col-xs-8 col-sm-4">
- [[${contract.location}]]
- </div>
- </div>
- </div>
- <div class="line">合同信息</div>
- <table id="propertyTb" style="margin-top: 15px" class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th>费用项</th>
- <th>单价(元/月/m²)</th>
- <th>面积(m²)</th>
- <th>开始日期</th>
- <th>结束日期</th>
- <th>收款周期</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:object="${property}">
- <td>
- <span th:if="*{fee_type}==1">物业费</span>
- <span th:if="*{fee_type}==0">停车费</span>
- </td>
- <td th:text="*{price}"></td>
- <td th:text="*{number}"></td>
- <td th:text="*{period_start_date}"></td>
- <td th:text="*{period_end_date}"></td>
- <td ><span th:text="*{payment_cycle}"></span>个月</td>
- </tr>
-
- </tbody>
- </table>
- <div class="line">本期费用</div>
- <table id="" style="margin-top: 15px" class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th>开始日期</th>
- <th>结束日期</th>
- <th>总金额(元)</th>
- <!-- <th>收款周期</th> -->
- <th>缴费日期</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:object="${property}">
- <td th:text="*{period_start_date}"></td>
- <td th:text="*{period_end_date}"></td>
- <td th:unless="*{total_fee}" th:text="(*{price})*(*{number})*(*{payment_cycle})"></td>
- <td th:if="*{total_fee}" th:text="*{total_fee}"></td>
- <!-- <td><span th:text="*{payment_cycle}"></span>个月</td> -->
- <td><span th:text="*{pay_time}"></span></td>
- </tr>
-
- </tbody>
- </table>
-
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 是否已缴费:</label>
- <div th:if="${editable}==true" class="formControls col-xs-8 col-sm-3">
- <span class="select-box" th:unless="${property.is_paid}=='2'">
- <select class="select" required th:name="is_paid" th:value="${property.is_paid}">
- <option th:selected="${property.is_paid}=='0'" value="0" >未缴费</option>
- <option th:selected="${property.is_paid}=='2'" value="2">已缴费</option>
- </select>
- </span>
- <span th:if="${property.is_paid}=='2'">已缴款</span>
- </div>
- <div th:unless="${editable}==true" class="formControls col-xs-8 col-sm-9">
- <span th:if="${property.is_paid}=='2'">已缴款</span>
- <span th:unless="${property.is_paid}=='2'">未缴款</span>
- </div>
- </div>
- <div class="row cl" id="manageRow">
- <div th:if="${editable}==true" class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <button th:unless="${property.is_paid}=='2'" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont"></i>保存</button>
- <!--<button onClick="printProperty();" class="btn btn-primary radius" type="button"> 打印 </button>-->
- <button onClick="removeIframe();" class="btn btn-default radius" type="button"> 取消 </button>
- </div>
- </div>
- </form>
- </article>
- <script type="text/javascript" th:src="@{/js/build/contract/contract_property_edit.js}"></script>
- <script th:inline="javascript">
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
-
- </script>
- </body>
- </html>
|