#925 견적서 상세 가격표시 옵션 & 프라이싱 호출 파라미터 변경 #2

Merged
basssy merged 1 commits from feature/qcast-925 into dev 2025-03-19 17:40:56 +09:00

View File

@ -377,8 +377,8 @@ export default function Estimate({}) {
useEffect(() => { useEffect(() => {
if (estimateContextState.estimateType !== '') { if (estimateContextState.estimateType !== '') {
const param = { const param = {
saleStoreId: session.storeId, saleStoreId: estimateContextState.sapSaleStoreId,
sapSalesStoreCd: session.custCd, sapSalesStoreCd: estimateContextState.sapSalesStoreCd,
docTpCd: estimateContextState?.estimateType, docTpCd: estimateContextState?.estimateType,
} }
@ -481,8 +481,8 @@ export default function Estimate({}) {
//Pricing //Pricing
const handlePricing = async (showPriceCd) => { const handlePricing = async (showPriceCd) => {
const param = { const param = {
saleStoreId: session.storeId, saleStoreId: estimateContextState.sapSaleStoreId,
sapSalesStoreCd: session.custCd, sapSalesStoreCd: estimateContextState.sapSalesStoreCd,
docTpCd: estimateContextState.estimateType, docTpCd: estimateContextState.estimateType,
priceCd: showPriceCd, priceCd: showPriceCd,
itemIdList: estimateContextState.itemList.filter((item) => item.delFlg === '0' && item.paDispOrder === null), itemIdList: estimateContextState.itemList.filter((item) => item.delFlg === '0' && item.paDispOrder === null),
@ -506,7 +506,6 @@ export default function Estimate({}) {
}) })
} }
} }
setIsGlobalLoading(true) setIsGlobalLoading(true)
await promisePost({ url: '/api/estimate/price/item-price-list', data: param }).then((res) => { await promisePost({ url: '/api/estimate/price/item-price-list', data: param }).then((res) => {
let updateList = [] let updateList = []