1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561 |
- <?php if (!defined('THINK_PATH')) exit();?><!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': '<?php echo ($_W['uniacid']); ?>',<?php } ?>
-
- <?php if( !empty($_W['acid']) ){ ?>'acid': '<?php echo ($_W['acid']); ?>',<?php } ?>
-
- <?php if (!empty($_W['openid']) ) { ?>'openid': '<?php echo ($_W['openid']); ?>',<?php } ?>
-
- <?php if( !empty($_W['uid']) ) { ?>'uid': '<?php echo ($_W['uid']); ?>',<?php } ?>
-
- 'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php }else{ ?>0<?php } ?>,
-
- 'siteroot': '<?php echo ($_W['siteroot']); ?>',
- 'siteurl': '<?php echo ($_W['siteurl']); ?>',
- 'attachurl': '<?php echo ($_W['attachurl']); ?>',
- 'attachurl_local': '<?php echo ($_W['attachurl_local']); ?>',
- 'attachurl_remote': '<?php echo ($_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' : <?php echo 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" 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;
- }
- .hxBtn{color:#428bca;}
- .form-title {
- font-size: 16px;
- font-weight: bold;
- line-height: 22px;
- padding: 9px 20px;
- background-color: #F4F6F8;
- border-radius: 2px;
- margin-top: 20px;
- margin-bottom: 20px;
- }
- ul.form_list li{width: 30%;display: inline-block;text-align: left;margin: 10px;}
- </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>
- </div>
-
- <div class="layui-card-body" style="padding:15px;">
-
- <ul class="layui-timeline">
- <?php foreach($history_list as $history){ ?>
- <li class="layui-timeline-item">
- <i class="layui-icon layui-timeline-axis"></i>
- <div class="layui-timeline-content layui-text">
- <h3 class="layui-timeline-title">
- <?php echo date("Y-m-d H:i:s", $history['date_added']); ?> <span class="layui-badge <?php if($history['order_status_id'] != 1){ ?>layui-bg-green<?php }else{ ?> layui-badge<?php } ?>"><?php echo $history['order_status_name']; ?></span>
- </h3>
- <p>
- <?php echo $history['comment']; ?>
- </p>
- </div>
- </li>
- <?php } ?>
- </ul>
- <form action="" class="layui-form" lay-filter="example" method="post" >
- <input type="hidden" name="id" value="<?php echo ($item['order_id']); ?>" />
- <input type="hidden" name="dispatchid" value="<?php echo ($express_info['id']); ?>" />
- <!---订单详情begin--->
-
- <div class="layui-row order-container">
- <div class="order-container-left" style="border-right: 1px solid #efefef">
- <div class="layui-row">
- <div class="layui-col-md-12">
- <ul class="">
- <li class="text"><span class="layui-col-sm">订单编号:</span><?php echo ($item['order_num_alias']); ?></li>
- <?php if( !empty($coupon)){ ?>
- <li class="text">
- <span class="layui-col-sm">优惠券:</span>
- <span class="text-default"><?php echo ($coupon['voucher_title']); ?> </span>
- </li>
- <?php } ?>
-
- <li class="text">
- <span class="layui-col-sm">付款方式:</span>
- <span class="text-default">
- <?php if( $item['payment_code'] == ''){ ?>未付款<?php } ?>
- <?php if( $item['payment_code'] == 'yuer'){ ?>余额支付<?php } ?>
- <?php if( $item['payment_code'] == 'admin'){ ?>后台付款<?php } ?>
- <?php if( $item['payment_code'] == 'weixin'){ ?>微信支付<?php } ?>
- <?php if( $item['payment_code'] == 'supply_mobile'){ ?>供应商手机端付款<?php } ?>
- <?php if( $item['payment_code'] == 'cashon_delivery'){ ?>货到付款<?php } ?>
- </span>
- </li>
- <li class="text">
- <span class="layui-col-sm">买 家:</span>
- <span class="text-default">
- <?php if (defined('ROLE') && ROLE == 'agenter' ) { ?>
- <?php echo ($member['username']); ?> 会员ID :<?php echo ($member['member_id']); ?>
- <?php }else{ ?>
- <?php if($s_id == 1){ ?>
- <a href="<?php echo U('user/detail',array('id'=>$member['member_id']));?>" target='_blank' class="text-primary"><?php echo ($member['username']); ?></a>
- <?php }else{ ?>
- <a id="user" target='_blank' class="text-primary"><?php echo ($member['username']); ?></a>
- <?php } ?>
- 会员ID :<?php echo ($member['member_id']); ?>
- <?php if( !empty($member['content']) ){ ?>
- <font class="text-danger">(<?php echo ($member['content']); ?>)</font>
- <?php } ?>
-
- <?php } ?>
-
- </span>
- </li>
- <?php if($is_order_note_open == 1){ ?>
- <?php if(!($item['delivery'] == 'express' && ($item['type'] == 'normal' || $item['type'] == 'pintuan'))){ ?>
- <?php if( !empty($item['note_content'])){ ?>
- <li class="text">
- <span style="padding-left: 10px;"><?php echo ($order_note_name); ?>:</span>
- <span class="text-default">
- <?php echo ($item['note_content']); ?>
- </span>
- </li>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <li class="text">
- <span class="layui-col-sm">配送方式:</span>
- <span class="text-default">
- <?php if( $item['delivery'] == 'pickup'){ ?>
- 社区自提
- <?php }elseif( $item['delivery'] == 'express' ){ ?>
- <?php if( $is_virtualcard == 1 ){ ?>
- 礼品卡兑换余额
- <?php }else{ ?>
- 快递<?php if( !empty($express_info['name'])){ ?>(<?php echo ($express_info['name']); ?> <?php if( !empty($item['shipping_no'])){ ?>快递单号:<?php echo ($item['shipping_no']); } ?>)<?php } ?>
- <a class="text-primary" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/express', array('order_id' => $item['order_id']));?>" >查看物流</a>
- <?php } ?>
- <?php }elseif( $item['delivery'] == 'tuanz_send' ){ ?>
- 团长配送
- <?php }elseif( $item['delivery'] == 'hexiao' ){ ?>
- 到店核销
- <?php }else{ ?>
- 同城配送
- <?php } ?>
- </span>
- </li>
- <?php if( $is_virtualcard == 0 ){ ?>
- <li class="text">
- <span class="layui-col-sm">收 货 人:</span>
- <span class="text-default">
- <?php echo ($item['shipping_name']); ?> <?php echo ($item['shipping_tel']); ?>
- </span>
- </li>
- <?php } ?>
- <?php if($is_can_look_headinfo){ ?>
- <?php if( $item['type'] != 'integral' && ( $item['type'] != 'pintuan' || $item['head_id'] > 0 ) ){ ?>
- <li class="text">
- <span class="layui-col-sm">团 长:</span>
- <span class="text-default">
- <?php echo ($item['ziti_name']); ?> <?php echo ($item['ziti_mobile']); ?>
- </span>
- </li>
- <?php } ?>
-
- <?php if( $item['delivery'] == 'tuanz_send'){ ?>
- <li class="text">
- <span class="layui-col-sm">送货地址:</span>
- <span class="text-default">
- <?php echo ($item['tuan_send_address']); ?>
- </span>
- </li>
- <?php } ?>
-
- <?php }else{ ?>
-
- <li class="text">
- <span class="layui-col-sm">团 长:</span>
- <span class="text-default">
- <?php echo ($item['ziti_name']); ?>
- </span>
- </li>
-
- <?php } ?>
-
-
- <?php if( $item['delivery'] == 'pickup'){ ?>
- <li class="text">
- <span class="layui-col-sm">取货地址:</span>
- <span class="text-default">
- <?php echo ($item['shipping_address']); ?>
- </span>
- </li>
- <?php } ?>
- <?php if( !empty($item['address_id']) && $is_virtualcard == 0 ){ ?>
- <li class="text">
- <span class="layui-col-sm">收货详细地址:</span>
- <span class="text-default">
- <?php echo ($province_info['name']); echo ($city_info['name']); echo ($area_info['name']); ?> <?php if( $item['delivery'] == 'tuanz_send'){ echo ($item['tuan_send_address']); }else{ ?> <?php echo ($item['shipping_address']); } ?>, <?php echo ($item['shipping_name']); ?>, <?php echo ($item['shipping_tel']); ?>
- <a class='text-primary op js-clip' data-url="<?php echo ($province_info['name']); echo ($city_info['name']); echo ($area_info['name']); if( $item['delivery'] == 'tuanz_send'){ echo ($item['tuan_send_address']); }else{ ?> <?php echo ($item['shipping_address']); } ?>, <?php echo ($item['shipping_name']); ?>, <?php echo ($item['shipping_tel']); ?>">复制</a>
- </span>
- </li>
- <?php } ?>
- <?php if( !empty($item['comment'])){ ?>
- <li class="text"><span class="col-sm">买家备注:</span><span class="text-default"><?php echo ($item['comment']); ?></span></li>
- <?php } ?>
- </ul>
- </div>
-
- <?php if( !empty($item['address_id'])){ ?>
- <div class="layui-col-md-12 ops">
- <a class="btn btn-primary" style="margin-left: 10px" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/opchangeaddress', array('id' => $item['order_id']));?>">修改订单收货信息</a>
- </div>
- <?php } ?>
-
- </div>
- </div>
- <div class=" order-container-static">
- <div class=" status">
- <span class="text"> 订单状态:</span>
- <?php if( $item['order_status_id'] == 1){ ?>
- <span class="text-warning font18">待发货</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 3){ ?>
- <span class="text-warning font18">待付款</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 4){ ?>
- <span class="text-warning font18">已发货</span>
- <?php if($item['delivery'] == 'hexiao'){ ?>
- <span class="text-warning font18">待使用</span>
- <?php }else{?>
- <span class="text-warning font18">待收货</span>
- <?php } ?>
- <?php } ?>
- <?php if( $item['order_status_id'] == 6){ ?>
- <span class="text-warning font18">已签收</span>
- <?php } ?>
-
- <?php if( $item['order_status_id'] == 7){ ?>
- <span class="text-warning font18">已退款</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 14){ ?>
- <span class="text-warning font18">配送中</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 11){ ?>
- <span class="text-success font18">交易完成</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 5){ ?>
- <span class="text-default font18">已关闭</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 15){ ?>
- <span class="text-default font18">定金已支付,等待活动结束买家支付尾款</span>
- <?php } ?>
-
- <i>
- <?php if( $item['order_status_id'] == 3){ ?>
- ( 等待买家付款)
- <?php } ?>
-
- <?php if( $item['order_status_id'] == 1 ){ ?>(买家已经付款,请商家尽快发货)<?php } ?>
-
- <?php if( $item['order_status_id'] == 4){ ?>
- <?php if($item['delivery'] == 'hexiao'){ ?>
- (买家已经付款,等待买家到店核销)
- <?php }else{ ?>
- (商家已发货,等待买家收货并交易完成)
- <?php }?>
- <?php } ?>
- <?php if( $item['order_status_id'] == 14){ ?>(商家已发货,正在配送给团长途中)<?php } ?>
-
- <?php if( $item['order_status_id'] == 12){ ?>
- ( <span class="label label-default">已维权</span> <?php if( !empty($refund['refundtime'])){ ?>维权时间: <?php echo date('Y-m-d H:i:s',$refund['refundtime']); } ?>)
-
- <?php } ?>
- </i>
- </div>
- <?php if( $item['delivery'] == 'localtown_delivery'){ ?>
- <?php if( !empty($item['expected_delivery_time']) && empty($item['presale_info']) ){ ?>
- <div>
- <ul>
- <!--
- <?php
- $weekarray=array("日","一","二","三","四","五","六"); $week = $weekarray[date('w',$item['date_added'])]; ?>
- <li class="text">期望配送时间:<span class="text-default"><?php echo date('m-d',$item['date_added'])?>(周<?php echo $week;?>)<?php echo ($item['expected_delivery_time']); ?></span></li>-->
- <li class="text">期望配送时间:<span class="text-default"><?php echo ($item['expected_delivery_time']); ?></span></li>
- </ul>
- </div>
- <?php } ?>
- <?php
- if( $item['order_status_id'] == 4 || $item['order_status_id'] == 6 || $item['order_status_id'] == 11 ){ if(!empty($item['orderdistribution_order']['username'])){ ?>
- <div>
- <ul>
- <li class="text">配送员:
- <span class="text-default"><a href="javascript:void(0);" style="color:#428bca;"><?php echo $item['orderdistribution_order']['username']; ?></a></span>
- <!--<?php if($item['orderdistribution_order']['orderdistribution_id'] == -1){?>
- <i class="layui-icon layui-icon-about font20" data-message="“批量发货--订单批量确认收货”系统默认配送员配送完成。" style="font-size: 20px;"></i>
- <?php }?>-->
- </li>
- </ul>
- </div>
- <?php }} ?>
- <?php } ?>
- <?php if( $item['type'] == 'pintuan' ){ ?>
- <div>
- <td>
- <a href="<?php echo U('group/pintuan_detail', array('pin_id' => $pin_id));?>" target="_blank" class="btn btn-success btn-sm">查看拼团详情</a>
- </td>
- </div>
- <?php } ?>
-
- <?php if( !empty($item['transaction_id'])){ ?>
- <div>
- <ul>
- <li class="text">交易单号:<span class="text-default"><?php echo ($item['transaction_id']); ?></span></li>
- </ul>
- </div>
- <?php } ?>
- <?php if( !empty($item['presale_info'])){ ?>
- <div>
- <ul>
- <?php if( $item['presale_info']['presale_type'] == 0 ){ ?>
- <li class="text">预售方式:<span class="text-default">定金预售</span></li>
- <?php }else{ ?>
- <li class="text">预售方式:<span class="text-default">全款预售</span></li>
- <?php } ?>
- <li class="text">阶段一: <span class="text-default">预付定金(定金 ¥<?php echo ($item['presale_info']['presale_ding_money']); ?> <?php echo !empty($item['presale_info']['presale_deduction_money']) && $item['presale_info']['presale_deduction_money'] > 0 ? '抵扣 ¥'.$item['presale_info']['presale_deduction_money'] : ''; ?>)</span></li>
- <?php if( $item['presale_info']['presale_type'] == 0 ){ ?>
- <li class="text">阶段二:
- <span class="text-default">
- <?php if( $item['presale_info']['state'] == 1 ){ ?>
- 支付尾款(未支付)
- <?php }else if( $item['presale_info']['state'] == 2 ){ ?>
- 支付尾款(已支付)
- <?php }else if( $item['presale_info']['state'] == 0 ){ ?>
- 定金还未支付
- <?php } ?>
- </span>
- </li>
- <?php } ?>
- <?php if( $item['presale_info']['presale_limit_balancepaytime'] == 0 ){ ?>
- <li class="text">尾款支付时间:<span class="text-default">不限制</span></li>
- <?php }else if( $item['presale_info']['presale_limit_balancepaytime'] == 1 && $item['presale_info']['presale_type'] == 0 ){ ?>
- <li class="text">尾款支付时间:
- <span class="text-default"><?php echo ($item['presale_info']['balance_pay_begintime']); ?> - <?php echo ($item['presale_info']['balance_pay_endtime']); ?></span>
- </li>
- <?php } ?>
- </ul>
- </div>
- <?php } ?>
- <?php if( !empty($item['expresssn']) && $item['delivery']=='express' && !empty($item['shipping_method'])){ ?>
- <div>
- <ul>
- <li class="text">快递公司:<span class="text-default"><?php if( empty($express_info['name'])){ ?>其他快递<?php }else{ echo ($express_info['name']); } ?></span></li>
- <li class="text">快递单号:<span class="text-default"><?php echo ($item['shipping_no']); ?></span> <a class="text-primary op" data-toggle="ajaxModal" href="<?php echo U('util/express', array('id' => $item['id'],'express'=>$item['express'],'expresssn'=>$item['expresssn']));?>">查看物流</a></li>
- <li class="text">发货时间:<span class="text-default"><?php echo date('Y-m-d H:i:s',$item['express_time']);?></span></li>
- </ul>
- </div>
- <?php } ?>
-
- <?php if( $item['delivery']=='pickup' ){ ?>
- <div>
- <ul>
- <?php if( !empty($item['express_time'])){ ?>
- <li class="text">发货时间:<span class="text-default"><?php echo date('Y-m-d H:i:s',$item['express_time']);?></span></li>
- <?php } ?>
- <?php if( !empty($item['express_tuanz_time'])){ ?>
- <li class="text">团长接货时间:<span class="text-default"><?php echo date('Y-m-d H:i:s',$item['express_tuanz_time']);?></span></li>
- <?php } ?>
- </ul>
- </div>
- <?php } ?>
-
-
-
- <div class="ops layui-col-md-12" style="padding: 0;">
-
- <?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 = json_decode(base64_decode($_GPC['__lionfish_comshop_agent']), true); $is_pay_show = false; } ?>
- <?php if($is_pay_show){ ?>
- <?php if(!isset($open_admin_payment) || $open_admin_payment == '1'){ ?>
- <a class="btn btn-primary btn-xs deldom" data-toggle="ajaxPost" href="javascript:;" data-href="<?php echo U('order/oppay', array('id' => $item['order_id']));?>" data-confirm="确认此订单已付款吗?">确认付款</a>
- <?php } ?>
- <?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="<?php echo 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="<?php echo 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') ){ ?>
- <?php if($is_can_confirm_delivery){ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo U('order/opsend_tuanz_over', array('id' => $item['order_id']));?>" data-confirm="确认送达团长吗?">确认送达团长</a>
- <?php }?>
- <?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'express') ){ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo 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){ ?>
- <!--快递 取消发货-->
-
- <?php if($is_can_confirm_receipt){ ?>
- <?php if($item['delivery'] == 'hexiao'){ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-confirm="确认使用该订单吗?<br/><span style='color:#ad0909;font-size:13px;'>确认使用订单以后,订单下面全部商品默认核销成功。</span>" data-href="<?php echo U('order/order_hexiao', array('id' => $item['order_id']));?>">确认使用</a>
- <?php }else{ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo U('order/opreceive', array('id' => $item['order_id']));?>" data-confirm="确认订单收货吗?">确认收货</a><br />
- <?php }?>
- <?php }?>
-
- <?php if( $item['delivery'] == 'express' && $is_virtualcard == 0 ){ ?>
- <a class="text-primary" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/opchangeexpress', array('id' => $item['order_id']));?>">修改物流</a>
-
- <?php } ?>
-
- <?php }else{ ?>
-
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="<?php echo U('order/opfinish', array('id' => $item['order_id']));?>" data-confirm="确认完成订单吗?">确认完成</a>
- <?php } ?>
- <?php }elseif( $item['order_status_id'] == 3 ){ ?>
- <?php } ?>
- <!---操作结束--->
- <?php } ?>
- <?php
- if (!defined('ROLE')){ if( $item['order_status_id'] == 3 && $item['type'] != 'integral' && $is_presale == 0 ){ ?>
- <a class='op btn btn-primary btn-xs' data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/change_order', array('id' => $item['order_id']));?>" >
- <i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="订单改价" ></i>
- 订单改价
- </a>
- <?php }} ?>
- <a class="text-primary" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/opremarksaler', array('id' => $item['order_id']));?>" >
- <?php if( !empty($item['remarksaler'])){ ?>查看备注
- <?php }else{ ?>
- 添加备注
- <?php } ?>
- </a>
-
-
- </div>
- <?php if( $item['order_status_id'] != 3){ ?>
- <div class="order-container-footer text col-md-12" style="border: none;padding: 0">
- <?php if( $item['order_status_id'] == 1){ ?>
- 友情提示:如果无法进行发货,请及时联系买家进行妥善处理;
- <?php } ?>
- <?php if( $item['order_status_id'] == 4){ ?>
- <?php if($item['delivery'] == 'hexiao'){ ?>
- <span style="font-size:12px;color:#a7a5a5;">注:确认使用后,订单下面全部商品默认核销成功!</span>
- <br/>
- 友情提示:如果无法进行发货,请及时联系买家进行妥善处理;
- <?php }else{?>
- 友情提示:
- 请及时关注物流状态,确保买家及时收到商品;
- 如果买家未收到货物或有退换货请求,请及时联系买家妥善处理
- <?php }} ?>
- <?php if( $item['order_status_id']==11){ ?>
- 友情提示:
- 交易成功,如买家有售后申请,请与买家进行协商,妥善处理
- <?php } ?>
- </div>
- <?php } ?>
- </div>
-
- </div>
- <!---订单详情end-->
- <?php if( $is_virtualcard == 1 ){ ?>
- <h3 style="margin:15px 0px;">礼品卡信息</h3>
- <table class="layui-table ">
- <thead>
- <tr class="trorder" style="background: #fff">
- <th class="" style="width:200px;text-align: left;padding-right: 0;">
- 兑换码
- </th>
- <th style="padding-left: 20px;width:10%;">状态</th>
- <th style="text-align: left;padding-left: 20px;width:10%;">有效期</th>
- <th style="text-align: left;width: 100px;">可兑换余额</th>
- <th style="text-align: left;width: 100px;">使用人</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td style="text-align:left;"><?php echo ($virtualcard_info['code_sn']); ?></td>
- <td>
- <?php
- switch( $virtualcard_info['state'] ) { case 0: echo '未支付'; break; case 1: echo '未使用'; break; case 2: echo '已使用'; break; case 3: echo '已失效'; break; } ?>
- </td>
- <td>
- <?php if( $virtualcard_info['is_effect'] == 1 ){ ?>
- <?php if( $virtualcard_info['effect_type'] == 0 ){ ?>
- 无限期
- <?php }else{ ?>
- <?php echo ($virtualcard_info['effect_enddate']); ?>
- <?php } ?>
- <?php }else{ ?>
- 已失效
- <?php } ?>
- </td>
- <td>¥<?php echo round($virtualcard_info['code_money'], 2);?></td>
- <td><?php echo ($virtualcard_info['use_member_name']); ?></td>
- </tr>
- </tbody>
- </table>
- <?php } ?>
- <?php
- if( !empty($order_form_data) && !empty($order_form_data['form_list']) ){ $form_list = $order_form_data['form_list']; ?>
- <div class="form-title">
- 关联表单信息:
- </div>
- <div class="layui-row">
- <ul class="form_list">
- <?php
- foreach($form_list as $k => $v){ ?>
- <li>
- <?php if($v['type'] == 'image'){ ?>
- <?php echo ($v['item_name']); ?>:
- <?php if(!empty($v['item_val'])){ ?>
- <?php foreach($v['item_val'] as $ik=>$iv){ ?>
- <?php if( empty($iv) ){ ?>
- 暂无
- <?php }else{ ?>
- <img src="<?php echo ($iv); ?>" style="width:52px;height:52px;border:1px solid #efefef; padding:1px;">
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <?php }else{ ?>
- <?php echo ($v['item_name']); ?>:<?php echo ($v['item_val']); ?>
- <?php } ?>
- </li>
- <?php } ?>
- </ul>
- </div>
- <?php } ?>
- <h3 style="margin:15px 0px;">商品信息</h3>
- <p style="text-aligin:right;">
- <?php if( in_array($item['order_status_id'], array(1,4,6,10,11,12,14)) && $is_can_nowrfund_order ){ ?>
- <a class='op btn btn-primary btn-xs' style="float:right;" data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo 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 } ?>
- </p>
- <table class="layui-table ">
- <thead>
- <tr class="trorder" style="background: #fff">
- <th class="" style="width: 75px;text-align: right;padding-right: 0;">
- 商品标题
- </th>
- <th style="width:10%;">
- </th>
- <th style="padding-left: 20px;width:10%;">规格、编号</th>
- <th style="text-align: left;padding-left: 20px;width:10%;">基数</th>
- <?php if( $item['type'] != 'integral' ){ ?>
- <th style="padding-left: 20px;width:15%;">团长佣金 </th>
- <?php } ?>
- <th style="width:120px;">是否退款</th>
- <?php if($item['delivery'] == 'hexiao'){ ?>
- <th style="width:120px;">到店核销方式</th>
- <?php }?>
- <th style="text-align: center;width: 100px">供应商</th>
- <th style="text-align: center;width: 80px">单价</th>
- <th style="text-align: center;width: 80px;">数量</th>
-
- <th style="text-align: center;width: 100px;">价格</th>
-
- </tr>
- </thead>
- <tbody>
- <?php $i =0; ?>
- <?php $member_youhui = 0; ?>
- <?php $total_refund_money = 0; ?>
- <?php $total_refund_shipping_fare = 0; ?>
-
- <?php $integral_total_refund_money = 0; ?>
- <?php $integral_total_refund_shipping_fare = 0; ?>
-
-
- <?php $order_total = 0; ?>
- <?php foreach( $order_goods as $goods ){ ?>
- <?php
- if(!empty($goods['goods_refund_shipping_fare'])){ $total_refund_shipping_fare = $total_refund_shipping_fare + $goods['goods_refund_shipping_fare']; } ?>
- <?php $member_youhui += ($goods['oldprice'] - $goods['price'])*$goods['quantity']; ?>
- <?php $total_refund_money += ($goods['has_refund_money']); ?>
- <tr class="trorder" style="background: #fff">
- <td style="text-align: right;padding-right: 0">
- <img src="<?php echo tomedia($goods['goods_images']);?>" style='width:52px;height:52px;border:1px solid #efefef; padding:1px;' >
- </td>
- <td style="min-width: 300px">
- <a target="_blank" href="<?php echo U('goods/edit', array('id' => $goods['goods_id']));?>"title="查看" style="display: block;line-height: 22px;max-width: 250px;white-space: nowrap;
- overflow: hidden;text-overflow: ellipsis;"><?php echo ($goods['name']); if($goods['is_refund_state'] == 1 ){ ?>(退款)<?php } ?></a>
-
-
- </td>
- <td style="padding: 10px 20px">
- <p style="white-space:normal;">
- 规格:<?php if( !empty($goods['option_sku'])){ ?><span class="label label-primary" data-container="body" data-toggle="popover" data-placement="right" data-content="<?php echo ($goods['option_sku']); ?>"><?php echo ($goods['option_sku']); ?></span><?php }else{ ?>无<?php } ?>
- </p>
- <p>
- 编码:<?php if( !empty($goods['model'])){ ?><span><?php echo ($goods['model']); ?></span><?php }else{ ?>无<?php } ?>
- </p>
-
- </td>
- <td style="padding: 10px 20px">
- <?php $vip_free_money = 0; $mblevel_free_money =0; if( $goods['is_level_buy'] == 1 ) { $mblevel_free_money = round(($goods['oldprice'] - $goods['price'])*$goods['quantity'],2); } if( $goods['is_vipcard_buy'] == 1 ) { $vip_free_money = round(($goods['oldprice'] - $goods['price'])*$goods['quantity'],2); } $order_total = $order_total + $goods['old_total']; $change_price = 0; if($goods['is_change_price'] == 1){ $change_price = $goods['price']*$goods['quantity'] - $goods['total']; } ?>
- 商品合计<?php echo ($goods['old_total']); ?><br/>
- - 满减:<?php echo ($goods['fullreduction_money']); ?><br/>
- - 优惠券:<?php echo ($goods['voucher_credit']); ?><br/>
- <?php if( ($goods['is_change_price'] == 1 && $change_price > 0 ) ){ ?>
- - 商家改价:<?php echo ($change_price); ?><br/>
- <?php } ?>
- <?php if( ($goods['is_level_buy']>0 && $mblevel_free_money > 0 ) ){ $item['is_level_buy'] = 1; ?>
- - 会员等级优惠:<?php echo ($mblevel_free_money); ?><br/>
- <?php } ?>
- <?php if( ($goods['is_vipcard_buy']>0 && $vip_free_money > 0 ) ){ $item['is_vipcard_buy'] = 1; ?>
- - 付费会员优惠:<?php echo ($vip_free_money); ?><br/>
- <?php } ?>
- <?php if($goods['has_refund_money']>0){ ?>
- - 已退款:<?php echo ($goods['has_refund_money']); ?><br/>
- <?php } ?>
-
- = 基数:<?php echo round($goods['total'] -$goods['fullreduction_money']-$goods['voucher_credit']-$goods['has_refund_money'],2); ?>
-
- </td>
-
- <?php if( $item['type'] != 'integral' && ($item['type'] == 'normal' || $item['head_id'] > 0) ){ ?>
- <td style="padding: 10px 20px">
- <?php foreach($goods['head_commission_order_info'] as $kkk => $vvv) { ?>
- <p style="white-space:normal;padding-bottom:8px;">
- 团长:<?php echo $vvv['head_name']; ?>
-
- <?php if($item['delivery']=='tuanz_send'){ ?>
- 佣金:<?php if($vvv['money'] ==0 ){ echo round( $vvv['add_shipping_fare'],2); }else{ echo round($vvv['money'] - $vvv['add_shipping_fare'],2);} ?> </br>
- <?php if($vvv['level'] <= 0){ ?>
- 配送收入:<?php echo $vvv['add_shipping_fare']; ?></br>
- <?php } ?>
- 总佣金: <?php echo $vvv['money']; ?>
- <?php }else{ ?>
- ¥<?php echo $vvv['money']; ?>
- <?php } ?>
- <?php if($vvv['level'] >0){ ?>
- (<?php echo $vvv['level']; ?>级)
- <br/>
- <?php if($vvv['fen_type'] == 0){ ?>
- 分佣比例:<?php echo $vvv['bili']; ?>%
- <?php }else{ ?>
- 固定团长分佣金额:<?php echo $vvv['bili']; ?>
- <?php } ?>
- <?php }else{ ?>
- <br/>
- <?php if($vvv['fen_type'] == 0){ ?>
- 提成比例:<?php echo $vvv['bili']; ?>%
- <?php }else{ ?>
- 固定团长分佣金额:<?php echo $vvv['bili']; ?>
- <?php } ?>
-
- <?php } ?>
-
-
- </p>
- <?php } ?>
- </td>
- <?php } ?>
-
- <td style="text-align: center;">
-
- <?php if($item['order_status_id'] == 7){ ?>
- 已退款
- <?php }else if($goods['is_refund_state'] == 1 && !empty($goods['refund_info']) ){ ?>
- 退款金额:<?php echo $goods['refund_info']['ref_money']; ?> <?php if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>元<?php } ?>,
- <?php if($goods['refund_info']['state'] == 0 ){ ?>
- <span class="layui-badge">申请中</span>
- <?php }else if($goods['refund_info']['state'] == 3){ ?>
- <span class="label label-success">退款成功</span>
- <?php }else if($goods['refund_info']['state'] == 4){ ?>
- <span class="label label-default">退款失败</span>
- <?php } ?>
- <br/><br/>
- <a class="btn btn-primary btn-xs " href="<?php echo U('order/oprefund', array('id' => $item['order_id'], 'ref_id' => $goods['refund_info']['ref_id'] ));?>" >退款详情</a>
-
- <?php }else if($goods['is_refund_state'] == 0 && in_array( $item['order_status_id'], array(1,4,6,10,11,12,14)) && $is_can_nowrfund_order ){ ?>
- <?php if($item['delivery'] == 'hexiao'){ ?>
- <?php if(!empty($goods['hx_info']) && $goods['hx_info']['is_can_refund'] == 1){ ?>
- <a class='btn op btn-primary btn-xs' data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/oprefund_goods_do', array('id' => $item['order_id'], 'order_goods_id' => $goods['order_goods_id'] ));?>" >
- <i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="后台商品退款" ></i>
- 后台商品退款
- </a>
- <?php } ?>
- <?php }else{ ?>
- <a class='btn op btn-primary btn-xs' data-toggle="ajaxModal" href="javascript:;" data-href="<?php echo U('order/oprefund_goods_do', array('id' => $item['order_id'], 'order_goods_id' => $goods['order_goods_id'] ));?>" >
- <i class="icow icow-yibiaoji" style="color: #999;display: inline-block;vertical-align: middle" title="后台商品退款" ></i>
- 后台商品退款
- </a>
- <?php } ?>
- <?php if($goods['has_refund_quantity'] > 0){ ?>已退款商品数量<?php echo ($goods['has_refund_quantity']); ?>个,<br />退款<?php if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>金额<?php } echo ($goods['has_refund_money']); if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>元<?php } } ?>
- <?php }else{ ?>
- <?php if($goods['has_refund_quantity'] > 0){ ?>已退款商品数量<?php echo ($goods['has_refund_quantity']); ?>个,<br />退款<?php if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>金额<?php } echo ($goods['has_refund_money']); if($item['type'] == 'integral'){ ?>积分<?php }else{ ?>元<?php } } ?>
- <?php } ?>
- </td>
- <?php if($item['delivery'] == 'hexiao'){ ?>
- <td style="text-align: center;">
- <?php if(!empty($goods['hx_info'])){ ?>
- <?php if($goods['hx_info']['hexiao_type'] == 0){ ?>
- <span>订单核销</span>
- <?php }else{ ?>
- <span>按次核销</span>
- <?php } ?>
- <br/>
- <?php if($item['order_status_id'] == 11 && $goods['hx_info']['is_hexiao_over'] == 1){ ?>
- <a class="hxBtn" href="javascript:;" data-href="<?php echo U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(核销记录)</a>
- <?php }?>
- <?php if($item['order_status_id'] == 7 || $goods['is_refund_state'] == 1 || (!empty($goods['refund_info'] && $goods['refund_info']['state'] != 4))){ }else{ ?>
- <?php if($goods['hx_info']['is_hexiao_over'] == 1){ ?>
- <?php if($item['order_status_id'] == 4){ ?>
- <a class="hxBtn" href="javascript:;" data-href="<?php echo U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(已核销)</a>
- <?php } ?>
- <?php }else{ ?>
- <?php if($goods['hx_info']['hexiao_type'] == 0){ ?>
- <?php if($item['order_status_id'] == 4){ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-confirm="确认使用该订单吗?" data-href="<?php echo U('order/order_goods_hexiao', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">确认使用</a>
- <?php } ?>
- <?php }else{ ?>
- <?php if($item['order_status_id'] == 4){ ?>
- <a class="btn btn-primary btn-xs hxAction" href="javascript:;" data-href="<?php echo U('order/hexiao_times', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">确认使用</a>
- <?php } ?>
- <?php if($goods['hx_info']['remain_hexiao_count'] > 0 && $goods['hx_info']['remain_hexiao_count'] < $goods['hx_info']['hexiao_count'] && $goods['hx_info']['hexiao_count'] > 0 ){ ?>
- <br/>
- <a class="hxBtn" href="javascript:;" data-href="<?php echo U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(部分核销)</a>
- <?php } ?>
- <?php if($goods['hx_info']['hexiao_count'] == 0 && $goods['hx_info']['record_count'] > 0){ ?>
- <br/>
- <a class="hxBtn" href="javascript:;" data-href="<?php echo U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(核销记录)</a>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- </td>
- <?php } ?>
- <td style="text-align: center;">
- <span><?php echo ($goods['supply_name']); ?><br/>(<?php echo ($goods['supply_type']); ?>)</span>
- <?php if($item['delivery'] == 'hexiao'){ ?>
- <?php if(!empty($goods['hx_info']) && $goods['hx_info']['hx_assign_salesroom'] == 1){ ?>
- <br/>
- <a class="hxBtn" href="javascript:;" data-href="<?php echo U('order/hexiao_goods_assign_salesroom', array('goods_id' => $goods['goods_id'],'order_goods_id'=>$goods['order_goods_id']));?>">(商品指定核销)</a>
- <?php } } ?>
- </td>
-
-
-
- <td style="text-align: center">
-
- <p><?php if($item['type'] == 'integral'){ ?> <?php }else{ ?>¥<?php } echo round($goods['oldprice'],2); if($item['type'] == 'integral'){ ?>积分<?php }else{ ?> <?php } ?>
- <!--
- <?php if( $goods['member_disc'] < 100 ){ ?>
- <span class="label label-primary">会员折扣:<?php echo ($goods['member_disc']); ?>%</span>
- <?php } ?>-->
- <?php if( $goods['is_vipcard_buy'] == 1){ ?>
- <span class="label label-primary">付费会员价格:<?php echo round($goods['price'],2);?></span>
- <?php }else if($goods['is_level_buy'] == 1){ ?>
- <?php if( $goods['member_disc'] < 100 ){ ?>
- <span class="label label-primary">会员折扣:<?php echo ($goods['member_disc']); ?>%</span>
- <?php } ?>
- <?php } ?>
- </p>
- </td>
- <td style="text-align: center">
- <p><?php echo ($goods['quantity']); ?>个<?php if($goods['has_refund_quantity'] > 0){ ?>(已退<?php echo ($goods['has_refund_quantity']); ?>个)<?php } ?></p>
- </td>
- <td style="text-align: center"><?php if($item['type'] == 'integral'){ ?> <?php }else{ ?>¥<?php } echo round($goods['oldprice']*$goods['quantity'],2);?></td>
-
- </tr>
- <?php if($item['is_commission'] == 1 && !empty($goods['member_commission_list']) ){ ?>
- <tr class="tr-order-sn">
- <td <?php if($item['delivery'] == 'hexiao'){ ?>colspan="11"<?php }else{ ?>colspan="10"<?php } ?>>
- 分销佣金:<br/>
- <?php foreach($goods['member_commission_list'] as $mb_val){ ?>
- <!--分销员:<?php echo $mb_val['username']; ?>(<?php echo $mb_val['level']; ?>级上线)
-
- 佣金比例:
- <?php if($mb_val['type'] == 1){ ?>
- <?php echo $mb_val['bili']; ?>%
- *( 基数:<?php echo ($goods['price']); ?>
- * 数量:<?php echo ($goods['quantity']); ?>
- <?php if($goods['has_refund_money']>0){ ?>
- - 已退款:<?php echo ($goods['has_refund_money']); ?>
- <?php } ?>
- )
- <?php }else{ ?>
- 固定佣金<?php echo $mb_val['bili']; ?>
- * 数量:<?php echo ($goods['quantity']); ?>
- <?php } ?>
- = 具体佣金:<?php echo $mb_val['money']; ?>元 -->
- 分销员:<span style="display:inline-block;min-width: 70px;"><?php echo $mb_val['username']; ?></span>(<?php echo $mb_val['level']; ?>级上线)
- 佣金比例:
- <?php if($mb_val['type'] == 1){ $jishu = $goods['total'] -$goods['fullreduction_money']-$goods['voucher_credit']-$goods['has_refund_money']; ?><span style="display:inline-block;width: 50px;"><?php echo $mb_val['bili'];?>%</span> 有效基数:<span style="display:inline-block;width: 50px;"><?php echo $jishu; ?></span>
- 具体佣金:<?php echo round($jishu*$mb_val['bili']/100,2); ?>元
- <?php }else{ ?>
- 固定佣金<?php echo $mb_val['bili']; ?>
- * 数量:<?php echo ($goods['quantity']); ?>
- = 具体佣金:<?php echo round($mb_val['bili']*$goods['quantity'],2); ?>元
- <?php } ?>
- <!--= 具体佣金:<?php echo $mb_val['money']; ?>元 -->
- <?php $str_state = ''; switch($mb_val['state']) { case 0: $str_state='待结算'; break; case 1: $str_state='已结算'; $order_status = 1; break; case 2: $str_state='订单退款'; break; } ?>(<?php echo $str_state; ?>)<br/>
- <?php } ?>
- </td>
- </tr>
- <?php } ?>
- <?php $i++; ?>
- <?php } ?>
- </tbody>
- <tfoot style="height:20px;">
- <?php if($item['type'] != 'integral'){ ?>
- <tr class="trorder">
- <td colspan="2" style="padding-left: 20px">
- 订单结算状态:
- <?php $order_states = ''; switch($order_status) { case 0: $order_states='待结算'; break; case 1: $order_states='已结算'; break; case 2: $order_states='已失效'; break; } echo $order_states; ?>
- <span onmouseover="overShow1()" onmouseout="outHide1()" style="display:inline;border-radius: 50%; height: 17px;width:17px; display: inline-block; border-style: solid; border-color: #8a8a8a; border-width:1px; font-size:11px"><span style="padding-left: 4px;font-weight:bold;color:#8a8a8a;">?</span></span>
- </td>
- <td <?php if($item['type'] == 'integral'){ ?> colspan="7"<?php }else if($item['delivery'] == 'hexiao'){ ?> colspan="9"<?php }else{ ?>colspan="8"<?php } ?> style="padding-right: 60px"></td>
- </tr>
- <?php } ?>
- <tr class="trorder" style="height:100px;">
- <td colspan="2">
- <div id="showDiv" style="position:relative; background-color: #8a8a8a; display:none; height:80px;width:1200px;border-radius:20px;padding-left: 20px;color:#FFF;">
- -待结算:还在订单“售后期”。<br />
- -已结算:已过订单“售后期”。<br />
- -已失效:整单退款的订单。<br />
- <?php if(($item['order_status_id'] ==6 || $item['order_status_id'] ==11) ){ ?>
- <?php if($order_status == 0 && $open_aftersale == 1){ ?>
- -订单预计结算时间:<?php echo date("Y-m-d H:i:s",$order_settlement); ?>,订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
- <?php }else{ ?>
- -订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
- <?php } ?>
- <?php }else{ ?>
- <?php if($order_status == 2){ ?>
- -订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
- <?php }else{ ?>
-
- <?php if($open_aftersale == 1){ ?>
- -订单预计结算时间:订单 “确认收货” 后,预计<?php echo $open_aftersale_time; ?>天后进行结算,订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
- <?php }else{ ?>
- -订单预计结算时间:订单 “确认收货” 后进行结算,订单结算状态为“已结算”的时候,用户在小程序订单中不能在申请商品售后,订单中的会员佣金,团长佣金为已结算状态。
- <?php } ?>
- <?php } ?>
- <?php } ?>
- </div>
- </td>
- <td <?php if($item['type'] == 'integral'){ ?> colspan="7"<?php }else if($item['delivery'] == 'hexiao'){ ?> colspan="9"<?php }else{ ?>colspan="8"<?php } ?> style="padding-right: 60px">
- <div class="price">
-
- <p> <span class="price-inner">商品合计:</span><span style="font-weight: bold"><?php if( $item['type'] == 'integral' ){ }else{ ?>¥<?php } echo $order_total; if( $item['type'] == 'integral' ){ ?>积分<?php } ?></span></p>
- <?php if( $item['delivery'] == 'localtown_delivery'){ ?>
- <?php if( $item['is_localtown_free_shipping_fare'] == 1 ){ ?>
- <p><span class="price-inner">同城配送费:</span>¥<?php echo ($item['localtown_free_shipping_fare']); ?></p>
- <p><span class="price-inner">满减配送费:</span>-¥<?php echo ($item['localtown_free_shipping_fare']); ?></p>
- <?php }else{ ?>
- <p><span class="price-inner">同城配送费:</span>¥<?php echo ($item['shipping_fare']); ?></p>
- <?php } ?>
- <?php if( !empty($item['localtown_add_shipping_fare']) && $item['localtown_add_shipping_fare'] > 0 ){ ?>
- <p><span class="price-inner">加价配送:</span>¥<?php echo ($item['localtown_add_shipping_fare']); ?></p>
- <?php } ?>
- <?php }else{ ?>
- <?php if( $item['is_free_shipping_fare'] == 1 ){ ?>
- <p><span class="price-inner">运费:</span>¥<?php echo ($item['fare_shipping_free']); ?><span>( <?php echo ($item['delivery_text']); ?> )</span></p>
- <p><span class="price-inner">满<?php echo ($item['man_e_money']); ?>减运费:</span>-¥<?php echo ($item['fare_shipping_free']); ?></p>
- <?php }else{ ?>
- <p><span class="price-inner">运费:</span>¥<?php echo ($item['shipping_fare']); ?><span>( <?php echo ($item['delivery_text']); ?> )</span></p>
- <?php } ?>
- <?php } ?>
-
- <?php if( $item['packing_fare']>0 ){ ?>
- <p><span class="price-inner"><?php echo ($localtown_modifypickingname); ?>:</span>¥<?php echo ($item['packing_fare']); ?></p>
- <?php } ?>
-
- <?php if( $item['voucher_id']>0 ){ ?>
- <p><span class="price-inner">优惠券优惠:</span><span class="text-danger">-¥<?php echo ($item['voucher_credit']); ?></span></p>
- <?php } ?>
- <?php if( $item['fullreduction_money']>0 ){ ?>
- <p><span class="price-inner">满减优惠:</span><span class="text-danger">-¥<?php echo ($item['fullreduction_money']); ?></span></p>
- <?php } ?>
-
-
- <?php if( $item['score_for_money']>0 ){ ?>
- <p><span class="price-inner">积分抵扣:</span><span class="text-danger">-¥<?php echo ($item['score_for_money']); ?></span></p>
- <?php } ?>
- <?php if($item['is_change_price'] == 1){ ?>
- <p>
- <span class="price-inner">商家改价:</span>
- <span style=''>
- <?php
- $change_price = $item['total'] - $item['old_price']; if($change_price < 0){ echo '-¥'.(0-$change_price); }else{ echo '¥'.$change_price; } ?>
- </span>
- </p>
- <?php } ?>
-
- <?php if( ($item['changedtotal'])!=0){ ?>
- <p>
- <span class="price-inner">卖家改价:</span>
- <span style='<?php if( 0<$item['changedtotal']){ ?>color:green<?php }else{ ?>color:red<?php } ?>'><?php if( 0<$item['changedtotal']){ ?>+<?php }else{ ?>-<?php } ?>¥{php echo number_format(abs($item['changedtotal']),2)}</span>
- </p>
- <?php } ?>
- <?php if( ($item['changedshipping_fare'])!=0){ ?>
- <p>
- <span class="price-inner">卖家改运费:</span>
- <span style='<?php if( 0<$item['changedshipping_fare']){ ?>color:green<?php }else{ ?>color:red<?php } ?>'><?php if( 0<$item['changedshipping_fare']){ ?>+<?php }else{ ?>-<?php } ?>¥{php echo abs($item['changedshipping_fare'])}</span>
- </p>
- <?php } ?>
- <?php if($item['shipping_fare'] <= 0 ){ $item['fare_shipping_free'] = 0; } ?>
- <?php $free_tongji = $item['total'] + $item['packing_fare'] +$item['shipping_fare']-$item['voucher_credit']-$item['fullreduction_money'] - $item['score_for_money'] + $item['localtown_add_shipping_fare']- $item['fare_shipping_free'] - $presale_for_ordermoney; if($free_tongji < 0){ $free_tongji = 0; } ?>
- <?php
- if( $item['is_vipcard_buy'] == 1 && $member_youhui >0 ) { ?>
- <p><span class="price-inner">会员卡优惠:</span><span class="text-danger">-¥<?php echo ($member_youhui); ?></span></p>
- <?php
- } ?>
- <?php
- if( $item['is_level_buy'] == 1 && $member_youhui >0 ) { ?>
- <p><span class="price-inner">会员等级折扣优惠:</span><span class="text-danger">-¥<?php echo ($member_youhui); ?></span></p>
- <?php } ?>
-
-
- <?php if($item['type'] == 'integral'){ ?>
- <p><span class="price-inner">实付款:</span>
-
- <span style="font-size: 14px;font-weight: bold;color: #e4393c"><?php if( $item['shipping_fare'] > 0 ){ ?>¥<?php echo round($item['shipping_fare'],2);?>+<?php } ?> <?php echo round($item['total'],2);?> 积分</span>
-
- </p>
-
- <?php if( $total_refund_money > 0 ){ ?>
- <p><span class="price-inner">退款:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c"><?php echo ($total_refund_money); ?>积分</span></p>
- <?php } ?>
- <?php
- if( $total_refund_shipping_fare > 0 ){ ?>
- <p><span class="price-inner">退运费:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥<?php echo ($total_refund_shipping_fare); ?></span></p>
- <?php } ?>
-
- <?php }else{ ?>
- <?php
- if( $presale_for_ordermoney > 0 ){ ?>
- <p><span class="price-inner">定金抵扣:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">-¥<?php echo ($presale_for_ordermoney); ?></span></p>
- <?php } ?>
- <p><span class="price-inner">实付款:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥<?php echo round($free_tongji,2)?></span></p>
- <?php
- if( $total_refund_money > 0 ){ ?>
- <p><span class="price-inner">退款:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥<?php echo ($total_refund_money); ?></span></p>
- <?php } ?>
- <?php
- if( $total_refund_shipping_fare > 0 ){ ?>
- <p><span class="price-inner">退运费:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥<?php echo ($total_refund_shipping_fare); ?></span></p>
- <?php } ?>
- <?php } ?>
-
-
- </div>
- </td>
- </tr>
- </tfoot>
- </table>
- </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;
-
-
-
- $('.tip_headcommiss').click(function(){
- var s_str = '团长佣金结算状态: 待结算<br/>团长佣金结算金额:2.40<br/>佣金预计结算时间:2016-09-14 16:04:05 <br>结算说明:结算前商品退款会改变佣金计算情况,佣金结算后商品进行退款不改变佣金计算情况。';
-
- layer.tips( s_str ,this, {
- tips:[1,'#000'],
- time: 10000
- });
- })
- $('.layui-icon-about').mouseover(function(){
- var that = this;
- var _msg = $(this).attr('data-message');
- layer.tips(_msg, that,{ tips:[1] });
- })
-
- $('.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){
-
- 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;
- }
- });
- }
- }
- })
- });
- })
-
- $('.hxBtn').click(function(){
- var url = $(this).attr('data-href');
- $.post(url, {}, function(shtml){
- layer.open({
- type: 1,
- area: '930px',
- content: shtml //注意,如果str是object,那么需要字符拼接。
- });
- });
- return false;
- })
-
- $('.hxAction').click(function(){
- var url = $(this).attr('data-href');
- $.post(url, {}, function(shtml){
- layer.open({
- type: 1,
- title: '商品核销',
- area: '930px',
- content: shtml
- ,btnAlign : 'c'
- ,btn: ['确认使用', '取消']
- ,yes: function(index, layero){
- hexiao_goods();
- },btn2: function(index, layero){
- layer.closeAll();
- }
- ,cancel: function(){
- layer.closeAll();
- }
- });
- });
- return false;
- })
-
- $('.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');
- });
-
- //监听提交
- 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>
- $(function(){
- var ajax_url = "";
- $("[data-toggle='ajaxModal']").click(function () {
- var s_url = $(this).attr('data-href');
- ajax_url = s_url;
- $.ajax({
- url:s_url,
- type:"get",
- success:function(shtml){
- //console.log(shtml);
- $('#ajaxModal').html(shtml);
- $('#ajaxModal').modal();
- }
- })
-
- })
-
- $(document).delegate(".modal-footer .btn-primary","click",function(){
- var s_data = $('#ajaxModal form').serialize();
- console.log(ajax_url);
- console.log(s_data);
- $.ajax({
- url:ajax_url,
- type:'post',
- dataType:'json',
- data:s_data,
- success:function(info){
- console.log(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();
- }
- });
-
- $('#user').click(function(){
- layer.msg('权限不足!',{icon: 2,time: 1200});
- });
- })
- </script>
- <script>
- function overShow1() {
- var showDiv = document.getElementById('showDiv');
- showDiv.style.display = 'block';
- }
-
- function outHide1() {
- var showDiv = document.getElementById('showDiv');
- showDiv.style.display = 'none';
- }
- </script>
- </body>
|