|
|
@ -185,13 +185,15 @@ class IndustryProductBuy extends Form |
|
|
$this->{$v['type']}('info.' . $v['field'])->options(array_combine($v['options'], $v['options']))->required((bool)$v['required']); |
|
|
$this->{$v['type']}('info.' . $v['field'])->options(array_combine($v['options'], $v['options']))->required((bool)$v['required']); |
|
|
} else if ($v['type'] == 'image') { |
|
|
} else if ($v['type'] == 'image') { |
|
|
$this->multipleImage('info.' . $v['field'])->uniqueName()->saveFullUrl()->required((bool)$v['required']); |
|
|
$this->multipleImage('info.' . $v['field'])->uniqueName()->saveFullUrl()->required((bool)$v['required']); |
|
|
|
|
|
} else if ($v['type'] == 'datetime') { |
|
|
|
|
|
$this->datetime('info.' . $v['field'])->format($v['format'] ?? 'YYYY-MM-DD HH:mm')->required((bool)$v['required']); |
|
|
} else { |
|
|
} else { |
|
|
$this->{$v['type']}('info.' . $v['field'])->required((bool)$v['required']); |
|
|
$this->{$v['type']}('info.' . $v['field'])->required((bool)$v['required']); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$this->html(Alert::make(null, '产品信息')->info())->width(12); |
|
|
|
|
|
|
|
|
$this->html(Alert::make(null, '产品信息确认')->info())->width(12); |
|
|
$this->text('', '购买产品')->default($industry->title)->disable(); |
|
|
$this->text('', '购买产品')->default($industry->title)->disable(); |
|
|
$this->text('', '单价')->default($industry->price)->disable(); |
|
|
$this->text('', '单价')->default($industry->price)->disable(); |
|
|
$this->text('', '库存')->default($industry->stock)->disable(); |
|
|
$this->text('', '库存')->default($industry->stock)->disable(); |
|
|
|