From 80ac35dce066df30cfa4fae75eae1c0c86c75bf5 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:34:12 +0700 Subject: [PATCH] feat: save branch --- src/pages/03_customer-management/MainPage.vue | 6 + .../components/FormBranch.vue | 39 ++- .../components/FormBusiness.vue | 286 ++++++++++++++++++ 3 files changed, 322 insertions(+), 9 deletions(-) create mode 100644 src/pages/03_customer-management/components/FormBusiness.vue diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index ae5069ff..81f28f93 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -1883,6 +1883,12 @@ watch( customerFormState.editReadonly === false " @add-branch="customerFormStore.addCurrentCustomerBranch()" + @save-branch=" + (idx) => { + customerFormState.saveMode = 'branch'; + customerFormState.branchIndex = idx; + } + " v-model:customer-branch="customerFormData.customerBranch" /> diff --git a/src/pages/03_customer-management/components/FormBranch.vue b/src/pages/03_customer-management/components/FormBranch.vue index 56fecf43..238093af 100644 --- a/src/pages/03_customer-management/components/FormBranch.vue +++ b/src/pages/03_customer-management/components/FormBranch.vue @@ -1,5 +1,6 @@ +