견적서 가격표시

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