견적서 상세
This commit is contained in:
parent
045aa23af1
commit
38cb4005b2
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user