feat: total product UI

This commit is contained in:
oat_dev 2024-06-11 15:12:33 +07:00
parent c203e8715d
commit d98a250a76
4 changed files with 67 additions and 0 deletions

BIN
public/blank-image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 731 B

View file

@ -0,0 +1,45 @@
<script setup lang="ts">
import { ref } from 'vue';
import AppBox from 'components/app/AppBox.vue';
</script>
<template>
<AppBox no-padding bordered style="box-shadow: var(--shadow-3)">
<div class="row q-pa-sm q-col-gutter-md">
<div class="col-4">
<div
class="rounded q-pa-md"
style="
border: 1px solid var(--green-10);
background-color: var(--surface-2);
"
>
<q-img src="blank-image.png"></q-img>
</div>
</div>
<div class="col-8">
<div class="q-pr-sm q-mb-sm">
{{ 'ค่าบริการและค่าดำเนินงานยื่นแบบคำร้องขอนำเข้า' }}
</div>
<div class="row justify-between q-mb-xs">
<div
class="q-px-sm row items-center justify-between rounded hover-item text-white"
style="background-color: var(--blue-6)"
@click.stop="$emit('viewDetail')"
>
{{ 'AC103' }}
</div>
<div class="text-bold" style="color: var(--green-9)">
{{ '฿1,200.00' }}
</div>
</div>
<div class="row justify-between app-text-muted">
<div>ระยะเวลาในการดำเนนการ</div>
<div>14 </div>
</div>
</div>
</div>
</AppBox>
</template>
<style scoped></style>

View file

@ -0,0 +1,20 @@
<script setup lang="ts">
import AppBox from 'components/app/AppBox.vue';
import TotalProductCardComponent from 'components/04_product-service/TotalProductCardComponent.vue';
</script>
<template>
<AppBox
class="row"
bordered
style="
width: 75vw;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--size-3);
"
>
<div v-for="i in 12" :key="i">
<TotalProductCardComponent />
</div>
</AppBox>
</template>

View file

@ -5,6 +5,7 @@ defineProps<{
icon: string; icon: string;
text: string; text: string;
color: string; color: string;
changeColor?: boolean;
}>(); }>();
</script> </script>
@ -26,6 +27,7 @@ defineProps<{
:icon="icon" :icon="icon"
width="64px" width="64px"
:class="`${$q.dark.isActive ? '' : 'app-text-muted'}`" :class="`${$q.dark.isActive ? '' : 'app-text-muted'}`"
:color="changeColor ? color : ''"
/> />
</div> </div>
<div <div