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