优化代码

This commit is contained in:
wuxw 2024-12-07 00:47:14 +08:00
parent 8555b5cd42
commit 8bfc1437df

View File

@ -1,38 +1,56 @@
<div> <div>
<div>
<div>
<div class="text-center"> <div class="text-center">
<div style="color:#000;font-size:26px">{{printPayFeeInfo.communityName}} <div style="color:#000;font-size:26px">{{printPayFeeInfo.communityName}}
<span v-if="printPayFeeInfo.apply == 'Y'">申请单</span> <span v-if="printPayFeeInfo.apply == 'Y'">申请单</span>
<span v-if="printPayFeeInfo.apply == 'N'">收据单</span> <span v-if="printPayFeeInfo.apply == 'N'">收据单</span>
<span v-if="printPayFeeInfo.apply == 'R'">退款单</span> <span v-if="printPayFeeInfo.apply == 'R'">退款单</span>
</div> </div>
<!-- <span style="color:#000;font-size:14px"><span><vc:i18n name="单号" namespace="printPayFee"></vc:i18n></span>{{printPayFeeInfo.receiptNum}}</span> -->
</div> </div>
<div style="color:#000;font-size:14px;margin-left:20px"> <div style="color:#000;font-size:18px;margin-left:20px">
<div class="float-left"> <div class="float-left">
<span><span><vc:i18n name="业主" namespace="printPayFee"></vc:i18n></span>{{printPayFeeInfo.payObjName}}</span> 业主:{{printPayFeeInfo.payObjName}}
</div> </div>
<div class="float-right text-right"> <div class="float-right text-right">
<span style="color:#000;font-size:14px"><span><vc:i18n name="单号" namespace="printPayFee"></vc:i18n></span>{{printPayFeeInfo.receiptNum}}</span> <span>单号{{printPayFeeInfo.receiptNum}}</span>
<br /> <br />
<span><span><vc:i18n name="缴费时间" namespace="printPayFee"></vc:i18n></span>{{printPayFeeInfo.feeTime}}</span> <span>缴费时间:{{printPayFeeInfo.feeTime}}</span>
</div> </div>
</div> </div>
<table class="table vc-table-border" style="color:#000;font-size:14px"> <table class="table vc-table-border" style="color:#000;font-size:18px">
<thead> <thead>
<tr> <tr>
<th scope="col" class="text-center" width="80px"><vc:i18n name="编号" namespace="printPayFee"></vc:i18n></th> <th scope="col" class="text-center" width="80px">
<th scope="col" class="text-center"><vc:i18n name="收费项目" namespace="printPayFee"></vc:i18n></th> <vc:i18n name="编号" namespace="printPayFee"></vc:i18n>
<th scope="col" class="text-center"><vc:i18n name="房屋/车辆" namespace="printPayFee"></vc:i18n></th> </th>
<th scope="col" class="text-center"><vc:i18n name="收费范围" namespace="printPayFee"></vc:i18n></th> <th scope="col" class="text-center">
<vc:i18n name="收费项目" namespace="printPayFee"></vc:i18n>
</th>
<th scope="col" class="text-center">
<vc:i18n name="房屋/车辆" namespace="printPayFee"></vc:i18n>
</th>
<th scope="col" class="text-center">
<vc:i18n name="收费范围" namespace="printPayFee"></vc:i18n>
</th>
<!-- <th scope="col" class="text-center"><span><vc:i18n name="周期" namespace="printPayFee"></vc:i18n></span></th> --> <!-- <th scope="col" class="text-center"><span><vc:i18n name="周期" namespace="printPayFee"></vc:i18n></span></th> -->
<th scope="col" class="text-center"><vc:i18n name="单价" namespace="printPayFee"></vc:i18n></th> <th scope="col" class="text-center">
<th scope="col" class="text-center"><vc:i18n name="面积/用量" namespace="printPayFee"></vc:i18n></th> <vc:i18n name="单价" namespace="printPayFee"></vc:i18n>
<th scope="col" class="text-center"><vc:i18n name="支付方式" namespace="printPayFee"></vc:i18n></th> </th>
<th scope="col" class="text-center"><vc:i18n name="金额" namespace="printPayFee"></vc:i18n></th> <th scope="col" class="text-center">
<th scope="col" class="text-center"><vc:i18n name="优惠金额" namespace="printPayFee"></vc:i18n></th> <vc:i18n name="面积/用量" namespace="printPayFee"></vc:i18n>
<th scope="col" class="text-center"><vc:i18n name="备注" namespace="printPayFee"></vc:i18n></th> </th>
<th scope="col" class="text-center">
<vc:i18n name="支付方式" namespace="printPayFee"></vc:i18n>
</th>
<th scope="col" class="text-center">
<vc:i18n name="金额" namespace="printPayFee"></vc:i18n>
</th>
<th scope="col" class="text-center">
<vc:i18n name="优惠金额" namespace="printPayFee"></vc:i18n>
</th>
<th scope="col" class="text-center">
<vc:i18n name="备注" namespace="printPayFee"></vc:i18n>
</th>
</tr> </tr>
</thead> </thead>
<tbody class="vc-table-border" style="color:#000;font-size:20px"> <tbody class="vc-table-border" style="color:#000;font-size:20px">
@ -42,7 +60,9 @@
<td class="text-center">{{item.objName}}</td> <td class="text-center">{{item.objName}}</td>
<td class="text-center" v-if="item.preDegrees"> <td class="text-center" v-if="item.preDegrees">
{{vc.dateFormat(item.startTime)}} {{vc.dateFormat(item.startTime)}}
<span><vc:i18n name="至" namespace="printPayFee"></vc:i18n></span> <span>
<vc:i18n name="至" namespace="printPayFee"></vc:i18n>
</span>
{{vc.dateFormat(item.endTime)}}</br> {{vc.dateFormat(item.endTime)}}</br>
{{item.preDegrees}} 至 {{item.curDegrees}} {{item.preDegrees}} 至 {{item.curDegrees}}
</td> </td>
@ -51,22 +71,30 @@
</td> </td>
<td class="text-center" v-else> <td class="text-center" v-else>
{{vc.dateFormat(item.startTime)}}<span><vc:i18n name="至" namespace="printPayFee"></vc:i18n></span>{{vc.dateFormat(item.endTime)}} {{vc.dateFormat(item.startTime)}}<span>
<vc:i18n name="至" namespace="printPayFee"></vc:i18n>
</span>{{vc.dateFormat(item.endTime)}}
</td> </td>
<!--<td class="text-center">{{item.startTime}}<span><vc:i18n name="至" namespace="printPayFee"></vc:i18n></span>{{item.endTime}}</td>--> <!--<td class="text-center">{{item.startTime}}<span><vc:i18n name="至" namespace="printPayFee"></vc:i18n></span>{{item.endTime}}</td>-->
<!-- <td class="text-center">{{item.cycle}}</td> --> <!-- <td class="text-center">{{item.cycle}}</td> -->
<td class="text-center">{{item.squarePrice}}</br>{{item.units}}</td> <td class="text-center">{{item.squarePrice}}</br>{{item.units}}</td>
<td class="text-center">{{item.area}}</td> <td class="text-center">{{item.area}}</td>
<td class="text-center">{{item.primeRate}}</td> <td class="text-center">{{item.primeRate}}</td>
<td class="text-center" v-if="item.amount < 0">{{item.amount}}<vc:i18n name="元(退费)" namespace="printPayFee"></vc:i18n></td> <td class="text-center" v-if="item.amount < 0">{{item.amount}}<vc:i18n name="元(退费)"
namespace="printPayFee"></vc:i18n>
</td>
<td class="text-center" v-else>{{item.amount}} <td class="text-center" v-else>{{item.amount}}
<span> <vc:i18n name="元" namespace="printPayFee"></vc:i18n></span> <span>
<vc:i18n name="元" namespace="printPayFee"></vc:i18n>
</span>
</td> </td>
<td class="text-center">{{item.discountPrice || 0}}</td> <td class="text-center">{{item.discountPrice || 0}}</td>
<td class="text-center" width="200px">{{item.remark}}</td> <td class="text-center" width="200px">{{item.remark}}</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="text-center "><span><vc:i18n name="大写人民币" namespace="printPayFee"></vc:i18n></span>(元)</td> <td colspan="3" class="text-center "><span>
<vc:i18n name="大写人民币" namespace="printPayFee"></vc:i18n>
</span>(元)</td>
<td colspan="4" class="text-center ">{{vc.changeNumMoneyToChinese(printPayFeeInfo.amount)}} <td colspan="4" class="text-center ">{{vc.changeNumMoneyToChinese(printPayFeeInfo.amount)}}
</td> </td>
<td colspan="3" class="text-center ">{{printPayFeeInfo.amount}}</td> <td colspan="3" class="text-center ">{{printPayFeeInfo.amount}}</td>
@ -82,21 +110,32 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
<div class="row" style="color:#000;font-size:14px;margin-left: 10px;"> <div class="row" style="color:#000;font-size:18px;margin-left: 10px;">
<div class="float-left" style="width: 25%;"><span><vc:i18n name="部门负责人" namespace="printPayFee"></vc:i18n></span></div> <div class="float-left" style="width: 25%;"><span>
<div class="float-left" style="width: 25%;"><span><vc:i18n name="经办人" namespace="printPayFee"></vc:i18n></span>{{vc.getData('/nav/getUserInfo').name}}</div> <vc:i18n name="部门负责人" namespace="printPayFee"></vc:i18n>
<div class="float-left" style="width: 25%;"><span><vc:i18n name="财务收款" namespace="printPayFee"></vc:i18n></span></div> </span></div>
<div class="float-left" style="width: 25%;"><span><vc:i18n name="客户确认" namespace="printPayFee"></vc:i18n></span></div> <div class="float-left" style="width: 25%;"><span>
<vc:i18n name="经办人" namespace="printPayFee"></vc:i18n>
</span>{{vc.getData('/nav/getUserInfo').name}}</div>
<div class="float-left" style="width: 25%;"><span>
<vc:i18n name="财务收款" namespace="printPayFee"></vc:i18n>
</span></div>
<div class="float-left" style="width: 25%;"><span>
<vc:i18n name="客户确认" namespace="printPayFee"></vc:i18n>
</span></div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-12" id="print-btn"> <div class="col-md-12" 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="printPayFee"></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="printPayFee"></vc:i18n>
</span>
</button> </button>
</div> </div>
</div> </div>
</div>
</div> </div>