|
@@ -0,0 +1,423 @@
|
|
1
|
+@extends('admin/master')
|
|
2
|
+@section('content')
|
|
3
|
+ <body>
|
|
4
|
+ <div class="page-container">
|
|
5
|
+ <div>
|
|
6
|
+ <div>
|
|
7
|
+
|
|
8
|
+ <!--a class="btn btn-primary radius" onclick="order_add('新增', 0)" href="javascript:;"><i class="Hui-iconfont"></i> 新增订单</a-->
|
|
9
|
+
|
|
10
|
+ @if($search_admin == 1)
|
|
11
|
+ <input class="input-text" style="width:6%;text-align:center" type="text" value="所属销售"/>
|
|
12
|
+ <select style="width:8%;text-align:center" id='admin_id' name="admin_id">
|
|
13
|
+ <option value="0" @if($admin_id=='') selected @endif>-- 选择销售 --</option>
|
|
14
|
+ @foreach($adminlist as $v)
|
|
15
|
+ <option value="{{$v['id']}}" @if($admin_id==$v['id']) selected @endif>{{$v['realname']}}</option>
|
|
16
|
+ @endforeach
|
|
17
|
+ </select>
|
|
18
|
+ @endif
|
|
19
|
+ <input class="input-text" style="width:6%;text-align:center" type="text" value="开始时间"/>
|
|
20
|
+ <input id="stime" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss' })" class="input-text Wdate" style="width:10%;text-align:center;margin-left: -5px" name="stime" value="{{$stime?$stime:''}}">
|
|
21
|
+ <input class="input-text" style="width:6%;text-align:center" type="text" value="结束时间"/>
|
|
22
|
+ <input id="etime"type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss' })" class="input-text Wdate" style="width:10%;text-align:center;margin-left: -5px" name="etime" value="{{$etime?$etime:''}}">
|
|
23
|
+ <input class="input-text" style="width:6%;text-align:center" type="text" value="收货人"/>
|
|
24
|
+ <input id="receiverName" type="text" class="input-text" style="width:8%;text-align:center" name="receiverName" value="{{$receiverName?$receiverName:''}}">
|
|
25
|
+ <input class="input-text" style="width:6%;text-align:center" type="text" value="收货人手机号"/>
|
|
26
|
+ <input id="receiverMobile" type="text" class="input-text" style="width:8%;text-align:center" name="receiverMobile" value="{{$receiverMobile?$receiverMobile:''}}">
|
|
27
|
+ <!--input class="input-text" style="width:6%;text-align:center" type="text" value="订单状态"/>
|
|
28
|
+ <select style="width:8%;text-align:center" id='status' name="status">
|
|
29
|
+ <option value="-1" @if($status=='-1') selected @endif>-- 请选择--</option>
|
|
30
|
+ @if($self_role !='管理员' )<option value="0" @if($status==0) selected @endif>已录入</option> @endif
|
|
31
|
+ <option value="1" @if($status==1) selected @endif>待审核</option>
|
|
32
|
+ <option value="2" @if($status==2) selected @endif>已审核</option>
|
|
33
|
+ <option value="3" @if($status==3) selected @endif>已发货</option>
|
|
34
|
+
|
|
35
|
+ </select-->
|
|
36
|
+ <input class="input-text" style="width:6%;text-align:center" type="text" value="预售时间"/>
|
|
37
|
+ <select style="width:8%;text-align:center" id='if_all' name="if_all">
|
|
38
|
+ <option value="0" @if($if_all=='0') selected @endif>今天及以后</option>
|
|
39
|
+ <option value="1" @if($if_all==1) selected @endif>全部</option>
|
|
40
|
+ </select>
|
|
41
|
+ <div style="float:right">
|
|
42
|
+ <a class="btn btn-primary radius" onclick="user_search()" href="javascript:;">搜索</a>
|
|
43
|
+ <!--a class="btn btn-primary radius" onclick="order_export()" href="javascript:;"><i class="Hui-iconfont"></i> 导出订单</a-->
|
|
44
|
+ <!--a class="btn btn-primary radius" onclick="order_verify_more()" href="javascript:;"><i class="Hui-iconfont"></i> 批量审核</a-->
|
|
45
|
+ </div>
|
|
46
|
+ </div>
|
|
47
|
+ </div>
|
|
48
|
+
|
|
49
|
+ <div class="mt-20">
|
|
50
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
51
|
+ <thead>
|
|
52
|
+ <tr class="text-c">
|
|
53
|
+ <th width="4%"><!--input type="checkbox" id="selected-all"-->订单编号</th>
|
|
54
|
+ <th width="4%">买家名称</th>
|
|
55
|
+ <th width="4%">收货人</th>
|
|
56
|
+ <th width="4%">收货人手机号</th>
|
|
57
|
+ <th width="6%">收货地址</th>
|
|
58
|
+ <th width="9%">商品信息</th>
|
|
59
|
+ <th width="4%">预发货时间</th>
|
|
60
|
+ <th width="6%">物流单号</th>
|
|
61
|
+ @if($self_role !='销售' ) <th width="3%">成本</th> @endif
|
|
62
|
+ <th width="4%">发货仓库</th>
|
|
63
|
+ <th width="4%">付款金额</th>
|
|
64
|
+ <th width="5%">下单时间</th>
|
|
65
|
+ <th width="4%">加粉时间</th>
|
|
66
|
+ <th width="2%">是否复购</th>
|
|
67
|
+ <th width="2%">是否退补单</th>
|
|
68
|
+ <th width="4%">应该退补差价</th>
|
|
69
|
+ <th width="5%">退补备注</th>
|
|
70
|
+ <th width="4%">所属销售</th>
|
|
71
|
+ <th width="4%">订单状态</th>
|
|
72
|
+ @if($self_role =='销售' )<th width="5%">驳回原因</th>@endif
|
|
73
|
+ <th width="3%">是否退款</th>
|
|
74
|
+ <th width="5%">买家备注</th>
|
|
75
|
+ <th width="5%">卖家备注</th>
|
|
76
|
+ <th width="5%">发货备注</th>
|
|
77
|
+ <th width="5%">操作</th>
|
|
78
|
+ </tr>
|
|
79
|
+ </thead>
|
|
80
|
+ <tbody>
|
|
81
|
+ @if($result)
|
|
82
|
+ @foreach($result as $a)
|
|
83
|
+ <tr class="text-c" style=" text-align:center;">
|
|
84
|
+ <td><!--input type="checkbox" name="id[]" value="{{$a['id']}}"--> {{$a['id']}}</td>
|
|
85
|
+ <td>{{$a['customerName']}}</td>
|
|
86
|
+ <td>{{$a['receiverName']}}</td>
|
|
87
|
+ <td>{{$a['receiverMobile']}}</td>
|
|
88
|
+ <td>{{$a['receiverState']}}{{$a['receiverCity']}}{{$a['receiverDistrict']}}{{$a['receiverAddress']}}</td>
|
|
89
|
+ <td>{{$a['goods_note']}}</td>
|
|
90
|
+ <td>{{$a['delivery_date']}}</td>
|
|
91
|
+ @if($self_role =='销售' )
|
|
92
|
+ <td>{{$a['logistics_id']}}</td>
|
|
93
|
+ @else
|
|
94
|
+ <td class ="change_logistics_id">
|
|
95
|
+ <p id="logi_1{{$a['id']}}">{{$a['logistics_id']}}</p>
|
|
96
|
+ <input id="logi_2{{$a['id']}}" style="display: none" type='text' autofocus="autofocus" name='logistics_id' value="{{$a['logistics_id']}}" onblur="change_logistics_id({{$a['id']}})" />
|
|
97
|
+ <span class="sort_icon" hidden onClick='change_logistics_click("{{$a['id']}}","{{$a['logistics_id']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
98
|
+ </td>
|
|
99
|
+ @endif
|
|
100
|
+
|
|
101
|
+ @if($self_role !='销售' )
|
|
102
|
+ <td class ="change_logistics_id">
|
|
103
|
+ <p id="cost_1{{$a['id']}}">{{$a['cost']}}</p>
|
|
104
|
+ <input id="cost_2{{$a['id']}}" style="display: none" type='text' name='cost' value="{{$a['cost']}}" onblur="change_cost({{$a['id']}})" />
|
|
105
|
+ <span class="sort_icon" hidden onClick='change_cost_click("{{$a['id']}}","{{$a['cost']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
106
|
+ </td>
|
|
107
|
+ @endif
|
|
108
|
+ <td>@if($a['warehouse']==1) A仓库 @elseif($a['warehouse']==2) B仓库 @else @endif</td>
|
|
109
|
+ <td>{{$a['receivedAmount']}}</td>
|
|
110
|
+ <td>{{$a['createTime']}}</td>
|
|
111
|
+ <td>{{$a['fanTime']}}</td>
|
|
112
|
+ <td>@if($a['is_fugou']==1) 是 @else 否 @endif</td>
|
|
113
|
+ <td>@if($a['is_refund']==1) 是 @else 否 @endif</td>
|
|
114
|
+ <td>{{$a['refund_price']}}</td>
|
|
115
|
+ <td>{{$a['refund_note']}}</td>
|
|
116
|
+ <td>{{$a['admin_name']}}</td>
|
|
117
|
+ <td id="order_verify{{$a['id']}}">{{$a['status_name']}}</td>
|
|
118
|
+ @if($self_role =='销售' ) <td>@if($a['status'] == 0)<font color='red'> {{$a['refuse_reason']}} </font> @endif</td> @endif
|
|
119
|
+ <td id="refund{{$a['id']}}">@if($a['order_status']==2) <span class="btn btn-danger radius">退款</span> @else 正常<br><span class="btn btn-primary radius" onclick="order_refund({{$a['id']}})">设为退款</span> @endif</td>
|
|
120
|
+ <td class ="change_logistics_id">
|
|
121
|
+ <p id="buyerMemo_1{{$a['id']}}">{{$a['buyerMemo']}}</p>
|
|
122
|
+ <input id="buyerMemo_2{{$a['id']}}" style="display: none" type='text' name='buyerMemo' value="{{$a['buyerMemo']}}" onblur="change_buyerMemo({{$a['id']}})" />
|
|
123
|
+ <span class="sort_icon" hidden onClick='change_buyerMemo_click("{{$a['id']}}","{{$a['cost']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
124
|
+ </td>
|
|
125
|
+
|
|
126
|
+ <td class ="change_logistics_id">
|
|
127
|
+ <p id="sellerMemo_1{{$a['id']}}">{{$a['sellerMemo']}}</p>
|
|
128
|
+ <input id="sellerMemo_2{{$a['id']}}" style="display: none" type='text' name='sellerMemo' value="{{$a['sellerMemo']}}" onblur="change_sellerMemo({{$a['id']}})" />
|
|
129
|
+ <span class="sort_icon" hidden onClick='change_sellerMemo_click("{{$a['id']}}","{{$a['cost']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
130
|
+ </td>
|
|
131
|
+ <td>{{$a['send_note']}}</td>
|
|
132
|
+ <td>
|
|
133
|
+ @if($a['enable_status'])
|
|
134
|
+ @foreach($a['enable_status'] as $item)
|
|
135
|
+ @if($item['status'] == 0)
|
|
136
|
+ <a id="verify_refuse" style="text-decoration:none" onClick='refuse_reason("{{$a['id']}}")' href="javascript:;" title="审核驳回"><span class="btn btn-danger radius">审核驳回</span></a>
|
|
137
|
+ @else
|
|
138
|
+ <a id="verify" style="text-decoration:none" onClick='order_verify("{{$a['id']}}", "{{$item['status']}}", "{{$item['name']}}")' href="javascript:;" title="{{$item['name']}}"><span class="btn btn-primary radius">{{$item['name']}}</span></a>
|
|
139
|
+ @endif
|
|
140
|
+ @endforeach
|
|
141
|
+ @endif
|
|
142
|
+
|
|
143
|
+ @if($self_role =='销售' && $a['status']>0)
|
|
144
|
+
|
|
145
|
+ @else
|
|
146
|
+ <a style="text-decoration:none" onClick='order_edit("编辑","{{$a['id']}}")' href="javascript:;" title="编辑"><span class="btn btn-primary radius">编辑</span></a>
|
|
147
|
+ <a style="text-decoration:none" onClick='order_del("删除","{{$a['id']}}")' href="javascript:;" title="删除"><span class="btn btn-danger radius">删除</span></a>
|
|
148
|
+ @endif
|
|
149
|
+ </td>
|
|
150
|
+
|
|
151
|
+ </tr>
|
|
152
|
+ @endforeach
|
|
153
|
+ @endif
|
|
154
|
+ </tbody>
|
|
155
|
+ </table>
|
|
156
|
+ </div>
|
|
157
|
+ <!--弹出层 推入分组-->
|
|
158
|
+ <div id="modal-demo1" class="modal fade" tabnonautomatic_index="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
159
|
+ <div class="modal-dialog">
|
|
160
|
+ <div class="modal-content radius">
|
|
161
|
+ <div class="modal-body" style="height:150px">
|
|
162
|
+ <div id="fa2">
|
|
163
|
+ <p style="font-size:14px">驳回原因:</p>
|
|
164
|
+ <input id='order_id' type='hidden' name='status' value=''/>
|
|
165
|
+ <textarea style="height:75px;" cols="85" id='refuse_reason'></textarea>
|
|
166
|
+ </div>
|
|
167
|
+
|
|
168
|
+ <div style="float:right">
|
|
169
|
+ <button class="btn btn-primary radius" onclick='verify_refuse()' value=" 确定 "> 确定 </button>
|
|
170
|
+ <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
|
|
171
|
+ </div>
|
|
172
|
+ </div>
|
|
173
|
+ </div>
|
|
174
|
+ </div>
|
|
175
|
+ </div>
|
|
176
|
+ <div id="page" class="page_div"></div>
|
|
177
|
+ </div>
|
|
178
|
+
|
|
179
|
+ <!--_footer 作为公共模版分离出去-->
|
|
180
|
+ <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
|
|
181
|
+ <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
|
|
182
|
+ <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
|
|
183
|
+ <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
|
|
184
|
+ <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
|
|
185
|
+ <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
186
|
+ <!--/_footer 作为公共模版分离出去-->
|
|
187
|
+ <!--/_footer 作为公共模版分离出去-->
|
|
188
|
+ <script type="text/javascript">
|
|
189
|
+ /*广告-添加*/
|
|
190
|
+ function order_add(title){
|
|
191
|
+ location.href="/admin/order/create";
|
|
192
|
+ }
|
|
193
|
+ /*广告-编辑*/
|
|
194
|
+ function order_edit(title,id){
|
|
195
|
+ var page = {{$page}};
|
|
196
|
+ var admin_id = $('#admin_id').val();
|
|
197
|
+ var stime = $('#stime').val();
|
|
198
|
+ var etime = $('#etime').val();
|
|
199
|
+ var receiverName = $('#receiverName').val();
|
|
200
|
+ var receiverMobile = $('#receiverMobile').val();
|
|
201
|
+
|
|
202
|
+ location.href="/admin/order/edit/"+id+'?page='+page+'&admin_id='+admin_id+'&stime='+stime+'&etime='+etime+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile;
|
|
203
|
+ }
|
|
204
|
+ /*广告-设为首页显示*/
|
|
205
|
+ function up(obj,id){
|
|
206
|
+ layer.confirm('确认要设为首页显示吗?',function(index){
|
|
207
|
+ location.href='/admin/order/up/'+id;
|
|
208
|
+ });
|
|
209
|
+ }
|
|
210
|
+ /*广告-移除*/
|
|
211
|
+ function order_del(obj,id){
|
|
212
|
+ layer.confirm('确认要删除吗?',function(index){
|
|
213
|
+ location.href='/admin/order/delete/'+id;
|
|
214
|
+ });
|
|
215
|
+ }
|
|
216
|
+ /*广告-设为首页隐藏*/
|
|
217
|
+ function down(obj,id){
|
|
218
|
+ layer.confirm('确认要设为首页隐藏吗?',function(index){
|
|
219
|
+ location.href='/admin/order/down/'+id;
|
|
220
|
+ });
|
|
221
|
+ }
|
|
222
|
+ function user_search(){
|
|
223
|
+ var admin_id = $('#admin_id').val();
|
|
224
|
+ var stime = $('#stime').val();
|
|
225
|
+ var etime = $('#etime').val();
|
|
226
|
+ var receiverName = $('#receiverName').val();
|
|
227
|
+ var receiverMobile = $('#receiverMobile').val();
|
|
228
|
+ //var status = $('#status').val();
|
|
229
|
+ var if_all = $('#if_all').val();
|
|
230
|
+ //var page = {{$page}};
|
|
231
|
+ location.href = 'predictOrder?admin_id='+admin_id+'&stime='+stime+'&etime='+etime+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile+'&if_all='+if_all;
|
|
232
|
+ }
|
|
233
|
+ //导出
|
|
234
|
+ function order_export(){
|
|
235
|
+ var admin_id = $('#admin_id').val();
|
|
236
|
+ var stime = $('#stime').val();
|
|
237
|
+ var etime = $('#etime').val();
|
|
238
|
+ var receiverName = $('#receiverName').val();
|
|
239
|
+ var receiverMobile = $('#receiverMobile').val();
|
|
240
|
+ var status = $('#status').val();
|
|
241
|
+ location.href = '/admin/order/order_export?admin_id='+admin_id+'&stime='+stime+'&etime='+etime+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile+'&status='+status;
|
|
242
|
+ }
|
|
243
|
+
|
|
244
|
+ function change_logistics_click(id, logistics_id){
|
|
245
|
+ $("#logi_1"+id).hide();
|
|
246
|
+ $("#logi_2"+id).show();
|
|
247
|
+ $("#logi_2"+id).focus();
|
|
248
|
+ }
|
|
249
|
+
|
|
250
|
+ function change_logistics_id(id){
|
|
251
|
+ var logistics_id = $("#logi_2"+id).val();
|
|
252
|
+ $.ajax({
|
|
253
|
+ url: '/admin/order/editLogisticsId?id='+id+'&logistics_id='+logistics_id,
|
|
254
|
+ type: 'get',
|
|
255
|
+ dateType: 'json',
|
|
256
|
+ success:function(msg){
|
|
257
|
+ $("#logi_1"+id).html(logistics_id);
|
|
258
|
+ $("#logi_1"+id).show();
|
|
259
|
+ $("#logi_2"+id).hide();
|
|
260
|
+ }
|
|
261
|
+ });
|
|
262
|
+ }
|
|
263
|
+
|
|
264
|
+ function change_cost_click(id, cost){
|
|
265
|
+ $("#cost_1"+id).hide();
|
|
266
|
+ $("#cost_2"+id).show();
|
|
267
|
+ $("#cost_2"+id).focus();
|
|
268
|
+ }
|
|
269
|
+
|
|
270
|
+ function change_cost(id){
|
|
271
|
+ var cost = $("#cost_2"+id).val();
|
|
272
|
+ $.ajax({
|
|
273
|
+ url: '/admin/order/editLogisticsId?id='+id+'&cost='+cost,
|
|
274
|
+ type: 'get',
|
|
275
|
+ dateType: 'json',
|
|
276
|
+ success:function(msg){
|
|
277
|
+ $("#cost_1"+id).html(cost);
|
|
278
|
+ $("#cost_1"+id).show();
|
|
279
|
+ $("#cost_2"+id).hide();
|
|
280
|
+ }
|
|
281
|
+ });
|
|
282
|
+ }
|
|
283
|
+
|
|
284
|
+ function change_buyerMemo_click(id, buyerMemo){
|
|
285
|
+ $("#buyerMemo_1"+id).hide();
|
|
286
|
+ $("#buyerMemo_2"+id).show();
|
|
287
|
+ $("#buyerMemo_2"+id).focus();
|
|
288
|
+ }
|
|
289
|
+
|
|
290
|
+ function change_buyerMemo(id){
|
|
291
|
+ var buyerMemo = $("#buyerMemo_2"+id).val();
|
|
292
|
+ $.ajax({
|
|
293
|
+ url: '/admin/order/editLogisticsId?id='+id+'&buyerMemo='+buyerMemo,
|
|
294
|
+ type: 'get',
|
|
295
|
+ dateType: 'json',
|
|
296
|
+ success:function(msg){
|
|
297
|
+ $("#buyerMemo_1"+id).html(buyerMemo);
|
|
298
|
+ $("#buyerMemo_1"+id).show();
|
|
299
|
+ $("#buyerMemo_2"+id).hide();
|
|
300
|
+ }
|
|
301
|
+ });
|
|
302
|
+ }
|
|
303
|
+
|
|
304
|
+ function change_sellerMemo_click(id, sellerMemo){
|
|
305
|
+ $("#sellerMemo_1"+id).hide();
|
|
306
|
+ $("#sellerMemo_2"+id).show();
|
|
307
|
+ $("#sellerMemo_2"+id).focus();
|
|
308
|
+ }
|
|
309
|
+
|
|
310
|
+ function change_sellerMemo(id){
|
|
311
|
+ var sellerMemo = $("#sellerMemo_2"+id).val();
|
|
312
|
+ $.ajax({
|
|
313
|
+ url: '/admin/order/editLogisticsId?id='+id+'&sellerMemo='+sellerMemo,
|
|
314
|
+ type: 'get',
|
|
315
|
+ dateType: 'json',
|
|
316
|
+ success:function(msg){
|
|
317
|
+ $("#sellerMemo_1"+id).html(sellerMemo);
|
|
318
|
+ $("#sellerMemo_1"+id).show();
|
|
319
|
+ $("#sellerMemo_2"+id).hide();
|
|
320
|
+ }
|
|
321
|
+ });
|
|
322
|
+ }
|
|
323
|
+
|
|
324
|
+ function order_refund(id){
|
|
325
|
+ $.ajax({
|
|
326
|
+ url: '/admin/order/setrefund/'+id,
|
|
327
|
+ type: 'get',
|
|
328
|
+ dateType: 'json',
|
|
329
|
+ success:function(msg){
|
|
330
|
+ var str = '<span class="btn btn-danger radius">退款</span>';
|
|
331
|
+ $("#refund"+id).html(str);
|
|
332
|
+ }
|
|
333
|
+ });
|
|
334
|
+ }
|
|
335
|
+
|
|
336
|
+ function order_verify(id, status, name){
|
|
337
|
+ if( !confirm('确认'+name) ){
|
|
338
|
+ return false;
|
|
339
|
+ }
|
|
340
|
+ var admin_id = $('#admin_id').val();
|
|
341
|
+ var stime = $('#stime').val();
|
|
342
|
+ var etime = $('#etime').val();
|
|
343
|
+ var receiverName = $('#receiverName').val();
|
|
344
|
+ var receiverMobile = $('#receiverMobile').val();
|
|
345
|
+ var page = {{$page}};
|
|
346
|
+ var str_query = 'page='+page+'&admin_id='+admin_id+'&stime='+stime+'&etime='+etime+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile;
|
|
347
|
+ location.href = '/admin/order/setverify/'+id+'?status='+status+'&'+str_query;
|
|
348
|
+ }
|
|
349
|
+
|
|
350
|
+ function order_verify_more(){
|
|
351
|
+ var ids = $(":checkbox[name='id[]']:checked").serialize();
|
|
352
|
+ var idLength = $(":checkbox[name='id[]']:checked").length;
|
|
353
|
+
|
|
354
|
+ if (idLength < 1) {
|
|
355
|
+ alert("请至少选中一项");
|
|
356
|
+ return false;
|
|
357
|
+ }
|
|
358
|
+ var ids = $(":checkbox[name='id[]']:checked").serialize();
|
|
359
|
+
|
|
360
|
+ var admin_id = $('#admin_id').val();
|
|
361
|
+ var stime = $('#stime').val();
|
|
362
|
+ var etime = $('#etime').val();
|
|
363
|
+ var receiverName = $('#receiverName').val();
|
|
364
|
+ var receiverMobile = $('#receiverMobile').val();
|
|
365
|
+ var page = {{$page}};
|
|
366
|
+ location.href = '/admin/order/setverifymore?'+ids+'&page='+page+'&admin_id='+admin_id+'&stime='+stime+'&etime='+etime+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile;
|
|
367
|
+ }
|
|
368
|
+
|
|
369
|
+ /*弹出层-填写原因*/
|
|
370
|
+ function refuse_reason(id) {
|
|
371
|
+ $("#order_id").val(id);
|
|
372
|
+ $("#modal-demo1").modal("show");
|
|
373
|
+ }
|
|
374
|
+
|
|
375
|
+ function verify_refuse(){
|
|
376
|
+ var reason = $("#refuse_reason").val();
|
|
377
|
+ var id = $("#order_id").val();
|
|
378
|
+ var status = 0;
|
|
379
|
+ var admin_id = $('#admin_id').val();
|
|
380
|
+ var stime = $('#stime').val();
|
|
381
|
+ var etime = $('#etime').val();
|
|
382
|
+ var receiverName = $('#receiverName').val();
|
|
383
|
+ var receiverMobile = $('#receiverMobile').val();
|
|
384
|
+ var page = {{$page}};
|
|
385
|
+ var str_query = 'page='+page+'&admin_id='+admin_id+'&stime='+stime+'&etime='+etime+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile;
|
|
386
|
+ location.href = '/admin/order/setverify/'+id+'?status='+status+'&refuse_reason='+reason+'&'+str_query;
|
|
387
|
+ }
|
|
388
|
+
|
|
389
|
+ $(".change_logistics_id").mouseover(
|
|
390
|
+ function(){
|
|
391
|
+ $(this).children("span").show();
|
|
392
|
+ $(this).children("span").addClass('f-18 c-success');
|
|
393
|
+ $(this).mouseout(
|
|
394
|
+ function(){
|
|
395
|
+ $(this).children("span").hide();
|
|
396
|
+ }
|
|
397
|
+ );
|
|
398
|
+ }
|
|
399
|
+ );
|
|
400
|
+
|
|
401
|
+ /*分页*/
|
|
402
|
+
|
|
403
|
+ $("#page").paging({
|
|
404
|
+ pageNo:{{$page}},
|
|
405
|
+ totalPage: {{$pages}},
|
|
406
|
+ totalSize: {{$count}},
|
|
407
|
+ callback: function(num) {
|
|
408
|
+ var admin_id = $('#admin_id').val();
|
|
409
|
+ var stime = $('#stime').val();
|
|
410
|
+ var etime = $('#etime').val();
|
|
411
|
+ var receiverName = $('#receiverName').val();
|
|
412
|
+ var receiverMobile = $('#receiverMobile').val();
|
|
413
|
+ //var status = $('#status').val();
|
|
414
|
+ var if_all = $('#if_all').val();
|
|
415
|
+ location.href = 'predictOrder?page='+num+'&admin_id='+admin_id+'&stime='+stime+'&etime='+etime+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile+'&if_all='+if_all;
|
|
416
|
+ }
|
|
417
|
+ })
|
|
418
|
+
|
|
419
|
+ </script>
|
|
420
|
+
|
|
421
|
+ </body>
|
|
422
|
+
|
|
423
|
+@endsection
|