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 (
@@ -1360,41 +1378,72 @@ export default function Estimate({}) { {getMessage('estimate.detail.estimateType')} * -
- {/*pkgRank is null, empty 인 경우 : 사용불가, 이전에 등록된 경우 사용가능, style로 제어*/} -
0 - && storePriceList[0].pkgRank !== null - && storePriceList[0].pkgRank !== '' - || estimateContextState?.estimateType === 'YJSS') ? "" : "none"}}> - { - //주문분류 - setHandlePricingFlag(true) - setEstimateContextState({ estimateType: e.target.value }) - }} - /> - +
+
+ {/*pkgRank is null, empty 인 경우 : 사용불가, 이전에 등록된 경우 사용가능, style로 제어*/} +
0 + && storePriceList[0].pkgRank !== null + && storePriceList[0].pkgRank !== '' + || estimateContextState?.estimateType === 'YJSS') ? "" : "none"}}> + { + //주문분류 + setHandlePricingFlag(true) + setEstimateContextState({ estimateType: e.target.value }) + }} + /> + +
+
+ { + setHandlePricingFlag(true) + setEstimateContextState({ estimateType: e.target.value }) + }} + /> + +
-
- 0 )? ( +
+ +
+