mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 14:17:54 +08:00
补打票据改成时间区间打印 更新
This commit is contained in:
parent
b63b2d396a
commit
babea65a0d
@ -26,8 +26,11 @@
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<input type="text" v-model="feeReceiptManageInfo.conditions.receiptId" class=" form-control"
|
||||
placeholder="请输入收据ID">
|
||||
<!-- <select class="custom-select" v-model="feeReceiptManageInfo.conditions.state">
|
||||
<option selected value="">请选择状态</option>
|
||||
<option value="1001">未使用</option>
|
||||
<option value="2002">已使用</option>
|
||||
</select>-->
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryFeeReceiptMethod()">
|
||||
@ -35,37 +38,7 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group input-group">
|
||||
<input type="text" placeholder="请选择月份" v-model="feeReceiptManageInfo.conditions.month"
|
||||
class="form-control startTime">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
|
||||
<select class="custom-select" v-model="feeReceiptManageInfo.conditions.type">
|
||||
<option selected value="">请选择打印类型</option>
|
||||
<option value="1">装修单据</option>
|
||||
<option value="2">押金单据 </option>
|
||||
<option value="3">日常收费 </option>
|
||||
<option value="4">车辆单据 </option>
|
||||
<option value="5">公摊费票据 </option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm"
|
||||
v-on:click="_printFeeReceipts(feeReceiptManageInfo.conditions)">
|
||||
<i class="glyphicon glyphicon-search"></i> 打印
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -105,10 +78,6 @@
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_printFeeReceipt(feeReceipt)">补打收据</button>
|
||||
</div>
|
||||
<!-- <div v-if="feeReceipt.objType == '6666'" class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_printFeeReceipt(feeReceipt)">补打收据(车)</button>
|
||||
</div> -->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -17,6 +17,8 @@
|
||||
objType: '',
|
||||
objId: '',
|
||||
month:'',
|
||||
qstartTime:'',
|
||||
qendTime:'',
|
||||
type:'',
|
||||
roomId:'',
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
@ -25,14 +27,23 @@
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._initDate();
|
||||
|
||||
vc.component._listFeeReceipts(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
vc.initDateMonth('startTime', function (_startTime) {
|
||||
$that.feeReceiptManageInfo.conditions.month = _startTime;
|
||||
});
|
||||
// vc.initDateMonth('startTime', function (_startTime) {
|
||||
// $that.feeReceiptManageInfo.conditions.month = _startTime;
|
||||
// });
|
||||
// vc.initDateDay('startTime', function (_startTime) {
|
||||
// $that.feeReceiptManageInfo.conditions.startTime = _startTime;
|
||||
// });
|
||||
// vc.initDateDay('endTime', function (_endTime) {
|
||||
// $that.feeReceiptManageInfo.conditions.endTime = _endTime;
|
||||
// });
|
||||
// vc.initDateMonth('startTime', function (_startTime) {
|
||||
// $that.reportFeeSummaryInfo.conditions.startTime = _startTime;
|
||||
// });
|
||||
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
@ -44,6 +55,40 @@
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_initDate:function(){
|
||||
$(".startTime").datetimepicker({
|
||||
language: 'zh-CN',
|
||||
fontAwesome: 'fa',
|
||||
format: 'yyyy-mm-dd',
|
||||
startView: 2,
|
||||
minView: 2,
|
||||
initTime: true,
|
||||
initialDate: new Date(),
|
||||
autoClose: 1,
|
||||
todayBtn: true
|
||||
});
|
||||
$(".endTime").datetimepicker({
|
||||
language: 'zh-CN',
|
||||
fontAwesome: 'fa',
|
||||
format: 'yyyy-mm-dd',
|
||||
startView: 2,
|
||||
minView: 2,
|
||||
initTime: true,
|
||||
initialDate: new Date(),
|
||||
autoClose: 1,
|
||||
todayBtn: true
|
||||
});
|
||||
$('.startTime').datetimepicker()
|
||||
.on('changeDate', function (ev) {
|
||||
var value = $(".startTime").val();
|
||||
vc.component.feeReceiptManageInfo.conditions.qstartTime = value ;
|
||||
});
|
||||
$('.endTime').datetimepicker()
|
||||
.on('changeDate', function (ev) {
|
||||
var value = $(".endTime").val();
|
||||
vc.component.feeReceiptManageInfo.conditions.qendTime = value ;
|
||||
});
|
||||
},
|
||||
_listFeeReceipts: function (_page, _rows) {
|
||||
|
||||
vc.component.feeReceiptManageInfo.conditions.page = _page;
|
||||
@ -88,12 +133,22 @@
|
||||
vc.toast("请选择打印类型",1000);
|
||||
return;
|
||||
}
|
||||
if(_conditions.month==null|| _conditions.month ==""){
|
||||
vc.toast("请选择费用月份",1000);
|
||||
// if(_conditions.month==null|| _conditions.month ==""){
|
||||
// vc.toast("请选择费用月份",1000);
|
||||
// return;
|
||||
// }
|
||||
if(_conditions.qstartTime==null|| _conditions.qstartTime ==""){
|
||||
vc.toast("请选择开始时间",1000);
|
||||
return;
|
||||
}
|
||||
if(_conditions.qendTime==null|| _conditions.qendTime ==""){
|
||||
vc.toast("请选择结束时间",1000);
|
||||
return;
|
||||
}
|
||||
// window.open("/print.html#/pages/property/printPayFees?roomName=" + _conditions.roomId+
|
||||
// "&type="+_conditions.type+"&month="+_conditions.month);
|
||||
window.open("/print.html#/pages/property/printPayFees?roomName=" + _conditions.roomId+
|
||||
"&type="+_conditions.type+"&month="+_conditions.month);
|
||||
"&type="+_conditions.type+"&qstartTime="+_conditions.qstartTime+"&qendTime="+_conditions.qendTime);
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.feeReceiptManageInfo.moreCondition) {
|
||||
|
||||
@ -55,12 +55,13 @@
|
||||
<td class="text-center">{{item.remark}}</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td colspan="1" class="text-center ">大写人民币(元)</td>
|
||||
<td colspan="3" class="text-center ">{{vc.changeNumMoneyToChinese(printPayFeeInfo.amount)}}
|
||||
<!-- <td colspan="1" class="text-center ">大写人民币(元)</td> -->
|
||||
<td colspan="3" class="text-center ">大写人民币(元): {{vc.changeNumMoneyToChinese(printPayFeeInfo.amount)}}
|
||||
</td>
|
||||
<td v-if="printPayFeeInfo.type== 3 || printPayFeeInfo.type==4 " colspan="1" class="text-center "></td>
|
||||
<td colspan="1" class="text-center ">合计(小写)</td>
|
||||
<td colspan="1" class="text-center ">{{printPayFeeInfo.amount}}</td>
|
||||
<!-- <td v-if="printPayFeeInfo.type== 3 || printPayFeeInfo.type==4 " colspan="1" class="text-center "></td> -->
|
||||
<!-- <td colspan="1" class="text-center ">合计(小写)</td> -->
|
||||
<td v-if="printPayFeeInfo.type== 3 || printPayFeeInfo.type==4 " colspan="4" class="text-center ">合计(小写): {{printPayFeeInfo.amount}}</td>
|
||||
<td v-if="printPayFeeInfo.type!= 3 && printPayFeeInfo.type!=4 " colspan="3" class="text-center ">合计(小写): {{printPayFeeInfo.amount}}</td>
|
||||
<td colspan="4" class="text-center "></td>
|
||||
|
||||
</tr>
|
||||
|
||||
@ -8,6 +8,8 @@
|
||||
roomName: '',
|
||||
type: '',
|
||||
month: '',
|
||||
qstartTime:'',
|
||||
qendTime:'',
|
||||
amount: 0.00,
|
||||
fees: [],
|
||||
feeTime: '',
|
||||
@ -23,8 +25,9 @@
|
||||
$that.printPayFeeInfo.receiptId = vc.getParam('receiptId');
|
||||
$that.printPayFeeInfo.roomName = vc.getParam('roomName');
|
||||
$that.printPayFeeInfo.type = vc.getParam('type');
|
||||
$that.printPayFeeInfo.month = vc.getParam('month');
|
||||
|
||||
// $that.printPayFeeInfo.month = vc.getParam('month');
|
||||
$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;
|
||||
@ -51,7 +54,8 @@
|
||||
roomName:$that.printPayFeeInfo.roomName,
|
||||
type:$that.printPayFeeInfo.type,
|
||||
month:$that.printPayFeeInfo.month,
|
||||
|
||||
qstartTime:$that.printPayFeeInfo.qstartTime,
|
||||
qendTime:$that.printPayFeeInfo.qendTime,
|
||||
communityId:vc.getCurrentCommunity().communityId
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user