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">
|
<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'">
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue