添加网站文件
This commit is contained in:
82
application/admin/controller/Orderstaff.php
Normal file
82
application/admin/controller/Orderstaff.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\admin\controller;
|
||||
use think\Db;
|
||||
use app\admin\logic\AdminLogic;
|
||||
use app\admin\logic\OrderstaffLogic;
|
||||
use app\admin\logic\StatcubLogic;
|
||||
use app\admin\logic\StaffLogic;
|
||||
use app\admin\logic\GoodsBrandLogic;
|
||||
|
||||
|
||||
class Orderstaff extends AdminBase
|
||||
{
|
||||
|
||||
/**
|
||||
* 保洁产能
|
||||
* @return mixed
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @throws \think\exception\DbException
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('', AdminLogic::lists($get));
|
||||
}
|
||||
|
||||
$this->assign('staff',StaffLogic::serverstaff());
|
||||
$this->assign('type',GoodsBrandLogic::getGoodsBrandLists());
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取产能订单
|
||||
* @param $admin_id
|
||||
* @throws \think\Exception
|
||||
* @throws \think\exception\PDOException
|
||||
*/
|
||||
|
||||
public function orederlist(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('获取数据成功', OrderstaffLogic::orderlist($get));
|
||||
}
|
||||
$this->assign('staff',StaffLogic::serverstaff());
|
||||
$channel=Db::name('orderchannel')->select();
|
||||
$admin=Db::name('admin')->select();
|
||||
$this->assign('admin',$admin);
|
||||
$this->assign('channel',$channel);
|
||||
$this->assign('num', StatcubLogic::Numorder());
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看全部的子订单
|
||||
* @param $admin_id
|
||||
* @throws \think\Exception
|
||||
* @throws \think\exception\PDOException
|
||||
*/
|
||||
public function allorder(){
|
||||
if ($this->request->isAjax()) {
|
||||
// $get = $this->request->get();
|
||||
// $this->_success('', OrderstaffLogic::orderlist($get));
|
||||
}
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
public function stafflist(){
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$this->_success('', OrderstaffLogic::stafflist($get));
|
||||
}
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user