123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="keywords" content="">
- <meta name="description" content="">
- <title>机构企业</title>
- <link rel="stylesheet" href="../../../component/pear/css/pear.css">
- <link rel="stylesheet" href="../../../admin/css/cool/add.css">
- <style>
- th {
- background-color: #f2f9fc;
- color: #666;
- }
- td {
- color: #333;
- }
- .layui-table th {
- font-weight: 400;
- width: 70px;
- }
- .formClass {
- border: 0;
- height: 22px;
- background-color: transparent;
- }
- .cool-imgs-ul {
- overflow: hidden;
- }
- .cool-imgs-ul li {
- position: relative;
- cursor: pointer;
- margin-top: 15px;
- margin-right: 15px;
- list-style: none;
- padding: 0;
- float: left;
- display: block;
- overflow: hidden;
- width: 150px;
- text-align: center
- }
- .cool-imgs-ul li image {
- cursor: pointer;
- }
- </style>
- </head>
- <body>
- <div class="cool-container">
- <section class="container-header">
- <div class="cool-page-header-sm3" style="text-align: left;" id="fhmain">
- <span>/ 详情</span>
- <a href="main.html" class="cool-back-link">返回列表</a>
- </div>
- <div style="text-align: right;">
- <div id="examine">
- </div>
- </div>
- </section>
- <div class="setting container-body">
- <form class="layui-form" lay-filter="edit">
- <input type="hidden" name="id">
- <blockquote class="cool-elem-quote">区县总计</blockquote>
- <table class="layui-table" style="table-layout:fixed;">
- <tr>
- <th>区县名称</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="districtName" class="layui-input formClass" disabled>
- </td>
- <th>销售套数</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="saleNumber" class="layui-input formClass" disabled>
- </td>
- </tr>
- <tr>
- <th>销售面积</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="saleArea" class="layui-input formClass" disabled>
- </td>
- <th>销售总价</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="saleTotalPrice" class="layui-input formClass" disabled>
- </td>
- </tr>
- </table>
- <blockquote class="cool-elem-quote">住宅统计</blockquote>
- <table class="layui-table" style="table-layout:fixed;">
- <tr>
- <th>区县名称</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="districtName" class="layui-input formClass" disabled>
- </td>
- <th>销售套数</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="resSaleNumber" class="layui-input formClass" disabled>
- </td>
- </tr>
- <tr>
- <th>销售面积</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="resSaleArea" class="layui-input formClass" disabled>
- </td>
- <th>销售总价</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="resSaleTotalPrice" class="layui-input formClass" disabled>
- </td>
- </tr>
- </table>
- <blockquote class="cool-elem-quote">非住宅统计</blockquote>
- <table class="layui-table" style="table-layout:fixed;">
- <tr>
- <th>区县名称</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="districtName" class="layui-input formClass" disabled>
- </td>
- <th>销售套数</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="otherSaleNumber" class="layui-input formClass" disabled>
- </td>
- </tr>
- <tr>
- <th>销售面积</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="otherSaleArea" class="layui-input formClass" disabled>
- </td>
- <th>销售总价</th>
- <td colspan="5" style="padding-left: 5px;">
- <input type="text" name="otherSaleTotalPrice" class="layui-input formClass" disabled>
- </td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- <script src="../../../component/layui/layui.js"></script>
- <script src="../../../component/pear/pear.js"></script>
- <script>
- layui.use(['request', 'form', 'popup'], function () {
- var $ = layui.jquery,
- request = layui.request,
- form = layui.form,
- popup = layui.popup;
- var MODULE_PATH = "/business/data/v1/view";
- layer.ready(function () {
- var yearMonth = request.getQueryString("yearMonth");
- var district = request.getQueryString("district");
- if (district) {
- var loading = layer.load(2, {shade: [0.3, '#333']});
- request.httpGet(MODULE_PATH + "?district="+district+"&yearMonth="+yearMonth, function (res) {
- layer.close(loading);
- if (res.success) {
- form.val('edit', res.data);
- } else {
- popup.failure(res.msg);
- }
- });
- }
- });
- // 初始化按钮
- window.initButton = function (data) {
- if (parseInt(data.examineStatus) === 0) {
- $('#examine').append('<button class="pear-btn pear-btn-primary pear-btn-md" style="padding:0 15px;" onclick="examine()">审批</button>');
- }
- };
- window.getExamineStatus = function (data) {
- if (parseInt(data) === 0) {
- $("#examineStatus").html("<span class=\"layui-badge-dot warning\"></span>待审批");
- }
- if (parseInt(data) === 1) {
- $("#examineStatus").html("<span class=\"layui-badge-dot success\"></span>已审批");
- }
- if (parseInt(data) === 2) {
- $("#examineStatus").html("<span class=\"layui-badge-dot failure\"></span>已驳回");
- }
- }
- // 初始化详情
- request.tableRender({
- url: '/business/collection/v1/',
- where: {
- corpId: request.getQueryString("id")
- },
- cols: [
- [
- {title: '区县', field: 'district', align: 'center'},
- {title: '区县名称', field: 'districtName', align: 'center'},
- {title: '销售年月', field: 'yearMonth', align: 'center'},
- {title: '销售类型', field: 'saleType', align: 'center', templet: function (d) {
- return d.saleType == 1 ? '住宅' : '非住宅';
- }
- },
- {title: '销售套数(套)', field: 'saleNumber', align: 'center'},
- {title: '销售面积(m²)', field: 'saleArea', align: 'center'},
- {title: '销售总价(元)', field: 'saleTotalPrice', align: 'center'},
- ]
- ]
- });
- // 审核
- window.examine = function () {
- layer.open({
- type: 2,
- title: '流程审批',
- shade: 0.1,
- area: ['480px', '350px'],
- content: 'examine.html?id=' + $('[name="id"]').val()
- });
- };
- })
- </script>
- </body>
- </html>
|