goodsOrder.js
657 Bytes
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
/**
* 兑换记录
*/
var goodsOrder = function() {
return {
search : function() {
$('#data-grid').datagrid({
url : '/user/goods/searchGoodesRecoed',
queryParams : App.dataGridQueryParams('search-form')
});
},
formatStatus : function(value, row, index) {
var status;
switch (value) {
case '0':
status = '兑换失败';
break;
case '1':
status = '兑换成功';
break;
case '2':
status = '已作废';
break;
}
return status;
},
exportGoodsOrder : function() {
window.open('/user/goods/exportGoodsRecord?' + $('#search-form').serialize());
}
}
}();