优化diamante

This commit is contained in:
java110 2021-04-13 18:34:12 +08:00
parent 71ccba26ca
commit a550970bd6
4 changed files with 26 additions and 3 deletions

View File

@ -34,6 +34,10 @@
v-on:click="_printFeeSmallReceipt()">
打印小票
</button>
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
v-on:click="_printApplyFeeReceipt()">
申请单
</button>
</div>
</div>
<div class="margin-top">

View File

@ -114,7 +114,22 @@
if (receiptids.endsWith(',')) {
receiptids = receiptids.substring(0, receiptids.length - 1);
}
window.open("/print.html#/pages/property/printPayFee?receiptIds=" + receiptids);
window.open("/print.html#/pages/property/printPayFee?receiptIds=" + receiptids+"&apply=N");
},
_printApplyFeeReceipt: function (_receipt) {
if ($that.simplifyFeeReceiptInfo.selectReceipts.length < 1) {
vc.toast('请选择');
return;
}
let receiptids = '';
$that.simplifyFeeReceiptInfo.selectReceipts.forEach(item => {
receiptids += (item + ',');
})
if (receiptids.endsWith(',')) {
receiptids = receiptids.substring(0, receiptids.length - 1);
}
window.open("/print.html#/pages/property/printPayFee?receiptIds=" + receiptids+"&apply=Y");
},
_printFeeSmallReceipt:function(){

View File

@ -2,7 +2,8 @@
<div>
<div>
<div class=" text-center">
<div style="color:#000;font-size:36px">{{printPayFeeInfo.communityName}} 收据单</div>
<div style="color:#000;font-size:36px">{{printPayFeeInfo.communityName}} {{printPayFeeInfo.apply ==
'Y'?'申请单':'收据单'}}</div>
<span style="color:#000;font-size:20px">单号:{{printPayFeeInfo.receiptNum}}</span>
</div>
<div class="row " style="color:#000;font-size:20px">

View File

@ -14,7 +14,8 @@
content: '',
qrImg: '',
payObjName:'',
feeReceipt:[]
feeReceipt:[],
apply:'N'
},
printFlag: '0'
},
@ -23,6 +24,8 @@
$that.printPayFeeInfo.receiptId = vc.getParam('receiptId');
$that.printPayFeeInfo.receiptIds = vc.getParam('receiptIds');
$that.printPayFeeInfo.apply = vc.getParam('apply');
//$that.printPayFeeInfo.feeTime = vc.dateTimeFormat(new Date());
$that.printPayFeeInfo.communityName = vc.getCurrentCommunity().name;