Compare commits

..

No commits in common. "ac015123cdcf29c16fb8d4deb6ba8a56c286d621" and "6b76108d8beb65d6f3d9ed683806ee1e536f37d0" have entirely different histories.

View File

@ -377,8 +377,8 @@ export default function Estimate({}) {
useEffect(() => { useEffect(() => {
if (estimateContextState.estimateType !== '') { if (estimateContextState.estimateType !== '') {
const param = { const param = {
saleStoreId: estimateContextState.sapSaleStoreId, saleStoreId: session.storeId,
sapSalesStoreCd: estimateContextState.sapSalesStoreCd, sapSalesStoreCd: session.custCd,
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: estimateContextState.sapSaleStoreId, saleStoreId: session.storeId,
sapSalesStoreCd: estimateContextState.sapSalesStoreCd, sapSalesStoreCd: session.custCd,
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,6 +506,7 @@ 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 = []