feat: แสดงวันที่สร้าง service

This commit is contained in:
Net 2024-06-21 11:43:50 +07:00
parent 21b4b25110
commit 5253bdc9fa
2 changed files with 6 additions and 1 deletions

View file

@ -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'">

View file

@ -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;