Nav apraksta

orderlist.blade.php 28KB

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