fix(supply-chain): 修正出貨單詳情頁組件匯入錯誤以修復正式站編譯失敗
This commit is contained in:
@@ -1,16 +1,17 @@
|
|||||||
import { ArrowLeft, Package, Clock, User, CheckCircle2, AlertCircle, Trash2, Edit } from "lucide-react";
|
import { ArrowLeft, Package, Info, CheckCircle2, AlertCircle, Trash2, Edit } from "lucide-react";
|
||||||
import { Button } from "@/Components/ui/button";
|
import { Button } from "@/Components/ui/button";
|
||||||
import AuthenticatedLayout from "@/Layouts/AuthenticatedLayout";
|
import AuthenticatedLayout from "@/Layouts/AuthenticatedLayout";
|
||||||
import { Head, Link, router } from "@inertiajs/react";
|
import { Head, Link, router } from "@inertiajs/react";
|
||||||
import { Badge } from "@/Components/ui/badge";
|
import { Badge } from "@/Components/ui/badge";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import ActivityLogSection from "@/Components/ActivityLog/ActivityLogSection";
|
import ActivityLog from "@/Components/ActivityLog/ActivityLog";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
order: any;
|
order: any;
|
||||||
|
activities: any[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function ShippingOrderShow({ order }: Props) {
|
export default function ShippingOrderShow({ order, activities = [] }: Props) {
|
||||||
const isDraft = order.status === 'draft';
|
const isDraft = order.status === 'draft';
|
||||||
const isCompleted = order.status === 'completed';
|
const isCompleted = order.status === 'completed';
|
||||||
|
|
||||||
@@ -171,9 +172,8 @@ export default function ShippingOrderShow({ order }: Props) {
|
|||||||
|
|
||||||
{/* 活動日誌區塊 */}
|
{/* 活動日誌區塊 */}
|
||||||
<div className="mt-8">
|
<div className="mt-8">
|
||||||
<ActivityLogSection
|
<ActivityLog
|
||||||
targetType="App\Modules\Procurement\Models\ShippingOrder"
|
activities={activities}
|
||||||
targetId={order.id}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user