clearance.html
3.75 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Yoho!Buy运营平台</title>
<script src="/ufoPlatform/js/include.js"></script>
<script src="/ufoPlatform/js/ajaxfileupload.js"></script>
</head>
<body class="easyui-layout" fit="true">
<div region="north" style="height: 230px">
<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 id="orderCode" type="text" class="easyui-textbox" style="width:150px"/>
<label>包裹号:</label><input id="waybillCode" type="text" class="easyui-textbox" style="width:150px"/>
<a id="searchLinkButton" class="easyui-linkbutton btn-info" data-options="iconCls:'icon-search'">筛选</a>
<a id="exportButton" class="easyui-linkbutton btn-info" data-options="iconCls:'icon-add'">导出</a>
</div>
</div>
<div region="center">
<div style="margin-left: 30px;margin-top: 20px;height: 660px">
<table id="clearanceTable"></table>
</div>
</div>
<script type="text/javascript">
var brandId;
$(function () {
$("#clearanceTable").myDatagrid({
fit: true,
fitColumns: true,
nowrap: false,
url: contextPath + "/clearance/queryClearanceRecord",
method: 'POST',
/*queryParams: {
'brandName':'',
'status':''
},*/
loadFilter: function (data) {
var temp = defaultLoadFilter(data);
temp.rows = temp.list;
return temp;
},
columns: [[{
title: "操作",
field: "",
width: 120,
align: "center",
formatter: function (value, rowData) {
if (rowData) {
var result = '';
for(var item in rowData) {
result += item;
result += ' : ' + rowData[item] + '<br/>';
}
return result;
}
return rowData;
}
}]],
cache: false,
pagination: true,
pageSize: 10,
pageList: [10],
idField: "id",
singleSelect: false,
checkOnSelect: false,
onLoadSuccess: function () {
}
});
// 搜索
$("#searchLinkButton").linkbutton({
onClick: function () {
var param = getParams();
$("#clearanceTable").myDatagrid("load", param);
}
});
$("#exportButton").linkbutton({
onClick : function() {
// var params = {"poolId": poolId.toString()};
var param = getParams();
window.open(contextPath + "/batch/export.do?type=ClearanceRecordService&queryConf=" + escape(JSON.stringify(param)));
}
});
/**
* 提取出搜索参数
*/
function getParams() {
var waybillCode = $("#waybillCode").val();
var orderCode = $("#orderCode").val();
var param = {};
if (undefined !== orderCode && null !== orderCode && "" !== orderCode) {
param.orderCode = orderCode;
}
if (undefined !== waybillCode && null !== waybillCode && "" !== waybillCode) {
param.waybillCode = waybillCode;
}
return param;
}
});
</script>
</body>
</html>