1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
| /**
| * 车辆品牌管理管理初始化
| */
| var OperationalData = {
| id: "TCarBrandTable", //表格id
| seItem: null, //选中的条目
| table: null,
| layerIndex: -1
| };
|
| /**
| * 初始化表格的列
| */
| OperationalData.initColumn = function () {
| return [
| [
| {field: 'selectItem', radio: true, colspan: 1, rowspan: 2},
| {title: '主键id', field: 'id', visible: false, align: 'center', valign: 'middle', colspan: 1, rowspan: 2},
| {title: '日期', field: 'time', visible: true, align: 'center', valign: 'middle',width:'150px',colspan: 1, rowspan: 2},
| {title: '用户注册数量', field: 'register', visible: true, align: 'center', valign: 'middle',width:'100px',colspan: 1, rowspan: 2},
| {title: '在线司机数', field: 'online', visible: true, align: 'center', valign: 'middle',width:'100px',colspan: 1, rowspan: 2},
| {title: '订单情况', field: '', visible: true, align: 'center', valign: 'middle',width:'500px', colspan: 3, rowspan: 1},
| {title: '支付情况', field: '', visible: true, align: 'center', valign: 'middle',width:'500px', colspan: 5, rowspan: 1},
| {title: '投诉数量', field: 'complaint', visible: true, align: 'center', valign: 'middle',width:'100px',colspan: 1, rowspan: 2}
| ],
| [
| {title: '下单数量', field: 'orderNum', visible: true, align: 'center', valign: 'middle'},
| {title: '乘客取消数量', field: 'cancelNum', visible: true, align: 'center', valign: 'middle'},
| {title: '取消占比', field: 'cancelProportion', visible: true, align: 'center', valign: 'middle'},
| {title: '通过平台支付(单)', field: 'onlinePay', visible: true, align: 'center', valign: 'middle'},
| {title: '通过其它支付(单)', field: 'offlinePay', visible: true, align: 'center', valign: 'middle'},
| {title: '合计', field: 'total', visible: true, align: 'center', valign: 'middle'},
| {title: '平台支付占比%', field: 'payProportion', visible: true, align: 'center', valign: 'middle'},
| {title: '金额', field: 'money', visible: true, align: 'center', valign: 'middle'},
| ]
|
|
| ];
| };
|
| /**
| * 检查是否选中
| */
| OperationalData.check = function () {
| var selected = $('#' + this.id).bootstrapTable('getSelections');
| if(selected.length == 0){
| Feng.info("请先选中表格中的某一记录!");
| return false;
| }else{
| OperationalData.seItem = selected[0];
| return true;
| }
| };
|
| OperationalData.downloadExcel = function(){
| window.location.href = Feng.ctxPath + "/report/downloadOperationalData?type=" + $("#type").val() + "&time=" + $("#time").val() + "&companyId=" + $("#company").val();
| }
|
|
|
| /**
| * 查询车辆品牌管理列表
| */
| OperationalData.search = function () {
| var queryData = {};
| queryData['type'] = $("#type").val();
| queryData['time'] = $("#time").val();
| queryData['companyId'] = $("#company").val();
| OperationalData.table.refresh({query: queryData});
| };
|
| OperationalData.resetSearch = function () {
| $("#type").val("2");
| $("#time").val("");
| $("#company").val("");
| OperationalData.search();
| };
|
| $(function () {
| var defaultColunms = OperationalData.initColumn();
| var table = new BSTable(OperationalData.id, "/report/queryOperationalData", defaultColunms);
| table.setPaginationType("server");
| table.setQueryParams({
| type: 2,
| })
| OperationalData.table = table.init();
| });
|
|