list.html
4.82 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Yoho!Buy运营平台</title>
<script src="/ufoPlatform/js/include.js"></script>
</head>
<body class="easyui-layout">
<div region="north" style="height:230px;">
<script>
document.write(addHead('营业执照认证', '商户入驻资质审核'));
</script>
<div style="margin-left: 10px;margin-top: 30px">
<div style="border:1px solid #ddd;border-radius:5px 5px 5px 5px;">
<div style="margin-left: 10px;margin-top: 20px;margin-bottom: 20px">
<input id="uid" name="uid" />
<input id="businessName" name="businessName" />
<input id="validStatus" name="validStatus" />
<a id="searchBtn" class="btn-info">筛选</a>
<a id="allBtn" class="btn-success">全部</a>
</div>
</div>
</div>
</div>
<div id="businessList" region="center">
<table id="businessListTable"></table>
</div>
<script>
$(function() {
$("#uid").textbox({
prompt: "用户UID",
width: 200
});
$("#businessName").textbox({
prompt: "商家名称",
width: 200
});
$("#validStatus").combobox({
prompt: "入驻状态",
width: 150,
editable : false,
data: [
{"text" : "已入驻", "value" : 1},
{"text" : "已退驻", "value" : 9}
]
});
$("#searchBtn").linkbutton({
iconCls : "icon-search",
onClick : function() {
$("#businessListTable").datagrid("load", {
uid : $("#uid").val(),
businessName : $("#businessName").val(),
validStatus : $("#validStatus").myCombobox("getValue")
});
}
});
//全部按钮
$("#allBtn").linkbutton({
iconCls: "icon-import",
onClick: function () {
$("#uid").textbox('setValue','');
$("#businessName").textbox('setValue','');
$("#validStatus").combobox('setValue','');
}
});
getBusinessList();
});
function getBusinessList(){
$("#businessListTable").myDatagrid({
fit: true,
fitColumns: true,
striped: true,
url: contextPath + "/businessLicense/queryList",
method: 'POST',
loadFilter: function (data) {
var temp = defaultLoadFilter(data);
temp=null==temp?[]:temp;
temp.rows = temp.list;
return temp;
},
columns: [[{
title: "UID",
field: "uid",
width: 20,
align: "center"
}, {
title: "商户类型",
field: "businessTypeStr",
width: 20,
align: "center"
}, {
title: "姓名",
field: "certName",
width: 20,
align: "center"
}, {
title: "身份证号",
field: "certNo",
width: 30,
align: "center"
}, {
title: "提交时间",
field: "commitTime",
width: 30,
align: "center"
}, {
title: "审核状态",
field: "auditStatusStr",
width: 20,
align: "center"
}, {
title: "审核时间",
field: "auditTime",
width: 30,
align: "center"
}, {
title: "原因",
field: "rejectReason",
width: 30,
align: "center"
}, {
title: "操作",
field: "asdf",
width: 30,
align: "center",
formatter: function (value, rowData, rowIndex) {
var str = "<a role='detail' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #428bca !important;'>查看</a>";
if(rowData.auditStatus==0){
str = "<a role='audit' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>审核</a>" + str;
}
return str;
}
}]],
cache: false,
pagination: true,
pageSize: 10,
idField: "id",
singleSelect: true,
onLoadSuccess: function (data) {
$(this).datagrid("getPanel").find("a[role='detail']").linkbutton({
onClick: function () {
var id = $(this).attr("dataId");
window.open(contextPath + "/html/businessLicense/view.html?id=" + id + "&ver=" + new Date().getTime())
}
});
$(this).datagrid("getPanel").find("a[role='audit']").linkbutton({
onClick: function () {
var id = $(this).attr("dataId");
window.open(contextPath + "/html/businessLicense/audit.html?id=" + id + "&ver=" + new Date().getTime()); }
});
}
});
}
</script>
</body>
</html>