123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422 |
- @extends('admin/master')
- @section('content')
- <body>
- @if(session('info'))
- <div class="Huialert Huialert-info" onclick="$(this).remove()" id="info">
- {{session('info')}}
- </div>
- @endif
- <div class="page-container">
- <div>
- <div>
- <input class="input-text" style="width:5%;text-align:center" type="text" value="订单编号"/>
- <input id="id" type="text" class="input-text" style="width:6%;text-align:center" name="id" value="{{$id?$id:''}}">
- <input class="input-text" style="width:6%;text-align:center" type="text" value="开始时间"/>
- <input id="stime" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss' })" autocomplete="off" class="input-text Wdate" style="width:12%;text-align:center;margin-left: -5px" name="stime" value="{{$stime?$stime:''}}">
- <input class="input-text" style="width:6%;text-align:center" type="text" value="结束时间"/>
- <input id="etime"type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss' })" autocomplete="off" class="input-text Wdate" style="width:12%;text-align:center;margin-left: -5px" name="etime" value="{{$etime?$etime:''}}">
- <input class="input-text" style="width:6%;text-align:center" type="text" value="收货人"/>
- <input id="receiverName" type="text" class="input-text" style="width:8%;text-align:center" name="receiverName" value="{{$receiverName?$receiverName:''}}">
- <input class="input-text" style="width:6%;text-align:center" type="text" value="收货人手机号"/>
- <input id="receiverMobile" type="text" class="input-text" style="width:8%;text-align:center" name="receiverMobile" value="{{$receiverMobile?$receiverMobile:''}}">
-
- <input class="input-text" style="width:6%;text-align:center" type="text" value="发货状态"/>
- <select style="width:8%;text-align:center" id='delivery_type' name="delivery_type">
- <option value="0" @if($delivery_type==0) selected @endif>待发货</option>
- <option value="2" @if($delivery_type==2) selected @endif>全部</option>
- </select>
-
- <div style="float:right">
- <a class="btn btn-primary radius" onclick="user_search()" href="javascript:;">搜索</a>
- <a class="btn btn-primary radius" onclick="order_export()" href="javascript:;">导出订单</a>
- <a class="btn btn-primary radius" onclick="importExcel('商品导入')" href="javascript:;"> 导入订单</a>
- <a class="btn btn-primary radius" onclick="importDeliveryExcel('物流导入')" href="javascript:;"> 导入物流成本</a>
- <a class="btn btn-primary radius" onclick="window.location.reload();" href="javascript:;"> 刷新</a>
- </div>
- </div>
- </div>
-
- <div class="mt-20">
- @if($overtime)
- <font color='red'>
- 超一天未发订单量:【{{$overtime['count']}}单】 订单ID:【
- @foreach($overtime['list'] as $k=>$oid)
- @if($k == $overtime['count']-1) <a style="text-decoration: underline;color:blue;" href='warehouse?id={{$oid}}'>{{$oid}}</a> @else <a style="text-decoration: underline;color:blue;" href='warehouse?id={{$oid}}'>{{$oid}},</a> @endif
- @endforeach
- 】
- </font>
- @endif
- <table class="table table-border table-bordered table-bg table-hover table-sort">
- <thead>
- <tr class="text-c">
- <th width="5%">订单编号</th>
- <th width="5%">买家名称</th>
- <th width="5%">收货人</th>
- <th width="6%">收货人手机号</th>
- <th width="10%">收货地址</th>
- <th width="12%">商品信息</th>
- <th width="6%">预发货时间</th>
- <th width="6%">审核时间</th>
- <th width="6%">物流单号</th>
- <th width="5%">货品成本</th>
- <th width="5%">运费成本</th>
- <th width="5%">发货备注</th>
- <th width="5%">退补备注</th>
- <th width="5%">发货时间</th>
- <th width="6%">创建时间</th>
-
- </tr>
- </thead>
- <tbody>
- @if($result)
- @foreach($result as $a)
- <tr class="text-c" style="text-align:center; @if($a['delivery_date'] < $yestoday && !$a['logistics_id']) background-color: #FF0000; @elseif($a['delivery_date'] < $today && !$a['logistics_id']) background-color: #f37b1d; @endif">
- <td>{{$a['id']}}</td>
- <td>{{$a['customerName']}}</td>
- <td>{{$a['receiverName']}}</td>
- <td>{{$a['receiverMobile']}}</td>
- <td>{{$a['receiverState']}}{{$a['receiverCity']}}{{$a['receiverDistrict']}}{{$a['receiverStreet']}}{{$a['receiverAddress']}}</td>
- <td>
- @if( is_array($a['goods']) && $a['warehouse'] == 3)
- @foreach($a['goods'] as $good)
- <p>{{$good}}</p>
- @endforeach
- @else
- {{$a['goods_note']}}
- @endif
- </td>
- <td style="">{{$a['delivery_date']}}</td>
- <td>{{$a['verify_time']}}</td>
- <td class ="change_logistics_id">
- <p id="logi_1{{$a['id']}}">{{$a['logistics_id']}}</p>
- <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']}})" />
- <span class="sort_icon" hidden onClick='change_logistics_click("{{$a['id']}}","{{$a['logistics_id']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
- </td>
-
- <td class ="change_logistics_id">
- <p id="cost_1{{$a['id']}}">{{$a['cost']}}</p>
- <input id="cost_2{{$a['id']}}" style="display: none" type='text' name='cost' value="{{$a['cost']}}" onblur="change_cost({{$a['id']}})" />
- <span class="sort_icon" hidden onClick='change_cost_click("{{$a['id']}}","{{$a['cost']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
- </td>
- <td class ="change_logistics_id">
- <p id="freight_cost_1{{$a['id']}}">{{$a['freight_cost']}}</p>
- <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']}})" />
- <span class="sort_icon" hidden onClick='change_freight_cost_click("{{$a['id']}}","{{$a['freight_cost']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
- </td>
- <td class ="change_logistics_id">
- <p id="send_note_1{{$a['id']}}">{{$a['send_note']}}</p>
- <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>
- <span class="sort_icon" hidden onClick='change_send_note_click("{{$a['id']}}","{{$a['send_note']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
- </td>
- <td class ="change_logistics_id">
- <p id="refund_note_1{{$a['id']}}">{{$a['refund_note']}}</p>
- <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>
- <span class="sort_icon" hidden onClick='change_refund_note_click("{{$a['id']}}","{{$a['refund_note']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
- </td>
- <td class ="change_logistics_id">
- <p id="send_time_1{{$a['id']}}">{{$a['send_time']}}</p>
- <input id="send_time_2{{$a['id']}}" style="display: none" name='send_time' onblur="change_send_time({{$a['id']}})" value="{{$a['send_time']}}" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })" class=" Wdate" />
- <span class="sort_icon" hidden onClick='change_send_time_click("{{$a['id']}}","{{$a['send_time']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
- </td>
- <td>{{$a['createTime']}}</td>
-
- </tr>
- @endforeach
- @endif
- </tbody>
- </table>
- </div>
- <!--弹出层 推入分组-->
- <div id="modal-demo1" class="modal fade" tabnonautomatic_index="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content radius">
- <div class="modal-body" style="height:80px">
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <div class="panel-heading">上传文件</div>
- <form class="form-horizontal" method="POST" action="/admin/order/importGoodsExcel" enctype="multipart/form-data">
- <input type="hidden" name="_token" value="{{ csrf_token() }}" />
- <label for="file">选择文件</label>
- <input id="file" type="file" class="form-control" name="orderFile" required>
- <button type="submit" class="btn btn-primary radius">确定</button>
- <button class="btn radius" data-dismiss="modal" aria-hidden="true">关闭</button>
- </form>
- </div>
- <br>
- {{--<div style="float:right">--}}
- {{--<button class="btn btn-primary radius" onclick='submits(this,"{{$page}}")' value=" 确定 "> 确定 </button> --}}
- {{--<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>--}}
- {{--</div>--}}
- </div>
- </div>
- </div>
- </div>
- <div id="modal-demo12" class="modal fade" tabnonautomatic_index="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content radius">
- <div class="modal-body" style="height:80px">
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <div class="panel-heading">上传文件</div>
- <form class="form-horizontal" method="POST" action="/admin/order/importDeliveryExcel" enctype="multipart/form-data">
- <input type="hidden" name="_token" value="{{ csrf_token() }}" />
- <label for="file">选择文件</label>
- <input id="file" type="file" class="form-control" name="orderFile" required>
- <button type="submit" class="btn btn-primary radius">确定</button>
- <button class="btn radius" data-dismiss="modal" aria-hidden="true">关闭</button>
- </form>
- </div>
- <br>
- {{--<div style="float:right">--}}
- {{--<button class="btn btn-primary radius" onclick='submits(this,"{{$page}}")' value=" 确定 "> 确定 </button> --}}
- {{--<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>--}}
- {{--</div>--}}
- </div>
- </div>
- </div>
- </div>
-
- <div id="page" class="page_div"></div>
- </div>
-
- <!--_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
- <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
- <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
- <!--/_footer 作为公共模版分离出去-->
- <!--/_footer 作为公共模版分离出去-->
- <script type="text/javascript">
- $(function(){
- setTimeout("$('#info').hide()",3000);
- });
- /*广告-添加*/
- function order_add(title){
- location.href="/admin/order/create";
- }
- /*广告-编辑*/
- function order_edit(title,id){
- var page = {{$page}};
- var stime = $('#stime').val();
- var etime = $('#etime').val();
- var receiverName = $('#receiverName').val();
- var receiverMobile = $('#receiverMobile').val();
- var id = $('#id').val();
- location.href="/admin/order/edit/"+id+'?page='+page+'&stime='+stime+'&etime='+etime+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile+'&id='+id;
- }
- /*广告-设为首页显示*/
- function up(obj,id){
- layer.confirm('确认要设为首页显示吗?',function(index){
- location.href='/admin/order/up/'+id;
- });
- }
- /*广告-移除*/
- function order_del(obj,id){
- layer.confirm('确认要删除吗?',function(index){
- location.href='/admin/order/delete/'+id;
- });
- }
- /*广告-设为首页隐藏*/
- function down(obj,id){
- layer.confirm('确认要设为首页隐藏吗?',function(index){
- location.href='/admin/order/down/'+id;
- });
- }
- function user_search(){
- var stime = $('#stime').val();
- var etime = $('#etime').val();
- var delivery_type = $('#delivery_type').val();
- var receiverName = $('#receiverName').val();
- var receiverMobile = $('#receiverMobile').val();
- var id = $('#id').val();
- //var page = {{$page}};
- location.href = 'warehouse?stime='+stime+'&etime='+etime+'&delivery_type='+delivery_type+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile+'&id='+id;
- }
- //导出
- function order_export(){
- var stime = $('#stime').val();
- var etime = $('#etime').val();
- var delivery_type = $('#delivery_type').val();
- var receiverName = $('#receiverName').val();
- var receiverMobile = $('#receiverMobile').val();
- var id = $('#id').val();
- location.href = '/admin/order/warehouse_export?stime='+stime+'&etime='+etime+'&delivery_type='+delivery_type+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile;
- }
- function change_logistics_click(id, logistics_id){
- $("#logi_1"+id).hide();
- $("#logi_2"+id).show();
- $("#logi_2"+id).focus();
- }
- function change_logistics_id(id){
- var logistics_id = $("#logi_2"+id).val();
- $.ajax({
- url: '/admin/order/editLogisticsId?id='+id+'&logistics_id='+logistics_id,
- type: 'get',
- dateType: 'json',
- success:function(msg){
- $("#logi_1"+id).html(logistics_id);
- $("#logi_1"+id).show();
- $("#logi_2"+id).hide();
- }
- });
- }
- function change_cost_click(id, cost){
- $("#cost_1"+id).hide();
- $("#cost_2"+id).show();
- $("#cost_2"+id).focus();
- }
- function change_cost(id){
- var cost = $("#cost_2"+id).val();
- $.ajax({
- url: '/admin/order/editLogisticsId?id='+id+'&cost='+cost,
- type: 'get',
- dateType: 'json',
- success:function(msg){
- $("#cost_1"+id).html(cost);
- $("#cost_1"+id).show();
- $("#cost_2"+id).hide();
- }
- });
- }
- function change_freight_cost_click(id, freight_cost){
- $("#freight_cost_1"+id).hide();
- $("#freight_cost_2"+id).show();
- $("#freight_cost_2"+id).focus();
- }
- function change_freight_cost(id){
- var freight_cost = $("#freight_cost_2"+id).val();
- $.ajax({
- url: '/admin/order/editLogisticsId?id='+id+'&freight_cost='+freight_cost,
- type: 'get',
- dateType: 'json',
- success:function(msg){
- $("#freight_cost_1"+id).html(freight_cost);
- $("#freight_cost_1"+id).show();
- $("#freight_cost_2"+id).hide();
- }
- });
- }
- function change_send_note_click(id, send_note){
- $("#send_note_1"+id).hide();
- $("#send_note_2"+id).show();
- $("#send_note_2"+id).focus();
- }
- function change_send_note(id){
- var send_note = $("#send_note_2"+id).val();
- $.ajax({
- url: '/admin/order/editLogisticsId?id='+id,
- type: 'get',
- data:{send_note:send_note},
- dateType: 'json',
- success:function(msg){
- $("#send_note_1"+id).html(send_note);
- $("#send_note_1"+id).show();
- $("#send_note_2"+id).hide();
- }
- });
- }
- function change_send_time_click(id, send_time){
- $("#send_time_1"+id).hide();
- $("#send_time_2"+id).show();
- $("#send_time_2"+id).focus();
- }
- function change_send_time(id){
- var send_time = $("#send_time_2"+id).val();
- if(!send_time){
- return false;
- }
- $.ajax({
- url: '/admin/order/editLogisticsId?id='+id+'&send_time='+send_time,
- type: 'get',
- dateType: 'json',
- success:function(msg){
- $("#send_time_1"+id).html(send_time);
- $("#send_time_1"+id).show();
- $("#send_time_2"+id).hide();
- }
- });
- }
- function change_refund_note_click(id, refund_note){
- $("#refund_note_1"+id).hide();
- $("#refund_note_2"+id).show();
- $("#refund_note_2"+id).focus();
- }
- function change_refund_note(id){
- var refund_note = $("#refund_note_2"+id).val();
- $.ajax({
- url: '/admin/order/editLogisticsId?id='+id,
- type: 'get',
- data:{refund_note:refund_note},
- dateType: 'json',
- success:function(msg){
- $("#refund_note_1"+id).html(refund_note);
- $("#refund_note_1"+id).show();
- $("#refund_note_2"+id).hide();
- }
- });
- }
- //批量导入
- function importExcel(){
- $("#modal-demo1").modal("show");
- }
- //批量导入
- function importDeliveryExcel(){
- $("#modal-demo12").modal("show");
- }
- $(".change_logistics_id").mouseover(
- function(){
- $(this).children("span").show();
- $(this).children("span").addClass('f-18 c-success');
- $(this).mouseout(
- function(){
- $(this).children("span").hide();
- }
- );
- }
- );
-
-
- /*分页*/
-
- $("#page").paging({
- pageNo:{{$page}},
- totalPage: {{$pages}},
- totalSize: {{$count}},
- callback: function(num) {
- var stime = $('#stime').val();
- var etime = $('#etime').val();
- var receiverName = $('#receiverName').val();
- var receiverMobile = $('#receiverMobile').val();
- var delivery_type = $('#delivery_type').val();
- var id = $('#id').val();
- location.href = 'warehouse?page='+num+'&stime='+stime+'&etime='+etime+'&delivery_type='+delivery_type+'&receiverName='+receiverName+'&receiverMobile='+receiverMobile+'&id='+id;
- }
- })
-
- </script>
-
- </body>
- @endsection
|