liyinglin 2 years ago
parent b95256c23e
commit 6b95a2873c

@ -91,7 +91,7 @@ class ProductController extends CommonController
"model" => $vo
]);
$form->add("_previous", "hidden", ["value" => (url()->previous())]);
$this->modify("factor_id", 'select', ["label" => "统计价格因素",
$form->modify("factor_id", 'select', ["label" => "统计价格因素",
"choices" => (new Factor())->where('product_id', $request->id)->get()->pluck("name", "id")->toArray()]
);
return view($this->bladePath . ".create", compact("form", "project", "vo"));

Loading…
Cancel
Save