견적서 가격표시
This commit is contained in:
parent
44c0247c04
commit
d01d7f6791
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user