yanghb
2023-04-10 b2f678ad387ca24e05a11100ea4583f0f2f730f0
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
/**
 * 通知管理初始化
 */
var TaxiCardPayment = {
    id: "TaxiCardPaymentTable",    //表格id
    seItem: null,        //选中的条目
    table: null,
    layerIndex: -1
};
 
/**
 * 初始化表格的列
 */
TaxiCardPayment.initColumn = function () {
    return [
        {field: 'selectItem',visible: false, radio: true},
        {title: '支付时间', field: 'createTime', align: 'center', valign: 'middle'},
        {title: '乘客名称', field: 'nickName', align: 'center', valign: 'middle'},
        {title: '乘客手机号', field: 'phone', align: 'center', valign: 'middle'},
        {title: '订单ID', field: 'id', visible: true, align: 'center', valign: 'middle'},
        {title: '打车卡类型', field: 'typeName', align: 'center', valign: 'middle'},
        {title: '用户支付金额', field: 'payMoney', align: 'center', valign: 'middle'}
    ];
};
 
 
 
///  导出
TaxiCardPayment.excel = function(){
    window.location.href = Feng.ctxPath + "/report/exportTaxiCardPayment?ids=" + $("#userId").val() + "&insertTime=" + $("#insertTime").val() + "&type=" + $("#type").val();
};
 
 
 
/**
 * 查询通知列表
 */
TaxiCardPayment.search = function () {
    var queryData = {};
    queryData['ids'] = $("#userId").val();
    var arr = $("#insertTime").val();
    queryData['insertTime'] = arr;
    queryData['type'] = $("#type").val();
    TaxiCardPayment.table.refresh({query: queryData});
};
 
 
TaxiCardPayment.toSelectOpt = function () {
    var index = layer.open({
        type: 2,
        title: '选择用户',
        area: ['90%', '80%'], //宽高
        fix: false, //不固定
        maxmin: true,
        content: Feng.ctxPath + '/report/user'
    });
    this.layerIndex = index;
}
 
function selectOpt(ids,names){
    $("#userName").val(names);
    $("#userId").val(ids);
}
 
 
TaxiCardPayment.resetSearch = function () {
    $("#insertTime").val("");
    $("#userId").val("");
    $("#userName").val("");
    $("#type").val("");
    TaxiCardPayment.search();
};
$(function () {
    var defaultColunms = TaxiCardPayment.initColumn();
    var table = new BSTable(TaxiCardPayment.id, "/report/taxiCardPaymentList", defaultColunms);
    table.setPaginationType("server");
    TaxiCardPayment.table = table.init();
});