견적서 상세

This commit is contained in:
basssy 2024-11-14 12:08:21 +09:00
parent 045aa23af1
commit 38cb4005b2

View File

@ -272,7 +272,7 @@ export default function Estimate({ params }) {
updates.objectNo = objectNo updates.objectNo = objectNo
updates.planNo = planNo updates.planNo = planNo
updates.itemId = res.itemId updates.itemId = res.itemId
updates.itemNo = '' // updates.itemNo = res.itemNo
updates.itemName = res.itemName updates.itemName = res.itemName
updates.itemChangeFlg = '1' // 1 updates.itemChangeFlg = '1' // 1
updates.partAdd = '1' //1 NEW updates.partAdd = '1' //1 NEW
@ -316,6 +316,7 @@ export default function Estimate({ params }) {
}) })
}) })
//
const result = state.itemList.filter((item) => { const result = state.itemList.filter((item) => {
return !tempList.some((other) => other.dispOrder === item.dispOrder) return !tempList.some((other) => other.dispOrder === item.dispOrder)
}) })
@ -879,7 +880,11 @@ export default function Estimate({ params }) {
classNamePrefix="custom" classNamePrefix="custom"
placeholder="Select" placeholder="Select"
options={displayItemList} options={displayItemList}
onChange={(e) => onChangeDisplayItem(e.itemId, item.dispOrder)} onChange={(e) => {
if (isObjectNotEmpty(e)) {
onChangeDisplayItem(e.itemId, item.dispOrder)
}
}}
getOptionLabel={(x) => x.itemName} getOptionLabel={(x) => x.itemName}
getOptionValue={(x) => x.itemId} getOptionValue={(x) => x.itemId}
isClearable={true} isClearable={true}
@ -889,8 +894,8 @@ export default function Estimate({ params }) {
})} })}
/> />
</div> </div>
{/* {item?.itemChangeFlg === '1' && ( */} {/* {item?.partAdd === '1' && ( */}
{item?.partAdd === '1' && ( {item?.itemChangeFlg === '1' && (
<div className="btn-area"> <div className="btn-area">
<span className="tb_ico change_check"></span> <span className="tb_ico change_check"></span>
</div> </div>