견적서 displayItemList 수정
This commit is contained in:
parent
84fb70eb33
commit
6195e7fb4a
@ -50,6 +50,7 @@ export default function Estimate({}) {
|
|||||||
const [hidden, setHidden] = useState(true)
|
const [hidden, setHidden] = useState(true)
|
||||||
|
|
||||||
//아이템 자동완성 리스트
|
//아이템 자동완성 리스트
|
||||||
|
const [originDisplayItemList, setOriginDisplayItemList] = useState([])
|
||||||
const [displayItemList, setDisplayItemList] = useState([])
|
const [displayItemList, setDisplayItemList] = useState([])
|
||||||
|
|
||||||
//공통코드
|
//공통코드
|
||||||
@ -122,6 +123,8 @@ export default function Estimate({}) {
|
|||||||
} else {
|
} else {
|
||||||
updatedRes = [...res]
|
updatedRes = [...res]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setOriginDisplayItemList(res)
|
||||||
setDisplayItemList(updatedRes)
|
setDisplayItemList(updatedRes)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1775,7 +1778,7 @@ export default function Estimate({}) {
|
|||||||
className="react-select-custom"
|
className="react-select-custom"
|
||||||
classNamePrefix="custom"
|
classNamePrefix="custom"
|
||||||
placeholder="Select"
|
placeholder="Select"
|
||||||
options={displayItemList}
|
options={originDisplayItemList}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
if (isObjectNotEmpty(e)) {
|
if (isObjectNotEmpty(e)) {
|
||||||
onChangeDisplayItem(e.itemId, item.dispOrder, index)
|
onChangeDisplayItem(e.itemId, item.dispOrder, index)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user