_success('',$lists); } //获取等待审核物料的数据列表 public function material_list(){ $get = $this->request->get(); //获取前端传递过来的数据 $list = LeadershipLogic::material_list($get); $this->_success('获取成功',$list); } //点击审核通过 public function material_examine(){ $get = $this->request->get(); //获取前端传递过来的数据 $update=Db::name('erp_staff')->where('id',$get['id'])->update(['status'=>2]); $this->_success('审核通过'); } //点击审核不通过 public function material_notpass(){ $get = $this->request->get(); //获取前端传递过来的数据 $update=Db::name('erp_staff')->where('id',$get['id'])->update(['status'=>3,'reason'=>$get['data']]); $this->_success('审核通过'); } //获取报销的列表 public function finance_list(){ $get = $this->request->get(); //获取前端传递过来的数据 $list = LeadershipLogic::finance_list($get); $this->_success('获取成功',$list); } //报销审核通过 public function finance_examine(){ $get= $this->request->get(); //获取前端传递过来的数据 $info=Db::name('finance')->where('id',$get['id'])->find(); $update=Db::name('finance')->where('id',$get['id'])->update(['status'=>2,'staff_id'=>$get['staff_id']]); $order=Db::name('order_exe')->where('id',$info['order_id'])->update(['account'=>$info['pay']]); $this->_success('审核通过'); } //报销审核不通过的理由 public function finance_notpass(){ $get= $this->request->get(); //获取前端传递过来的数据 $update=Db::name('finance')->where('id',$get['id'])->update(['status'=>3,'reason'=>$get['data']]); $this->_success('修改状态成功'); } //获取报销的列表 public function addorder_list(){ $get = $this->request->get(); //获取前端传递过来的数据 $list = LeadershipLogic::addorder_list($get); $this->_success('获取成功',$list); } //加时间通过代码 public function addorder_examine(){ $get= $this->request->get(); //获取前端传递过来的数据 $info=Db::name('order_timeadd')->where('id',$get['id'])->find(); $update=Db::name('order_timeadd')->where('id',$get['id'])->update(['status'=>2,'staff_id'=>$get['staff_id']]); $order=Db::name('order_exe')->where('id',$info['orderid'])->update(['add'=>$info['minute']]); $this->_success('审核通过'); } //加时间审核不通过代码 public function addorder_notpass(){ $get= $this->request->get(); //获取前端传递过来的数据 $update=Db::name('order_timeadd')->where('id',$get['id'])->update(['status'=>3,'reason'=>$get['data']]); $this->_success('修改状态成功'); } //获取站长员工下面的信息 public function staff_list(){ $get= $this->request->get(); //获取前端传递过来的数据 $data=Db::name('leavesd') ->where('staff_id',$get['staff_id']) ->find(); if($data){ } $list = LeadershipLogic::staff_list($get); $this->_success('获取成功',$list); } }