submit_auditlist.html
10.2 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<include file="public/layout" />
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
<div class="fixed-bar">
<div class="item-title">
<div class="ftitle">
<h3>提交审核列表</h3>
<h5>(共{$pager->totalRows}条记录)</h5>
<div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
</div>
</div>
</div>
<div class="flexigrid">
<div class="mDiv">
<form class="navbar-form form-inline" action="{:U('Weapp/submit_auditlist')}" method="get" id="search-form2">
<div class="sDiv">
每<input type="text" size="2" maxlength="3" name="pagenum" class="qsbox" value="{$pagenum}">条/页
审核状态
<div class="sDiv2" style="margin-right: 10px;border:none;">
<select name="status" id="status">
<option value="" <if condition="$getstatus eq -1">selected</if>>请选择</option>
<option value="0" <if condition="$getstatus eq 0">selected</if>>审核成功</option>
<option value="1" <if condition="$getstatus eq 1">selected</if>>审核失败</option>
<option value="2" <if condition="$getstatus eq 2">selected</if>>审核中</option>
<option value="3" <if condition="$getstatus eq 3">selected</if>>已撤回</option>
</select>
</div>
发布状态
<div class="sDiv2" style="margin-right: 10px;border:none;">
<select name="is_release" id="is_release">
<option value="-1" <if condition="$is_release eq -1">selected</if>>请选择</option>
<option value="1" <if condition="$is_release eq 1">selected</if>>未发布</option>
<option value="2" <if condition="$is_release eq 2">selected</if>>已发布</option>
</select>
</div>
<div class="sDiv2">
<input type="text" size="30" name="keywords" class="qsbox" placeholder="请输入商家名称或帐套" value="{$Think.request.keywords}" >
</div>
<div class="sDiv2">
<input type="text" size="30" name="sversion" class="qsbox" placeholder="请输入版本" value="{$Think.request.sversion}" >
</div>
<div class="sDiv2">
<input type="submit" class="btn" value="搜索">
</div>
<if condition="$stoid">
<div class="sDiv2">
<input type="button" class="btn" value="审核退回" id="btnundocodeaudit">
</div>
</if>
<input type="hidden" id="stoid" name="stoid" value="{$stoid}">
</div>
</form>
</div>
<div class="hDiv">
<div class="hDivBox">
<table cellspacing="0" cellpadding="0">
<thead>
<tr>
<th align="left" abbr="ac_id" axis="col4" class="w140">
<div style="text-align: left;" class="">提交时间</div>
</th>
<th align="left" abbr="ac_id" axis="col4" class="w200">
<div style="text-align: left;" class="">商家名称</div>
</th>
<th align="left" abbr="ac_id" axis="col4" class="w100">
<div style="text-align: left;" class="">商家账套</div>
</th>
<th align="left" abbr="ac_id" axis="col4" class="w60">
<div style="text-align: left;" class="">版本</div>
</th>
<th align="left" abbr="ac_id" axis="col4" class="w60">
<div style="text-align: left;" class="">审核id</div>
</th>
<th align="center" abbr="article_time" axis="col4" class="w150">
<div style="text-align: left;" class="">状态</div>
</th>
<th align="center" abbr="article_time" axis="col4" class="w100">
<div style="text-align: left;" class="">是否发布</div>
</th>
<th align="center" axis="col1" class="handle w150">
<div style="text-align: center;">操作</div>
</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="bDiv" style="height: auto;">
<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
<table>
<tbody>
<foreach name="list" item="vo" key="k" >
<tr>
<td align="left" class="w140"><div style="text-align: left;">{$vo.addtime|date="Y-m-d H:i:s",###}</div>
</td>
<td align="left" class="w200"><div style="text-align: left;">{$vo.store_name}</div>
</td>
<td align="left" class="w100"><div style="text-align: left;">{$vo.ERPId}</div>
</td>
<td align="left" class="w60"><div style="text-align: left;">{$vo.release_version}</div>
</td>
<td align="left" class="w60"><div style="text-align: left;">{$vo.auditid}</div>
</td>
<td align="left" class="w150">
<div style="text-align: left; width: 150px;">
<switch name="$vo.status">
<case value="0"><font color="green">已审核</font></case>
<case value="1"><font color="red">审核失败</font><br><span title="{$vo.reason}"> {$vo.reason}</span></case>
<case value="2"><font color="blue">审核中</font></case>
<case value="3"><font color="black">已撤回</font></case>
<default /><font color="red">其他</font>
</switch>
</div>
</td>
<td align="left" class="w100">
<div style="text-align: left; ">
<if condition="$vo.status eq 0">
<switch name="$vo.is_release">
<case value="0"><font color="green">未发布</font></case>
<case value="1"><font color="red">已发布</font><br>{$vo.release_time|date="Y-m-d H:i:s",###}</case>
</switch>
</if>
</div>
</td>
<td align="center" class="handle w150">
<div style="text-align: center;">
<a class="btn red" href="javascript:void(0)" data-url="{:U('Weapp/get_auditstatus')}" data-id="{$vo.store_id}" data-auditid="{$vo.auditid}" onClick="get_auditstatus(this)"><i class="fa fa-refresh"></i>查询审核</a>
<if condition="$vo.status eq 0 && $vo.is_release eq 0">
<a class="btn red" href="javascript:void(0)" data-url="{:U('Weapp/release')}" data-id="{$vo.store_id}" data-auditid="{$vo.auditid}" onClick="release(this)"><i class="fa fa-refresh"></i>发布</a>
</if>
<if condition="$vo.status eq 2">
<a class="btn red" href="javascript:void(0)" data-url="{:U('Weapp/speedupaudit')}" data-id="{$vo.store_id}" data-auditid="{$vo.auditid}" onClick="speedupaudit(this)"><i class="fa fa-refresh"></i>加急审核</a>
</if>
</div>
</td>
</tr>
</foreach>
</tbody>
</table>
</div>
<div class="iDiv" style="display: none;"></div>
</div>
<!--分页位置-->
{$pager->show()} </div>
</div>
<script>
$(document).ready(function(){
// 表格行点击选中切换
$('#flexigrid > table>tbody >tr').click(function(){
$(this).toggleClass('trSelected');
});
// 点击刷新数据
$('.fa-refresh').click(function(){
location.href = location.href;
});
});
// 更新
function get_auditstatus(obj) {
layer.confirm('确认查询?', {
btn: ['确定', '取消'] //按钮
}, function () {
$.ajax({
type: 'post',
url: $(obj).attr('data-url'),
data : {act:'update',stoid:$(obj).attr('data-id'),auditid:$(obj).attr('data-auditid')},
dataType: 'json',
success: function (data) {
if (data.errcode==0 ) {
layer.alert(data.errmsg, {icon: 1});
setTimeout(function () {
location.href=location.href;
},1000)
} else {
layer.alert(data.errmsg, {icon: 2});
}
}
})
}, function () {
});
}
// 发布
function release(obj) {
layer.confirm('确认发布?', {
btn: ['确定', '取消'] //按钮
}, function () {
$.ajax({
type: 'post',
url: $(obj).attr('data-url'),
data : {act:'update',stoid:$(obj).attr('data-id'),auditid:$(obj).attr('data-auditid')},
dataType: 'json',
success: function (data) {
if (data.errcode==0 ) {
layer.alert(data.errmsg, {icon: 1});
setTimeout(function () {
location.href=location.href;
},1000)
} else {
layer.alert(data.errmsg, {icon: 2});
setTimeout(function () {
location.href=location.href;
},2000)
}
}
})
}, function () {
});
}
// 加急
function speedupaudit(obj) {
layer.confirm('确认加急?', {
btn: ['确定', '取消'] //按钮
}, function () {
$.ajax({
type: 'post',
url: $(obj).attr('data-url'),
data : {act:'update',stoid:$(obj).attr('data-id'),auditid:$(obj).attr('data-auditid')},
dataType: 'json',
success: function (data) {
if (data.errcode==0 ) {
layer.alert(data.errmsg, {icon: 1});
setTimeout(function () {
location.href=location.href;
},1000)
} else {
layer.alert(data.errmsg, {icon: 2});
}
}
})
}, function () {
});
}
$("#btnundocodeaudit").click(function () {
var getstoid="{$Think.request.stoid}";
layer.confirm('确认撤回?', {
btn: ['确定', '取消'] //按钮
}, function () {
$.ajax({
type: 'post',
url: "/index.php/manager/Weapp/undocodeaudit.html",
data : {stoid:getstoid},
dataType: 'json',
success: function (data) {
if (data.errcode==0 ) {
layer.alert(data.errmsg, {icon: 1});
setTimeout(function () {
location.href=location.href;
},1000)
} else {
layer.alert(data.errmsg, {icon: 2});
}
}
})
}, function () {
});
})
</script>
</body>
</html>