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,
|
query: val,
|
||||||
pageSize: 30,
|
pageSize: 30,
|
||||||
})
|
})
|
||||||
: await customerStore.fetchListCustomeBranch({
|
: await customerStore.fetchListCustomerBranch({
|
||||||
query: val,
|
query: val,
|
||||||
pageSize: 30,
|
pageSize: 30,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ const employeeFormStore = useEmployeeForm();
|
||||||
const customerBranchFormStore = useCustomerBranchForm();
|
const customerBranchFormStore = useCustomerBranchForm();
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { fetchListCustomeBranch, fetchBranchEmployee } = customerStore;
|
const { fetchListCustomerBranch, fetchBranchEmployee } = customerStore;
|
||||||
const {
|
const {
|
||||||
currentFormData: customerBranchFormData,
|
currentFormData: customerBranchFormData,
|
||||||
state: customerBranchFormState,
|
state: customerBranchFormState,
|
||||||
|
|
@ -185,7 +185,7 @@ async function deleteBranchById(id: string) {
|
||||||
async function fetchList() {
|
async function fetchList() {
|
||||||
if (!customerId.value) return;
|
if (!customerId.value) return;
|
||||||
|
|
||||||
const result = await fetchListCustomeBranch({
|
const result = await fetchListCustomerBranch({
|
||||||
customerId: customerId.value,
|
customerId: customerId.value,
|
||||||
query: !!inputSearch.value ? inputSearch.value : undefined,
|
query: !!inputSearch.value ? inputSearch.value : undefined,
|
||||||
page: currentPageBranch.value,
|
page: currentPageBranch.value,
|
||||||
|
|
|
||||||
|
|
@ -1136,7 +1136,7 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
||||||
) {
|
) {
|
||||||
state.value.currentIndexPassport = -1;
|
state.value.currentIndexPassport = -1;
|
||||||
}
|
}
|
||||||
const foundBranch = await customerStore.fetchListCustomeBranchById(
|
const foundBranch = await customerStore.fetchListCustomerBranchById(
|
||||||
payload.customerBranchId,
|
payload.customerBranchId,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -1173,7 +1173,7 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
||||||
update: (...args: unknown[]) => void,
|
update: (...args: unknown[]) => void,
|
||||||
) {
|
) {
|
||||||
update(async () => {
|
update(async () => {
|
||||||
const result = await customerStore.fetchListCustomeBranch({
|
const result = await customerStore.fetchListCustomerBranch({
|
||||||
includeCustomer: true,
|
includeCustomer: true,
|
||||||
query: val,
|
query: val,
|
||||||
pageSize: 30,
|
pageSize: 30,
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchListCustomeBranch<
|
async function fetchListCustomerBranch<
|
||||||
Options extends {
|
Options extends {
|
||||||
zipCode?: string;
|
zipCode?: string;
|
||||||
customerId?: string;
|
customerId?: string;
|
||||||
|
|
@ -479,7 +479,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchListCustomeBranchById(branchId: string) {
|
async function fetchListCustomerBranchById(branchId: string) {
|
||||||
const res = await api.get(`/customer-branch/${branchId}`);
|
const res = await api.get(`/customer-branch/${branchId}`);
|
||||||
|
|
||||||
if (res && res.status === 200) {
|
if (res && res.status === 200) {
|
||||||
|
|
@ -495,7 +495,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
getStatsCustomer,
|
getStatsCustomer,
|
||||||
|
|
||||||
setImage,
|
setImage,
|
||||||
fetchListCustomeBranch,
|
fetchListCustomerBranch,
|
||||||
fetchById,
|
fetchById,
|
||||||
fetchList,
|
fetchList,
|
||||||
|
|
||||||
|
|
@ -510,7 +510,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
getBranchById,
|
getBranchById,
|
||||||
editBranchById,
|
editBranchById,
|
||||||
deleteBranchById,
|
deleteBranchById,
|
||||||
fetchListCustomeBranchById,
|
fetchListCustomerBranchById,
|
||||||
|
|
||||||
fetchBranchEmployee,
|
fetchBranchEmployee,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue