845fb29f50883c922627edcf0edb717c.php 11 KB

1234567891011121314151617181920212223
  1. <?php /*a:3:{s:69:"D:\project\gyx\gaoyixia\application\order\view\store_order\index.html";i:1701247800;s:56:"D:\project\gyx\gaoyixia\application\admin\view\main.html";i:1699858976;s:76:"D:\project\gyx\gaoyixia\application\order\view\store_order\index_search.html";i:1699858976;}*/ ?>
  2. <div class="layui-card layui-bg-gray"><?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?><div class="layui-card-header layui-anim layui-anim-fadein notselect"><span class="layui-icon layui-icon-next font-s10 color-desc margin-right-5"></span><?php echo htmlentities((isset($title) && ($title !== '')?$title:'')); ?><div class="pull-right"><button data-action='<?php echo url("remove"); ?>' data-confirm="确定要删除吗?" data-csrf="<?php echo systoken('remove'); ?>" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button></div></div><?php endif; ?><div class="layui-card-body layui-anim layui-anim-upbit"><div class="think-box-shadow"><fieldset><legend>条件搜索</legend><form class="layui-form layui-form-pane form-search" action="<?php echo request()->url(); ?>" onsubmit="return false" method="get" autocomplete="off"><div class="layui-form-item layui-inline"><label class="layui-form-label">订单号</label><div class="layui-input-inline"><input name="order_no" value="<?php echo htmlentities((app('request')->get('order_no') ?: '')); ?>" placeholder="请输入订单号" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">手机号</label><div class="layui-input-inline"><input name="tel" value="<?php echo htmlentities((app('request')->get('tel') ?: '')); ?>" placeholder="请输入手机号" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">用户名称</label><div class="layui-input-inline"><input name="user_name" value="<?php echo htmlentities((app('request')->get('user_name') ?: '')); ?>" placeholder="请输入用户名称" class="layui-input"></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">订单状态</label><div class="layui-input-inline"><select class="layui-select" name="order_status"><option value="-1">全部</option><?php foreach($order_status as $k=>$v): if($v): if(app('request')->get('order_status') == $k): ?><option selected value="<?php echo htmlentities($k); ?>"><?php echo htmlentities($v); ?></option><?php else: ?><option value="<?php echo htmlentities($k); ?>"><?php echo htmlentities($v); ?></option><?php endif; ?><?php endif; ?><?php endforeach; ?></select></div></div><div class="layui-form-item layui-inline"><label class="layui-form-label">支付状态</label><div class="layui-input-inline"><select class="layui-select" name="pay_state"><option value="-1">全部</option><?php foreach($pay_state as $k=>$v): if($v): if(app('request')->get('pay_state') == $k): ?><option selected value="<?php echo htmlentities($k); ?>"><?php echo htmlentities($v); ?></option><?php else: ?><option value="<?php echo htmlentities($k); ?>"><?php echo htmlentities($v); ?></option><?php endif; ?><?php endif; ?><?php endforeach; ?></select></div></div><div class="layui-form-item layui-inline"><button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button></div></form><script>form.render()</script></fieldset><table class="layui-table margin-top-10" lay-skin="line"><?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): ?><thead><tr><th class='list-table-check-td think-checkbox'><input data-auto-none data-check-target='.list-check-box' type='checkbox'></th><th class='text-left nowrap'>ID</th><th class='text-left nowrap'>用户信息</th><th class='text-left nowrap'>订单详情</th><th class='text-left nowrap'>物流信息</th><th class='text-left nowrap'>商品详情</th><th class="text-left nowrap">操作</th></tr></thead><?php endif; ?><tbody><?php foreach($list as $key=>$vo): ?><tr><td class='list-table-check-td think-checkbox'><input class="list-check-box" value='<?php echo htmlentities($vo['id']); ?>' type='checkbox'></td><td class='text-left nowrap'><?php echo htmlentities((isset($vo['id']) && ($vo['id'] !== '')?$vo['id']:'--')); ?></td><td class="text-left nowrap relative"><img data-tips-image style="width:60px;height:60px" src="<?php echo htmlentities((isset($vo['headimg']) && ($vo['headimg'] !== '')?$vo['headimg']:'')); ?>" class="margin-right-5 text-top"><div class="inline-block"> 会员ID:<?php echo htmlentities((isset($vo['user_id']) && ($vo['user_id'] !== '')?$vo['user_id']:'--')); ?><br> 会员昵称:<?php echo htmlentities((isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:'--')); ?><br> 会员手机:<?php echo htmlentities((isset($vo['user_phone']) && ($vo['user_phone'] !== '')?$vo['user_phone']:'--')); ?><br></div></td><td class='text-left nowrap'> 订单单号:<span class="color-blue"><?php echo htmlentities((isset($vo['order_no']) && ($vo['order_no'] !== '')?$vo['order_no']:'')); ?></span><?php if($vo['status'] == '0'): ?><span class="layui-badge layui-bg-orange margin-left-5">待付款</span><?php endif; if($vo['status'] == '1'): ?><span class="layui-badge layui-bg-black margin-left-5">待发货</span><?php endif; if($vo['status'] == '2'): ?><span class="layui-badge layui-bg-green margin-left-5">已发货</span><?php endif; if($vo['status'] == '3'): ?><span class="layui-badge layui-bg-blue margin-left-5">已收货待评价</span><?php endif; if($vo['status'] == '4'): ?><span class="layui-badge layui-bg-blue margin-left-5">已完成</span><?php endif; if($vo['status'] == '9'): ?><span class="layui-badge layui-bg-blue margin-left-5">已取消</span><?php endif; if($vo['logistics_urge'] && $vo['status'] == 1 && $vo['refund_state'] == 0): ?><span class="layui-badge layui-bg-orange margin-left-5">已提醒发货</span><?php endif; ?><br> 退款状态:<span class="color-blue"></span><?php if($vo['refund_state'] == '0'): ?><span class="layui-badge layui-bg-blue margin-left-5">未申请</span><?php endif; if($vo['refund_state'] == '1'): ?><span class="layui-badge layui-bg-blue margin-left-5">待审核</span><?php endif; if($vo['refund_state'] == '2'): ?><span class="layui-badge layui-bg-blue margin-left-5">拒绝退款</span><?php endif; if($vo['refund_state'] == '3'): ?><span class="layui-badge layui-bg-blue margin-left-5">审核通过</span><?php endif; ?><br> 订单金额:<strong class="color-blue"><?php echo htmlentities($vo['price_total']); ?></strong> 元<br> 支付方式:<span class="layui-bg-green layui-badge"><?php if($vo['pay_state']): ?><?php echo htmlentities($all_pay_type[$vo['pay_type']]); else: ?>待支付<?php endif; ?></span><br> 下单时间:<?php echo htmlentities((isset($vo['create_at']) && ($vo['create_at'] !== '')?$vo['create_at']:'--')); ?><br> 支付时间:<?php echo htmlentities((isset($vo['pay_at']) && ($vo['pay_at'] !== '')?$vo['pay_at']:'--')); ?><br></td><td class="text-left nowrap"> 收货信息:<?php echo htmlentities((isset($vo['user_name']) && ($vo['user_name'] !== '')?$vo['user_name']:'--')); ?><span class="margin-left-5 color-blue"><?php echo htmlentities($vo['phone']); ?></span><br> 收货地区:<?php echo htmlentities((isset($vo['pro_name']) && ($vo['pro_name'] !== '')?$vo['pro_name']:'--')); ?><?php echo htmlentities($vo['city_name']); ?><?php echo htmlentities($vo['county_name']); ?><br> 收货地址:<?php echo htmlentities($vo['street_name']); ?><?php echo htmlentities($vo['add_detail']); ?><?php echo htmlentities($vo['add_detail']); ?><br> 发货状态:
  3. <?php if($vo['express_state'] == '0'): ?><span class="layui-badge layui-bg-black">未发货</span><?php else: ?><span class="layui-badge layui-bg-blue"><?php echo htmlentities((isset($vo['express_company_title']) && ($vo['express_company_title'] !== '')?$vo['express_company_title']:'--')); ?></span><span class="layui-badge layui-bg-gray margin-left-5"><?php echo htmlentities((isset($vo['express_send_no']) && ($vo['express_send_no'] !== '')?$vo['express_send_no']:'--')); ?></span><?php endif; if($vo['status'] == 1): ?><a class=" margin-left-5" data-title="填写订单信息" data-modal="<?php echo url('express'); ?>?id=<?php echo htmlentities($vo['id']); ?>">填写发货信息</a><?php elseif($vo['status'] == 2): ?><a class=" margin-left-5" data-title="修改发货信息" data-modal="<?php echo url('express'); ?>?id=<?php echo htmlentities($vo['id']); ?>">修改发货信息</a><?php endif; ?><br> 发货时间:<?php echo htmlentities(format_datetime($vo['express_send_at'])); ?><br></td><td class="text-left nowrap"><?php foreach($vo['item_list'] as $g): ?><div class="nowrap"><p class="text-left"><?php echo htmlentities((isset($g['name']) && ($g['name'] !== '')?$g['name']:'')); ?>(<?php echo htmlentities($g['goods_spec']); ?>)</p><p class="text-left color-desc">售价 <?php echo htmlentities($g['sell_price']); ?> 元 &nbsp; 数量 <?php echo htmlentities((isset($g['num']) && ($g['num'] !== '')?$g['num']:0)); ?></p></div><?php endforeach; ?></td><td class='text-left nowrap'><a data-title="查看详情" class="layui-btn layui-btn-sm" data-modal='<?php echo url("detail"); ?>?id=<?php echo htmlentities($vo['id']); ?>'>查看详情</a><?php if($vo['refund_info']): ?><a data-title="查看售后" class="layui-btn layui-btn-sm layui-btn-warm" data-modal='<?php echo url("/order/refund_order/audit"); ?>?id=<?php echo htmlentities($vo['refund_info']['id']); ?>'>查看售后</a><?php endif; ?><span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','remove','<?php echo htmlentities($vo['id']); ?>');">删 除</span></td></tr><?php endforeach; ?></tbody></table><?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?><span class="notdata">没有记录哦</span><?php else: ?><?php echo (isset($pagehtml) && ($pagehtml !== '')?$pagehtml:''); ?><?php endif; ?></div><script> function btn_confirm(msg,fun,id) {
  4. layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
  5. var url = "/order/store_order/"+fun;
  6. layer.closeAll();
  7. $.ajax({
  8. type: "post",
  9. url: url,
  10. data: {id:id},
  11. dataType: "json",
  12. async: false,
  13. success: function (data) {
  14. layer.msg(data.info);
  15. setTimeout(function () {
  16. window.location.reload();
  17. },1000)
  18. }
  19. });
  20. });
  21. }
  22. </script></div></div>