生产管理系统 - 业务融合,决策模拟,决策日志提交

This commit is contained in:
2025-11-03 10:31:39 +08:00
parent c942a2ce07
commit fdeb455e47
16 changed files with 5377 additions and 39 deletions

View File

@@ -503,10 +503,10 @@ export function AIBusinessFusion({ activePath }: AIBusinessFusionProps) {
const getLevelBadge = (level: DecisionLevel) => {
const config = {
critical: { label: '紧急', className: 'bg-error-muted text-error-muted-foreground border-error' },
important: { label: '重要', className: 'bg-warning-muted text-warning-muted-foreground border-warning' },
normal: { label: '一般', className: 'bg-info-muted text-info-muted-foreground border-info' },
suggestion: { label: '建议', className: 'bg-success-muted text-success-muted-foreground border-success' },
critical: { label: '紧急', className: 'bg-red-50 text-red-700 border-red-200' },
important: { label: '重要', className: 'bg-amber-50 text-amber-700 border-amber-200' },
normal: { label: '一般', className: 'bg-sky-50 text-sky-700 border-sky-200' },
suggestion: { label: '建议', className: 'bg-emerald-50 text-emerald-700 border-emerald-200' },
};
const { label, className } = config[level];
return <Badge variant="outline" className={className}>{label}</Badge>;
@@ -514,8 +514,8 @@ export function AIBusinessFusion({ activePath }: AIBusinessFusionProps) {
const getSourceBadge = (source: DecisionSource) => {
const config = {
auto: { label: '自动生成', className: 'bg-accent text-accent-foreground border-accent', icon: Brain },
manual: { label: '手动添加', className: 'bg-info-muted text-info-muted-foreground border-info', icon: User },
auto: { label: '自动生成', className: 'bg-emerald-50 text-emerald-700 border-emerald-200', icon: Brain },
manual: { label: '手动添加', className: 'bg-sky-50 text-sky-700 border-sky-200', icon: User },
};
const { label, className, icon: Icon } = config[source];
return (
@@ -528,8 +528,8 @@ export function AIBusinessFusion({ activePath }: AIBusinessFusionProps) {
const getExecutionModeBadge = (mode: ExecutionMode) => {
const config = {
manual: { label: '手动执行', className: 'bg-info-muted text-info-muted-foreground border-info', icon: User },
auto: { label: '自动执行', className: 'bg-success-muted text-success-muted-foreground border-success', icon: Zap },
manual: { label: '手动执行', className: 'bg-sky-50 text-sky-700 border-sky-200', icon: User },
auto: { label: '自动执行', className: 'bg-emerald-50 text-emerald-700 border-emerald-200', icon: Zap },
};
const { label, className, icon: Icon } = config[mode];
return (