diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 0a7ee1ac..2ebbde06 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -23,6 +23,9 @@ const { createProductService, } = productServiceStore; +import ItemCard from 'src/components/ItemCard.vue'; +import TotalProductComponent from 'src/components/04_product-service/TotalProductComponent.vue'; + const cardData = ref({ title: 'งาน MCU', subtitle: 'G00000000001', @@ -62,7 +65,9 @@ const isEdit = ref(false); const dialogInputForm = ref(false); const isType = ref(false); const groupName = ref('test'); - +const dialogProductServiceType = ref(false); +const dialogTotalProduct = ref(false); +const productMode = ref<'group' | 'type' | 'service' | 'product'>('group'); const productGroup = ref(); const formData = ref({ @@ -76,6 +81,19 @@ async function submitType() { console.log(formData.value); } +const itemCard = [ + { + icon: 'mdi:server-network', + text: 'บริการ', + color: 'var(--orange-5)', + }, + { + icon: 'mdi:shopping', + text: 'สินค้า', + color: 'var(--green-9)', + }, +]; + async function deleteProductById() { dialog({ color: 'negative', @@ -134,17 +152,36 @@ onMounted(async () => { @click="isType = false" class="q-mr-md" /> -
- {{ $t('ProductAndServiceType') }} +
+ {{ groupName }}
/
-
- {{ groupName }} +
+ {{ $t('ProductAndServiceType') }}
{{ $t('ProductAndService') }} + // ปุ่มเลือกสร้าง + + // ปุ่มรวมสินค้าทั้งหมด +
+ @@ -305,6 +342,49 @@ onMounted(async () => { + + + + + + + +