补打票据修改

This commit is contained in:
92895 2020-12-07 16:04:51 +08:00
parent bb4e910638
commit 5749cda8cf
2 changed files with 21 additions and 5 deletions

View File

@ -11,6 +11,11 @@
<div class="col-sm-2">
<span>房号:{{printPayFeeInfo.roomName}}</span>
</div>
<!-- <div v-if="printPayFeeInfo.type== 3 && printPayFeeInfo.carNum!=null && printPayFeeInfo.carNum!='' " class="col-sm-2">
<span>车牌号码:{{printPayFeeInfo.carNum}}</span>
</div>
<div v-if="printPayFeeInfo.type != 3 || printPayFeeInfo.carNum==null | printPayFeeInfo.carNum=='' " class="col-sm-2">
</div> -->
<div class="col-sm-2">
</div>
<div class="col-sm-2">
@ -54,8 +59,9 @@
<td v-if="printPayFeeInfo.type == 5" class="text-center" >{{item.startTime!=null?vc.dateFormat(item.startTime):''}}</td>
<td v-if="printPayFeeInfo.type == 5" class="text-center" >{{item.endTime!=null?vc.dateFormat(item.endTime):''}}</td>
<td class="text-center" >{{item.amount}}</td>
<td v-if="printPayFeeInfo.type!= 3" class="text-center" >{{item.remark}}</td>
<td v-if="printPayFeeInfo.type== 3" class="text-center" >{{item.remark}}{{item.carNum}}</td>
<td class="text-center" >{{item.remark}}</td>
<!-- <td v-if="printPayFeeInfo.type!= 3" class="text-center" >{{item.remark}}</td> -->
<!-- <td v-if="printPayFeeInfo.type== 3" class="text-center" >{{item.remark}}{{item.carNum}}</td> -->
</tr>
<tr >
<!-- <td colspan="1" class="text-center ">大写人民币(元)</td> -->
@ -65,7 +71,10 @@
<!-- <td colspan="1" class="text-center ">合计(小写)</td> -->
<td v-if=" printPayFeeInfo.type==4 " colspan="4" class="text-center ">合计(小写): {{printPayFeeInfo.amount}}</td>
<td v-if=" printPayFeeInfo.type!=4 " colspan="3" class="text-center ">合计(小写): {{printPayFeeInfo.amount}}</td>
<td colspan="4" class="text-center "></td>
<!-- <td colspan="4" class="text-center "></td> -->
<td v-if="printPayFeeInfo.type== 3 && printPayFeeInfo.carNum!=null && printPayFeeInfo.carNum!=''" colspan="4" class="text-center ">车牌号:{{printPayFeeInfo.carNum}}</td>
<td v-if="printPayFeeInfo.type != 3 || printPayFeeInfo.carNum==null | printPayFeeInfo.carNum=='' " colspan="4" class="text-center "></td>
</tr>
<!-- <tr height="60px">

View File

@ -15,7 +15,8 @@
feeTime: '',
wechatName:'',
content:'',
qrImg:''
qrImg:'',
carNum:''
},
printFlag: '0'
},
@ -29,9 +30,10 @@
$that.printPayFeeInfo.qstartTime = vc.getParam('qstartTime');
$that.printPayFeeInfo.qendTime = vc.getParam('qendTime');
//$that.printPayFeeInfo.feeTime = vc.dateTimeFormat(new Date());
$that.printPayFeeInfo.communityName = vc.getCurrentCommunity().name;
$that._loadReceipt();
$that._loadPrintSpec();
@ -78,6 +80,11 @@
for(var i =0 ; i<_feeReceiptManageInfo.data.length; i++){
$that.printPayFeeInfo.amount += parseFloat(_feeReceiptManageInfo.data[i].amount)*1000000000000;
if(vc.getParam('type')==3){
if( _feeReceiptManageInfo.data[i].carNum != null && _feeReceiptManageInfo.data[i].carNum != '' ){
$that.printPayFeeInfo.carNum += _feeReceiptManageInfo.data[i].carNum+" ";
}
}
}
$that.printPayFeeInfo.amount = $that.printPayFeeInfo.amount/1000000000000;
$that.printPayFeeInfo.fees = _feeReceiptManageInfo.data;