feat: 统一页面布局与字体样式
This commit is contained in:
@@ -26,7 +26,14 @@ export function getContractStatus(contract: {
|
||||
hireDate: Date
|
||||
}): { status: string; statusText: string; riskLevel: 'high' | 'medium' | 'low' | 'safe' } {
|
||||
const today = new Date()
|
||||
const typeLabel = contract.contractType === 'FIXED' ? '固定期限' : contract.contractType === 'UNFIXED' ? '无固定期限' : ''
|
||||
const typeLabelMap: Record<string, string> = {
|
||||
FIXED: '固定期限',
|
||||
UNFIXED: '无固定期限',
|
||||
LABOR: '劳务协议',
|
||||
INTERNSHIP: '实习协议',
|
||||
UNSIGNED: '',
|
||||
}
|
||||
const typeLabel = typeLabelMap[contract.contractType] || ''
|
||||
|
||||
if (!contract.signDate || contract.contractType === 'UNSIGNED') {
|
||||
const days = daysBetween(today, contract.hireDate)
|
||||
|
||||
Reference in New Issue
Block a user