diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index 11a67b59..64b0ffbb 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -13,7 +13,7 @@ import dayjs from 'dayjs' import { useCommonCode } from '@/hooks/common/useCommonCode' import { useEstimateController } from '@/hooks/floorPlan/estimate/useEstimateController' import { SessionContext } from '@/app/SessionProvider' -import Select, {components} from 'react-select' +import Select, { components } from 'react-select' import { convertNumberToPriceDecimal, convertNumberToPriceDecimalToFixed } from '@/util/common-utils' import ProductFeaturesPop from './popup/ProductFeaturesPop' import { v4 as uuidv4 } from 'uuid' @@ -504,7 +504,8 @@ export default function Estimate({}) { saleStoreId: estimateContextState.sapSaleStoreId, sapSalesStoreCd: estimateContextState.sapSalesStoreCd, docTpCd: estimateContextState.estimateType, - secSapSalesStoreCd:(estimateContextState.secSapSalesStoreCd?.length > 0 && showPriceCd === 'QSP_PRICE')? estimateContextState.secSapSalesStoreCd :'', + secSapSalesStoreCd: + estimateContextState.secSapSalesStoreCd?.length > 0 && showPriceCd === 'QSP_PRICE' ? estimateContextState.secSapSalesStoreCd : '', priceCd: showPriceCd, itemIdList: estimateContextState.itemList.filter((item) => item.delFlg === '0' && item.paDispOrder === null), } @@ -1220,19 +1221,17 @@ export default function Estimate({}) { const [agencyCustList, setAgencyCustList] = useState([]) useEffect(() => { // 952 - 2차점 특가 sapSalesStoreCd - if(estimateContextState?.sapSalesStoreCd && session?.storeLvl === '1') { + if (estimateContextState?.sapSalesStoreCd && session?.storeLvl === '1') { const param = { sapSalesStoreCd: estimateContextState.sapSalesStoreCd, } const apiUrl = `api/estimate/agency-cust-list?${queryStringFormatter(param)}` get({ url: apiUrl }).then((res) => { if (isNotEmptyArray(res?.data)) { - setAgencyCustList(res?.data); + setAgencyCustList(res?.data) } - }) } - }, [estimateContextState?.sapSalesStoreCd]) return (