diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index a544ced7..11a67b59 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -504,6 +504,7 @@ export default function Estimate({}) { saleStoreId: estimateContextState.sapSaleStoreId, sapSalesStoreCd: estimateContextState.sapSalesStoreCd, docTpCd: estimateContextState.estimateType, + secSapSalesStoreCd:(estimateContextState.secSapSalesStoreCd?.length > 0 && showPriceCd === 'QSP_PRICE')? estimateContextState.secSapSalesStoreCd :'', priceCd: showPriceCd, itemIdList: estimateContextState.itemList.filter((item) => item.delFlg === '0' && item.paDispOrder === null), } @@ -1216,6 +1217,23 @@ export default function Estimate({}) { } }, [estimateContextState?.itemList, cableItemList]) + const [agencyCustList, setAgencyCustList] = useState([]) + useEffect(() => { + // 952 - 2차점 특가 sapSalesStoreCd + 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); + } + + }) + } + + }, [estimateContextState?.sapSalesStoreCd]) return (