userOrders.html
6.03 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Yoho!Buy运营平台</title>
<script src="/union/js/include.js"></script>
<script src="/union/js/ajaxfileupload.js"></script>
</head>
<body class="easyui-layout" fit="true">
<div region="north" style="padding-bottom: 35px; height: auto;">
<script>
document.write(addHead('市场管理', '联盟订单管理'));
</script>
<style>
.div_search input { margin-top: 20px; }
.div_search .textbox { margin-top: 20px; }
.div_search .easyui-linkbutton { margin-top: 20px; }
</style>
<div style="margin-left: 30px;" class="div_search">
<label>开始时间:</label>
<input class="easyui-datetimebox" id="beginTime">
</input>
<label>结束时间:</label>
<input class="easyui-datetimebox" id="endTime">
</input>
<label>订单号:</label>
<input class="easyui-textbox" id="orderCode" >
</input>
<label>联盟用户ID:</label>
<input class="easyui-textbox" id="unionId">
</input>
<label>渠道:</label>
<input class="easyui-textbox" id="unionType">
</input>
<a id="searchBtn" class="btn-info">查询</a>
</div>
</div>
<div region="center">
<div style="margin-left: 30px;margin-top: 20px; height: 500px;">
<table id="userOrdersTable"></table>
</div>
</div>
<script type="text/javascript">
$(function () {
$("#userOrdersTable").myDatagrid({
fit: true,
fitColumns: true,
queryParams:{
beginTime : $("#beginTime").val(),
endTime : $("#endTime").val(),
orderCode : $("#orderCode").val(),
unionId : $("#unionId").val()
},
nowrap: false,
url: contextPath + "/UnionRest/queryUnionOrders",
method: 'POST',
loadFilter: function (data) {
var temp = defaultLoadFilter(data);
temp.rows = temp.list;
return temp;
},
columns: [[{
title: "ID",
field: "id",
width: 70,
align: "center"
}, {
title: "联盟用户ID",
field: "unionId",
width: 170,
align: "center"
}, {
title: "下单时间",
field: "orderTime",
width: 170,
align: "center"
}, {
title: "订单号",
field: "orderCode",
width: 170,
align: "center"
}, {
title: "订单用户ID",
field: "uid",
width: 170,
align: "center"
}, {
title: "订单金额",
field: "orderAmount",
width: 170,
align: "center"
}, {
title: "优惠券金额",
field: "couponAmount",
width: 170,
align: "center"
}, {
title: "YOHO币",
field: "yohoCoinNum",
width: 170,
align: "center"
}, {
title: "运费",
field: "shipmentAmount",
width: 170,
align: "center"
}, {
title: "实付金额",
field: "realPayAmount",
width: 170,
align: "center"
}, {
title: "订单状态",
field: "orderStatus",
width: 170,
align: "center"
}, {
title: "渠道",
field: "unionType",
width: 170,
align: "center"
}, {
title: "附加信息",
field: "exetInfmoation",
width: 170,
align: "center"
}, {
title: "支付方式",
field: "payChannel",
width: 170,
align: "center"
}, {
title: "是否新客",
field: "isNew",
width: 170,
align: "center"
}
]],
cache: false,
pagination: true,
pageSize: 10,
pageList: [10],
idField: "id",
singleSelect: false,
checkOnSelect: false,
onLoadSuccess: function (data) {
$(this).myDatagrid("getPanel").find("a[role='delete']").linkbutton({
iconCls: "icon-more",
onClick: function () {
deleteBlack($(this).attr("dataId"));
}
});
}
});
function getParam(table) {
var paramsArray = $("#"+table+"").serializeArray();
var params = {};
for (var i = 0; i < paramsArray.length; i++) {
params[paramsArray[i].name] = paramsArray[i].value;
}
return params;
}
$("#searchBtn").linkbutton({
iconCls : "icon-search",
onClick : function() {
$("#userOrdersTable").datagrid("load", {
beginTime : $("#beginTime").val(),
endTime : $("#endTime").val(),
orderCode : $("#orderCode").val(),
unionId : $("#unionId").val()
});
}
});
});
</script>
</body>
</html>