This commit is contained in:
java110 2023-05-26 18:57:33 +08:00
parent 872a6e8feb
commit a515963375

View File

@ -5,55 +5,10 @@
vc.extends({
data: {
dataReportInfo: {
curDay: 'today',
curDay: 'thirty',
_currentTab: 'dataReportEarnedStatistics',
fees: [],
orders: [{
name: '投诉单',
value: '3元',
}, {
name: '未完成投诉单',
value: '1000元',
}, {
name: '完成投诉单',
value: '3元',
}, {
name: '报修单',
value: '3元',
}, {
name: '未完成报修单',
value: '3元',
}, {
name: '完成报修单',
value: '1000元',
}, {
name: '巡检',
value: '3元',
}, {
name: '未完成巡检',
value: '3元',
}, {
name: '完成巡检',
value: '3元',
}, {
name: '保养',
value: '1000元',
}, {
name: '未完成保养',
value: '3元',
}, {
name: '完成保养',
value: '3元',
}, {
name: '业主反馈',
value: '3元',
}, {
name: '充电订单',
value: '3元',
}, {
name: '月卡金额',
value: '3元',
}, ],
orders: [],
inouts: [{
name: '进场车辆数',
value: '1000元',
@ -157,6 +112,8 @@
$that._initDate();
$that.changeTab($that.dataReportInfo._currentTab);
$that._loadDataReportFee();
$that._loadDataReportOrder();
},
_initEvent: function() {
vc.on('dataReport', 'listOwnerData', function(_info) {
@ -224,6 +181,22 @@
}
);
},
_loadDataReportOrder: function() {
let param = {
params: $that.dataReportInfo.conditions
}
//发送get请求
vc.http.apiGet('/dataReport.queryOrderDataReport',
param,
function(json, res) {
let _json = JSON.parse(json);
$that.dataReportInfo.orders = _json.data
},
function(errInfo, error) {
console.log('请求失败处理');
}
);
},
changeTab: function(_tab) {
$that.dataReportInfo._currentTab = _tab;
vc.emit(_tab, 'switch', {