mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
521b5d6661
commit
501087e164
@ -6,13 +6,10 @@
|
||||
<span style="color:#000;font-size:20px">单号:{{printPayFeeInfo.receiptNum}}</span>
|
||||
</div>
|
||||
<div class="row " style="color:#000;font-size:20px">
|
||||
<div class="col-sm-4">
|
||||
<span>{{printPayFeeInfo.roomName}}</span>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<span>业主:{{printPayFeeInfo.payObjName}}</span>
|
||||
</div>
|
||||
<div class="col-sm-4 text-right">
|
||||
<div class="col-sm-8 text-right">
|
||||
<span>缴费时间:{{printPayFeeInfo.feeTime}}</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -21,6 +18,7 @@
|
||||
<tr>
|
||||
<th scope="col" class="text-center" width="80px">编号</th>
|
||||
<th scope="col" class="text-center">收费项目</th>
|
||||
<th scope="col" class="text-center">房屋/车辆</th>
|
||||
<th scope="col" class="text-center">收费范围</th>
|
||||
<th scope="col" class="text-center">周期</th>
|
||||
<th scope="col" class="text-center">单价/固定费</th>
|
||||
@ -34,6 +32,7 @@
|
||||
<tr v-for="(item,index) in printPayFeeInfo.fees" class="vc-table-border">
|
||||
<th scope="row" class="text-center">{{index +1}}</th>
|
||||
<td class="text-center">{{item.feeName}}</td>
|
||||
<td class="text-center">{{item.objName}}</td>
|
||||
<td class="text-center">
|
||||
{{vc.dateFormat(item.startTime)}}至{{vc.dateSubOneDay(vc.dateFormat(item.startTime),vc.dateFormat(item.endTime),item.feeFlag)}}
|
||||
</td>
|
||||
@ -47,12 +46,12 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="text-center ">大写人民币(元)</td>
|
||||
<td colspan="4" class="text-center ">{{vc.changeNumMoneyToChinese(printPayFeeInfo.amount)}}
|
||||
<td colspan="5" class="text-center ">{{vc.changeNumMoneyToChinese(printPayFeeInfo.amount)}}
|
||||
</td>
|
||||
<td colspan="3" class="text-center ">{{printPayFeeInfo.amount}}</td>
|
||||
</tr>
|
||||
<tr height="60px">
|
||||
<td colspan="5">
|
||||
<td colspan="6">
|
||||
<p style="max-width: 600px;">
|
||||
<!-- {{printPayFeeInfo.content}} -->
|
||||
<div v-html="printPayFeeInfo.content"></div>
|
||||
|
||||
@ -13,7 +13,8 @@
|
||||
wechatName: '',
|
||||
content: '',
|
||||
qrImg: '',
|
||||
payObjName:''
|
||||
payObjName:'',
|
||||
feeReceipt:[]
|
||||
},
|
||||
printFlag: '0'
|
||||
},
|
||||
@ -66,6 +67,7 @@
|
||||
$that.printPayFeeInfo.feeTime = _feeReceipt[0].createTime;
|
||||
$that.printPayFeeInfo.receiptNum = _feeReceipt[0].receiptId;
|
||||
$that.printPayFeeInfo.payObjName = _feeReceipt[0].payObjName;
|
||||
$that.printPayFeeInfo.feeReceipt = _feeReceipt;
|
||||
|
||||
$that._loadReceiptDetail();
|
||||
|
||||
@ -92,7 +94,16 @@
|
||||
function (json, res) {
|
||||
var _feeReceiptManageInfo = JSON.parse(json);
|
||||
let _feeReceiptDetails = _feeReceiptManageInfo.data;
|
||||
_feeReceiptDetails.forEach(item=>{
|
||||
$that.printPayFeeInfo.feeReceipt.forEach(im =>{
|
||||
if(item.receiptId == im.receiptId){
|
||||
item.objName = im.objName;
|
||||
}
|
||||
})
|
||||
})
|
||||
$that.printPayFeeInfo.fees = _feeReceiptDetails;
|
||||
|
||||
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user