changes
This commit is contained in:
@@ -412,7 +412,7 @@ export default {
|
||||
this.coOwner = selectedPerson || null;
|
||||
},
|
||||
formatDate(date) {
|
||||
return date ? dayjs(date).format("DD/MM/YYYY") : "-";
|
||||
return date ? dayjs(date).format("L") : "-";
|
||||
},
|
||||
updateDueDate(newDate) {
|
||||
this.editableDueDate = newDate;
|
||||
|
||||
@@ -212,15 +212,13 @@ async function handleFileUpload(uploadedFiles) {
|
||||
>
|
||||
<p class="column is-3">
|
||||
<span>Từ ngày: </span>
|
||||
<span class="has-text-weight-semibold">{{
|
||||
txndetail.date ? $dayjs(txndetail.date).format("DD/MM/YYYY") : ""
|
||||
}}</span>
|
||||
<span class="has-text-weight-semibold">{{ txndetail.date ? $dayjs(txndetail.date).format("L") : "" }}</span>
|
||||
</p>
|
||||
|
||||
<p class="column is-3">
|
||||
<span>Đến ngày: </span>
|
||||
<span class="has-text-weight-semibold">{{
|
||||
txndetail.due_date ? $dayjs(txndetail.due_date).format("DD/MM/YYYY") : ""
|
||||
txndetail.due_date ? $dayjs(txndetail.due_date).format("L") : ""
|
||||
}}</span>
|
||||
</p>
|
||||
<p class="column is-3">
|
||||
|
||||
@@ -315,7 +315,7 @@
|
||||
<div class="field">
|
||||
<label class="label">{{ data && findFieldName("issued_date")[lang] }}</label>
|
||||
<div class="control">
|
||||
{{ record.issued_date ? $dayjs(record.issued_date).format("DD/MM/YYYY") : "/" }}
|
||||
{{ record.issued_date ? $dayjs(record.issued_date).format("L") : "/" }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -395,7 +395,7 @@
|
||||
<div class="field">
|
||||
<label class="label">{{ data && findFieldName("create-time")[lang] }}</label>
|
||||
<div class="control">
|
||||
<span>{{ $dayjs(transaction.create_time).format("DD/MM/YYYY HH:mm") }}</span>
|
||||
<span>{{ $dayjs(transaction.create_time).format("L HH:mm") }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1201,7 +1201,7 @@ export default {
|
||||
const postProductNotePayload = {
|
||||
ref: this.product.id,
|
||||
user: id,
|
||||
detail: `${username} ${this.isVietnamese ? "khóa sản phẩm trong" : "locked product for"} ${this.lockDurationMinutes} ${this.isVietnamese ? "phút đến lúc" : "minutes until"} ${this.$dayjs(lockedUntilValue).format("HH:mm:ss - DD/MM/YYYY")}`,
|
||||
detail: `${username} ${this.isVietnamese ? "khóa sản phẩm trong" : "locked product for"} ${this.lockDurationMinutes} ${this.isVietnamese ? "phút đến lúc" : "minutes until"} ${this.$dayjs(lockedUntilValue).format("HH:mm:ss - L")}`,
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user