diff --git a/src/router/routes.ts b/src/router/routes.ts index 2a989ee7..025de17b 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -23,7 +23,17 @@ const routes: RouteRecordRaw[] = [ }, { path: '/customer-management', - name: 'customerManagement', + name: 'CustomerManagement', + component: () => import('pages/03_customer-management/MainPage.vue'), + }, + { + path: '/customer-management/:customerId', + name: 'CustomerSpecificManagement', + component: () => import('pages/03_customer-management/MainPage.vue'), + }, + { + path: '/customer-management/:customerId/branch', + name: 'CustomerBranchManagement', component: () => import('pages/03_customer-management/MainPage.vue'), }, { diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index 0817965f..c861eedd 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -20,7 +20,7 @@ const useCustomerStore = defineStore('api-customer', () => { const flowStore = useFlowStore(); const data = ref>(); - async function fetchListById( + async function fetchById( customerId: string, flow?: { sessionId?: string; @@ -307,7 +307,7 @@ const useCustomerStore = defineStore('api-customer', () => { transactionId?: string; }, ) { - const { id, statusSave , code, ...playload } = data; + const { id, statusSave, code, ...playload } = data; const res = await api.post< Customer & { @@ -467,7 +467,7 @@ const useCustomerStore = defineStore('api-customer', () => { getStatsCustomer, fetchListCustomeBranch, - fetchListById, + fetchById, fetchList, create, editById,