创建时间
This commit is contained in:
parent
1d2587422f
commit
f63eb4ad70
|
|
@ -163,7 +163,7 @@ public class AllocationService : IAllocationService
|
||||||
Unit = unit,
|
Unit = unit,
|
||||||
TotalQuota = totalQuota,
|
TotalQuota = totalQuota,
|
||||||
CreatedByUnitId = createdByUnitId,
|
CreatedByUnitId = createdByUnitId,
|
||||||
CreatedAt = DateTime.UtcNow
|
CreatedAt = DateTime.Now
|
||||||
};
|
};
|
||||||
|
|
||||||
_context.MaterialAllocations.Add(allocation);
|
_context.MaterialAllocations.Add(allocation);
|
||||||
|
|
|
||||||
|
|
@ -436,6 +436,7 @@ const filteredAllocations = computed(() => {
|
||||||
})
|
})
|
||||||
|
|
||||||
function formatDate(dateStr: string): string {
|
function formatDate(dateStr: string): string {
|
||||||
|
if (!dateStr) return '-'
|
||||||
const date = new Date(dateStr)
|
const date = new Date(dateStr)
|
||||||
const year = date.getFullYear()
|
const year = date.getFullYear()
|
||||||
const month = String(date.getMonth() + 1).padStart(2, '0')
|
const month = String(date.getMonth() + 1).padStart(2, '0')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user