diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 4429fdd3..5a9fbc0b 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -4,6 +4,10 @@ import AppBox from 'components/app/AppBox.vue'; import ProductCardComponent from 'src/components/04_product-service/ProductCardComponent.vue'; import StatCard from 'components/StatCardComponent.vue'; import NewProductCardCompoent from 'components/04_product-service/NewProductCardComponent.vue'; +import DrawerInfo from 'src/components/DrawerInfo.vue'; +import BasicInformation from 'src/components/04_product-service/BasicInformation.vue'; +import FormDialog from 'src/components/FormDialog.vue'; +import { dialog } from 'src/stores/utils'; const cardData = ref({ title: 'งาน MCU', subtitle: 'G00000000001', @@ -12,6 +16,14 @@ const cardData = ref({ date: new Date(), }); +const cardTypeData = ref({ + title: 'บริการพิสูจน์สัญชาติ', + subtitle: 'TG10000000001', + color: 'var(--purple-11)', + status: true, + date: new Date(), +}); + const stat = ref< { count: number; @@ -24,19 +36,80 @@ const stat = ref< { count: 12, label: 'branchLabel', color: 'green' }, ]); +import { useI18n } from 'vue-i18n'; + +const { t } = useI18n(); + const inputSearch = ref(''); +const drawerInfo = ref(false); +const isEdit = ref(false); +const dialogInputForm = ref(false); +const isViewDetailGroup = ref(false); +const groupName = ref('test'); + +const formData = ref({ + remark: '', + detail: '', + name: '', + code: '', +}); + +async function submitGroup() { + console.log(formData.value); +} +async function submitType() { + console.log(formData.value); +} + +async function deleteProductById() { + dialog({ + color: 'negative', + icon: 'mdi-alert', + title: t('deleteConfirmTitle'), + actionText: t('ok'), + persistent: true, + message: t('deleteConfirmMessage'), + action: async () => { + console.log('deleted'); + drawerInfo.value = false; + }, + cancel: () => {}, + }); +} - +