|
|
@@ -109,7 +109,7 @@ class PriceModelController extends Controller
|
|
|
$features = app("FeatureService")->getMapArray();
|
|
|
OwnerPriceOperation::$features = $features;
|
|
|
$models = app('OwnerPriceOperationService')->paginate($request->input(),["ownerPriceOperationOwners","ownerInStorageRule"=>function($query){$query->with("unit");}])->append("featureFormat");
|
|
|
- $owners = app("OwnerService")->getSelection();
|
|
|
+ $owners = app("OwnerService")->getIntersectPermitting();
|
|
|
return response()->view('maintenance.priceModel.operation.index',compact("models","owners"));
|
|
|
}
|
|
|
|
|
|
@@ -223,7 +223,7 @@ class PriceModelController extends Controller
|
|
|
|
|
|
public function operationCreate(){
|
|
|
if(!Gate::allows('计费模型-作业-录入')){ return redirect('denied'); }
|
|
|
- $owners = app("OwnerService")->getSelection();
|
|
|
+ $owners = app("OwnerService")->getIntersectPermitting();
|
|
|
$units = app('UnitService')->getSelection();
|
|
|
return response()->view('maintenance.priceModel.operation.create',compact("owners","units"));
|
|
|
}
|
|
|
@@ -279,7 +279,7 @@ class PriceModelController extends Controller
|
|
|
{
|
|
|
if(!Gate::allows('计费模型-作业-编辑')){ return redirect('denied'); }
|
|
|
$model = app('OwnerPriceOperationService')->find($id,true,["ownerPriceOperationOwners"]);
|
|
|
- $owners = app("OwnerService")->getSelection();
|
|
|
+ $owners = app("OwnerService")->getIntersectPermitting();
|
|
|
$units = app('UnitService')->getSelection();
|
|
|
return response()->view('maintenance.priceModel.operation.create',compact("owners","units","model"));
|
|
|
}
|
|
|
@@ -441,7 +441,7 @@ class PriceModelController extends Controller
|
|
|
public function expressCreate(){
|
|
|
if(!Gate::allows('计费模型-快递-录入')){ return redirect('denied'); }
|
|
|
$logistics = app("LogisticService")->getSelection();
|
|
|
- $owners = app("OwnerService")->getSelection();
|
|
|
+ $owners = app("OwnerService")->getIntersectPermitting();
|
|
|
return response()->view('maintenance.priceModel.express.create',compact("logistics","owners"));
|
|
|
}
|
|
|
|
|
|
@@ -468,7 +468,7 @@ class PriceModelController extends Controller
|
|
|
if(!Gate::allows('计费模型-快递-编辑')){ return redirect('denied'); }
|
|
|
/** @var OwnerPriceExpress $model */
|
|
|
$model = app('OwnerPriceExpressService')->find($id)->append(["owner_id","logistic_id"]);
|
|
|
- $owners = app("OwnerService")->getSelection();
|
|
|
+ $owners = app("OwnerService")->getIntersectPermitting();
|
|
|
$logistics = app('LogisticService')->getSelection();
|
|
|
return response()->view('maintenance.priceModel.express.create',compact("owners","logistics","model"));
|
|
|
}
|
|
|
@@ -535,7 +535,7 @@ class PriceModelController extends Controller
|
|
|
public function logisticCreate()
|
|
|
{
|
|
|
if(!Gate::allows('计费模型-物流-录入')){ return redirect('denied'); }
|
|
|
- $owners = app("OwnerService")->getSelection();
|
|
|
+ $owners = app("OwnerService")->getIntersectPermitting();
|
|
|
$logistics = app('LogisticService')->getSelection();
|
|
|
$units = app('UnitService')->getSelection();
|
|
|
return response()->view('maintenance.priceModel.logistic.create',compact("owners","logistics","units"));
|
|
|
@@ -567,7 +567,7 @@ class PriceModelController extends Controller
|
|
|
public function logisticEdit($id)
|
|
|
{
|
|
|
if(!Gate::allows('计费模型-物流-编辑')){ return redirect('denied'); }
|
|
|
- $owners = app("OwnerService")->getSelection();
|
|
|
+ $owners = app("OwnerService")->getIntersectPermitting();
|
|
|
$logistics = app('LogisticService')->getSelection();
|
|
|
$units = app('UnitService')->getSelection();
|
|
|
$model = app("OwnerPriceLogisticService")->find($id)->append(["owner_id","logistic_id"]);
|
|
|
@@ -796,7 +796,7 @@ class PriceModelController extends Controller
|
|
|
|
|
|
public function directLogisticCreate(){
|
|
|
if(!Gate::allows('计费模型-直发-录入')){ return redirect('denied'); }
|
|
|
- $owners = app("OwnerService")->getSelection();
|
|
|
+ $owners = app("OwnerService")->getIntersectPermitting();
|
|
|
return response()->view('maintenance.priceModel.directLogistic.create',compact("owners"));
|
|
|
}
|
|
|
|
|
|
@@ -829,7 +829,7 @@ class PriceModelController extends Controller
|
|
|
public function directLogisticEdit($id)
|
|
|
{
|
|
|
if(!Gate::allows('计费模型-直发-编辑')){ return redirect('denied'); }
|
|
|
- $owners = app("OwnerService")->getSelection();
|
|
|
+ $owners = app("OwnerService")->getIntersectPermitting();
|
|
|
$model = app("OwnerPriceDirectLogisticService")->find($id)->append("owner_id");
|
|
|
return response()->view('maintenance.priceModel.directLogistic.create',compact("model","owners"));
|
|
|
}
|