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"
|
||||
:code="v.code"
|
||||
:title="v.workName"
|
||||
:created-at="new Date(v.createdAt).toLocaleString()"
|
||||
:valid-until="new Date(v.dueDate).toLocaleString()"
|
||||
:created-at="
|
||||
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}`)"
|
||||
:worker-count="v._count.worker"
|
||||
:worker-max="v.workerMax || v._count.worker"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue