Andrew Wallo 10 个月前
父节点
当前提交
a2e4dcacf7
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7
    5
      app/Filament/Company/Resources/Accounting/DocumentResource.php

+ 7
- 5
app/Filament/Company/Resources/Accounting/DocumentResource.php 查看文件

@@ -125,11 +125,13 @@ class DocumentResource extends Resource
125 125
                                     ->numeric()
126 126
                                     ->live()
127 127
                                     ->default(1),
128
-                                Forms\Components\TextInput::make('unit_price')
129
-                                    ->required()
130
-                                    ->live()
131
-                                    ->numeric()
132
-                                    ->default(0),
128
+                                Forms\Components\Group::make([
129
+                                    Forms\Components\TextInput::make('unit_price')
130
+                                        ->hiddenLabel()
131
+                                        ->live()
132
+                                        ->numeric()
133
+                                        ->default(0),
134
+                                ]),
133 135
                                 Forms\Components\Placeholder::make('total')
134 136
                                     ->hiddenLabel()
135 137
                                     ->content(function (Forms\Get $get) {

正在加载...
取消
保存