...
|
...
|
@@ -77,6 +77,10 @@ class OrderController extends AdminBaseController |
|
|
<input type="text" name="" id="address" readonly="readonly" value="{value}" class="baby_input" placeholder="请输入{name}" />
|
|
|
<img src="__TMPL__/public/mobile/images/youjiantou.png" class="jiantou" />
|
|
|
</div>';
|
|
|
$this->sort_model[12] = '<div class="text_item form_options" data-validate="{validate}" data-type="12">
|
|
|
<p class="text_tit"><span class=" _validate">{name}</span>{must}</p>
|
|
|
<input type="text" name="" id="" value="{value}" class="baby_input" placeholder="请输入{name}" />
|
|
|
</div>';
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -169,8 +173,19 @@ class OrderController extends AdminBaseController |
|
|
$this->error('参数错误');
|
|
|
}
|
|
|
$where['sort_id'] = $param['sort_id'];
|
|
|
if(isset($param['keyword'])) {
|
|
|
$where['sort_name'] = ['like','%'.$param['keyword'].'%'];
|
|
|
if(isset($param['status']) && $param['status'] >= 0) {
|
|
|
$where['status'] = $param['status'];
|
|
|
}
|
|
|
if(isset($param['is_excel']) && $param['is_excel'] >= 0) {
|
|
|
$where['is_excel'] = $param['is_excel'];
|
|
|
}
|
|
|
if(isset($param['is_over']) && $param['is_over'] >= 0) {
|
|
|
if($param['is_over'] == 0) {
|
|
|
$where['over_time'] = ['egt',time()];
|
|
|
}
|
|
|
if($param['is_over'] == 1) {
|
|
|
$where['over_time'] = ['lt',time()];
|
|
|
}
|
|
|
}
|
|
|
$startTime = empty($filter['start_time']) ? 0 : strtotime($filter['start_time']);
|
|
|
$endTime = empty($filter['end_time']) ? 0 : strtotime($filter['end_time']);
|
...
|
...
|
@@ -189,6 +204,11 @@ class OrderController extends AdminBaseController |
|
|
$this->assign('list',$list->items());
|
|
|
$this->assign('page',$list->render());
|
|
|
$this->assign('keyword',isset($param['keyword']) ? $param['keyword'] : '');
|
|
|
$this->assign('status',isset($param['status']) ? $param['status'] : '');
|
|
|
$this->assign('is_excel',isset($param['is_excel']) ? $param['is_excel'] : '');
|
|
|
$this->assign('is_over',isset($param['is_over']) ? $param['is_over'] : '');
|
|
|
$this->assign('start_time',isset($param['start_time']) ? $param['start_time'] : '');
|
|
|
$this->assign('end_time',isset($param['end_time']) ? $param['end_time'] : '');
|
|
|
$this->assign('sort_id',$param['sort_id']);
|
|
|
// 订单类型
|
|
|
$sortList = Db::name('OrderSort')->where(['delete_time'=>0])->select()->toArray();
|
...
|
...
|
@@ -221,6 +241,23 @@ class OrderController extends AdminBaseController |
|
|
if(isset($param['keyword'])) {
|
|
|
$where['order_sn|sort_name|user_login|number'] = ['like','%'.$param['keyword'].'%'];
|
|
|
}
|
|
|
if(!empty($param['sort_id'])) {
|
|
|
$where['sort_id'] = $param['sort_id'];
|
|
|
}
|
|
|
if(isset($param['status']) && $param['status'] >= 0) {
|
|
|
$where['status'] = $param['status'];
|
|
|
}
|
|
|
if(isset($param['is_excel']) && $param['is_excel'] >= 0) {
|
|
|
$where['is_excel'] = $param['is_excel'];
|
|
|
}
|
|
|
if(isset($param['is_over']) && $param['is_over'] >= 0) {
|
|
|
if($param['is_over'] == 0) {
|
|
|
$where['over_time'] = ['egt',time()];
|
|
|
}
|
|
|
if($param['is_over'] == 1) {
|
|
|
$where['over_time'] = ['lt',time()];
|
|
|
}
|
|
|
}
|
|
|
$startTime = empty($filter['start_time']) ? 0 : strtotime($filter['start_time']);
|
|
|
$endTime = empty($filter['end_time']) ? 0 : strtotime($filter['end_time']);
|
|
|
if (!empty($startTime) && !empty($endTime)) {
|
...
|
...
|
@@ -238,6 +275,12 @@ class OrderController extends AdminBaseController |
|
|
$this->assign('list',$list->items());
|
|
|
$this->assign('page',$list->render());
|
|
|
$this->assign('keyword',isset($param['keyword']) ? $param['keyword'] : '');
|
|
|
$this->assign('sort_id',isset($param['sort_id']) ? $param['sort_id'] : '');
|
|
|
$this->assign('status',isset($param['status']) ? $param['status'] : '');
|
|
|
$this->assign('is_excel',isset($param['is_excel']) ? $param['is_excel'] : '');
|
|
|
$this->assign('is_over',isset($param['is_over']) ? $param['is_over'] : '');
|
|
|
$this->assign('start_time',isset($param['start_time']) ? $param['start_time'] : '');
|
|
|
$this->assign('end_time',isset($param['end_time']) ? $param['end_time'] : '');
|
|
|
$this->assign('user_id',$param['user_id']);
|
|
|
// 订单类型
|
|
|
$sortList = Db::name('OrderSort')->where(['delete_time'=>0])->select()->toArray();
|
...
|
...
|
|