|
|
@@ -18,7 +18,7 @@ class WeighExceptedController extends Controller
|
|
|
*/
|
|
|
public function indexCreate(Request $request)
|
|
|
{
|
|
|
- if(!Gate::allows('称重信息-查看异常')){ return redirect(url('/')); }
|
|
|
+ if(!Gate::allows('称重管理-查看异常')){ return redirect(url('/')); }
|
|
|
$paginate=$request->input('paginate');
|
|
|
if ($paginate){
|
|
|
$weightExcepteds=Package::select('id','status','logistic_number','logistic_id','measuring_machine_id','created_at','weight','length','width','height','bulk','paper_box_id')->
|
|
|
@@ -32,7 +32,7 @@ class WeighExceptedController extends Controller
|
|
|
|
|
|
public function indexIssued(Request $request)
|
|
|
{
|
|
|
- if(!Gate::allows('称重信息-查看异常')){ return redirect(url('/')); }
|
|
|
+ if(!Gate::allows('称重管理-查看异常')){ return redirect(url('/')); }
|
|
|
$paginate=$request->input('paginate');
|
|
|
if ($paginate){
|
|
|
$weightExcepteds=Package::select('id','owner_id','logistic_number','created_at','delivery_number','batch_number','batch_rule','recipient','recipient_mobile','logistic_id')->
|
|
|
@@ -45,7 +45,7 @@ class WeighExceptedController extends Controller
|
|
|
}
|
|
|
|
|
|
public function export($id){
|
|
|
- if(!Gate::allows('称重信息-查看异常')){ return redirect(url('/')); }
|
|
|
+ if(!Gate::allows('称重管理-查看异常')){ return redirect(url('/')); }
|
|
|
if ($id==-1){
|
|
|
$id=[];
|
|
|
$packages=Package::where('status','上传异常')->orWhere('status','测量异常')->orWhere('status','记录异常')->orWhere('status','已上传异常')->orWhere('status','下发异常')->select('id')->get();
|