From 22c43889887104e99e62e23d9a993aad2b7f6760 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:20:31 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5?= =?UTF-8?q?=E0=B9=83=E0=B8=99=E0=B9=81=E0=B8=95=E0=B9=88=20=E0=B8=A5?= =?UTF-8?q?=E0=B8=B0=20index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/03_customer-management/MainPage.vue | 123 ++++++++++++++++-- 1 file changed, 112 insertions(+), 11 deletions(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index fab930b5..8dd3a762 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -11,7 +11,6 @@ import ItemCard from 'src/components/ItemCard.vue'; import FormDialog from 'src/components/FormDialog.vue'; import ProfileUpload from 'src/components/ProfileUpload.vue'; import BasicInformation from 'src/components/03_customer-management/BasicInformation.vue'; -import FormCustomerBranch from 'src/components/03_customer-management/FormCustomerBranch.vue'; import TabComponent from 'src/components/TabComponent.vue'; import FormAddress from 'src/components/02_personnel-management/FormAddress.vue'; import AboutComponent from 'src/components/03_customer-management/AboutComponent.vue'; @@ -21,6 +20,38 @@ 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 { CustomerCreate } from 'stores/customer/types'; + +const formData = ref({ + customerType: 'CORP', + customerName: '', + customerNameEN: '', + customerBranch: [ + { + status: 'CREATED', + legalPersonNo: '', + taxNo: '', + name: '', + nameEN: '', + addressEN: '', + address: '', + zipCode: '', + email: '', + telephoneNo: '', + longitude: '', + latitude: '', + registerName: '', + registerDate: null, + authorizedCapital: '', + subDistrictId: '', + districtId: '', + provinceId: '', + }, + ], + image: new File([''], 'dummy.jpg'), +}); + +const indexTab = ref(0); const statusToggle = ref(false); const profileSubmit = ref(false); const profileFile = ref(undefined); @@ -64,13 +95,17 @@ const customerStats = [ { id: 1, count: 2, - name: 'customerLegalEntity', + name: 'นายจ้าง 1', + nameEN: 'Employer 1', + isEmployer: true, }, { id: 2, count: 3, - name: 'customerNaturalPerson', + name: 'นายจ้าง 2', + nameEN: 'Employer 2', + isEmployer: true, }, ]; @@ -137,8 +172,8 @@ function onClose() { :branch=" customerStats.map((v) => ({ count: v.count, - label: v.name, - color: v.name === 'customerLegalEntity' ? 'purple' : 'green', + label: $i18n.locale === 'en-US' ? v.nameEN : v.name, + color: v.isEmployer ? 'pink' : 'purple', })) " :dark="$q.dark.isActive" @@ -276,22 +311,88 @@ function onClose() {
- +