diff --git a/public/pages/report/dataReport/dataReport.js b/public/pages/report/dataReport/dataReport.js index 147f54cff..86be9b374 100644 --- a/public/pages/report/dataReport/dataReport.js +++ b/public/pages/report/dataReport/dataReport.js @@ -9,52 +9,7 @@ _currentTab: 'dataReportEarnedStatistics', fees: [], orders: [], - inouts: [{ - name: '进场车辆数', - value: '1000元', - }, { - name: '出场车辆数', - value: '3元', - }, { - name: '人员进场数', - value: '3元', - }, { - name: '同步人脸数', - value: '3元', - }, { - name: '入库数', - value: '3元', - }, { - name: '出库数', - value: '3元', - }, { - name: '入库金额', - value: '3元', - }, { - name: '出库金额', - value: '3元', - }, { - name: '调拨数', - value: '3元', - }, { - name: '装修申请', - value: '3元', - }, { - name: '物品放行', - value: '3元', - }, { - name: '交房数', - value: '3元', - }, { - name: '退房数', - value: '3元', - }, { - name: '业主绑定数', - value: '3元', - }, { - name: '未考勤人数', - value: '3元', - }, ], + inouts: [], others: [{ name: '场地预约数', value: '3元', @@ -113,6 +68,8 @@ $that.changeTab($that.dataReportInfo._currentTab); $that._loadDataReportFee(); $that._loadDataReportOrder(); + $that._loadDataReportInout(); + }, _initEvent: function() { @@ -163,6 +120,10 @@ _endDate.setDate(_endDate.getDate() - 30); $that.dataReportInfo.conditions.startDate = _endDate.getFullYear() + "-" + (_endDate.getMonth() + 1) + "-" + _endDate.getDate(); } + $that._loadDataReportFee(); + $that._loadDataReportOrder(); + $that._loadDataReportInout(); + }, _loadDataReportFee: function() { @@ -197,6 +158,22 @@ } ); }, + _loadDataReportInout: function() { + let param = { + params: $that.dataReportInfo.conditions + } + //发送get请求 + vc.http.apiGet('/dataReport.queryInoutDataReport', + param, + function(json, res) { + let _json = JSON.parse(json); + $that.dataReportInfo.inouts = _json.data + }, + function(errInfo, error) { + console.log('请求失败处理'); + } + ); + }, changeTab: function(_tab) { $that.dataReportInfo._currentTab = _tab; vc.emit(_tab, 'switch', {