Compare commits
No commits in common. "cbdeb88c43ab721dae742e4e0452bc529f4a68d4" and "5a6b61f2d2a4f7db83cbf9ab01df738bfd8c26dd" have entirely different histories.
cbdeb88c43
...
5a6b61f2d2
@ -13,7 +13,6 @@ import { currentMenuState } from '@/store/canvasAtom'
|
|||||||
import { globalLocaleStore } from '@/store/localeAtom'
|
import { globalLocaleStore } from '@/store/localeAtom'
|
||||||
import { useAxios } from '@/hooks/useAxios'
|
import { useAxios } from '@/hooks/useAxios'
|
||||||
import { GlobalDataContext } from '@/app/GlobalDataProvider'
|
import { GlobalDataContext } from '@/app/GlobalDataProvider'
|
||||||
import { sessionStore } from '@/store/commonAtom'
|
|
||||||
|
|
||||||
export default function FloorPlan({ children }) {
|
export default function FloorPlan({ children }) {
|
||||||
const [correntObjectNo, setCurrentObjectNo] = useRecoilState(correntObjectNoState)
|
const [correntObjectNo, setCurrentObjectNo] = useRecoilState(correntObjectNoState)
|
||||||
@ -27,7 +26,6 @@ export default function FloorPlan({ children }) {
|
|||||||
const globalLocaleState = useRecoilValue(globalLocaleStore)
|
const globalLocaleState = useRecoilValue(globalLocaleStore)
|
||||||
const { promiseGet } = useAxios(globalLocaleState)
|
const { promiseGet } = useAxios(globalLocaleState)
|
||||||
const { setManagementState } = useContext(GlobalDataContext)
|
const { setManagementState } = useContext(GlobalDataContext)
|
||||||
const [sessionState, setSessionState] = useRecoilState(sessionStore)
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getStuffDetailInfo()
|
getStuffDetailInfo()
|
||||||
@ -53,12 +51,6 @@ export default function FloorPlan({ children }) {
|
|||||||
if (res.data.installHeight === '0') {
|
if (res.data.installHeight === '0') {
|
||||||
res.data.installHeight = ''
|
res.data.installHeight = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
setSessionState((prev) => ({
|
|
||||||
...prev,
|
|
||||||
oneTwoStoreId: res.data.saleStoreId
|
|
||||||
}));
|
|
||||||
|
|
||||||
setManagementState({ ...res.data, surfaceTypeValue: surfaceTypeValue })
|
setManagementState({ ...res.data, surfaceTypeValue: surfaceTypeValue })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -132,7 +132,7 @@ export default function PowerConditionalSelect(props) {
|
|||||||
mixMatlNo: item.mixMatlNo,
|
mixMatlNo: item.mixMatlNo,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
getPcsModelList({ pcsMkrCd, pcsSerList, moduleItemList, storeId: sessionState.oneTwoStoreId }).then((res) => {
|
getPcsModelList({ pcsMkrCd, pcsSerList, moduleItemList, storeId: sessionState.storeId }).then((res) => {
|
||||||
if (res?.result.code === 200 && res?.data) {
|
if (res?.result.code === 200 && res?.data) {
|
||||||
setModels(
|
setModels(
|
||||||
res.data.map((model) => {
|
res.data.map((model) => {
|
||||||
@ -201,7 +201,6 @@ export default function PowerConditionalSelect(props) {
|
|||||||
pcsMkrCd: option.pcsMkrCd,
|
pcsMkrCd: option.pcsMkrCd,
|
||||||
mixMatlNo: moduleSelectionData.module.mixMatlNo,
|
mixMatlNo: moduleSelectionData.module.mixMatlNo,
|
||||||
moduleMatlCds: moduleSelectionData.module.itemList.map((item) => item.itemId).join(','),
|
moduleMatlCds: moduleSelectionData.module.itemList.map((item) => item.itemId).join(','),
|
||||||
storeId: sessionState.oneTwoStoreId,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getPcsMakerList(param).then((res) => {
|
getPcsMakerList(param).then((res) => {
|
||||||
|
|||||||
@ -37,7 +37,7 @@ export function useMasterController() {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
const paramString = `?${paramArr.map((item) => `arrRoofMatlCd=${item}`).join('&')}`
|
const paramString = `?${paramArr.map((item) => `arrRoofMatlCd=${item}`).join('&')}`
|
||||||
return await get({ url: `/api/v1/master/getModuleTypeItemList${paramString}&storeId=${sessionState.oneTwoStoreId}` }).then((res) => {
|
return await get({ url: `/api/v1/master/getModuleTypeItemList${paramString}&storeId=${sessionState.storeId}` }).then((res) => {
|
||||||
// console.log('🚀🚀 ~ getModuleTypeItemList ~ res:', res)
|
// console.log('🚀🚀 ~ getModuleTypeItemList ~ res:', res)
|
||||||
return res
|
return res
|
||||||
})
|
})
|
||||||
|
|||||||
@ -21,9 +21,7 @@ export const dimmedStore = atom({
|
|||||||
|
|
||||||
export const sessionStore = atom({
|
export const sessionStore = atom({
|
||||||
key: 'sessionState',
|
key: 'sessionState',
|
||||||
default: {
|
default: {},
|
||||||
oneTwoStoreId: '',
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export const slopeSelector = selectorFamily({
|
export const slopeSelector = selectorFamily({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user