현금영수증 수기 발행 완료
This commit is contained in:
@@ -23,10 +23,10 @@ import { useStore } from '@/shared/model/store';
|
||||
import { getLocalStorage, setLocalStorage } from '@/shared/lib';
|
||||
import { StorageKeys } from '@/shared/constants/local-storage';
|
||||
import { HomeGroupsParams, HomeGroupsResponse } from '@/entities/home/model/types';
|
||||
import { BusinessPropertyByMidParams, BusinessPropertyByMidResponse, LoginResponse, ShortcutUserParams, ShortcutUserResponse, UserFindAuthMethodParams, UserFindAuthMethodResponse } from '@/entities/user/model/types';
|
||||
import { BusinessPropertyParams, BusinessPropertyResponse, LoginResponse, ShortcutUserParams, ShortcutUserResponse, UserFindAuthMethodParams, UserFindAuthMethodResponse } from '@/entities/user/model/types';
|
||||
import { useShortcutUserMutation } from '@/entities/user/api/use-shortcut-user-mutation';
|
||||
import { useShortcutDefaultMutation } from '@/entities/user/api/use-shortcut-detault-mutation';
|
||||
import { useBusinessPropertyByMidMutation } from '@/entities/user/api/use-business-property-by-mid-mutation';
|
||||
import { useBusinessPropertyMutation } from '@/entities/user/api/use-business-property-mutation';
|
||||
import { useUserFindAuthMethodMutation } from '@/entities/user/api/use-user-find-authmethod-mutation';
|
||||
import { useCodesSelectMutation } from '@/entities/common/api/use-codes-select-mutation';
|
||||
|
||||
@@ -75,7 +75,7 @@ export const SubLayout = () => {
|
||||
const { mutateAsync: codesSelect} = useCodesSelectMutation();
|
||||
const { mutateAsync: shortcutUser } = useShortcutUserMutation();
|
||||
const { mutateAsync: shortcutDefault } = useShortcutDefaultMutation();
|
||||
const { mutateAsync: businessPropertyByMid } = useBusinessPropertyByMidMutation();
|
||||
const { mutateAsync: businessProperty } = useBusinessPropertyMutation();
|
||||
const { mutateAsync: findAuthMethod } = useUserFindAuthMethodMutation();
|
||||
|
||||
const wrapperClassName = 'wrapper';
|
||||
@@ -106,13 +106,13 @@ export const SubLayout = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const callBusinessPropertyByMid = () => {
|
||||
const callBusinessProperty = () => {
|
||||
if(!!mid){
|
||||
let params: BusinessPropertyByMidParams = {
|
||||
let params: BusinessPropertyParams = {
|
||||
mid: mid
|
||||
};
|
||||
businessPropertyByMid(params).then((rs: BusinessPropertyByMidResponse) => {
|
||||
console.log(rs);
|
||||
businessProperty(params).then((rs: BusinessPropertyResponse) => {
|
||||
useStore.getState().UserStore.setBusinessInfo(rs);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -178,7 +178,6 @@ export const SubLayout = () => {
|
||||
let emails = rs.emails.map((value: any, index: any) => {
|
||||
return value.content;
|
||||
});
|
||||
console.log('emails -->', emails)
|
||||
useStore.getState().UserStore.setUserEmails(emails);
|
||||
let options: Array<Record<string, string>> = emails.map((value: any, index: any) => {
|
||||
return {
|
||||
@@ -300,7 +299,7 @@ export const SubLayout = () => {
|
||||
}, []);
|
||||
useEffect(() => {
|
||||
if(!!mid){
|
||||
// callBusinessPropertyByMid();
|
||||
callBusinessProperty();
|
||||
callFindAuthMethod();
|
||||
}
|
||||
}, [mid]);
|
||||
|
||||
Reference in New Issue
Block a user