优化代码

This commit is contained in:
wuxw 2024-12-06 10:20:20 +08:00
parent d1574605dc
commit 8555b5cd42
2 changed files with 88 additions and 85 deletions

View File

@ -1,18 +1,17 @@
<div> <div>
<div>
<div>
<div class=" text-center"> <div class=" text-center">
<h1>{{printPayFeeInfo.printName}}缴费通知单</h1> <h1>{{printPayFeeInfo.printName}}缴费通知单</h1>
<h3></h3> <h3></h3>
</div> </div>
<div class="row margin-top" style="color:#000;font-size:14px"> <div class="row margin-top" style="color:#000;font-size:14px">
<div class="col-sm-4"> <div class="col-sm-4">
<span><vc:i18n name="业主:" namespace="printOweFee"></vc:i18n></span>{{printPayFeeInfo.ownerName}} 业主:{{printPayFeeInfo.ownerName}}
</div> </div>
<div class="col-sm-4"> <div class="col-sm-4">
</div> </div>
<div class="col-sm-4"> <div class="col-sm-4">
<span><vc:i18n name="打印时间:" namespace="printOweFee"></vc:i18n></span>{{printPayFeeInfo.feeTime}} 打印时间:{{printPayFeeInfo.feeTime}}
</div> </div>
</div> </div>
<table class="table vc-table-border margin-top" style="color:#000;font-size:14px"> <table class="table vc-table-border margin-top" style="color:#000;font-size:14px">
@ -50,10 +49,9 @@
</br> </br>
{{item.preDegrees}} 至 {{item.curDegrees}} {{item.preDegrees}} 至 {{item.curDegrees}}
</td> </td>
<td class="text-center" v-else> {{vc.dateFormat(item.endTime)}}<span> <td class="text-center" v-else> {{vc.dateFormat(item.endTime)}}至{{_getDeadlineTime(item)}}
<vc:i18n name="至" namespace="printOweFee"></vc:i18n></span> {{_getDeadlineTime(item)}}
</td> </td>
<td class="text-center"><span><vc:i18n name="" namespace="printOweFee"></vc:i18n></span></td> <td class="text-center"></td>
<td class="text-center" v-if="item.preDegrees">{{(item.curDegrees-item.preDegrees).toFixed(2)}}</td> <td class="text-center" v-if="item.preDegrees">{{(item.curDegrees-item.preDegrees).toFixed(2)}}</td>
<td class="text-center" v-else>{{printPayFeeInfo.builtUpArea}}</td> <td class="text-center" v-else>{{printPayFeeInfo.builtUpArea}}</td>
<td class="text-center" v-if="item.preDegrees && item.mwPrice > 0">{{item.mwPrice}}</td> <td class="text-center" v-if="item.preDegrees && item.mwPrice > 0">{{item.mwPrice}}</td>
@ -61,7 +59,9 @@
<td class="text-center">{{item.feeTotalPrice}}</td> <td class="text-center">{{item.feeTotalPrice}}</td>
</tr> </tr>
<tr> <tr>
<td colspan="1" class="text-center "><span><vc:i18n name="大写人民币" namespace="printOweFee"></vc:i18n></span>(元)</td> <td colspan="1" class="text-center ">
<vc:i18n name="大写人民币(元)" namespace="printOweFee"></vc:i18n>
</td>
<td colspan="4" class="text-center ">{{vc.changeNumMoneyToChinese(printPayFeeInfo.feePrices)}} <td colspan="4" class="text-center ">{{vc.changeNumMoneyToChinese(printPayFeeInfo.feePrices)}}
</td> </td>
<td colspan="4" class="text-center ">{{printPayFeeInfo.feePrices}}</td> <td colspan="4" class="text-center ">{{printPayFeeInfo.feePrices}}</td>
@ -77,13 +77,16 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
<div id="print-btn"> <div id="print-btn">
<button class="btn btn-primary float-right" type="button" v-on:click="_printPurchaseApplyDiv()"> <button class="btn btn-primary float-right" type="button" v-on:click="_printPurchaseApplyDiv()">
<i class="fa fa-check"></i>&nbsp;打印 <i class="fa fa-check"></i>&nbsp;打印
</button> </button>
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;" v-on:click="_closePage()"><span><vc:i18n name="取消" namespace="printOweFee"></vc:i18n></span> <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
v-on:click="_closePage()"><span>
<vc:i18n name="取消" namespace="printOweFee"></vc:i18n>
</span>
</button> </button>
</div> </div>
</div>
</div> </div>

View File

@ -126,7 +126,7 @@
}, },
_loadOweFees: function () { _loadOweFees: function () {
var param = { let param = {
params: { params: {
page: 1, page: 1,
row: 50, row: 50,