...
|
...
|
@@ -32,6 +32,9 @@ class ZjOrderController extends AdminBaseController |
|
|
if (strlen($in['ser_type'])>'0'){
|
|
|
$where['s.ser_type']=$in['ser_type'];
|
|
|
}
|
|
|
if (strlen($in['order_num'])>'0'){
|
|
|
$where['o.order_num']=$in['order_num'];
|
|
|
}
|
|
|
}
|
|
|
$admin=Db::name('role_user')->field('user_id')->where('role_id','3')->select();
|
|
|
foreach ($admin as $k=>$val){
|
...
|
...
|
@@ -40,6 +43,25 @@ class ZjOrderController extends AdminBaseController |
|
|
$aname=Db::name('user')->field('user_login,id')->where(['id'=>['in',$id]])->select();
|
|
|
$order=new ZjOrderModel();
|
|
|
$all=$order->selectAll($where);
|
|
|
|
|
|
$aa=['0','0','0','0'];
|
|
|
$zd=['0','0','0'];
|
|
|
foreach ($all as $k=>$val){
|
|
|
if ($val['order_type']=='0'){
|
|
|
$aa['1']+=$val['whole'];
|
|
|
$zd['0']+='1';
|
|
|
}elseif ($val['order_type']=='1'){
|
|
|
$aa['2']+=$val['whole'];
|
|
|
$zd['1']+='1';
|
|
|
}else{
|
|
|
$aa['3']+=$val['whole'];
|
|
|
$zd['2']+='1';
|
|
|
}
|
|
|
}
|
|
|
$ser=Db::name('zj_service_type')->select();
|
|
|
$this->assign('aa',$aa);
|
|
|
$this->assign('zd',$zd);
|
|
|
$this->assign('ser',$ser);
|
|
|
$this->assign('allorder',$all);
|
|
|
$this->assign('admin',$aname);
|
|
|
|
...
|
...
|
@@ -59,7 +81,7 @@ class ZjOrderController extends AdminBaseController |
|
|
$where['s.ser_type']=$in['ser_type'];
|
|
|
}
|
|
|
if (strlen($in['name'])>'0'){
|
|
|
$where['s.name']=$in['name'];
|
|
|
$where['s.id']=$in['name'];
|
|
|
}
|
|
|
if (strlen($in['date_min'])>'0'){
|
|
|
$where['o.contact_date']=['egt',$in['date_min']];
|
...
|
...
|
@@ -73,10 +95,12 @@ class ZjOrderController extends AdminBaseController |
|
|
|
|
|
}
|
|
|
|
|
|
$service=Db::name('zj_service')->field('id,name,ser_type')->select();//查询服务价格 我的订单联动筛选
|
|
|
$service=Db::name('zj_service')->field('id,name,ser_type')->select();//查询服务名称 我的订单联动筛选
|
|
|
$contact=Db::name('zj_contact')->select();//预约具体时间
|
|
|
$order=new ZjOrderModel();
|
|
|
$all=$order->selectAll($where);
|
|
|
$ser=Db::name('zj_service_type')->select();
|
|
|
$this->assign('ser',$ser);
|
|
|
$this->assign('allcon',$contact);
|
|
|
$this->assign('allorder',$all);
|
|
|
$this->assign('allservice',$service);
|
...
|
...
|
@@ -114,7 +138,6 @@ class ZjOrderController extends AdminBaseController |
|
|
$this->assign('admin',$aname);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -134,7 +157,7 @@ class ZjOrderController extends AdminBaseController |
|
|
$where['o.order_type']=$in['order_type'];
|
|
|
}
|
|
|
if (strlen($in['name'])>'0'){
|
|
|
$where['s.name']=$in['name'];
|
|
|
$where['s.id']=$in['name'];
|
|
|
}
|
|
|
if (strlen($in['date_min'])>'0'){
|
|
|
$where['o.contact_date']=['egt',$in['date_min']];
|
...
|
...
|
@@ -145,12 +168,17 @@ class ZjOrderController extends AdminBaseController |
|
|
if (strlen($in['contact_time'])>'0'){
|
|
|
$where['o.contact_time']=$in['contact_time'];
|
|
|
}
|
|
|
if (strlen($in['order_num'])>'0'){
|
|
|
$where['o.order_num']=$in['order_num'];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$service=Db::name('zj_service')->field('id,name,ser_type')->select();//查询服务名称 我的订单联动筛选
|
|
|
$contact=Db::name('zj_contact')->select();//预约具体时间
|
|
|
$order=new ZjOrderModel();
|
|
|
$all=$order->selectAll($where);
|
|
|
$ser=Db::name('zj_service_type')->select();
|
|
|
$this->assign('ser',$ser);
|
|
|
$this->assign('allcon',$contact);
|
|
|
$this->assign('allorder',$all);
|
|
|
$this->assign('allservice',$service);
|
...
|
...
|
|