liyinglin 3 years ago
parent 00b0fdac27
commit 488a080e68

@ -10,49 +10,21 @@ class AskSubmitForm extends Form
{ {
public function buildForm() public function buildForm()
{ {
$this->add("name", Field::TEXT, ["label" => "名称", "rules" => "required"]);
$this->add("project_id", Field::HIDDEN, ["label" => "所属项目/医院", "rules" => "required"]); $this->add("project_id", Field::HIDDEN, ["label" => "所属项目/医院", "rules" => "required"]);
$this->add("poster", Field::TEXT, ["label" => "产品图标", "attr" => ["data-plugin" => "uploader"]]);
// $this->add("profile", Field::TEXT, ["label" => "简介"]);
$this->add("fee_type", Field::SELECT, ["label" => "管理费模式", "choices" => [
"factor" => "按产品型号",
"patient_quantity" => "按陪护数量",
"price_level" => "按价格阶梯"
]]);
$this->add('productItems', 'collection', [
'type' => 'form',
'label' => "产品定价",
'options' => [
'class' => 'App\Forms\ProductItemForm',
'label' => false
]
]);
$this->add('productParamedicLevels', 'collection', [
'type' => 'form',
'label' => "护工级别价格因素",
'options' => [
'class' => 'App\Forms\ProductParamedicLevelForm',
'label' => false
]
]);
$this->add("factors", Field::STATIC, ["label" => "产品型号"]);
$this->add('productFeeLevels', 'collection', [
'type' => 'form',
'label' => "管理费阶梯",
'options' => [
'class' => 'App\Forms\ProductFeeLevelForm',
'label' => false
]
]);
$this->add('lastdayCheckoutRules', 'collection', [
'type' => 'form',
'label' => "出院日结算规则",
'options' => [
'class' => 'App\Forms\LastdayCheckoutRuleForm',
'label' => false
]
]);
$this->add("visit", Field::TEXT, ["label" => "拜访人员", "rules" => "required"]);
$this->add("date", Field::DATE, ["label" => "考核日期", "rules" => "required"]);
$this->add("department", Field::DATE, ["label" => "科室", "rules" => "required"]);
$this->add("ask[]", Field::SELECT, ["label" => "遵守医院各项规章制度,维持秩序。", "choices" => [
"20" => "满意-20",
"19" => "满意-19",
"18" => "满意18",
"17" => "较满意-17",
"16" => "较满意-16",
"15" => "较满意-15",
"14" => "开放",
]]);
$this->add("tip", Field::TEXTAREA, ["label" => "建议"]);
$this->add('buttons', 'buttongroup', ["splitted" => true, "buttons" => [ $this->add('buttons', 'buttongroup', ["splitted" => true, "buttons" => [
["label" => "保存", "attr" => ["class" => "btn btn-primary mr-1", "type" => "submit"]], ["label" => "保存", "attr" => ["class" => "btn btn-primary mr-1", "type" => "submit"]],
["label" => "返回", "attr" => ["class" => "btn btn-light btn-back", "type" => "button"]] ["label" => "返回", "attr" => ["class" => "btn btn-light btn-back", "type" => "button"]]

@ -11,6 +11,7 @@ namespace App\Http\Controllers\Admin;
use App\Admin; use App\Admin;
use App\Events\ProjectSaved; use App\Events\ProjectSaved;
use App\Exports\CommonExport; use App\Exports\CommonExport;
use App\Forms\AskSubmitForm;
use App\Forms\ProjectForm; use App\Forms\ProjectForm;
use App\Models\AdminAreaLink; use App\Models\AdminAreaLink;
use App\Models\Area; use App\Models\Area;
@ -313,12 +314,16 @@ class ProjectController extends CommonController
} }
public function askSubmitCreate() public function askSubmitCreate(FormBuilder $formBuilder)
{ {
$data = [];
return view($this->bladePath . ".asksubmit_create", compact("data")); $form = $formBuilder->create(AskSubmitForm::class, [
"method" => "POST",
"id" => "fm",
"url" => url($this->urlPrefix . "/asksubmit_store")
]);
return view($this->bladePath . ".asksubmit_create", compact("form"));
} }
public function askSubmitEdit() public function askSubmitEdit()

Loading…
Cancel
Save