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"> <script setup lang="ts">
import { ref } from 'vue'; import { ref } from 'vue';
import AppBox from 'components/app/AppBox.vue'; import AppBox from 'components/app/AppBox.vue';
import { dateFormat } from 'src/utils/datetime';
const addedProduct = ref<boolean>(false); const addedProduct = ref<boolean>(false);
import { ProductList, Service } from 'src/stores/product-service/types'; import { ProductList, Service } from 'src/stores/product-service/types';
@ -26,6 +29,7 @@ withDefaults(
price?: number; price?: number;
id?: string; id?: string;
process?: number; process?: number;
createdAt?: string;
}>(), }>(),
{ {
isSelected: false, isSelected: false,
@ -158,7 +162,7 @@ withDefaults(
class="surface-0 rounded q-pa-xs app-text-muted" class="surface-0 rounded q-pa-xs app-text-muted"
size="20px" size="20px"
/> />
10 . 2024 {{ dateFormat(createdAt) }}
</div> </div>
<div class="q-pr-md" v-if="typeProduct === 'product'"> <div class="q-pr-md" v-if="typeProduct === 'product'">

View file

@ -1123,6 +1123,7 @@ watch(currentStatus, async () => {
:id="i.id" :id="i.id"
:title="i.name" :title="i.name"
:status="i.status === 'INACTIVE' ? true : false" :status="i.status === 'INACTIVE' ? true : false"
:created-at="i.createdAt"
@menuViewDetail=" @menuViewDetail="
() => { () => {
currentIdProduct = i.id; currentIdProduct = i.id;