견적서 가격표시

This commit is contained in:
basssy 2024-12-09 10:43:37 +09:00
parent 44c0247c04
commit d01d7f6791

View File

@ -326,22 +326,22 @@ export default function Estimate({ params }) {
// option // option
const onChangeStorePriceList = (priceCd) => { const onChangeStorePriceList = (priceCd) => {
const param = {
saleStoreId: session.storeId,
sapSalesStoreCd: session.custCd,
docTpCd: priceCd,
}
// priceCd setEstimateContextState // priceCd setEstimateContextState
// showPriceCd // showPriceCd
setShowPriceCd(priceCd) setShowPriceCd(priceCd)
// return
// const param = {
// saleStoreId: session.storeId,
// sapSalesStoreCd: session.custCd,
// docTpCd: priceCd,
// }
const apiUrl = `/api/estimate/price/store-price-list?${queryStringFormatter(param)}` // const apiUrl = `/api/estimate/price/store-price-list?${queryStringFormatter(param)}`
get({ url: apiUrl }).then((res) => { // get({ url: apiUrl }).then((res) => {
if (isNotEmptyArray(res?.data)) { // if (isNotEmptyArray(res?.data)) {
setStorePriceList(res.data) // setStorePriceList(res.data)
} // }
}) // })
} }
const makeUniqueSpecialNoteCd = (itemList) => { const makeUniqueSpecialNoteCd = (itemList) => {
@ -1404,7 +1404,6 @@ export default function Estimate({ params }) {
<div className="select-wrap"> <div className="select-wrap">
{session?.storeLvl === '1' ? ( {session?.storeLvl === '1' ? (
<select <select
// key={uuidv4()}
className="select-light" className="select-light"
onChange={(e) => { onChange={(e) => {
onChangeStorePriceList(e.target.value) onChangeStorePriceList(e.target.value)