|
@@ -21,7 +21,7 @@ class WaybillPriceModelsController extends Controller
|
|
|
public function index(Request $request)
|
|
public function index(Request $request)
|
|
|
{
|
|
{
|
|
|
if(!Gate::allows('计费模型-查询')){ return redirect(url('/')); }
|
|
if(!Gate::allows('计费模型-查询')){ return redirect(url('/')); }
|
|
|
- $logistics=app('LogisticService')->getSelection(["id","name"],"logistic");
|
|
|
|
|
|
|
+ $logistics=app('LogisticService')->getSelection(["id","name"],"物流");
|
|
|
$provinces=Province::query()->get();
|
|
$provinces=Province::query()->get();
|
|
|
$data=$request->input();
|
|
$data=$request->input();
|
|
|
$waybillPriceModels= WaybillPriceModel::query()->orderBy('id', 'DESC');
|
|
$waybillPriceModels= WaybillPriceModel::query()->orderBy('id', 'DESC');
|
|
@@ -44,7 +44,7 @@ class WaybillPriceModelsController extends Controller
|
|
|
public function create()
|
|
public function create()
|
|
|
{
|
|
{
|
|
|
if(!Gate::allows('计费模型-录入')){ return redirect(url('/')); }
|
|
if(!Gate::allows('计费模型-录入')){ return redirect(url('/')); }
|
|
|
- $logistics=app('LogisticService')->getSelection(["id","name"],"logistic");
|
|
|
|
|
|
|
+ $logistics=app('LogisticService')->getSelection(["id","name"],"物流");
|
|
|
$provinces=Province::get();
|
|
$provinces=Province::get();
|
|
|
$units=Unit::get();
|
|
$units=Unit::get();
|
|
|
return view('maintenance.priceModel.waybillPriceModel.create',['logistics'=>$logistics,'provinces'=>$provinces,'units'=>$units]);
|
|
return view('maintenance.priceModel.waybillPriceModel.create',['logistics'=>$logistics,'provinces'=>$provinces,'units'=>$units]);
|
|
@@ -101,7 +101,7 @@ class WaybillPriceModelsController extends Controller
|
|
|
{
|
|
{
|
|
|
if(!Gate::allows('计费模型-编辑')){ return redirect(url('/')); }
|
|
if(!Gate::allows('计费模型-编辑')){ return redirect(url('/')); }
|
|
|
$waybillPriceModel=WaybillPriceModel::find($id);
|
|
$waybillPriceModel=WaybillPriceModel::find($id);
|
|
|
- $logistics=app('LogisticService')->getSelection(["id","name"],"logistic");
|
|
|
|
|
|
|
+ $logistics=app('LogisticService')->getSelection(["id","name"],"物流");
|
|
|
$provinces=Province::get();
|
|
$provinces=Province::get();
|
|
|
$cities=City::where('province_id',$waybillPriceModel->province_id)->get();
|
|
$cities=City::where('province_id',$waybillPriceModel->province_id)->get();
|
|
|
$units=Unit::get();
|
|
$units=Unit::get();
|