feat(procurement): 統一採購單按鈕樣式與術語更名為「作廢」,並加強權限控管
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 1m28s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-02-06 15:32:12 +08:00
parent 70f1709bd0
commit 6bfdd92347
11 changed files with 318 additions and 73 deletions

View File

@@ -18,6 +18,14 @@ export const STATUS_CONFIG: Record<
cancelled: { label: "已作廢", variant: "destructive" },
};
// 供下單/編輯頁面使用的手動狀態選項 (排除系統自動狀態)
export const MANUAL_STATUS_OPTIONS = [
{ value: 'draft', label: '草稿' },
{ value: 'pending', label: '送審中' },
{ value: 'approved', label: '已核准' },
{ value: 'cancelled', label: '已作廢' },
];
export const STATUS_OPTIONS = Object.entries(STATUS_CONFIG).map(([value, config]) => ({
value,
label: (config as any).label,