diff --git a/src/components/shared/select/SelectBusinessType.vue b/src/components/shared/select/SelectBusinessType.vue index 12b6172e..211ed07e 100644 --- a/src/components/shared/select/SelectBusinessType.vue +++ b/src/components/shared/select/SelectBusinessType.vue @@ -158,39 +158,6 @@ function setDefaultValue() { - - diff --git a/src/pages/03_customer-management/form.ts b/src/pages/03_customer-management/form.ts index fe875a3c..3abefdaa 100644 --- a/src/pages/03_customer-management/form.ts +++ b/src/pages/03_customer-management/form.ts @@ -30,8 +30,6 @@ export const useCustomerForm = defineStore('form-customer', () => { const registerAbleBranchOption = ref<{ id: string; name: string }[]>(); - const currentBranchRootId = ref(''); - const tabFieldRequired = ref<{ [key: string]: (keyof CustomerBranchCreate)[]; }>({ @@ -162,7 +160,6 @@ export const useCustomerForm = defineStore('form-customer', () => { state.value.editCustomerCode = data.code; state.value.customerImageUrl = `${baseUrl}/customer/${id}/image/${data.selectedImage}`; state.value.defaultCustomerImageUrl = `${baseUrl}/customer/${id}/image/${data.selectedImage}`; - currentBranchRootId.value = data.branch[0].id || ''; resetFormData.registeredBranchId = data.registeredBranchId; resetFormData.status = data.status; @@ -503,8 +500,6 @@ export const useCustomerForm = defineStore('form-customer', () => { state, resetFormData, currentFormData, - currentBranchRootId, - isFormDataDifferent, resetForm, assignFormData, @@ -1668,7 +1663,6 @@ export const useEmployeeForm = defineStore('form-employee', () => { state, currentFromDataEmployee, resetEmployeeData, - addPassport, addVisa, addCheckup, diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 3551a047..b9b57354 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -60,6 +60,7 @@ const flowStore = useFlowStore(); const userBranch = useMyBranch(); const navigatorStore = useNavigator(); const customerStore = useCustomerStore(); + const { fetchListOfOptionBranch, customerFormUndo, @@ -75,7 +76,6 @@ const { const { state: customerFormState, currentFormData: customerFormData, - currentBranchRootId, registerAbleBranchOption, tabFieldRequired, } = storeToRefs(customerFormStore); @@ -89,8 +89,6 @@ const fieldSelectedOption = computed(() => { value: v.name, })); }); - -const keyAddDialog = ref(0); const special = ref(false); const branchId = ref(''); const agentPrice = ref(false); @@ -867,7 +865,6 @@ async function filterBySellerId() { @@ -1002,7 +999,6 @@ async function filterBySellerId() { () => { customerFormState.dialogModal = false; onCreateImageList = { selectedImage: '', list: [] }; - keyAddDialog++; } " > @@ -1194,7 +1190,7 @@ async function filterBySellerId() { customerFormData.customerBranch[0].legalPersonNo " v-model:business-type=" - customerFormData.customerBranch[0].businessTypeId + customerFormData.customerBranch[0].businessType " v-model:job-position=" customerFormData.customerBranch[0].jobPosition @@ -1275,6 +1271,7 @@ async function filterBySellerId() { res = await customerStore.createBranch({ ...customerFormData.customerBranch[idx], customerId: customerFormState.editCustomerId || '', + id: undefined, }); } if (res) {