From c25e8b2a4af424d03c5a64fdae850404833ebe0d Mon Sep 17 00:00:00 2001 From: ysCha Date: Thu, 19 Jun 2025 15:39:23 +0900 Subject: [PATCH] =?UTF-8?q?[1116]=20=EC=96=91=EB=8B=A8=EC=BC=80=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=20=EC=98=A4=EC=9E=91=EB=8F=99=20=3D>=20M12,=20S13=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/estimate/Estimate.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index e59dd9ff..9a3dd74d 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -731,7 +731,7 @@ export default function Estimate({}) { /* 케이블 select 변경시 */ const onChangeDisplayCableItem = (value, itemList) => { itemList.map((item, index) => { - if (item.dispCableFlg === '1' && item.itemTpCd !== 'M12') { + if (item.dispCableFlg === '1' && item.itemTpCd !== 'M12' && item.itemTpCd !== 'S13') { if (value !== '') { onChangeDisplayItem(value, item.dispOrder, index, true) } @@ -743,7 +743,7 @@ export default function Estimate({}) { /* 케이블 select 변경시 */ const onChangeDisplayDoubleCableItem = (value, itemList) => { itemList.map((item, index) => { - if (item.dispCableFlg === '1' && item.itemTpCd === 'M12') { + if (item.dispCableFlg === '1' && (item.itemTpCd === 'M12' || item.itemTpCd === 'S13')) { if (value !== '') { onChangeDisplayItem(value, item.dispOrder, index, true) } @@ -1103,7 +1103,7 @@ export default function Estimate({}) { if (item.dispCableFlg === '1' ) { dispCableFlgCnt++ - if(item.itemTpCd === 'M12') { + if(item.itemTpCd === 'M12' || item.itemTpCd === 'S13') { setCableDbItem(item.itemId) }else{ setCableItem(item.itemId) @@ -1179,7 +1179,7 @@ export default function Estimate({}) { if (item.dispCableFlg === '1'){ - if(item.itemTpCd === 'M12') { + if(item.itemTpCd === 'M12' || item.itemTpCd === 'S13') { setCableDbItem(item.itemId) }else{ setCableItem(item.itemId) @@ -2031,13 +2031,13 @@ export default function Estimate({}) { getOptionValue={(x) => x.clRefChr1} components={{ SingleValue: ({ children, ...props }) => { - return {(item.itemTpCd === 'M12')? item.itemName : props.data.clRefChr3} + return {(item.itemTpCd === 'M12' || item.itemTpCd === 'S13')? item.itemName : props.data.clRefChr3} }, }} isClearable={false} isDisabled={true} value={cableItemList.filter(function (option) { - return (item.itemTpCd === 'M12')? item.itemId : option.clRefChr1 === item.itemId + return (item.itemTpCd === 'M12' || item.itemTpCd === 'S13' )? item.itemId : option.clRefChr1 === item.itemId })} /> )}