diff --git a/src/pages/05_quotation/peview/ViewForm.vue b/src/pages/05_quotation/peview/ViewForm.vue index 71e25681..789ae265 100644 --- a/src/pages/05_quotation/peview/ViewForm.vue +++ b/src/pages/05_quotation/peview/ViewForm.vue @@ -45,40 +45,7 @@ type SummaryPrice = { }; const note = ref(''); -const productList = ref([ - { - 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([]); const elements = ref([]); const chunks = ref([[]]); @@ -253,11 +220,19 @@ watch(elements, () => { {{ i + 1 }} {{ v.code }} {{ v.detail }} - {{ v.amount }} - {{ formatNumberDecimal(v.priceUnit, 2) }} - {{ formatNumberDecimal(v.discount, 2) }} - {{ formatNumberDecimal(v.vat, 2) }} - {{ formatNumberDecimal(v.value, 2) }} + {{ v.amount }} + + {{ formatNumberDecimal(v.priceUnit, 2) }} + + + {{ formatNumberDecimal(v.discount, 2) }} + + + {{ formatNumberDecimal(v.vat, 2) }} + + + {{ formatNumberDecimal(v.value, 2) }} +