159 lines
8.8 KiB
XML
159 lines
8.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="property_confirm_template">
|
|
<t t-call="web.html_container">
|
|
<t t-foreach="docs" t-as="doc">
|
|
<t t-call="web.external_layout">
|
|
<style type="text/css">
|
|
/* 表格纵向版式:自适应,最大800px 居中 */
|
|
table { border-collapse: collapse; width: 100%; max-width: 800px; margin: 0 auto; table-layout: fixed; }
|
|
td { border: 1px solid #000; padding: 6px; text-align: center; vertical-align: middle; }
|
|
.title {
|
|
text-align: center;
|
|
font-weight: bold;
|
|
font-size: 18px;
|
|
padding: 8px 0;
|
|
}
|
|
.header-cell { font-weight: bold; background-color: #d4e6f1;}
|
|
/* 附件清单左对齐 */
|
|
.attachment-list { text-align: left; }
|
|
/* 隐藏意见和审批人之间的竖边框 */
|
|
.no-right-border { border-right: none !important; }
|
|
.no-left-border { border-left: none !important; }
|
|
</style>
|
|
|
|
<!-- 流水号:页面左上角,位于标题之上,浅灰色 -->
|
|
<div style="margin-bottom:8px; text-align:left; color:#999999;">
|
|
流水号:<span t-esc="doc.code or ''"/>
|
|
</div>
|
|
|
|
<!-- 标题 -->
|
|
<div class="title">
|
|
成交确认书
|
|
</div>
|
|
|
|
<table>
|
|
<colgroup>
|
|
<col style="width:15%"/>
|
|
<col style="width:35%"/>
|
|
<col style="width:15%"/>
|
|
<col style="width:35%"/>
|
|
</colgroup>
|
|
|
|
<tr>
|
|
<td class="header-cell"><strong>标题</strong></td>
|
|
<td colspan="3"><span t-esc="doc.name or ''"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="header-cell"><strong>承租方</strong></td>
|
|
<td><span t-esc="doc.lessee or ''"/></td>
|
|
<td class="header-cell"><strong>是否用章</strong></td>
|
|
<td>
|
|
<span t-if="doc.is_chapter == 'yes'">是</span>
|
|
<span t-if="doc.is_chapter == 'no'">否</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="header-cell"><strong>物业信息</strong></td>
|
|
<td colspan="3"><span t-esc="doc.property_name or ''"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="header-cell"><strong>经办意见</strong></td>
|
|
<td colspan="3" class="attachment-list"><span t-esc="doc.handling_opinions or ''"/></td>
|
|
</tr>
|
|
|
|
<!-- 用章类型(由is_chapter控制显隐) -->
|
|
<t t-if="doc.is_chapter == 'yes'">
|
|
<tr>
|
|
<td class="header-cell"><strong>用章类型</strong></td>
|
|
<td colspan="3" class="attachment-list">
|
|
<t t-foreach="doc.type_stamp_ids" t-as="stamp">
|
|
<span t-esc="stamp.name"/>
|
|
<t t-if="not stamp_last">、</t>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
|
|
<tr>
|
|
<td class="header-cell"><strong>附件</strong></td>
|
|
<td colspan="3" class="attachment-list">
|
|
<t t-foreach="doc.documents_ids" t-as="doc_file">
|
|
<div><span t-esc="doc_file.name or ''"/></div>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- 面积/租期年限/免租天数/递增(与表单字段位置、命名对齐) -->
|
|
<tr>
|
|
<!-- 面积:下方物业明细行可租面积之和 -->
|
|
<td class="header-cell"><strong>面积</strong></td>
|
|
<td><span t-esc="doc.property_area"/></td>
|
|
<!-- 租期年限(整型,单位年) -->
|
|
<td class="header-cell"><strong>租期年限</strong></td>
|
|
<td><span t-esc="doc.lease_term_years"/><t t-if="doc.lease_term_years"> 年</t></td>
|
|
</tr>
|
|
<tr>
|
|
<!-- 免租天数(整型,单位天) -->
|
|
<td class="header-cell"><strong>免租天数</strong></td>
|
|
<td><span t-esc="doc.rent_free_days"/><t t-if="doc.rent_free_days"> 天</t></td>
|
|
<!-- 每 __ 年递增 __ %:与表单单行组合一致 -->
|
|
<td class="header-cell"><strong>每几年递增</strong></td>
|
|
<td>
|
|
<t t-if="doc.increments_few_years or doc.annual_increase_percentage">
|
|
每 <span t-esc="doc.increments_few_years"/> 年递增 <span t-esc="doc.annual_increase_percentage"/> %
|
|
</t>
|
|
<t t-else="">—</t>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- 物业列表明细 -->
|
|
<t t-if="doc.lease_ids">
|
|
<tr>
|
|
<td colspan="4" style="background-color: #d4e6f1; text-align: center;"><strong>物业列表</strong></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="header-cell"><strong>物业地址</strong></td>
|
|
<td class="header-cell"><strong>可租面积</strong></td>
|
|
<td class="header-cell"><strong>评估单价</strong></td>
|
|
<td class="header-cell"><strong>管理费标准</strong></td>
|
|
</tr>
|
|
<t t-foreach="doc.lease_ids" t-as="line">
|
|
<tr>
|
|
<td><span t-esc="line.address_id.name or ''"/></td>
|
|
<td><span t-esc="line.property_area or ''"/></td>
|
|
<td><span t-esc="line.evaluate_unit_price or ''"/></td>
|
|
<td><span t-esc="line.message_standard_id.name or ''"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="header-cell"><strong>税率</strong></td>
|
|
<td><span t-esc="line.tax or ''"/></td>
|
|
<td class="header-cell"><strong>管理员</strong></td>
|
|
<td><span t-esc="line.admin_line_id.name or ''"/></td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
|
|
<!-- 审批详情 -->
|
|
<tr>
|
|
<td colspan="4" style="background-color: #d4e6f1; text-align: center;"><strong>审批详情</strong></td>
|
|
</tr>
|
|
<t t-set="logs_ordered" t-value="doc.log_ids.sorted(lambda x: x.date_create or '')"/>
|
|
<t t-foreach="logs_ordered" t-as="log">
|
|
<tr>
|
|
<td colspan="1"><span t-esc="log.name or '节点'"/></td>
|
|
<td class="no-right-border" colspan="2"><span t-esc="log.comment or ''"/></td>
|
|
<td class="no-left-border" colspan="1">
|
|
<t t-if="log.done_by">
|
|
<span t-esc="log.done_by.name"/> <span t-esc="log.lase_click_date and log.lase_click_date.strftime('%Y-%m-%d') or ''"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</table>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|