创建时间

This commit is contained in:
18631081161 2026-01-16 15:15:26 +08:00
parent 1d2587422f
commit f63eb4ad70
2 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,7 @@ public class AllocationService : IAllocationService
Unit = unit,
TotalQuota = totalQuota,
CreatedByUnitId = createdByUnitId,
CreatedAt = DateTime.UtcNow
CreatedAt = DateTime.Now
};
_context.MaterialAllocations.Add(allocation);

View File

@ -436,6 +436,7 @@ const filteredAllocations = computed(() => {
})
function formatDate(dateStr: string): string {
if (!dateStr) return '-'
const date = new Date(dateStr)
const year = date.getFullYear()
const month = String(date.getMonth() + 1).padStart(2, '0')