|
|
<include file="public@header"/>
|
|
|
</head>
|
|
|
<body>
|
|
|
<style>
|
|
|
.pagination{text-align:center;margin-top:20px;margin-bottom: 20px;}
|
|
|
.pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: inline-block;}
|
|
|
.pagination .active{background-color: #dd1a20;color: #fff;}
|
|
|
.pagination .disabled{color:#aaa;}
|
|
|
</style>
|
|
|
<div class="wrap js-check-wrap">
|
|
|
<ul class="nav nav-tabs">
|
|
|
<li class="active"><a href="#">平台订单列表</a></li>
|
|
|
</ul>
|
|
|
<form class="well form-inline margin-top-20" method="post" action="{:url('Orderscourier/order_list')}">
|
|
|
时间:
|
|
|
<input type="text" class="form-control js-bootstrap-datetime" name="start_time"
|
|
|
value="{$start_time|default=''}"
|
|
|
style="width: 140px;" autocomplete="off">-
|
|
|
<input type="text" class="form-control js-bootstrap-datetime" name="end_time"
|
|
|
value="{$end_time|default=''}"
|
|
|
style="width: 140px;" autocomplete="off">
|
|
|
关键字:
|
|
|
<input type="text" class="form-control" name="keyword" style="width: 200px;"
|
|
|
value="{$keyword|default=''}" placeholder="请输入订单号...">
|
|
|
订单状态:
|
|
|
<select name="state" class="form-control">
|
|
|
<option value="">全部</option>
|
|
|
<option value="3">已完成</option>
|
|
|
<option value="2">未完成</option>
|
|
|
</select>
|
|
|
<input type="submit" class="btn btn-primary" value="搜索"/>
|
|
|
<a class="btn btn-danger" href="{:url('Orderscourier/order_list')}">清空</a>
|
|
|
</form>
|
|
|
<table class="table table-bordered">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>订单号</th>
|
|
|
<th>数量</th>
|
|
|
<th>价钱</th>
|
|
|
<th>订单状态</th>
|
|
|
<th>创建时间</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<volist name="data" id="vo">
|
|
|
<tr class="tr{$vo.id}">
|
|
|
<td>{$vo.id}</td>
|
|
|
<td>{$vo.order_number}</td>
|
|
|
<td>{$vo.book_num}</td>
|
|
|
<td>{$vo.money}</td>
|
|
|
<if condition="$vo.state eq 4">
|
|
|
<td>待付款</td>
|
|
|
<elseif condition="$vo.state eq 1"/>
|
|
|
<td>已付款</td>
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
<td>未完成</td>
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
<td>已完成</td>
|
|
|
</if>
|
|
|
<td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
|
|
|
<td style="width: 171px;">
|
|
|
<if condition="$vo.state eq 2">
|
|
|
<button type="button" class="btn btn-default">物流信息</button>
|
|
|
<else/>
|
|
|
<a href="{:url('Platformorders/plat_view',array('id'=>$vo.id))}"><button type="button" class="btn btn-default">物流信息</button></a>
|
|
|
</if>
|
|
|
|
|
|
<if condition="$vo.state eq 2">
|
|
|
<button type="button" class="btn btn-default" onclick="deliver_goods({$vo.id})">待发货</button>
|
|
|
<else/>
|
|
|
<button type="button" class="btn btn-default">已发货</button>
|
|
|
</if>
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
</volist>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
<div class="pagination">
|
|
|
{$data->render()}
|
|
|
</div>
|
|
|
</div>
|
|
|
<script src="__STATIC__/js/admin.js"></script>
|
|
|
<script>
|
|
|
/**
|
|
|
*待发货
|
|
|
*/
|
|
|
function deliver_goods(id){
|
|
|
ccc = window.confirm('确定发货?');
|
|
|
if(ccc){
|
|
|
$.post("{:url('Bird/createOrder')}",{indent_id:id},function(data){
|
|
|
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
...
|
...
|
|