refactor: show peview

This commit is contained in:
Thanaphon Frappet 2024-10-16 18:03:50 +07:00
parent 614423e1f8
commit 624d6facd4
3 changed files with 420 additions and 0 deletions

View file

@ -0,0 +1,293 @@
<script lang="ts" setup>
// NOTE: Import stores
// NOTE Import Types
// NOTE: Import Components
import ViewHeader from './ViewHeader.vue';
</script>
<template>
<div class="row justify-between container">
<section class="content">
<ViewHeader class="q-mb-lg" />
<span
class="q-mb-sm"
style="
font-weight: 800;
font-size: 16px;
color: var(--orange-5);
display: block;
border-bottom: 2px solid var(--orange-5);
"
>
รายการสนค
</span>
<table style="width: 100%" class="q-mb-md" cellpadding="0">
<tbody>
<tr>
<th>นด</th>
<th>รหสสนค</th>
<th>รายละเอยด</th>
<th>จำนวน</th>
<th>ราคาตอหนวย</th>
<th>วนสด</th>
<th>ภาษ</th>
<th>ลค</th>
</tr>
<tr class="color-tr" v-for="(_, i) in Array(18)">
<td class="text-center">{{ i + 1 }}</td>
<td>PG01T01S01001</td>
<td>าบรการและคาดำเนนงานยนแบบคำรองขอนำเข MOU (Demand)</td>
<td>3</td>
<td>2,000.00</td>
<td>0.00</td>
<td>7%</td>
<td>12,750.00</td>
</tr>
</tbody>
</table>
<table
style="width: 30%; margin-left: auto"
class="q-mb-md"
cellpadding="0"
>
<tbody>
<tr>
<td>ยอดรวม</td>
<td class="text-right">11,900.00</td>
</tr>
<tr class="bg-color-orange">
<td>วนลด</td>
<td class="text-right">100.00</td>
</tr>
<tr>
<td>จำนวนเงนหลงหกสวนลด</td>
<td class="text-right">0</td>
</tr>
<tr class="bg-color-orange">
<td>จำนวนเงนยกเวนภาษ</td>
<td class="text-right">0</td>
</tr>
<tr>
<td>จำนวนเงนยกภาษ</td>
<td class="text-right">100.00</td>
</tr>
<tr class="bg-color-orange">
<td>ภาษลคาเพ 7%</td>
<td class="text-right">100.00</td>
</tr>
</tbody>
</table>
<div class="row justify-between q-mb-md" style="width: 100%">
<div
class="column set-width bg-color-orange full-height"
style="padding: 12px"
>
(หนงหมนเจดพนหกรอยหาสบหาบาท)
</div>
<div
class="column text-right border-5"
style="width: 40%; background: var(--orange-5); padding: 8px"
>
<span
class="border-5"
style="
width: 70%;
margin-left: auto;
background: white;
padding: 4px;
"
>
11,800.00
</span>
</div>
</div>
</section>
<section class="content">
<ViewHeader class="q-mb-lg" />
<span
class="q-mb-sm"
style="
font-weight: 800;
font-size: 16px;
color: var(--orange-5);
display: block;
border-bottom: 2px solid var(--orange-5);
"
>
หมายเหต
</span>
<div
class="surface-0 border-5 q-mb-md"
style="width: 100%; padding: 8px 16px"
>
<table style="width: 30%" class="q-mb-md" cellpadding="0">
<tbody>
<tr v-for="(_, i) in Array(5)">
<td class="text-center">{{ i + 1 }}</td>
<td>1CC6613334</td>
<td>MR. ZAYAR LIN</td>
</tr>
</tbody>
</table>
งทกคาได
<table style="width: 30%" class="q-mt-md" cellpadding="0">
<tbody>
<tr v-for="(_, i) in Array(5)">
<td class="text-center">{{ i + 1 }}</td>
<td>ใบอนญาตทำงาน 2 </td>
</tr>
</tbody>
</table>
</div>
<span
class="q-mb-sm"
style="
font-weight: 800;
font-size: 16px;
color: var(--orange-5);
display: block;
border-bottom: 2px solid var(--orange-5);
"
>
เงอนไข
</span>
<div
class="detail-note surface-0 border-5 q-mb-md"
style="width: 100%; padding: 8px 16px"
>
<span>
***เงอนไขบรการเฉพาะยนเอกสาร MOU นำเขาสญชาตเมยนมา (RE-TRUN)
เทาน
</span>
<span>
- ราคาดงกลาว เฉพาะคนตางดาวสญชาตเมยนมา Passport (เด)
อายเล มากกว 2 6 เดอน เทาน กรณ เล Passport (เด)
อายเล อยกว 2 จะมาใชายเพมเตมในการทำเล Passport
(ใหม)
</span>
<span>
- คนตางดาวจะตองเดนทางกลบประเทศตนทางกอน Visa จะหมดอาย
ฉะนนจะถกปรบฐานอยในราชอาณาจกรเกนกำหนด (Overstay)
</span>
<span>- คนตางดาวจะตองมอายระหวาง 18-55 เทาน</span>
<span>
- คนตางตาวจะตองมตรประชาชนพม (ฉบบจร) และสำเนาทะเบยนบาน
เทาน
</span>
<span>- ใบเสนอราคานอาย 30 บตงแตนทเสนอราคา</span>
<span>- เงอนไขการชำระเง แบงจาย 3 งวด</span>
<span>- งวดท 1 ชำระเง นยนเอกสาร จำนวน 2000 บาท</span>
</div>
</section>
<section class="content">
<ViewHeader class="q-mb-lg" />
<span
class="q-mb-sm"
style="
font-weight: 800;
font-size: 16px;
color: var(--orange-5);
display: block;
border-bottom: 2px solid var(--orange-5);
"
>
องทางซำระเง
</span>
</section>
</div>
</template>
<style scoped>
table {
border-collapse: collapse;
}
th {
background: var(--orange-5);
color: white;
padding: 4px;
}
td {
padding: 4px 8px;
}
.border-5 {
border-radius: 5px;
}
.set-width {
width: 50%;
}
.bg-color-orange {
background-color: hsla(var(--orange-5-hsl) / 0.1);
}
.color-tr:nth-child(odd) {
background-color: hsla(var(--orange-5-hsl) / 0.1);
}
.container {
padding: 1rem;
display: flex;
gap: 1rem;
margin-inline: auto;
background: white;
width: 8in;
}
.container :deep(*) {
font-size: 95%;
}
.content {
width: 100%;
align-items: center;
background: white;
page-break-after: always;
break-after: page;
}
.position-bottom {
margin-top: auto;
}
.detail-note {
display: flex;
flex-direction: column;
gap: 8px;
& > * {
display: flex;
flex-direction: column;
}
}
hr {
border-style: solid;
border-color: var(--orange-5);
}
@media print {
.container {
padding: 0;
gap: 0;
width: 100%;
}
}
</style>

View file

@ -0,0 +1,122 @@
<script lang="ts" setup>
// NOTE: Import stores
// NOTE Import Types
// NOTE: Import Components
</script>
<template>
<div class="row items-center q-mb-lg">
<div class="column" style="width: 50%">
<img src="/logo.png" width="192px" style="object-fit: scale-down" />
</div>
<div
class="column"
style="text-align: center; width: 50%; font-weight: 800; font-size: 24px"
>
ใบเสนอราคา
</div>
</div>
<article class="detail-card">
<section class="detail-customer-info">
<article>
<b>
บร นำคนตางดาวมาทำงานในประเทศ อบส เวคเกอร เซอร จำก
(สำนกงานใหญ)
</b>
<span>
49,51,53 .ขสวสด แขวงราษฏรรณะ เขตราษฏรรณะ กรงเทพมหานคร
10140
</span>
<span>เลขประจำตวผเสยภาษ 0225566001988</span>
<span>เบอรโทร 02-018-8688</span>
<span>https://www.jobsworkerservice.com</span>
</article>
<article>
<b>กค</b>
<span>
49,51,53 .ขสวสด แขวงราษฏรรณะ เขตราษฏรรณะ กรงเทพมหานคร
10140
</span>
<span>เลขประจำตวผเสยภาษ 0225566001988</span>
<span>เบอรโทร 02-018-8688</span>
<span>https://www.jobsworkerservice.com</span>
</article>
</section>
<section class="detail-quotation-info">
<div>
<div>เลขทใบเสนอราคา</div>
<div>QT240120S0003</div>
</div>
<div>
<div>นทใบเสนอราคา</div>
<div>20/01/2024 10:36</div>
</div>
<div>
<div>ขาย</div>
<div>นายสดใส ใจงาม 084-363-5222</div>
</div>
<div>
<div>เงอนไขการชำระ</div>
<div>เงนสด - เตมจำนวน</div>
</div>
<div>
<div>องาน</div>
<div>MOU Myanmar (Re-turn)</div>
</div>
<div>
<div>ดต</div>
<div> เจรญงาม</div>
</div>
<div>
<div>นครบกำหนดชำระ</div>
<div>27/01/2024</div>
</div>
</section>
</article>
</template>
<style scoped>
.detail-card {
display: flex;
gap: 16px;
& > * {
flex-grow: 1;
}
& > :first-child {
max-width: 57.5%;
}
}
.detail-customer-info {
display: flex;
flex-direction: column;
gap: 16px;
& > * {
display: flex;
flex-direction: column;
& > :first-child {
color: var(--orange-5);
}
}
}
.detail-quotation-info {
& > * {
display: flex;
& > :first-child {
color: var(--orange-5);
}
& > * {
width: 50%;
}
}
}
</style>

View file

@ -92,6 +92,11 @@ const routes: RouteRecordRaw[] = [
name: 'QuotationAdd',
component: () => import('pages/05_quotation/QuotationForm.vue'),
},
{
path: '/view',
name: 'view',
component: () => import('pages/05_quotation/peview/ViewForm.vue'),
},
// Always leave this as last one,
// but you can also remove it