生产管理系统 - 提交审核开发

This commit is contained in:
2025-11-05 09:09:28 +08:00
parent c386350df5
commit d751fc10a7
3 changed files with 252 additions and 68 deletions

View File

@@ -6,6 +6,7 @@ import { Edit, Save, X } from 'lucide-react';
interface EnterpriseInfoHeaderProps {
isEditing: boolean;
loading?: boolean;
onEdit: () => void;
onCancel: () => void;
onSave: () => void;
@@ -13,6 +14,7 @@ interface EnterpriseInfoHeaderProps {
export function EnterpriseInfoHeader({
isEditing,
loading = false,
onEdit,
onCancel,
onSave
@@ -30,13 +32,13 @@ export function EnterpriseInfoHeader({
</Button>
) : (
<div className="flex gap-2">
<Button variant="outline" onClick={onCancel}>
<Button variant="outline" onClick={onCancel} disabled={loading}>
<X className="w-4 h-4 mr-2" />
</Button>
<Button onClick={onSave}>
<Button onClick={onSave} disabled={loading}>
<Save className="w-4 h-4 mr-2" />
{loading ? '保存中...' : '提交审核'}
</Button>
</div>
)}