|
|
@@ -28,26 +28,18 @@ class WaybillFinancialSnapshotsController extends Controller
|
|
|
{
|
|
|
if(!Gate::allows('财务报表-查询')){ return redirect(url('/')); }
|
|
|
$waybillFinancialSnapshots=WaybillFinancialSnapshot::orderBy('id', 'DESC');
|
|
|
+ $type='';
|
|
|
+ if ($request->type=='ZF'){
|
|
|
+ $waybillFinancialSnapshots=$waybillFinancialSnapshots->where('json_content','like','%直发车%');
|
|
|
+ $type='ZF';
|
|
|
+ }
|
|
|
+ if ($request->type=='ZX'){
|
|
|
+ $waybillFinancialSnapshots=$waybillFinancialSnapshots->where('json_content','like','%专线%');
|
|
|
+ $type='ZX';
|
|
|
+ }
|
|
|
$waybillFinancialSnapshots=$this->conditionQuery($request,$waybillFinancialSnapshots);
|
|
|
- return view('waybill.waybillFinancialSnapshot.index',['waybillFinancialSnapshots'=>$waybillFinancialSnapshots,'filterData'=>$request->input(),'type'=>'']);
|
|
|
- }
|
|
|
-
|
|
|
- public function indexZF(Request $request)
|
|
|
- {
|
|
|
- if(!Gate::allows('财务报表-查询')){ return redirect(url('/')); }
|
|
|
- $waybillFinancialSnapshots=WaybillFinancialSnapshot::orderBy('id', 'DESC')->where('json_content','like','%直发车%');
|
|
|
- $waybillFinancialSnapshots=$this->conditionQuery($request,$waybillFinancialSnapshots);
|
|
|
- return view('waybill.waybillFinancialSnapshot.index',['waybillFinancialSnapshots'=>$waybillFinancialSnapshots,'filterData'=>$request->input(),'type'=>'ZF']);
|
|
|
- }
|
|
|
-
|
|
|
- public function indexZX(Request $request)
|
|
|
- {
|
|
|
- if(!Gate::allows('财务报表-查询')){ return redirect(url('/')); }
|
|
|
- $waybillFinancialSnapshots=WaybillFinancialSnapshot::orderBy('id', 'DESC')->where('json_content','like','%专线%');
|
|
|
- $waybillFinancialSnapshots=$this->conditionQuery($request,$waybillFinancialSnapshots);
|
|
|
- return view('waybill.waybillFinancialSnapshot.index',['waybillFinancialSnapshots'=>$waybillFinancialSnapshots,'filterData'=>$request->input(),'type'=>'ZX']);
|
|
|
+ return view('waybill.waybillFinancialSnapshot.index',['waybillFinancialSnapshots'=>$waybillFinancialSnapshots,'filterData'=>$request->input(),'type'=>$type]);
|
|
|
}
|
|
|
-
|
|
|
public function export($id,Request $request){
|
|
|
if(!Gate::allows('财务报表-查询')){ return '没有权限'; }
|
|
|
if ($id==-1){
|