mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
optimize data report
This commit is contained in:
parent
308524037a
commit
03dd879df6
@ -9,52 +9,7 @@
|
|||||||
_currentTab: 'dataReportEarnedStatistics',
|
_currentTab: 'dataReportEarnedStatistics',
|
||||||
fees: [],
|
fees: [],
|
||||||
orders: [],
|
orders: [],
|
||||||
inouts: [{
|
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元',
|
|
||||||
}, ],
|
|
||||||
others: [{
|
others: [{
|
||||||
name: '场地预约数',
|
name: '场地预约数',
|
||||||
value: '3元',
|
value: '3元',
|
||||||
@ -113,6 +68,8 @@
|
|||||||
$that.changeTab($that.dataReportInfo._currentTab);
|
$that.changeTab($that.dataReportInfo._currentTab);
|
||||||
$that._loadDataReportFee();
|
$that._loadDataReportFee();
|
||||||
$that._loadDataReportOrder();
|
$that._loadDataReportOrder();
|
||||||
|
$that._loadDataReportInout();
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
_initEvent: function() {
|
_initEvent: function() {
|
||||||
@ -163,6 +120,10 @@
|
|||||||
_endDate.setDate(_endDate.getDate() - 30);
|
_endDate.setDate(_endDate.getDate() - 30);
|
||||||
$that.dataReportInfo.conditions.startDate = _endDate.getFullYear() + "-" + (_endDate.getMonth() + 1) + "-" + _endDate.getDate();
|
$that.dataReportInfo.conditions.startDate = _endDate.getFullYear() + "-" + (_endDate.getMonth() + 1) + "-" + _endDate.getDate();
|
||||||
}
|
}
|
||||||
|
$that._loadDataReportFee();
|
||||||
|
$that._loadDataReportOrder();
|
||||||
|
$that._loadDataReportInout();
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
_loadDataReportFee: function() {
|
_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) {
|
changeTab: function(_tab) {
|
||||||
$that.dataReportInfo._currentTab = _tab;
|
$that.dataReportInfo._currentTab = _tab;
|
||||||
vc.emit(_tab, 'switch', {
|
vc.emit(_tab, 'switch', {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user