優化: 門市叫貨模組 UI 調整、權限標籤中文化及調撥單動態導覽
This commit is contained in:
@@ -195,21 +195,28 @@ export default function Show({ order }: any) {
|
||||
<AuthenticatedLayout
|
||||
breadcrumbs={[
|
||||
{ label: '商品與庫存管理', href: '#' },
|
||||
{ label: '庫存調撥', href: route('inventory.transfer.index') },
|
||||
{
|
||||
label: order.requisition ? '門市叫貨申請' : '庫存調撥',
|
||||
href: order.requisition ? route('store-requisitions.index') : route('inventory.transfer.index')
|
||||
},
|
||||
order.requisition && {
|
||||
label: `叫貨單: ${order.requisition.doc_no}`,
|
||||
href: route('store-requisitions.show', [order.requisition.id])
|
||||
},
|
||||
{ label: `調撥單: ${order.doc_no}`, href: route('inventory.transfer.show', [order.id]), isPage: true },
|
||||
]}
|
||||
].filter(Boolean) as any}
|
||||
>
|
||||
<Head title={`調撥單 ${order.doc_no}`} />
|
||||
|
||||
<div className="container mx-auto p-6 max-w-7xl animate-in fade-in duration-500 space-y-6">
|
||||
<div>
|
||||
<Link href={route('inventory.transfer.index')}>
|
||||
<Link href={order.requisition ? route('store-requisitions.show', [order.requisition.id]) : route('inventory.transfer.index')}>
|
||||
<Button
|
||||
variant="outline"
|
||||
className="gap-2 button-outlined-primary mb-6"
|
||||
>
|
||||
<ArrowLeft className="h-4 w-4" />
|
||||
返回調撥單列表
|
||||
{order.requisition ? `返回叫貨單: ${order.requisition.doc_no}` : '返回調撥單列表'}
|
||||
</Button>
|
||||
</Link>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user