1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
- <title><?php echo $shoname; ?></title>
- <link rel="shortcut icon" href="" />
-
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
- <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-
- <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
- <!--[if lt IE 9]>
- <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
- <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
- <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
- <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
- <script type="text/javascript">
- window.sysinfo = {
- <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '{$_W['uniacid']}',<?php } ?>
-
- <?php if( !empty($_W['acid']) ){ ?>'acid': '{$_W['acid']}',<?php } ?>
-
- <?php if (!empty($_W['openid']) ) { ?>'openid': '{$_W['openid']}',<?php } ?>
-
- <?php if( !empty($_W['uid']) ) { ?>'uid': '{$_W['uid']}',<?php } ?>
-
- 'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php }else{ ?>0<?php } ?>,
-
- 'siteroot': '{$_W['siteroot']}',
- 'siteurl': '{$_W['siteurl']}',
- 'attachurl': '{$_W['attachurl']}',
- 'attachurl_local': '{$_W['attachurl_local']}',
- 'attachurl_remote': '{$_W['attachurl_remote']}',
- 'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
- 'cookie' : {'pre': ''},
- 'account' : {:json_encode($_W['account'])},
- };
- </script>
- <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
- <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
- <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
- <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
- <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
- <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
- <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
- <link href="/static/css/snailfish.css?v=32" rel="stylesheet">
- <style>
- tbody tr td{
- position: relative;
- }
- tbody tr .icow-weibiaoti--{
- visibility: hidden;
- display: inline-block;
- color: #fff;
- height:18px;
- width:18px;
- background: #e0e0e0;
- text-align: center;
- line-height: 18px;
- vertical-align: middle;
- }
- tbody tr:hover .icow-weibiaoti--{
- visibility: visible;
- }
- tbody tr .icow-weibiaoti--.hidden{
- visibility: hidden !important;
- }
- .full .icow-weibiaoti--{
- margin-left:10px;
- }
- .full>span{
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- vertical-align: middle;
- align-items: center;
- }
- tbody tr .label{
- margin: 5px 0;
- }
- .goods_attribute a{
- cursor: pointer;
- }
- .newgoodsflag{
- width: 22px;height: 16px;
- background-color: #ff0000;
- color: #fff;
- text-align: center;
- position: absolute;
- bottom: 70px;
- left: 57px;
- font-size: 12px;
- }
- .a{cursor: pointer;}
- .img-40 {
- width: 40px;
- height: 40px;
- }
- .daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
- width:auto!important;
- }
- .list-tb-div th .tDiv{color:#000;}
- </style>
- </head>
- <body layadmin-themealias="default">
- <table id="demo" lay-filter="test"></table>
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">订单管理
- <span> 订单数: <span class='text-danger'>{$total}</span> 订单金额: <span class='text-danger'>{$total_money}</span>
- </span></span>
- </div>
-
- <?php if($order_status_id != 12){ ?>
-
- <div class="layui-tab layui-tab-brief" >
- <ul class="layui-tab-title">
- <?php if($is_community == 1){ ?>
- <li <?php if( empty($order_status_id) || $order_status_id=='0'){ ?>class="layui-this"<?php } ?>><a href="{:U($cur_controller, array('order_status_id' => 0,'headid'=>$headid))}">全部订单({$all_count})</a></li>
- <li <?php if( $order_status_id=='3'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 3,'headid'=>$headid))}">待付款({$count_status_3})</a></li>
- <li <?php if( $order_status_id=='1'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 1,'headid'=>$headid))}">待发货({$count_status_1})</a></li>
- <li <?php if( $order_status_id=='14'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 14,'headid'=>$headid ))}">配送中({$count_status_14})</a></li>
- <li <?php if( $order_status_id=='4'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 4,'headid'=>$headid ))}">待收货({$count_status_4})</a></li>
- <li <?php if( $order_status_id=='11'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 11,'headid'=>$headid ))}">已完成({$count_status_11})</a></li>
- <li <?php if( $order_status_id=='5'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 5,'headid'=>$headid ))}">已取消({$count_status_5})</a></li>
- <li <?php if( $order_status_id=='7'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 7,'headid'=>$headid ))}">已退款({$count_status_7})</a></li>
- <?php } else { ?>
- <li <?php if( empty($order_status_id) || $order_status_id=='0'){ ?>class="layui-this"<?php } ?>><a href="{:U($cur_controller, array('order_status_id' => 0))}">全部订单({$all_count})</a></li>
- <li <?php if( $order_status_id=='3'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 3))}">待付款({$count_status_3})</a></li>
- <li <?php if( $order_status_id=='1'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 1))}">待发货({$count_status_1})</a></li>
- <li <?php if( $order_status_id=='14'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 14))}">配送中({$count_status_14})</a></li>
- <li <?php if( $order_status_id=='4'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 4))}">待收货({$count_status_4})</a></li>
- <li <?php if( $order_status_id=='11'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 11))}">已完成({$count_status_11})</a></li>
- <li <?php if( $order_status_id=='5'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 5))}">已取消({$count_status_5})</a></li>
- <li <?php if( $order_status_id=='7'){ ?>class="layui-this"<?php } ?> ><a href="{:U($cur_controller, array('order_status_id' => 7))}">已退款({$count_status_7})</a></li>
- <?php } ?>
- </ul>
- </div>
-
- <?php } ?>
- <div class="layui-card-body" style="padding:15px;">
-
- <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
- <input type="hidden" name="c" value="group" />
- <input type="hidden" name="a" value="orderlist" />
-
- <input type="hidden" name="order_status_id" value="{$order_status_id}" />
-
- <div class="layui-form-item">
- <div class="layui-inline">
-
- <div class="layui-input-inline" style="width:100px;">
- <select name='type' class='layui-input layui-unselect' lay-ignore style="width:100px;padding:0 5px;" id="type">
- <option value=''>订单类型</option>
- <option value='normal' <?php if( $type=='normal'){ ?>selected<?php } ?>>普通订单</option>
-
- </select>
- </div>
- <div class="layui-input-inline" style="width:100px;">
- <select name='searchtime' lay-ignore class='layui-input layui-unselect' style="width:100px;padding:0 5px;" id="searchtime">
- <option value=''>不按时间</option>
- <option value='create' <?php if( $searchtime=='create'){ ?>selected<?php } ?>>下单时间</option>
- <option value='pay' <?php if( $searchtime=='pay'){ ?>selected<?php } ?>>付款时间</option>
- <option value='send' <?php if( $searchtime=='send'){ ?>selected<?php } ?>>发货时间</option>
- <option value='finish' <?php if( $searchtime=='finish'){ ?>selected<?php } ?>>完成时间</option>
- </select>
- </div>
- <div class="layui-input-inline" style="width:280px;">
- {:tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);}
- </div>
- <div class="layui-input-inline" style="width:100px;">
- <select name='delivery' lay-ignore class='layui-input layui-unselect' style="width:100px;padding:0 5px;" id="type">
- <option value=''>配送方式</option>
- <option value='pickup' <?php if( $delivery=='pickup'){ ?>selected<?php } ?>>自提</option>
- <option value='tuanz_send' <?php if( $delivery=='tuanz_send'){ ?>selected<?php } ?>>团长配送</option>
- <option value='express' <?php if( $delivery=='express'){ ?>selected<?php } ?>>快递</option>
- </select>
- </div>
- <div class="layui-input-inline" style="width:110px;">
- <select name='searchfield' lay-ignore class='layui-input layui-unselect' style="width:110px;padding:0 5px;" >
- <option value='ordersn' <?php if( $searchfield=='ordersn'){ ?>selected<?php } ?>>订单号</option>
- <option value='member' <?php if( $searchfield=='member'){ ?>selected<?php } ?>>会员信息</option>
- <option value='mobile' <?php if( $searchfield=='mobile'){ ?>selected<?php } ?>>手机号</option>
- <option value='address' <?php if( $searchfield=='address'){ ?>selected<?php } ?>>收件人信息</option>
- <option value='location' <?php if( $searchfield=='location'){ ?>selected<?php } ?>>地址信息</option>
- <option value='shipping_no' <?php if( $searchfield=='shipping_no'){ ?>selected<?php } ?>>快递单号</option>
- <option value='goodstitle' <?php if( $searchfield=='goodstitle'){ ?>selected<?php } ?>>商品名称</option>
- <option value='trans_id' <?php if( $searchfield=='trans_id'){ ?>selected<?php } ?>>微信支付单号</option>
- <?php if($is_community != 1){ ?>
- <option value='head_name' <?php if( $searchfield=='head_name'){ ?>selected<?php } ?>>团长姓名</option>
- <option value='head_address' <?php if( $searchfield=='head_address'){ ?>selected<?php } ?>>小区名称</option>
- <?php } ?>
- <?php
- if (!defined('ROLE') || ROLE != 'agenter' )
- {
- ?>
- <option value='supply_name' <?php if( $searchfield=='supply_name'){ ?>selected<?php } ?>>供应商名称</option>
- <?php } ?>
- <!--<option value='goodssn' <?php if( $searchfield=='goodssn'){ ?>selected<?php } ?>>商品编码</option>-->
-
- </select>
- </div>
- <div class="layui-input-inline" >
- <input type="text" class="layui-input" name="keyword" value="{$keyword}" placeholder="请输入关键词"/>
- </div>
- <input type="hidden" name="export" id="export" value="0">
-
- <div class="layui-input-inline">
- <button class="layui-btn layui-btn-sm" data-export="0" type="submit"> 搜索</button>
- <button type="submit" name="export" data-export="1" value="1" class="layui-btn layui-btn-sm">导出</button>
- </div>
-
- </div>
- </div>
- </form>
- <form action="" class="layui-form" lay-filter="example" method="post" >
-
-
- <div class="row">
- <div class="list-div list-tb-div">
- <table cellpadding="0" cellspacing="0" border="0">
- <thead>
- <tr>
- <th width="3%" class="sign"><div class="tDiv">
- <label for="all_list" class="checkbox_stars"></label></div></th>
- <th width="25%"><div class="tDiv">订单号</div></th>
- <th width="9%"><div class="tDiv">单价/数量</div></th>
- <th width="12%"><div class="tDiv">买家</div></th>
- <th width="8%"><div class="tDiv">支付/配送</div></th>
- <th width="14%"><div class="tDiv">小区/团长</div></th>
- <th width="10%"><div class="tDiv">价格</div></th>
- <th width="9%"><div class="tDiv">操作</div></th>
- <th width="8%"><div class="tDiv">状态</div></th>
- </tr>
- </thead>
- </table>
-
- <table cellpadding="0" cellspacing="0" border="0">
- <colgroup>
- <col width="28%">
- <col width="9%">
- <col width="12%">
- <col width="8%">
- <col width="14%">
- <col width="10%">
- <col width="9%">
- <col width="8%">
- </colgroup>
- <tbody>
- <?php $is_open_pintuan_orderprint = D('Home/Front')->get_config_by_name('is_open_pintuan_orderprint'); ?>
- <?php foreach( $list as $item ){ ?>
- <tr class="tr-order-sn">
- <td colspan="10">
- <div class="tDiv ml10">
- <span class="sign">
- </span>
- <?php if( $item['type']=='pintuan'){ ?>
- <span class="layui-badge" type="margin:0,15px,0,0;">拼团</span>
- <?php } ?>
- <span class="words">订单号: {$item['order_num_alias']}</span>
- <span class="words">下单时间:{:date('Y-m-d',$item['date_added'])}  {:date('H:i:s',$item['date_added'])}</span>
- <span class="words">
- <?php if( in_array($item['order_status_id'], array(1,2,4,6,11,14))){ ?> <span class="label label-success">{$order_status_arr[$item['order_status_id']]}</span><?php } ?>
-
- <?php if( in_array($item['order_status_id'], array(7,8,9))){ ?><label class='label label-danger'>{$order_status_arr[$item['order_status_id']]}</label><?php } ?>
-
- <?php if( in_array($item['order_status_id'], array(3,5,10,12,13))){ ?><label class='label label-default'>{$order_status_arr[$item['order_status_id']]}</label><?php } ?>
-
- </span>
- <span style='background:#fdeeee;color:red;'>
- <?php if( !empty($item['remarksaler']) ){ ?>
- 卖家备注:{$item['remarksaler']}
- <?php } ?>
- </span>
-
- <div style='text-align:right;font-size:12px;display:inline-block;' >
- <a class='op' data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/opremarksaler', array('id' => $item['order_id']))}" >
- <?php if( !empty($item['remarksaler'])){ ?>
- <i class="icow icow-flag-o" style="color: #df5254;display: inline-block;vertical-align: middle" title=" 查看备注"></i>
- 备注
-  
- <?php }else{ ?>
- <i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title=" 添加备注" ></i>
- 备注
-  
- <?php } ?>
- </a>
-
- <a href="{:U('order/order_print_dan', array('id' => $item['order_id']))}" class="text-primary" target="_blank">打印</a>
-
- <?php if(!empty($is_open_pintuan_orderprint) && $is_open_pintuan_orderprint ==1){ ?>
- <?php if(!empty($open_feier_print) && $open_feier_print >=1){ ?>
- <a href="javascript:;" data-confirm="确认打印订单小票吗?" class="deldom" data-href="{:U('order/opprint',array('id'=>$item['order_id']))}">
- 打印小票
- </a>
- <?php } ?>
- <?php if( $item['is_print_suc'] == 0 ){ ?>
- <span class="layui-badge">打印失败</span>
- <?php } ?>
-
- <?php } ?>
-
- <?php if( in_array($item['order_status_id'], array(1,4,6,10,11,12,14)) && $is_can_nowrfund_order ){ ?>
- <a class='op' data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/oprefund_do', array('id' => $item['order_id']))}" >
-
- <i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="整个订单立即退款" ></i>
- 整个订单立即退款
- </a>
- <?php } ?>
-
- <?php if( ( in_array($item['order_status_id'], array(1,4,7)) && $item['delivery']== 'delivery') ){ ?>
- <a class="op" data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/op/changeexpress', array('id' => $item['order_id']))}">
- <i class="icow icow-wuliu" title="修改物流" style="color: #999;display: inline-block;vertical-align: middle"></i>
- 修改物流
-  
- </a>
- <?php } ?>
- <?php if( $item['order_status_id'] == 3){ ?>
- <a class='op' data-toggle='ajaxModal' href="javascript:;" style="display:none;" data-href="{:U('order/opchangeprice',array('id'=>$item['order_id']))}">
- <i class="icow icow-gaijia" title="订单改价" style="color: #999;display: inline-block;vertical-align: middle"></i>
- 订单改价
-  
- </a>
- <a class='op' data-toggle='ajaxModal' href="javascript:;" data-href="{:U('order/opclose',array('id'=>$item['order_id']))}" >
- <i class="icow icow-shutDown" title="关闭订单" style="color: #999;margin-right: 3px;display: inline-block;vertical-align: middle"></i>
- 关闭订单
-  
- </a>
- <?php } ?>
- </div>
- </div>
- </td>
- </tr>
- <tr class="">
- <td class="td-product">
-
-
- <?php $i =1;
- foreach($item['goods'] as $k => $g){ ?>
- <div class="tDiv relative tpinfo <?php if($i == count($item['goods'])){ ?>last<?php } ?> ">
- <div class="img"><img width="70" src="{:tomedia($g['goods_images'])}" alt="" /></div>
- <div class="product-info">
- <div class="name mb5">
- {$g['name']}
- </div>
- <div>
- <?php if( !empty($g['option_sku'])){ ?>{$g['option_sku']}<?php } ?>
- </div>
- <div class="order_icon_items">
- <?php if($item['order_status_id'] == 7){ ?>
- 已退款
- <?php }else if($g['is_refund_state'] == 1 && !empty($g['refund_info']) ){ ?>
- 退款金额:<?php echo $g['refund_info']['ref_money']; ?> 元,
- <?php if($g['refund_info']['state'] == 0 ){ ?>
- <span class="layui-badge">申请中</span>
- <?php }else if($g['refund_info']['state'] == 3){ ?>
- <span class="label label-success">退款成功</span>
- <?php }else if($g['refund_info']['state'] == 4){ ?>
- <span class="label label-default">退款失败</span>
- <?php } ?>
- <br/><br/>
- <a class="btn btn-primary btn-xs " href="{:U('order/oprefund', array('id' => $item['order_id'], 'ref_id' => $g['refund_info']['ref_id'] ))}" >退款详情</a>
-
- <?php } ?>
- </div>
-
-
- </div>
- </div>
- <?php $i++; } ?>
- </td>
- <td class="td-price" style="vertical-align: top;">
- <?php $i =1;
- foreach($item['goods'] as $k => $g){ ?>
- <div class="tDiv tpinfo <?php if($i == count($item['goods'])){ ?>last<?php } ?>" style="display: flex;align-items: center;">¥<?php echo round($g['total']/$g['quantity'],2); ?>
- x {$g['quantity']} </div>
- <?php $i++; } ?>
- </td>
-
- <td>
- <div class="tDiv" >
- <font style="color: #999;">{$item['shipping_name']}</font><br/><font style="color: #999;">{$item['shipping_tel']}</font>
- <br/>
-
- <?php if (defined('ROLE') && ROLE == 'agenter' ){ ?>
- <font style="color: #999;">会员名:</font>{$item['nickname']}
- <?php if( !empty($item['member_content']) ){ ?>
- <br/><font class="text-danger">{$item['member_content']}</font>
- <?php } ?>
- <?php }else{ ?>
-
-
- <?php if($s_id == 1){ ?>
- <a class="text-primary" href="{:U('user/detail',array('id'=>$item['member_id']))}"><font style="color: #999;">会员名:</font>{$item['nickname']}</a>
- <?php }else{ ?>
- <a class="text-primary user"><font style="color: #999;">会员名:</font>{$item['nickname']}</a>
- <?php } ?>
- <?php if( !empty($item['member_content']) ){ ?>
- <br/><font class="text-danger">{$item['member_content']}</font>
- <?php } ?>
-
- <?php } ?>
- <br/>
-
- </div>
- </td>
- <td>
- <div class="tDiv" style="height: 100px;">
- <!-- 已支付 -->
- <?php if( $item['order_status_id'] != 3 && $item['order_status_id'] != 5){ ?>
- <?php if( $item['payment_code']=='yuer'){ ?>
- <span> <i class="text-warning" style="font-size: 17px;"></i><span>余额支付</span></span>
-
- <?php }else if( $item['payment_code']=='admin' ){ ?>
- <span> <i class=" text-danger" style="font-size: 17px"></i>后台付款</span>
- <?php }else{ ?>
- <span class="line-text"> 微信支付</span>
- <?php } ?>
- <?php }elseif( $item['order_status_id'] == 3 || $item['order_status_id'] == 5 ){ ?>
- <!-- 未支付 -->
-
- <?php if($item['payment_code']=='yuer'){ ?>
- <span> <i class="text-warning" style="font-size: 17px;"></i><span>余额支付</span></span>
- <?php }elseif($item['payment_code']=='admin'){ ?>
- <span> <i class=" text-danger" style="font-size: 17px"></i>后台付款</span>
- <?php }else if($item['payment_code']=='weixin'){ ?>
- <span class="line-text"> 微信支付</span>
- <?php }else{ ?>
- <label class='label label-default'>未支付</label>
- <?php } ?>
-
- <?php } ?>
- <br/>
- <?php if( $item['delivery']=='pickup'){ ?><font class="text-danger">(自提)</font><?php } ?>
- <?php if( $item['delivery']=='express'){ ?><font class="text-danger">(快递)</font><?php } ?>
- <?php if( $item['delivery']=='tuanz_send'){ ?><font class="text-danger">(团长配送)</font><?php } ?>
- </div>
- </td>
- <?php if($is_can_look_headinfo){ ?>
- <td>
- <div class="tDiv" style="text-align: left;">
- <div style='margin-top:5px;display:block;float:left;'>
- {$item['head_name']}
- </div>
- <div style='margin-top:5px;display:block;float:left;'>
- 电话:{$item['head_mobile']}
- </div>
- <div style='margin-top:5px;display:block;float:left;cursor: pointer;' >
- <font style="color: #999;">小区:</font> <font class="line-text">{$item['community_name']} ({$item['province']} {$item['city']})
- </div>
- </div>
-
- </td>
- <?php }else{ ?>
- <td>
- <div class="tDiv" style="text-align: left;">
- <div style='margin-top:5px;display:block; text-align: center;'>
- {$item['head_name']}
- </div>
-
- </div>
- </td>
- <?php } ?>
- <td>
- <div class="tDiv" style="">
- <?php if($item['is_free_shipping_fare'] == 1){ ?>
- <span style='margin-top:5px;margin-left:5px;display:block;'>
- 运 费:+{:round( $item['fare_shipping_free'],2)}
- </span>
- <span style='margin-top:5px;margin-left:5px;display:block;'>
- 满{$item['man_e_money']}免运费:-{:round( $item['fare_shipping_free'],2)}
- </span>
- <?php }else{ ?>
- <span style='margin-top:5px;margin-left:5px;display:block;'>
- 运 费:+{:round( $item['shipping_fare'],2)}
- </span>
- <?php } ?>
-
- <?php if($item['fullreduction_money'] >0){ ?>
- <span style='margin-top:5px;margin-left:5px;display:block;'>
- 满 减:-{:round( $item['fullreduction_money'],2)}
- </span>
- <?php } ?>
- <?php if($item['voucher_credit'] >0){ ?>
- <span style='margin-top:5px;margin-left:5px;display:block;'>
- 优惠券:-{:round( $item['voucher_credit'],2)}
- </span>
- <?php } ?>
- <span style='margin-top:5px;margin-left:5px;display:block;'>
- 商品小计:{:round($item['total'],2)}
- </span>
-
- <span style='margin-top:5px;margin-left:5px;display:block;'>
- <?php $free_tongji = $item['total']+$item['shipping_fare']-$item['voucher_credit']-$item['fullreduction_money'];
- if($free_tongji < 0){
- $free_tongji = 0;
- }
- ?>
- 应收总款:{:round($free_tongji ,2)}
- </span>
- </div>
- </td>
- <td>
- <div class="tDiv" style="">
- <a class='op text-primary' href="{:U('order/detail', array('id' => $item['order_id'], 'ok' => 1))}" >查看详情</a>
-
-
- <?php if( $item['addressid']!=0 && $item['statusvalue']>=2 && $item['sendtype']==0){ ?>
- <a class='op text-primary' data-toggle="ajaxModal" href="javascript:;" data-href="{:U('util/express', array('id' => $item['order_id'],'express'=>$item['express'],'expresssn'=>$item['expresssn']))}" >物流信息</a>
- <?php } ?>
- </div>
- </td>
- <td>
- <div class="tDiv" style="">
- <span class='text-{$item[order_status_id]}'>{$order_status_arr[$item['order_status_id']]}</span>
- <?php
- $is_ops_show = true;
-
- if (defined('ROLE') && ROLE == 'agenter' )
- {
- $supper_info = get_agent_logininfo();
- if( $supper_info['type'] != 1)
- {
- $is_ops_show = false;
- }
- }
- ?>
- <?php if($is_ops_show){ ?>
- <!---操作开始-->
-
-
- <?php if( $item['order_status_id'] == 3){ ?>
- <!--未付款-->
- <?php
- $is_pay_show = true;
- if (defined('ROLE') && ROLE == 'agenter' )
- {
- $supper_info = get_agent_logininfo();
- $is_pay_show = false;
- }
- ?>
- <?php if($is_pay_show){ ?>
- <a class="btn btn-primary btn-xs deldom" data-toggle="ajaxPost" href="javascript:;" data-href="{:U('order/oppay', array('id' => $item['order_id']))}" data-confirm="确认此订单已付款吗?">确认付款</a>
- <?php } ?>
- <?php }elseif( $item['order_status_id'] == 1 ){ ?>
- <!--已付款-->
- <?php if( $item['order_status_id'] == 1 && $item['delivery'] == 'express' ){ ?>
- <!--快递 发货-->
-
- <a class="btn btn-primary btn-xs ajaxPost" data-toggle='ajaxModal' href="javascript:;" data-href="{:U('order/opsend', array('id' => $item['order_id']))}" data-confirm="确认此订单发货吗?">确认发货</a>
-
- <?php }elseif( $item['order_status_id'] == 1 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send' ) ){ ?>
-
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-confirm="确认此订单发货吗?" data-href="{:U('order/opsend_tuanz', array('id' => $item['order_id']))}">确认配送</a>
-
- <?php }else{ ?>
-
- <?php } ?>
-
-
- <?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send') ){ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="{:U('order/opsend_tuanz_over', array('id' => $item['order_id']))}" data-confirm="确认送达团长吗?">确认送达团长</a>
-
- <?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'express') ){ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="{:U('order/opreceive', array('id' => $item['order_id']))}" data-confirm="确认订单收货吗?">确认收货</a><br />
-
-
- <?php }elseif( $item['order_status_id'] == 4 || $item['order_status_id'] == 6 ){ ?>
- <!--已发货-->
- <?php if( $item['order_status_id'] == 4){ ?>
- <!--快递 取消发货-->
-
-
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="{:U('order/opreceive', array('id' => $item['order_id']))}" data-confirm="确认订单收货吗?">确认收货</a><br />
-
- <?php if( $item['delivery'] == 'express'){ ?>
- <a class="text-primary " data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/opchangeexpress', array('id' => $item['order_id']))}">修改物流</a>
-
- <?php } ?>
-
- <?php }else{ ?>
-
- <a class="btn btn-primary btn-xs deldom" style="display:none;" href="javascript:;" data-href="{:U('order/opfinish', array('id' => $item['order_id']))}" data-confirm="确认完成订单吗?">确认完成</a>
- <?php } ?>
- <?php }elseif($item['order_status_id'] == 3){ ?>
- <?php } ?>
- <!---操作结束--->
- <?php } ?>
- </div>
- </td>
- </tr>
-
- <?php if( !empty($item['comment'])){ ?>
- <tr>
- <td colspan="8"><div style='background:#fdeeee;color:red;'>买家备注: {$item['comment']}</div></td>
- </tr>
- <?php } ?>
- <tr>
- <td colspan="8">
- <div style="height:20px;"> </div>
- </td>
- </tr>
-
- <?php } ?>
- </tbody>
- <tfoot>
- <tr>
- <td colspan="0">
- <div class="page-table-header">
-
- </div>
- </td>
- <td colspan="8" style="text-align: right">
- {$pager}
- </td>
- </tr>
- </tfoot>
- </table>
- </div>
- </div>
-
-
-
- </form>
- </div>
- </div>
- </div>
- <script src="/layuiadmin/layui/layui.js"></script>
- <script>
- layui.config({
- base: '/layuiadmin/' //静态资源所在路径
- }).extend({
- index: 'lib/index' //主入口模块
- }).use('index');
- </script>
- <script>
- //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
- var layer = layui.layer;
- var $;
- layui.use(['jquery', 'layer','form'], function(){
- $ = layui.$;
- var form = layui.form;
-
-
- $('.deldom').click(function(){
- var s_url = $(this).attr('data-href');
- layer.confirm($(this).attr('data-confirm'), function(index){
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- success:function(info){
-
- $('#ajaxModal').removeClass('in');
- $('.modal-backdrop').removeClass('in');
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- },function(){
- console.log(232323);
- $('#ajaxModal').removeClass('in');
- $('.modal-backdrop').removeClass('in');
- });
- })
-
- $('.btn-operation').click(function(){
- var ids_arr = [];
- var obj = $(this);
- var s_toggle = $(this).attr('data-toggle');
- var s_url = $(this).attr('data-href');
-
-
- $("input[name=item_checkbox]").each(function() {
-
- if( $(this).prop('checked') )
- {
- ids_arr.push( $(this).val() );
- }
- })
- if(ids_arr.length < 1)
- {
- layer.msg('请选择要操作的内容');
- }else{
- var can_sub = true;
- if( s_toggle == 'batch-remove' )
- {
- can_sub = false;
-
- layer.confirm($(obj).attr('data-confirm'), function(index){
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{ids:ids_arr},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- });
- }else{
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{ids:ids_arr},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- }
- }
- })
- form.on('switch(restwsitch)', function(data){
-
- var s_url = $(this).attr('data-href')
-
- var rest = 1;
- if(data.elem.checked)
- {
- rest = 1;
- }else{
- rest = 0;
- }
-
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{rest:rest},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- });
- form.on('switch(enablewsitch)', function(data){
-
- var s_url = $(this).attr('data-href')
-
- var enable = 1;
- if(data.elem.checked)
- {
- enable = 1;
- }else{
- enable = 0;
- }
-
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{enable:enable},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- });
-
- form.on('switch(statewsitch)', function(data){
-
- var s_url = $(this).attr('data-href')
-
- var state = 1;
- if(data.elem.checked)
- {
- state = 1;
- }else{
- state = 0;
- }
-
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{state:state},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- });
- form.on('checkbox(checkboxall)', function(data){
-
- if(data.elem.checked)
- {
- $("input[name=item_checkbox]").each(function() {
- $(this).prop("checked", true);
- });
- $("input[name=checkall]").each(function() {
- $(this).prop("checked", true);
- });
-
- }else{
- $("input[name=item_checkbox]").each(function() {
- $(this).prop("checked", false);
- });
- $("input[name=checkall]").each(function() {
- $(this).prop("checked", false);
- });
- }
-
- form.render('checkbox');
- });
-
- $('.user').click(function(){
- layer.msg('权限不足!',{icon: 2,time: 1200});
- });
-
- //监听提交
- form.on('submit(formDemo)', function(data){
-
- $.ajax({
- url: data.form.action,
- type: data.form.method,
- data: data.field,
- dataType:'json',
- success: function (info) {
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- });
-
- return false;
- });
- })
- </script>
- <script>
- var ajax_url = "";
- $(function(){
- $("[data-toggle='ajaxModal']").click(function () {
- var s_url = $(this).attr('data-href');
- ajax_url = s_url;
- console.log(23);
- $.ajax({
- url:s_url,
- type:"get",
- success:function(shtml){
- $('#ajaxModal').html(shtml);
- $("#ajaxModal").modal();
- }
- })
- });
- $(document).delegate(".modal-footer .btn-primary","click",function(){
- var s_data = $('#ajaxModal form').serialize();
- $.ajax({
- url:ajax_url,
- type:'post',
- dataType:'json',
- data:s_data,
- success:function(info){
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- return false;
- })
-
-
- })
- </script>
- <div id="ajaxModal" class="modal fade" style="display: none;">
- </div>
- <script>
- //没有选中时间段不能导出
- $(function () {
- $('.btn-submit').click(function () {
- var e = $(this).data('export');
- if(e==1 ){
- if($('#keyword').val() !='' ){
- $('#export').val(1);
- $('#search').submit();
- }else if($('#searchtime').val()!=''){
- $('#export').val(1);
- $('#search').submit();
- }else{
- $('#export').val(1);
- $('#search').submit();
- return;
- }
- }else{
- $('#export').val(0);
- $('#search').submit();
- }
- })
- })
- </script>
- </body>
|