diff --git a/src/components/03_customer-management/BranchCardCustomer.vue b/src/components/03_customer-management/BranchCardCustomer.vue new file mode 100644 index 00000000..025b7c84 --- /dev/null +++ b/src/components/03_customer-management/BranchCardCustomer.vue @@ -0,0 +1,63 @@ + + + + + + รหัสสาขา {{ data.branchCode }} + รายละเอียด + + + ชื่อสาขา + {{ data.branchName }} + + + ที่อยู่ + {{ data.address }} + + + เบอร์โทร + {{ data.tel }} + + + ประเภทสำนักงาน + {{ data.type }} + + + ประเภทกิจการ + {{ data.typeCop }} + + + สถานะ + {{ data.branchName }} + + + ลูกจ้างทั้งหมด + {{ data.number }} + + + + + diff --git a/src/components/03_customer-management/CustomerInfoComponent.vue b/src/components/03_customer-management/CustomerInfoComponent.vue new file mode 100644 index 00000000..f876d40a --- /dev/null +++ b/src/components/03_customer-management/CustomerInfoComponent.vue @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + นายสุขใจ แสนดี + + + {{ '10' }} + + {{ '2' }} + + + + + + + + + + + + {{ $t('all') }} + + + {{ $t('statusACTIVE') }} + + + {{ $t('statusINACTIVE') }} + + + + + + + + + + + + + + + diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index da29dbad..23a5b12f 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -20,7 +20,7 @@ import OtherInformation from 'src/components/03_customer-management/OtherInforma import FormBusiness from 'src/components/03_customer-management/FormBusiness.vue'; import DrawerInfo from 'src/components/DrawerInfo.vue'; import InfoForm from 'src/components/02_personnel-management/InfoForm.vue'; - +import CustomerInfoComponent from 'src/components/03_customer-management/CustomerInfoComponent.vue'; import { CustomerCreate } from 'stores/customer/types'; import useCustomerStore from 'src/stores/customer'; @@ -71,6 +71,7 @@ const profileFile = ref(undefined); const profileUrl = ref(''); const infoDrawer = ref(false); const infoDrawerEdit = ref(false); +const isMainPage = ref(true); const inputFile = (() => { const element = document.createElement('input'); @@ -214,7 +215,7 @@ function undo() { - + {{ $t('customerManagement') }} @@ -309,7 +310,7 @@ function undo() { }, ], }" - @enter-card="console.log('enter')" + @enter-card="isMainPage = false" @view-card="openDialogInputForm" /> + + + - - • {{ $t('formDialogCustomerBranch') }}