견적서 수정
This commit is contained in:
parent
f0e6056e32
commit
8698641fee
@ -75,7 +75,7 @@ export default function Estimate({}) {
|
||||
const [popShowSpecialNoteList, setPopShowSpecialNoteList] = useState([])
|
||||
|
||||
const globalLocaleState = useRecoilValue(globalLocaleStore)
|
||||
const { get, promisePost } = useAxios(globalLocaleState)
|
||||
const { get, post, promisePost } = useAxios(globalLocaleState)
|
||||
|
||||
const { getMessage } = useMessage()
|
||||
|
||||
@ -107,7 +107,7 @@ export default function Estimate({}) {
|
||||
saleStoreId: session.storeId,
|
||||
}
|
||||
const apiUrl = `/api/display-item/item-list?${queryStringFormatter(param)}`
|
||||
get({ url: apiUrl }).then((res) => {
|
||||
post({ url: apiUrl, data: param }).then((res) => {
|
||||
if (res.length > 0) {
|
||||
setDisplayItemList(res)
|
||||
}
|
||||
@ -616,6 +616,8 @@ export default function Estimate({}) {
|
||||
const onChangeDisplayItem = (itemId, dispOrder, index) => {
|
||||
const param = {
|
||||
itemId: itemId,
|
||||
coldZoneFlg: estimateContextState?.coldRegionFlg,
|
||||
saltAffectedFlg: estimateContextState?.saltAreaFlg,
|
||||
}
|
||||
const apiUrl = `/api/display-item/item-detail?${queryStringFormatter(param)}`
|
||||
let updateList = []
|
||||
@ -1551,6 +1553,7 @@ export default function Estimate({}) {
|
||||
onChangeDisplayItem(e.itemId, item.dispOrder, index)
|
||||
}
|
||||
}}
|
||||
defaultInputValue={item.itemName}
|
||||
getOptionLabel={(x) => x.itemName}
|
||||
getOptionValue={(x) => x.itemId}
|
||||
isClearable={false}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user