-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 更新了订单发货页面的布局和功能- 添加了卖家备注功能 - 优化了订单信息的显示- 改进了发货表单的交互
- Loading branch information
1 parent
9a92066
commit f3fe909
Showing
5 changed files
with
176 additions
and
60 deletions.
There are no files selected for viewing
28 changes: 18 additions & 10 deletions
28
packages/filament-order/resources/views/resources/order-resource/pages/shipping.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
<x-filament-panels::page> | ||
@if ($this->hasInfolist()) | ||
{{ $this->infolist }} | ||
@endif | ||
|
||
@foreach($forms as $form) | ||
<x-filament-panels::form | ||
:wire:key="$this->getId() . '.forms.'.$form" | ||
:wire:submit="$form.'Submit'" | ||
> | ||
{{ $this->{$form} }} | ||
|
||
<x-filament-panels::form.actions | ||
:actions="$this->getCachedFormActions()" | ||
:full-width="$this->hasFullWidthFormActions()" | ||
/> | ||
</x-filament-panels::form> | ||
|
||
|
||
@endforeach | ||
|
||
<x-filament-panels::form | ||
:wire:key="$this->getId() . '.forms.dummy'" | ||
wire:submit="dummy" | ||
> | ||
{{ $this->form }} | ||
|
||
<x-filament-panels::form.actions | ||
:actions="$this->getCachedFormActions()" | ||
:full-width="$this->hasFullWidthFormActions()" | ||
/> | ||
</x-filament-panels::form> | ||
|
||
|
||
</x-filament-panels::page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...filament-order/src/Clusters/Order/Resources/OrderResource/Actions/SellerRemarksAction.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace RedJasmine\FilamentOrder\Clusters\Order\Resources\OrderResource\Actions; | ||
|
||
use Filament\Forms; | ||
|
||
use Filament\Tables\Actions\Action; | ||
|
||
class SellerRemarksAction extends Action | ||
{ | ||
|
||
protected function setUp() : void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->label('卖家备注'); | ||
$this->color('primary'); | ||
$this->modalWidth('lg'); | ||
$this->modalHeading('卖家备注'); | ||
$this->fillForm(fn($record) : array => [ | ||
|
||
'remarks' => $record->info->{$this->name} | ||
]); | ||
$this->form([ | ||
Forms\Components\Textarea::make('remarks') | ||
]); | ||
|
||
$this->action(function ($data, $record) { | ||
|
||
|
||
dd($this->name, $data, $record); | ||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters