feat(procurement): 統一採購單按鈕樣式與術語更名為「作廢」,並加強權限控管
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user