feat: แสดงวันที่สร้าง service
This commit is contained in:
parent
21b4b25110
commit
5253bdc9fa
2 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
|||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import AppBox from 'components/app/AppBox.vue';
|
||||
|
||||
import { dateFormat } from 'src/utils/datetime';
|
||||
|
||||
const addedProduct = ref<boolean>(false);
|
||||
|
||||
import { ProductList, Service } from 'src/stores/product-service/types';
|
||||
|
|
@ -26,6 +29,7 @@ withDefaults(
|
|||
price?: number;
|
||||
id?: string;
|
||||
process?: number;
|
||||
createdAt?: string;
|
||||
}>(),
|
||||
{
|
||||
isSelected: false,
|
||||
|
|
@ -158,7 +162,7 @@ withDefaults(
|
|||
class="surface-0 rounded q-pa-xs app-text-muted"
|
||||
size="20px"
|
||||
/>
|
||||
10 ม.ค 2024
|
||||
{{ dateFormat(createdAt) }}
|
||||
</div>
|
||||
|
||||
<div class="q-pr-md" v-if="typeProduct === 'product'">
|
||||
|
|
|
|||
|
|
@ -1123,6 +1123,7 @@ watch(currentStatus, async () => {
|
|||
:id="i.id"
|
||||
:title="i.name"
|
||||
:status="i.status === 'INACTIVE' ? true : false"
|
||||
:created-at="i.createdAt"
|
||||
@menuViewDetail="
|
||||
() => {
|
||||
currentIdProduct = i.id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue