feat: adjust display date format
This commit is contained in:
parent
3c743913db
commit
82fc9dd908
1 changed files with 12 additions and 2 deletions
|
|
@ -561,8 +561,18 @@ async function storeDataLocal(id: string) {
|
||||||
:urgent="v.urgent"
|
:urgent="v.urgent"
|
||||||
:code="v.code"
|
:code="v.code"
|
||||||
:title="v.workName"
|
:title="v.workName"
|
||||||
:created-at="new Date(v.createdAt).toLocaleString()"
|
:created-at="
|
||||||
:valid-until="new Date(v.dueDate).toLocaleString()"
|
new Date(v.createdAt).toLocaleString('en-US', {
|
||||||
|
hour12: false,
|
||||||
|
})
|
||||||
|
"
|
||||||
|
:valid-until="
|
||||||
|
(() => {
|
||||||
|
const date = new Date(v.dueDate);
|
||||||
|
date.setHours(23, 59, 59, 0);
|
||||||
|
return date.toLocaleString('en-US', { hour12: false });
|
||||||
|
})()
|
||||||
|
"
|
||||||
:status="$t(`quotation.status.${v.quotationStatus}`)"
|
:status="$t(`quotation.status.${v.quotationStatus}`)"
|
||||||
:worker-count="v._count.worker"
|
:worker-count="v._count.worker"
|
||||||
:worker-max="v.workerMax || v._count.worker"
|
:worker-max="v.workerMax || v._count.worker"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue