diff --git a/src/components/shared/table/TableProductAndService.vue b/src/components/shared/table/TableProductAndService.vue new file mode 100644 index 00000000..30892f1a --- /dev/null +++ b/src/components/shared/table/TableProductAndService.vue @@ -0,0 +1,380 @@ + + + + + + + + {{ $t(col.label) }} + + + + {{ $t(col.label) }} + + + + handleUpdate()" + size="sm" + /> + + + + + + + + + + + + {{ + typeof col.field === 'string' + ? props.row[col.field as keyof (Product | Service)] + : col.field(props.row as any) + }} + + + + + + + + + + + {{ props.row.name }} + + + {{ props.row.code }} + + + + + + + + + + {{ $t('productService.product.salePrice') }} + + + ฿{{ formatNumberDecimal(props.row.price || 0, 2) }} + + + + + {{ $t('productService.product.agentPrice') }} + + + ฿{{ formatNumberDecimal(props.row.agentPrice || 0, 2) }} + + + + + {{ $t('productService.product.processingPrice') }} + + + ฿{{ formatNumberDecimal(props.row.serviceCharge || 0, 2) }} + + + + + + + + + + + + + + + + + +
+ + {{ props.row.name }} + + + {{ props.row.code }} + +