From 8698641fee42968a72e7f0526e01b2dbf1f97107 Mon Sep 17 00:00:00 2001 From: basssy Date: Fri, 10 Jan 2025 15:20:24 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EC=A0=81=EC=84=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/estimate/Estimate.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index 990f4007..f0cd97fb 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -75,7 +75,7 @@ export default function Estimate({}) { const [popShowSpecialNoteList, setPopShowSpecialNoteList] = useState([]) const globalLocaleState = useRecoilValue(globalLocaleStore) - const { get, promisePost } = useAxios(globalLocaleState) + const { get, post, promisePost } = useAxios(globalLocaleState) const { getMessage } = useMessage() @@ -107,7 +107,7 @@ export default function Estimate({}) { saleStoreId: session.storeId, } const apiUrl = `/api/display-item/item-list?${queryStringFormatter(param)}` - get({ url: apiUrl }).then((res) => { + post({ url: apiUrl, data: param }).then((res) => { if (res.length > 0) { setDisplayItemList(res) } @@ -616,6 +616,8 @@ export default function Estimate({}) { const onChangeDisplayItem = (itemId, dispOrder, index) => { const param = { itemId: itemId, + coldZoneFlg: estimateContextState?.coldRegionFlg, + saltAffectedFlg: estimateContextState?.saltAreaFlg, } const apiUrl = `/api/display-item/item-detail?${queryStringFormatter(param)}` let updateList = [] @@ -1551,6 +1553,7 @@ export default function Estimate({}) { onChangeDisplayItem(e.itemId, item.dispOrder, index) } }} + defaultInputValue={item.itemName} getOptionLabel={(x) => x.itemName} getOptionValue={(x) => x.itemId} isClearable={false}