chore: clean

This commit is contained in:
Methapon Metanipat 2024-10-18 11:08:19 +07:00
parent 81e5873e4c
commit 01e59f5a4b

View file

@ -45,40 +45,7 @@ type SummaryPrice = {
};
const note = ref<string>('');
const productList = ref<Product[]>([
{
id: 'cm14grwo30002z8ch55keto89',
code: 'PG01T01S01001',
detail: 'ค่าบริการและค่าดำเนินงานยื่นแบบคำร้องขอนำเข้า MOU (Demand)',
amount: 3,
priceUnit: 2000.0,
discount: 0.0,
vat: 7,
value: 12750.0,
},
{
id: 'cm14grwo30112z8ch55keto00',
code: 'PG01T01S01002',
detail:
'ค่าบริการและค่าดำเนินงานยื่นขอบัญชีรายชื่อ (Name list) สัญชาติเมียนมา',
amount: 3,
priceUnit: 7100.0,
discount: 0.0,
vat: 7,
value: 4750.0,
},
{
id: 'Am14grwo30112z8ch55keto00',
code: 'PG01T01S01002',
detail:
'ค่าบริการและค่าดำเนินงานยื่นแจ้งที่พักอาศัยและยื่นแบบแจ้งการจ้างคนต่างด้าว',
amount: 1,
priceUnit: 14100.0,
discount: 100.0,
vat: 7,
value: 1050.0,
},
]);
const productList = ref<Product[]>([]);
const elements = ref<HTMLElement[]>([]);
const chunks = ref<Product[][]>([[]]);
@ -253,11 +220,19 @@ watch(elements, () => {
<td class="text-center">{{ i + 1 }}</td>
<td>{{ v.code }}</td>
<td>{{ v.detail }}</td>
<td>{{ v.amount }}</td>
<td>{{ formatNumberDecimal(v.priceUnit, 2) }}</td>
<td>{{ formatNumberDecimal(v.discount, 2) }}</td>
<td>{{ formatNumberDecimal(v.vat, 2) }}</td>
<td>{{ formatNumberDecimal(v.value, 2) }}</td>
<td style="text-align: right">{{ v.amount }}</td>
<td style="text-align: right">
{{ formatNumberDecimal(v.priceUnit, 2) }}
</td>
<td style="text-align: right">
{{ formatNumberDecimal(v.discount, 2) }}
</td>
<td style="text-align: right">
{{ formatNumberDecimal(v.vat, 2) }}
</td>
<td style="text-align: right">
{{ formatNumberDecimal(v.value, 2) }}
</td>
</tr>
</tbody>
</table>