Commit 8600e478 authored by hujun's avatar hujun

约带看

parent 1e0867fd
...@@ -31,6 +31,9 @@ class Report extends Basic ...@@ -31,6 +31,9 @@ class Report extends Basic
$m_report = new OReportModel(); $m_report = new OReportModel();
$m_agent = new AAgents(); $m_agent = new AAgents();
switch ($this->params['check_status']) { switch ($this->params['check_status']) {
case 0 :
$where['a.report_agent_id'] = $this->userId;
break;
case 1 : case 1 :
$store_id = $m_agent->getAgentFieldById($this->userId, 'store_id'); $store_id = $m_agent->getAgentFieldById($this->userId, 'store_id');
$where['d.store_id'] = $store_id; $where['d.store_id'] = $store_id;
......
...@@ -381,8 +381,9 @@ Route::group('index', [ ...@@ -381,8 +381,9 @@ Route::group('index', [
'addSite' => ['index/Site/addSite', ['method' => 'POST|GET']], //获取站点列表 朱伟 2018-10-18 'addSite' => ['index/Site/addSite', ['method' => 'POST|GET']], //获取站点列表 朱伟 2018-10-18
'getSiteList' => ['index/Site/getSiteList', ['method' => 'POST|GET']], //获取站点列表 朱伟 2018-10-18 'getSiteList' => ['index/Site/getSiteList', ['method' => 'POST|GET']], //获取站点列表 朱伟 2018-10-18
'delImageDepot_Site' => ['index/Site/delImageDepot', ['method' => 'POST|GET']], //关闭或开启站点 朱伟 2018-10-18 'delImageDepot_Site' => ['index/Site/delImageDepot', ['method' => 'POST|GET']], //关闭或开启站点 朱伟 2018-10-18
'inspectionRecordStore/:check_status' => ['index/Report/inspectionRecordAll', ['method' => 'GET'], ['check_status'=>1]], //全部约带看 'inspectionRecordOur/:check_status' => ['index/Report/inspectionRecordAll', ['method' => 'GET'],['check_status'=>0]], //我的约带看
'inspectionRecordDistrict/:check_status' => ['index/Report/inspectionRecordAll', ['method' => 'GET'],['check_status'=>2]], //全部约带看 'inspectionRecordStore/:check_status' => ['index/Report/inspectionRecordAll', ['method' => 'GET'], ['check_status'=>1]], //门店约带看
'inspectionRecordDistrict/:check_status' => ['index/Report/inspectionRecordAll', ['method' => 'GET'],['check_status'=>2]], //部门约带看
'inspectionRecordAll/:check_status' => ['index/Report/inspectionRecordAll', ['method' => 'GET'],['check_status'=>3]], //全部约带看 'inspectionRecordAll/:check_status' => ['index/Report/inspectionRecordAll', ['method' => 'GET'],['check_status'=>3]], //全部约带看
'setSite' => ['index/auth/setSite', ['method' => 'GET|POST']], //设置角色站点 'setSite' => ['index/auth/setSite', ['method' => 'GET|POST']], //设置角色站点
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment