diff --git a/src/components/04_product-service/TableProduct.vue b/src/components/04_product-service/TableProduct.vue new file mode 100644 index 00000000..d1ae1855 --- /dev/null +++ b/src/components/04_product-service/TableProduct.vue @@ -0,0 +1,373 @@ + + + + $emit('select', v)" + card-container-class="row full-width q-col-gutter-md" + hide-pagination + selection="multiple" + > + + + + + + {{ $t(col.label) }} + + + + + + + + + + + + + + {{ (currentPage - 1) * pageSize + props.rowIndex + 1 }} + + + + + + + + + + + + + + + + + {{ props.row.name }} + + {{ props.row.name }} + + + + {{ props.row.code }} + + + + + + + {{ props.row.detail || '-' }} + + + {{ optionStore.mapOption(props.row.expenseType) }} + + + {{ props.row.process }} + + + {{ $t('productService.product.vatIncluded') }} + + + + + + {{ $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) }} + + + + + + + {{ dateFormat(props.row.createdAt) }} + + + + + + + + + + + + + + +