changes
This commit is contained in:
@@ -269,7 +269,7 @@ const isUpdateValid = computed(() => {
|
||||
|
||||
const formatDate = (dateString) => {
|
||||
if (!dateString) return "-";
|
||||
return dayjs(dateString).format("DD/MM/YYYY");
|
||||
return dayjs(dateString).format("L");
|
||||
};
|
||||
|
||||
const fetchPaymentScheduleData = async () => {
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<div class="field">
|
||||
<label class="label">{{ isVietnamese ? "Ngày bút toán" : "Date" }}</label>
|
||||
<div class="control">
|
||||
<span>{{ entry.date ? $dayjs(entry.date).format("DD/MM/YYYY") : "/" }}</span>
|
||||
<span>{{ entry.date ? $dayjs(entry.date).format("L") : "/" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -207,7 +207,7 @@
|
||||
<div class="field">
|
||||
<label class="label">{{ isVietnamese ? "Thời gian" : "Create Time" }}</label>
|
||||
<div class="control">
|
||||
<span>{{ entry.create_time ? $dayjs(entry.create_time).format("DD/MM/YYYY HH:mm") : "/" }}</span>
|
||||
<span>{{ entry.create_time ? $dayjs(entry.create_time).format("L HH:mm") : "/" }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -367,7 +367,7 @@ const isInvoiceAllowed = computed(() => paymentScheduleData.value?.status === 2)
|
||||
|
||||
const formatDate = (dateString) => {
|
||||
if (!dateString) return "-";
|
||||
return dayjs(dateString).format("DD/MM/YYYY");
|
||||
return dayjs(dateString).format("L");
|
||||
};
|
||||
|
||||
const getEntryTypeLabel = (type) => {
|
||||
@@ -430,8 +430,8 @@ const processedEntries = computed(() => {
|
||||
rate: Number(entry.DAILY_PENALTY_RATE || 0) * 100,
|
||||
totalDebt: Number(entry.amount_remain_after_allocation || 0) + penaltyThisPeriod,
|
||||
penaltyDetail: {
|
||||
from: lastEventDate.format("DD/MM/YYYY"),
|
||||
to: entryDate.format("DD/MM/YYYY"),
|
||||
from: lastEventDate.format("L"),
|
||||
to: entryDate.format("L"),
|
||||
days,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user