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