123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- @extends('admin.public.base')
- @section('body_class')
- style="margin: 0 auto;width: 96%;padding: 30px 0px;"
- @endsection
- @section('content')
- <form action="" method="get" class="form-horizontal form-line" name="thisform">
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="code" value="{{request('code','')}}" placeholder="请输入活动编码" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="name" value="{{request('name','')}}" placeholder="请输入活动名称查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="product_name" value="{{request('product_name','')}}" placeholder="请输入产品名称查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="date" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入创建时间查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="date" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束查询" />
- </div>
- <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
- <a href="{{url('admin/regiment_record/index')}}" class="btn btn-sm btn-default" >重置</a>
- @if( check_auth('admin/regiment_record/down_excel') )
- <button type="button" onclick="alter_from_attr({'method':'get','action':`{{url('admin/regiment_record/down_excel')}}`})" class="btn btn-sm btn-primary"> 下载</button>
- @endif
- </form>
- <div class="row">
- <div class="col-xs-12">
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <th>拼团记录ID</th>
- <th>团单ID</th>
- <th>订单编码</th>
- <th>客户昵称/编码</th>
- <th>参与活动/活动编码</th>
- <th>产品名称/产品编码</th>
- <th>发起客户昵称/发起客户编码</th>
- <th>店铺</th>
- <th>拼团状态</th>
- <th>订单生成时间</th>
- </tr>
- </thead>
-
- <tbody>
- @foreach ($list as $a)
- <tr>
- <th>{{$a['id']}}</th>
- <th>{{$a['regiment_id']}}</th>
- <th>{{$a['order_code']}}</th>
- <th>{{$a['username']}}<br/>{{$a['custom_code']}}</th>
- <td>{{$a['active_name']}}<br/>{{$a['active_code']}}</td>
- <td style="white-space:pre">{{$a['product_name']}}<br/>{{$a['product_code']}}</td>
- <td>{{$a['regiment_username']}}<br/>{{$a['regiment_uid_code']}}</td>
- <td>{{$a['business_name']}}</td>
- <td>
- @if( $a['status'] == 0 )
- 拼团中
- @endif
- @if( $a['status'] == 1 )
- 取消拼团
- @endif
- @if( $a['status'] == 2 )
- 拼团成功
- @endif
- @if( $a['status'] == 3 )
- 拼团失败
- @endif
- @if( $a['status'] == 4 )
- 拼团待支付
- @endif
- </td>
- <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
- </tr>
- @endforeach
- <tr>
- <td colspan="20" class="page">{{$list->render()}}</td>
- </tr>
- <tr>
- <td colspan="20">总计 {{$list->total()}} 个记录</td>
- </tr>
- </tbody>
-
- </table>
- </div>
- </div>
- </div>
- @endsection
- @section('javascript')
- <script src="/static/fileupload/jquery.ui.widget.js"></script>
- <script src="/static/fileupload/jquery.fileupload.js"></script>
- <script type="text/javascript">
- $(function(){
- $('.upload').on('click', function() {
- $('#form-upload').remove();
- $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input osctype="btn_upload_file" type="file" name="order_file" multiple="multiple" /></form>');
- $('#form-upload input[name=\'clockin_record_file\']').trigger('click');
- $('[osctype="btn_upload_file"]').fileupload({
- dataType: 'json',
- url: "{{url('admin/custom_clockin_record/import_execl')}}",
- singleFileUploads: false,
- beforeSend: function() {
- art.dialog({
- id: 'loading',
- lock: true,
- title: '文件上传中'
- });
- },
- done: function(e, data) {
- art.dialog.list['loading'].close();
- var result = data.result;
- if (result.code == 'error') {
- art.dialog({
- content: result.msg,
- lock: true,
- ok: function() {}
- });
- }
- if (result.code == 'success') {
- art.dialog({
- content: result.msg,
- lock: true,
- ok: function() {
- location.reload();
- }
- });
- }
- },
- fail: function(e,c) {
- art.dialog.list['loading'].close();
- art.dialog({
- content: '<p>'+c.jqXHR.status+'=>'+c.jqXHR.statusText+'</p>',
- lock: true,
- ok: function() {}
- });
- }
- });
- });
- })
- </script>
- @endsection
|