123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <link rel="stylesheet" href="./cdn/element-ui/2.13.2/theme-chalk/index.css">
- <title></title>
- <style>
- table,
- table tr th,
- table tr td {
- border: 2px solid #333333;
- padding: 5px 0;
- height: 37px;
- }
-
- body {
- margin: 0;
- }
-
- #app {
- /* height: 98vh;
- position: relative; */
- }
-
- .content {
- width: 1000px;
- padding: 30px 20px 20px 20px;
- font-size: 18px;
- height: 630px;
- /* height: 570px; */
- position: relative;
- }
-
- .a5-content {
- height: 130vh;
- }
-
- table {
- width: 100%;
- text-align: center;
- border-collapse: collapse;
- border: 3px solid #333333;
- font-size: 15px;
- }
-
- .col-bgc {
- background: #f6f7fb;
- }
-
- .bottom-row1 {
- display: flex;
- /* justify-content: space-between; */
- margin-top: 5px 0;
- }
-
- .bottom-row2 {
- display: flex;
- }
-
- img,
- .left {
- width: 180px;
- }
-
- .config {
- margin-top: 10px;
- margin-right: 240px;
- }
-
- .autograph {
- margin-top: 10px;
- margin-right: 170px;
- }
-
- .bottom-row3 {
- margin: 10px 0;
- }
-
- .title {
- text-align: center;
- font-size: 36px;
- font-weight: 500;
- position: relative;
- /* margin-top: 47px; */
- }
-
- .number {
- text-align: left;
- margin-bottom: 10px;
- margin-top: 10px;
- }
-
- .small-row {
- display: flex;
- }
-
- .small-content {
- width: 300px;
- /* margin: 0 auto;
- border: 1px solid #ccc;
- padding: 20px 20px 160px 20px;
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- margin: auto; */
- }
-
- .small-title {
- text-align: center;
- font-size: 18px;
- /* display: flex; */
- justify-content: space-between;
- align-items: center;
- }
-
- .numberNo {
- font-size: 36px;
- margin: auto;
- }
-
- .small-row {
- display: flex;
- justify-content: space-between;
- margin: 10px;
- }
-
- .small-img {
- margin-right: 0;
- }
-
- .sign {
- margin-right: 100px;
- }
-
- .small-code {
- position: relative;
- left: calc(50% - 55px)
- }
-
- .title1 {
- text-align: center;
- font-size: 26px;
- font-weight: 500;
- position: relative;
- }
- </style>
- </head>
- <body>
- <div id="app">
- <div class="content">
- <!-- <div class="title ">{{tableData.compName}}</div> -->
- <div>
- <img src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/hengxinlogo.png " alt=" " style="float: left;">
- <img src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/dongfangyulogo.png " alt=" " style="float:right;">
- <div class="title1">黑龙江恒信物业管理有限公司</div>
- <div class="title">收款收据</div>
- </div>
- <div class="number">收款日期:</div>
- <table class="table ">
- <tr class="row ">
- <td class="col col-bgc ">业主姓名</td>
- <td class="col ">{{tableData.householder}}</td>
- <td class="col col-bgc ">房源号</td>
- <td class="col ">{{tableData.sourceNumber}}</td>
- <td class="col col-bgc ">房屋面积</td>
- <td class="col ">{{tableData.actualMoney}}</td>
- <td class="col col-bgc ">平方米</td>
- <td class="col col-bgc ">收款方式</td>
- <td class="col ">{{tableData.paymentMethod}}</td>
- </tr>
- <tr class="row ">
- <td class="col col-bgc " rowspan="7">收费项目</td>
- <td class="col">物业服务费</td>
- <td class="col col-bgc ">金额(元)</td>
- <td class="col " colspan="4">{{tableData.propertyFee}}</td>
- <td class="col col-bgc ">收费区间</td>
- <td class="col " colspan="2 ">{{tableData.paymentRange}}</td>
- </tr>
- <tr class="row ">
- <td class="col">电梯运行费</td>
- <td class="col col-bgc ">金额(元)</td>
- <td class="col " colspan="4">{{tableData.elevatorFee}}</td>
- <td class="col col-bgc ">收费区间</td>
- <td class="col " colspan="2 ">{{tableData.paymentRange}}</td>
- </tr>
- <tr class="row ">
- <td class="col">车位管理费</td>
- <td class="col col-bgc ">金额(元)</td>
- <td class="col " colspan="4">{{tableData.parkingSpace}}</td>
- <td class="col col-bgc ">收费区间</td>
- <td class="col " colspan="2 ">{{tableData.paymentRange}}</td>
- </tr>
- <tr class="row ">
- <td class="col">车库管理费</td>
- <td class="col col-bgc ">金额(元)</td>
- <td class="col " colspan="4">{{tableData.garage}}</td>
- <td class="col col-bgc ">收费区间</td>
- <td class="col " colspan="2 ">{{tableData.paymentRange}}</td>
- </tr>
- <tr class="row ">
- <td class="col">仓储间管理费</td>
- <td class="col col-bgc ">金额(元)</td>
- <td class="col " colspan="4">{{tableData.warehouse}}</td>
- <td class="col col-bgc ">收费区间</td>
- <td class="col " colspan="2 ">{{tableData.paymentRange}}</td>
- </tr>
- <tr class="row ">
- <td class="col">小计</td>
- <td class="col " colspan="7">{{totalPrice}}</td>
- </tr>
- <tr class="row ">
- <td class="col">代收装修垃圾及漂浮物、清运、处理费</td>
- <td class="col ">金额(元)</td>
- <td class="col " colspan="4">{{tableData.garbageClearing}}</td>
- <td class="col ">备注</td>
- <td class="col ">{{tableData.remark}}</td>
- </tr>
- <tr class="row ">
- <td class="col" colspan="2">应收款项合计</td>
- <td class="col " colspan="5">{{total}}</td>
- <td class="col ">业主签字</td>
- <td class="col ">{{tableData.personPhone}}</td>
- </tr>
- </table>
- </div>
- </div>
- </body>
- <script src="./cdn/vue/2.6.10/vue.min.js "></script>
- <script src="./cdn/element-ui/2.13.2/index.js "></script>
- <script type="text/javascript ">
- new Vue({
- el: '#app',
- data: {
- tableData: {}
- },
- computed: {
- totalPrice() {
- let _totalPrice = Number(this.tableData.propertyFee) + Number(this.tableData.elevatorFee) +
- Number(this.tableData.parkingSpace) + Number(this.tableData.garage) + Number(this
- .tableData.warehouse)
- return _totalPrice;
- },
- total() {
- let _total = Number(this.tableData.propertyFee) + Number(this.tableData.elevatorFee) +
- Number(this.tableData.parkingSpace) + Number(this.tableData.garage) + Number(this
- .tableData.warehouse) + Number(this.tableData.garbageClearing)
- return _total
- },
- },
- methods: {
- tableRowClassName({
- row,
- rowIndex
- }) {
- if (rowIndex === 1) {
- return 'warning-row';
- } else if (rowIndex === 3) {
- return 'success-row';
- }
- return '';
- },
- getQueryVariable(variable) {
- debugger
- var query = window.location.search.substring(1);
- var vars = query.split("& ");
- for (var i = 0; i < vars.length; i++) {
- var pair = vars[i].split("=");
- if (pair[0] == variable) {
- return pair[1];
- }
- }
- return (false);
- },
- printSmall() {},
- printBig() {},
- },
- mounted() {
- debugger
- this.tableData = decodeURIComponent(this.getQueryVariable("data"))
- this.tableData = JSON.parse(this.tableData)
- console.log(this.tableData)
- document.title = "收款收据 "
- window.print()
- window.onafterprint = function(event) {
- window.history.back(-1)
- };
- },
- watch: {}
- })
- </script>
- </html>
|