fix: typo

This commit is contained in:
Methapon Metanipat 2024-10-11 16:08:40 +07:00
parent 38eb18a593
commit 860c8784a4
4 changed files with 9 additions and 9 deletions

View file

@ -61,7 +61,7 @@ async function init(val: string, type: 'branch' | 'customer') {
query: val,
pageSize: 30,
})
: await customerStore.fetchListCustomeBranch({
: await customerStore.fetchListCustomerBranch({
query: val,
pageSize: 30,
});

View file

@ -45,7 +45,7 @@ const employeeFormStore = useEmployeeForm();
const customerBranchFormStore = useCustomerBranchForm();
const { t } = useI18n();
const { fetchListCustomeBranch, fetchBranchEmployee } = customerStore;
const { fetchListCustomerBranch, fetchBranchEmployee } = customerStore;
const {
currentFormData: customerBranchFormData,
state: customerBranchFormState,
@ -185,7 +185,7 @@ async function deleteBranchById(id: string) {
async function fetchList() {
if (!customerId.value) return;
const result = await fetchListCustomeBranch({
const result = await fetchListCustomerBranch({
customerId: customerId.value,
query: !!inputSearch.value ? inputSearch.value : undefined,
page: currentPageBranch.value,

View file

@ -1136,7 +1136,7 @@ export const useEmployeeForm = defineStore('form-employee', () => {
) {
state.value.currentIndexPassport = -1;
}
const foundBranch = await customerStore.fetchListCustomeBranchById(
const foundBranch = await customerStore.fetchListCustomerBranchById(
payload.customerBranchId,
);
@ -1173,7 +1173,7 @@ export const useEmployeeForm = defineStore('form-employee', () => {
update: (...args: unknown[]) => void,
) {
update(async () => {
const result = await customerStore.fetchListCustomeBranch({
const result = await customerStore.fetchListCustomerBranch({
includeCustomer: true,
query: val,
pageSize: 30,

View file

@ -76,7 +76,7 @@ const useCustomerStore = defineStore('api-customer', () => {
}
}
async function fetchListCustomeBranch<
async function fetchListCustomerBranch<
Options extends {
zipCode?: string;
customerId?: string;
@ -479,7 +479,7 @@ const useCustomerStore = defineStore('api-customer', () => {
return false;
}
async function fetchListCustomeBranchById(branchId: string) {
async function fetchListCustomerBranchById(branchId: string) {
const res = await api.get(`/customer-branch/${branchId}`);
if (res && res.status === 200) {
@ -495,7 +495,7 @@ const useCustomerStore = defineStore('api-customer', () => {
getStatsCustomer,
setImage,
fetchListCustomeBranch,
fetchListCustomerBranch,
fetchById,
fetchList,
@ -510,7 +510,7 @@ const useCustomerStore = defineStore('api-customer', () => {
getBranchById,
editBranchById,
deleteBranchById,
fetchListCustomeBranchById,
fetchListCustomerBranchById,
fetchBranchEmployee,