|
|
@@ -88,7 +88,6 @@ class WaybillController extends Controller
|
|
|
|
|
|
public function edit($id,LogisticService $logisticService,CarTypeService $carTypeService,UnitService $unitService)
|
|
|
{
|
|
|
- //if(!Gate::allows('运输管理-编辑')){ return redirect(url('denied')); }
|
|
|
$waybill = app('waybillService')->find($id);
|
|
|
if ($waybill->order_id){
|
|
|
/** @var Waybill $waybill */
|
|
|
@@ -109,7 +108,7 @@ class WaybillController extends Controller
|
|
|
$units=$unitService->getSelection();
|
|
|
$carTypes=$carTypeService->getSelection();
|
|
|
$deliveryType = app('DeliveryTypeService')->getSelection();
|
|
|
- return view('transport.waybill.edit',['waybill'=>$waybill,'logistics'=>$logisticService->getSelection(["id","name"],"物流"),'cities'=>$cities,'units'=>$units,'carTypes'=>$carTypes,'deliveryTypes'=>$deliveryType]);
|
|
|
+ return view('transport.waybill.edit',['waybill'=>$waybill,'logistics'=>$logisticService->getSelection(["id","name","tag"],"物流"),'cities'=>$cities,'units'=>$units,'carTypes'=>$carTypes,'deliveryTypes'=>$deliveryType]);
|
|
|
}
|
|
|
|
|
|
public function update(Request $request, $id,WaybillPriceModelService $waybillPriceModelService,
|