sunhao 5 years ago
parent
commit
bc2c687191

+ 1 - 0
app/Http/Controllers/Admin/CustReportController.php

@@ -406,6 +406,7 @@ class custReportController extends Controller
406 406
             'teamlist'         =>$teamList,
407 407
             'noReportSaler'         =>$noReportSaler,
408 408
             'no_height'         =>$no_height,
409
+            'self_role'         =>$self_role,
409 410
             ]);
410 411
     }
411 412
 

+ 2 - 0
resources/views/custreport/detaillist.blade.php

@@ -28,7 +28,9 @@
28 28
                
29 29
                 
30 30
                     <a style="margin-left: 5px" class="btn btn-primary radius" onclick="user_search()" href="javascript:;">搜索</a>
31
+                    @if($self_role != '销售')
31 32
                     <a style="margin-left: 5px" class="btn btn-danger radius" onclick="look_noreport()" href="javascript:;">查看未上报数据销售</a>
33
+                    @endif
32 34
                     <a class="btn btn-primary radius" onclick="custreport_export()" href="javascript:;"> 导出</a>
33 35
                 
34 36
             </div>