fix: typo
This commit is contained in:
parent
38eb18a593
commit
860c8784a4
4 changed files with 9 additions and 9 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue