From 8398aa3d1e6c844a1c4c49017b4835633bacc76c Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Mon, 19 Oct 2020 18:39:57 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/bigScreen/index.html | 2 +-
public/bigScreen/js/box5.js | 67 +++++++++++++++++++++++++++++++++----
2 files changed, 61 insertions(+), 8 deletions(-)
diff --git a/public/bigScreen/index.html b/public/bigScreen/index.html
index 26cf0616a..492ae8ec7 100644
--- a/public/bigScreen/index.html
+++ b/public/bigScreen/index.html
@@ -24,7 +24,7 @@
top: 35px;
color: #487bff;
font-size: 22px;">
- 控制台
+ 控制台
diff --git a/public/bigScreen/js/box5.js b/public/bigScreen/js/box5.js
index e965964eb..c8ff2bdbe 100644
--- a/public/bigScreen/js/box5.js
+++ b/public/bigScreen/js/box5.js
@@ -33,7 +33,7 @@
for (let _inIndex = 0; _inIndex < _dataArr.length; _inIndex++) {
_li += "
" + (_inIndex + 1) + ".0、" + _dataArr[_inIndex].msg + "";
- if(_inIndex >=5){
+ if (_inIndex >= 5) {
break;
}
}
@@ -41,18 +41,20 @@
}
function initPrePayment(_dataArr) {
- let _todayInpection = document.getElementById("todayPreFee");
- let _li = "预交费提醒:";
+
+ let _li = "预交费提醒:";
for (let _inIndex = 0; _inIndex < _dataArr.length; _inIndex++) {
- _li += "" + (_inIndex + 1) + ".0、" + _dataArr[_inIndex].feeName + _dataArr[_inIndex].objCount +"户";
+ _li += "" + (_inIndex + 1) + "、" + _dataArr[_inIndex].feeName + " " + _dataArr[_inIndex].objCount + "户";
- if(_inIndex >=5){
+ if (_inIndex >= 1) {
break;
}
}
- _todayInpection.innerHTML = _li;
+ _loadOwePaymentCount( _li);
}
+
+
function _loadPrePaymentCount(params) {
let param = {
params: {
@@ -79,8 +81,59 @@
});
}
+ function initOwePayment(_dataArr, _li) {
+ let _todayInpection = document.getElementById("todayPreFee");
+ _li += "欠费提醒:";
+ for (let _inIndex = 0; _inIndex < _dataArr.length; _inIndex++) {
+ _li += "" + (_inIndex + 1) + "、" + _dataArr[_inIndex].feeName + " " + _dataArr[_inIndex].objCount + "户";
+
+ if (_inIndex >= 1) {
+ break;
+ }
+ }
+ _todayInpection.innerHTML = _li;
+ }
+
+
+ function _loadOwePaymentCount(_li) {
+ let param = {
+ params: {
+ communityId: vc.getCurrentCommunity().communityId
+ }
+ }
+ vc.http.apiGet(
+ '/reportFeeMonthStatistics/queryOwePaymentCount',
+ param,
+ function (json, res) {
+ //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
+ let _json = JSON.parse(json);
+ if (_json.code == 0) {
+ let _data = _json.data;
+ initOwePayment(_data, _li);
+ return;
+ }
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+
+ vc.toast(errInfo);
+
+ });
+ }
+
+
+
+
+ window._toPrePayment = function () {
+ vc.jumpToPage('/admin.html#/pages/property/reportPrePaymentFee');
+ }
+
+ window._toOwePayment = function () {
+ vc.jumpToPage('/admin.html#/pages/property/reportOweFeeDetail');
+ }
_loadAssetInspection();
_loadPrePaymentCount();
-})()
\ No newline at end of file
+})()
+