상세계약 설정 버튼 명칭 변경 및 배치 순서 조정
This commit is contained in:
@@ -3384,23 +3384,37 @@
|
||||
<td className="px-6 py-4 text-slate-400 text-xs">{t.created_at?.split(' ')[0]}</td>
|
||||
<td className="px-6 py-4 text-center">
|
||||
<div className="flex items-center gap-2 justify-center">
|
||||
{currentRole === '영업관리' && (
|
||||
<button
|
||||
onClick={() => setActiveSalesScenarioTenant(t)}
|
||||
className="px-3 py-1.5 bg-blue-600 text-white rounded-lg font-bold hover:bg-blue-700 transition-all border border-blue-700 flex items-center gap-1 shadow-sm"
|
||||
>
|
||||
<LucideIcon name="trending-up" className="w-3.5 h-3.5" />
|
||||
영업 진행
|
||||
</button>
|
||||
{(currentRole === '영업관리' || currentRole === '운영자') && (
|
||||
<button
|
||||
onClick={() => setActiveSalesScenarioTenant(t)}
|
||||
className="px-3 py-1.5 bg-blue-600 text-white rounded-lg font-bold hover:bg-blue-700 transition-all border border-blue-700 flex items-center gap-1 shadow-sm"
|
||||
>
|
||||
<LucideIcon name="trending-up" className="w-3.5 h-3.5" />
|
||||
영업 진행
|
||||
</button>
|
||||
)}
|
||||
{(currentRole === '매니저' || (currentRole === '영업관리' && t.sales_manager_id == currentUser.id)) && (
|
||||
<button
|
||||
onClick={() => setActiveManagerScenarioTenant(t)}
|
||||
className="px-3 py-1.5 bg-emerald-600 text-white rounded-lg font-bold hover:bg-emerald-700 transition-all border border-emerald-700 flex items-center gap-1 shadow-sm"
|
||||
>
|
||||
<LucideIcon name="clipboard-check" className="w-3.5 h-3.5" />
|
||||
매니저 진행
|
||||
</button>
|
||||
|
||||
{(currentRole === '영업관리' || currentRole === '운영자') && !(t.register_role === 'operator' && currentRole !== '운영자') && (
|
||||
<button
|
||||
onClick={() => {
|
||||
setSelectedTenant(t);
|
||||
setIsProductModalOpen(true);
|
||||
}}
|
||||
className="px-3 py-1.5 bg-indigo-600 text-white rounded-lg font-bold hover:bg-indigo-700 transition-all border border-indigo-700 flex items-center gap-1 shadow-sm"
|
||||
>
|
||||
<LucideIcon name="settings-2" className="w-3.5 h-3.5" />
|
||||
상세계약 설정
|
||||
</button>
|
||||
)}
|
||||
|
||||
{(currentRole === '매니저' || currentRole === '운영자' || (currentRole === '영업관리' && t.sales_manager_id == currentUser.id)) && (
|
||||
<button
|
||||
onClick={() => setActiveManagerScenarioTenant(t)}
|
||||
className="px-3 py-1.5 bg-emerald-600 text-white rounded-lg font-bold hover:bg-emerald-700 transition-all border border-emerald-700 flex items-center gap-1 shadow-sm"
|
||||
>
|
||||
<LucideIcon name="clipboard-check" className="w-3.5 h-3.5" />
|
||||
매니저 진행
|
||||
</button>
|
||||
)}
|
||||
|
||||
{!(t.register_role === 'operator' && currentRole !== '운영자') && (
|
||||
@@ -3592,8 +3606,8 @@
|
||||
}}
|
||||
className="px-4 py-2 bg-indigo-50 text-indigo-600 rounded-lg font-bold hover:bg-indigo-100 transition-all border border-indigo-100 flex items-center gap-1"
|
||||
>
|
||||
<LucideIcon name="plus-circle" className="w-4 h-4" />
|
||||
계약 추가
|
||||
<LucideIcon name="settings-2" className="w-4 h-4" />
|
||||
상세계약 설정
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user