diff --git a/public/pages/property/billManage/billManage.html b/public/pages/property/billManage/billManage.html new file mode 100644 index 000000000..24142e484 --- /dev/null +++ b/public/pages/property/billManage/billManage.html @@ -0,0 +1,116 @@ +
+
+
+
+
+
查询条件
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ + +
+
+
+
+
+
+
+
+
账单信息
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
账单编号账单名称累计应收当期应收实收金额账单日期收费项目账单类型操作
{{activities.billId}}{{activities.billName}}{{activities.receivable}}元{{activities.curReceivable}}元{{activities.billTime}}元{{activities.configName}}{{activities.curBill == 'T'?'当前账单':'历史账单'}} +
+ +
+
+
    +
    + + +
    +
    +
    +
    + +
    \ No newline at end of file diff --git a/public/pages/property/billManage/billManage.js b/public/pages/property/billManage/billManage.js new file mode 100644 index 000000000..f767f4d1a --- /dev/null +++ b/public/pages/property/billManage/billManage.js @@ -0,0 +1,83 @@ +/** + 入驻小区 + **/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + billManageInfo: { + bills: [], + total: 0, + records: 1, + moreCondition: false, + title: '', + conditions: { + title: '', + typeCd: '', + userName: '', + billId: '', + + } + } + }, + _initMethod: function () { + $that._listbills(DEFAULT_PAGE,DEFAULT_ROWS); + }, + _initEvent: function () { + + vc.on('billManage', 'listbill', function (_param) { + vc.component.billManageInfo.componentShow = 'billList'; + vc.component._listbills(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('pagination', 'page_event', function (_currentPage) { + vc.component._listbills(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + _listbills: function (_page, _rows) { + + vc.component.billManageInfo.conditions.page = _page; + vc.component.billManageInfo.conditions.row = _rows; + vc.component.billManageInfo.conditions.communityId = vc.getCurrentCommunity().communityId; + var param = { + params: vc.component.billManageInfo.conditions + }; + + //发送get请求 + vc.http.apiGet('billManage', + param, + function (json, res) { + var _billManageInfo = JSON.parse(json); + vc.component.billManageInfo.total = _billManageInfo.total; + vc.component.billManageInfo.records = _billManageInfo.records; + vc.component.billManageInfo.bills = _billManageInfo.data; + vc.emit('pagination', 'init', { + total: vc.component.billManageInfo.records, + currentPage: _page + }); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + _openBillDetail: function () { + + + }, + _querybillMethod: function () { + vc.component._listbills(DEFAULT_PAGE, DEFAULT_ROWS); + + }, + _moreCondition: function () { + if (vc.component.billManageInfo.moreCondition) { + vc.component.billManageInfo.moreCondition = false; + } else { + vc.component.billManageInfo.moreCondition = true; + } + } + + + } + }); +})(window.vc);