From 7ed3496fb335523bfc51b7e87551607d3b70c5a9 Mon Sep 17 00:00:00 2001 From: 92895 <928953915> Date: Wed, 16 Dec 2020 16:44:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=8F=97=E7=90=86=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=89=93=E5=8D=B0=E5=8F=91=E7=A5=A8=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/property/feeReceipt/feeReceipt.js | 83 ++++++++++++------- .../simplifyAcceptance.html | 10 +-- .../simplifyAcceptance/simplifyAcceptance.js | 42 +++++++++- 3 files changed, 100 insertions(+), 35 deletions(-) diff --git a/public/pages/property/feeReceipt/feeReceipt.js b/public/pages/property/feeReceipt/feeReceipt.js index c137ef992..bfe1c546a 100644 --- a/public/pages/property/feeReceipt/feeReceipt.js +++ b/public/pages/property/feeReceipt/feeReceipt.js @@ -1,6 +1,6 @@ /** - 入驻小区 - **/ + 入驻小区 +**/ (function (vc) { var DEFAULT_PAGE = 1; var DEFAULT_ROWS = 10; @@ -17,19 +17,31 @@ objType: '', storeName: '', objId: '', - month: '', - qstartTime: '', - qendTime: '', - type: '', - roomId: '', + month:'', + qstartTime:'', + qendTime:'', + type:'', + roomId:'', communityId: vc.getCurrentCommunity().communityId, - receiptId: '' + receiptId:'' } } }, _initMethod: function () { + //切换 至费用页面 + vc.on('feeReceipt', 'switch', function (_param) { + if (_param.ownerId == '') { + return; + } + console.log(_param); + vc.component.feeReceiptManageInfo.conditions.roomId=_param.roomName; + vc.component._listFeeReceipts(DEFAULT_PAGE, DEFAULT_ROWS); + + }); vc.component._initDate(); + vc.component._listFeeReceipts(DEFAULT_PAGE, DEFAULT_ROWS); + // vc.initDateMonth('startTime', function (_startTime) { // $that.feeReceiptManageInfo.conditions.month = _startTime; // }); @@ -42,8 +54,10 @@ // vc.initDateMonth('startTime', function (_startTime) { // $that.reportFeeSummaryInfo.conditions.startTime = _startTime; // }); + }, _initEvent: function () { + vc.on('feeReceiptManage', 'listFeeReceipt', function (_param) { vc.component._listFeeReceipts(DEFAULT_PAGE, DEFAULT_ROWS); }); @@ -52,7 +66,7 @@ }); }, methods: { - _initDate: function () { + _initDate:function(){ $(".startTime").datetimepicker({ language: 'zh-CN', fontAwesome: 'fa', @@ -76,22 +90,25 @@ todayBtn: true }); $('.startTime').datetimepicker() - .on('changeDate', function (ev) { - var value = $(".startTime").val(); - vc.component.feeReceiptManageInfo.conditions.qstartTime = value; - }); + .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; - }); + .on('changeDate', function (ev) { + var value = $(".endTime").val(); + vc.component.feeReceiptManageInfo.conditions.qendTime = value ; + }); }, _listFeeReceipts: function (_page, _rows) { + vc.component._initDate(); vc.component.feeReceiptManageInfo.conditions.page = _page; vc.component.feeReceiptManageInfo.conditions.row = _rows; + var param = { params: vc.component.feeReceiptManageInfo.conditions }; + // console.log(param); //发送get请求 vc.http.apiGet('/feeReceipt/queryFeeReceipt', param, @@ -114,32 +131,40 @@ } ); }, + _queryFeeReceiptMethod: function () { vc.component._listFeeReceipts(DEFAULT_PAGE, DEFAULT_ROWS); }, + _printFeeReceipt: function (_receipt) { window.open("/print.html#/pages/property/printPayFee?receiptId=" + _receipt.receiptId); }, _printFeeReceipts: function (_conditions) { - if (_conditions.roomId == null || _conditions.roomId == "") { - vc.toast("请填写收费对象", 1000); + // console.log(_conditions) + if(_conditions.roomId==null|| _conditions.roomId ==""){ + vc.toast("请填写收费对象",1000); return; } - if (_conditions.type == null || _conditions.type == "") { - vc.toast("请选择打印类型", 1000); + if(_conditions.type==null|| _conditions.type ==""){ + vc.toast("请选择打印类型",1000); return; } - if (_conditions.qstartTime == null || _conditions.qstartTime == "") { - 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); + if(_conditions.qendTime==null|| _conditions.qendTime ==""){ + vc.toast("请选择结束时间",1000); return; } - window.open("/print.html#/pages/property/printPayFees?roomName=" + _conditions.roomId + - "&type=" + _conditions.type + "&qstartTime=" + _conditions.qstartTime + "&qendTime=" + _conditions.qendTime + - "&storeName=" + _conditions.storeName); + // 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+"&qstartTime="+_conditions.qstartTime+"&qendTime="+_conditions.qendTime); }, _moreCondition: function () { if (vc.component.feeReceiptManageInfo.moreCondition) { @@ -148,6 +173,8 @@ vc.component.feeReceiptManageInfo.moreCondition = true; } } + + } }); })(window.vc); diff --git a/public/pages/property/simplifyAcceptance/simplifyAcceptance.html b/public/pages/property/simplifyAcceptance/simplifyAcceptance.html index 0ee8f6952..b7301bb74 100644 --- a/public/pages/property/simplifyAcceptance/simplifyAcceptance.html +++ b/public/pages/property/simplifyAcceptance/simplifyAcceptance.html @@ -161,8 +161,8 @@ v-on:click="changeTab('simplifyOwnerTransactionCar')">道闸同步