changes
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
</p>
|
||||
<p class="is-size-7 has-text-white-bis">
|
||||
{{ $formatFileSize(file.file__size) }} •
|
||||
{{ $dayjs(file.create_time).format("DD/MM/YYYY HH:mm") }}
|
||||
{{ $dayjs(file.create_time).format("L HH:mm") }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -853,8 +853,8 @@ export default {
|
||||
originalCalculatedAmount: originalAmount,
|
||||
discountAmount: earlyDetail.discountAmount,
|
||||
netAmount: earlyDetail.netAmount,
|
||||
actualDueDate: this.calculationStartDate.format("DD/MM/YYYY"),
|
||||
dueDate: plan.days > 0 ? this.calculationStartDate.add(plan.days, "day").format("DD/MM/YYYY") : null,
|
||||
actualDueDate: this.calculationStartDate.format("L"),
|
||||
dueDate: plan.days > 0 ? this.calculationStartDate.add(plan.days, "day").format("L") : null,
|
||||
displayValue: plan.type === 1 ? `${plan.value}%` : this.$numtoString(plan.value),
|
||||
};
|
||||
} else {
|
||||
@@ -865,7 +865,7 @@ export default {
|
||||
discountAmount: 0,
|
||||
netAmount: originalAmount,
|
||||
actualDueDate: null,
|
||||
dueDate: plan.days > 0 ? this.calculationStartDate.add(plan.days, "day").format("DD/MM/YYYY") : null,
|
||||
dueDate: plan.days > 0 ? this.calculationStartDate.add(plan.days, "day").format("L") : null,
|
||||
displayValue: plan.type === 1 ? `${plan.value}%` : this.$numtoString(plan.value),
|
||||
};
|
||||
}
|
||||
@@ -891,7 +891,7 @@ export default {
|
||||
const daysDiff = plan.days || 0;
|
||||
if (daysDiff > 0) {
|
||||
const dueDateObj = this.calculationStartDate.add(daysDiff, "day");
|
||||
dueDate = dueDateObj.format("DD/MM/YYYY");
|
||||
dueDate = dueDateObj.format("L");
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -927,7 +927,7 @@ export default {
|
||||
isEarlyPaymentMerged: true,
|
||||
calculatedAmount: this.totalEarlyPayment - (this.selectedPolicy.deposit || 0),
|
||||
days: 0,
|
||||
dueDate: this.calculationStartDate.format("DD/MM/YYYY"),
|
||||
dueDate: this.calculationStartDate.format("L"),
|
||||
payment_note: "Thanh toán sớm gộp",
|
||||
displayValue: "-",
|
||||
isFirstPlan: true,
|
||||
@@ -942,7 +942,7 @@ export default {
|
||||
const daysDiff = plan.days || 0;
|
||||
if (daysDiff > 0) {
|
||||
const dueDateObj = this.calculationStartDate.add(daysDiff, "day");
|
||||
dueDate = dueDateObj.format("DD/MM/YYYY");
|
||||
dueDate = dueDateObj.format("L");
|
||||
}
|
||||
|
||||
displayPlans.push({
|
||||
@@ -963,9 +963,7 @@ export default {
|
||||
calculatedPlans() {
|
||||
if (this.isPrecalculated && this.paymentPlans && this.paymentPlans.length > 0) {
|
||||
return this.paymentPlans.map((plan, index) => {
|
||||
const dueDate = plan.due_days
|
||||
? this.calculationStartDate.add(plan.due_days, "day").format("DD/MM/YYYY")
|
||||
: null;
|
||||
const dueDate = plan.due_days ? this.calculationStartDate.add(plan.due_days, "day").format("L") : null;
|
||||
return {
|
||||
...plan,
|
||||
displayCycle: plan.cycle || index + 1,
|
||||
@@ -1039,7 +1037,7 @@ export default {
|
||||
return this.enableEarlyPayment;
|
||||
},
|
||||
formatDate(date) {
|
||||
return dayjs(date).format("DD/MM/YYYY");
|
||||
return dayjs(date).format("L");
|
||||
},
|
||||
|
||||
handleEarlyPaymentToggle() {
|
||||
|
||||
@@ -721,7 +721,7 @@ const totalPaid = computed(() => {
|
||||
|
||||
const formatDate = (date) => {
|
||||
if (!date) return "-";
|
||||
return dayjs(date).format("DD/MM/YYYY");
|
||||
return dayjs(date).format("L");
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1195,7 +1195,7 @@ function handleContractUpdated(eventData) {
|
||||
|
||||
function formatDate(dateString) {
|
||||
if (!dateString) return "-";
|
||||
return dayjs(dateString).format("DD/MM/YYYY");
|
||||
return dayjs(dateString).format("L");
|
||||
}
|
||||
|
||||
function showCustomerDetails() {
|
||||
|
||||
Reference in New Issue
Block a user