index.html
10.8 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
296
297
298
299
300
301
302
303
304
305
306
307
<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('Admin/index')}" 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="shenghe" id="shenghe">
<option value="" <if condition="$Think.request.shenghe eq ''">selected</if>>请选择</option>
<option value="1" <if condition="$Think.request.shenghe eq 1">selected</if>>已审核</option>
<option value="2" <if condition="$Think.request.shenghe eq 2">selected</if>>审核中</option>
<option value="3" <if condition="$Think.request.shenghe eq 3">selected</if>>审核失败</option>
</select>
</div>
是否有迁移证明
<div class="sDiv2" style="margin-right: 10px;border:none;">
<select name="qianyi" id="qianyi">
<option value="" <if condition="$Think.request.qianyi eq ''">selected</if>>请选择</option>
<option value="1" <if condition="$Think.request.qianyi eq 1">selected</if>>有迁移证明</option>
<option value="2" <if condition="$Think.request.qianyi eq 2">selected</if>>无迁移证明</option>
</select>
</div>
是否引导APP
<div class="sDiv2" style="margin-right: 10px;border:none;">
<select name="is_ylpapp" id="is_ylpapp">
<option value="" <if condition="$Think.request.is_ylpapp eq ''">selected</if>>请选择</option>
<option value="2" <if condition="$Think.request.is_ylpapp eq 2">selected</if>>否</option>
<option value="1" <if condition="$Think.request.is_ylpapp eq 1">selected</if>>是</option>
</select>
</div>
是否使用ERP
<div class="sDiv2" style="margin-right: 10px;border:none;">
<select name="is_usererp" id="is_usererp">
<option value="" <if condition="$Think.request.is_usererp eq ''">selected</if>>请选择</option>
<option value="2" <if condition="$Think.request.is_usererp eq 2">selected</if>>否</option>
<option value="1" <if condition="$Think.request.is_usererp eq 1">selected</if>>是</option>
</select>
</div>
<div class="sDiv2">
<input type="text" size="30" name="keywords" class="qsbox" placeholder="请输入商家名称或帐套" value="{$Think.request.keywords}" >
<input type="submit" class="btn" value="搜索">
</div>
<div class="sDiv2" >
<input type="button" class="btn" value="导出数据" id="btnexcel"> </div>
</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="w90">
<div style="text-align: left;" class="">商家名</div>
</th>
<th align="left" abbr="ac_id" axis="col4" class="w90">
<div style="text-align: left;" class="">帐套</div>
</th>
<th align="center" abbr="article_time" axis="col4" class="w140">
<div style="text-align: left;" class="">加入时间</div>
</th>
<th align="center" abbr="article_time" axis="col4" class="w160">
<div style="text-align: left;" class="">迁移证明</div>
</th>
<th align="center" abbr="article_time" axis="col4" class="w100">
<div style="text-align: left;" class="">API证书</div>
</th>
<th align="left" abbr="ac_id" axis="col4" class="w80">
<div style="text-align: left;" class="">审核</div>
</th>
<th align="left" abbr="ac_id" axis="col4" class="w60">
<div style="text-align: left;" class="">引导APP</div>
</th>
<th align="left" abbr="ac_id" axis="col4" class="w40">
<div style="text-align: left;" class="">推荐</div>
</th>
<th align="left" abbr="ac_id" axis="col4" class="w40">
<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="tDiv">
<div class="tDiv2">
<div class="fbutton">
<a href="{:U('Admin/store_info')}">
<div class="add" title="添加商家">
<span><i class="fa fa-plus"></i>添加商家</span>
</div>
</a>
</div>
</div>
<div style="clear:both"></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="w90">
<div style="text-align: left;"><a href="/mobile/index/index/stoid/{$vo.store_id}" target="_blank">{$vo.store_name}</a></div>
</td>
<td align="left" class="w90">
<div style="text-align: left; ">{$vo.ERPId}</div>
</td>
<td align="left" class="w140">
<div style="text-align: left;">{$vo.BillDate|date="Y-m-d H:i:s",###}</div>
</td>
<td align="left" class="w160">
<empty name="$vo.convertimg">无
<else/>
请下载
<foreach name="vo.imglist" item="vv" key="k">
<a href="{:getimg($vv,NOIMG)}" style="color: red">图片{$k+1} </foreach>
</empty>
</td>
<td align="left" class="w100">
<if condition="$vo.wx_cert neq ''">
已上传
<else/>
未上传
</if>
</td>
<td align="left" class="w80">
<div style="width: 80px;">
<if condition='$vo.is_audit eq 1'>
<font color="green">通过审核</font>
</if>
<if condition='$vo.is_audit eq 0'>
<font color="red">审核中</font>
</if>
<if condition='$vo.is_audit eq -1'>
<font color="black">审核失败</font>
</if>
</div>
</td>
<td align="left" class="w60">
<div style="width: 80px;">
<if condition='$vo.is_ylpapp eq 1'>
<font color="green">是</font>
<else>
否
</if>
</div>
</td>
<td align="left" class="w40">
<div style="width: 80px;">
<if condition='$vo[istop] eq 1'>
<span class="yes" onClick="changeTableVal_m('store','store_id','{$vo.store_id}','istop',this)" ><i class="fa fa-check-circle"></i>是</span>
<else />
<span class="no" onClick="changeTableVal_m('store','store_id','{$vo.store_id}','istop',this)" ><i class="fa fa-ban"></i>否</span>
</if>
</div>
</td>
<td align="left" class="w40">
<div style="width: 80px;">
<if condition='$vo[isindex] eq 1'>
<span class="yes" onClick="changeTableVal_m('store','store_id','{$vo.store_id}','isindex',this)" ><i class="fa fa-check-circle"></i>是</span>
<else />
<span class="no" onClick="changeTableVal_m('store','store_id','{$vo.store_id}','isindex',this)" ><i class="fa fa-ban"></i>否</span>
</if>
</div>
</td>
<td align="center" class="handle w150">
<div style="text-align: center;">
<a href="{:U('Admin/store_info',array('store_id'=>$vo.store_id,'oldurl'=>$oldurl))}" class="btn blue"><i class="fa fa-pencil-square-o"></i>编辑</a>
<a class="btn red" href="javascript:void(0)" data-url="{:U('Admin/storeHandle')}" data-id="{$vo.store_id}" onClick="delfun(this)"><i class="fa fa-trash-o"></i>删除</a>
<a href="{:U('Admin/store_admin_list',array('store_id'=>$vo.store_id))}" class="btn blue"><i class="fa fa-pencil-square-o"></i>用户列表</a>
<br>
<a href="{:U('Admin/wx_setting',array('store_id'=>$vo.store_id,'oldurl'=>$oldurl))}" class="btn blue"><i class="fa fa-pencil-square-o"></i>公众号设置</a>
<if condition="$vo.supplyid neq ''">
<a href="{:U('Admin/data_import',array('store_id'=>$vo.store_id))}" class="btn blue"><i class="fa fa-pencil-square-o"></i>导入数据</a>
</if>
</div>
</td>
<!--删除 20170425-->
<!--<td align="" class="" style="width: 100%;">
<div></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 changer_audit(type,obj) {
layer.msg('加载中', {
icon: 16
,shade: 0.01
});
$.ajax({
type: 'post',
url: "{:U('Admin/changer_audit')}",
data : {type:type,store_id:$(obj).attr('data-id')},
dataType: 'json',
success: function (data) {
if (data.status == 1) {
layer.closeAll();
layer.alert(data.msg, {icon: 1});
window.setTimeout(function(){
location=location
} , 1000);
} else {
layer.closeAll();
layer.alert(data.msg, {icon: 2}); //alert('删除失败');
}
}
})
}
function delfun(obj) {
// 删除按钮
layer.confirm('确认删除?', {
btn: ['确定', '取消'] //按钮
}, function () {
$.ajax({
type: 'post',
url: $(obj).attr('data-url'),
data : {act:'del',store_id:$(obj).attr('data-id')},
dataType: 'json',
success: function (data) {
if (data == 1) {
$(obj).parent().parent().parent().remove();
layer.closeAll();
} else {
layer.alert('删除失败', {icon: 2}); //alert('删除失败');
}
}
})
}, function () {
});
}
// 导出数据
function ajax_exportreport(form, page) {
cur_page = page; //当前页面 保存为全局变量
location.href="/index.php?m=Manager&c=Admin&a=exportstore&p=" + page+$('#' + form).serialize();
}
$("#btnexcel").click(function (){
ajax_exportreport('search-form2',1);
})
</script>
</body>
</html>