지붕재할당 퍼블 수정

This commit is contained in:
김민식 2025-02-05 16:54:18 +09:00
parent bc1de6e490
commit 4bd65f7207
2 changed files with 95 additions and 100 deletions

View File

@ -115,22 +115,25 @@ export default function ContextRoofAllocationSetting(props) {
)} )}
</div> </div>
</div> </div>
{roof.raftAuth && (
<div className="block-box"> <div className="block-box">
<div className="flex-ment"> <div className="flex-ment">
<span>{getMessage('slope')}</span> <span>{getMessage('modal.placement.initial.setting.rafter')}</span>
<div className="input-grid"> {raftCodes.length > 0 && (
<input <div className="grid-select">
type="text" <QSelectBox
className="input-origin block" options={raftCodes}
onChange={(e) => { value={roof}
handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index) showKey={'clCodeNm'}
}} sourceKey={'clCode'}
defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle} targetKey={roof.raft ? 'raft' : 'raftBaseCd'}
/> />
</div> </div>
<span className="absol">{pitchText}</span> )}
</div> </div>
</div> </div>
)}
{(roof.widAuth || roof.lenAuth) && ( {(roof.widAuth || roof.lenAuth) && (
<> <>
{roof.widAuth && ( {roof.widAuth && (
@ -155,26 +158,6 @@ export default function ContextRoofAllocationSetting(props) {
)} )}
</> </>
)} )}
{(roof.raftAuth || roof.roofPchAuth) && (
<>
{roof.raftAuth && (
<div className="block-box">
<div className="flex-ment">
<span>{getMessage('modal.placement.initial.setting.rafter')}</span>
{raftCodes.length > 0 && (
<div className="grid-select">
<QSelectBox
options={raftCodes}
value={roof}
showKey={'clCodeNm'}
sourceKey={'clCode'}
targetKey={roof.raft ? 'raft' : 'raftBaseCd'}
/>
</div>
)}
</div>
</div>
)}
{roof.roofPchAuth && ( {roof.roofPchAuth && (
<div className="block-box"> <div className="block-box">
<div className="flex-ment"> <div className="flex-ment">
@ -190,8 +173,22 @@ export default function ContextRoofAllocationSetting(props) {
</div> </div>
</div> </div>
)} )}
</> <div className="block-box">
)} <div className="flex-ment">
<span>{getMessage('slope')}</span>
<div className="input-grid">
<input
type="text"
className="input-origin block"
onChange={(e) => {
handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
}}
defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
/>
</div>
<span className="absol">{pitchText}</span>
</div>
</div>
<div className="block-box"> <div className="block-box">
<div className="icon-btn-wrap"> <div className="icon-btn-wrap">
<button <button

View File

@ -117,22 +117,27 @@ export default function RoofAllocationSetting(props) {
)} )}
</div> </div>
</div> </div>
{roof.raftAuth && (
<div className="block-box"> <div className="block-box">
<div className="flex-ment"> <div className="flex-ment">
<span>{getMessage('slope')}</span> <span>{getMessage('modal.placement.initial.setting.rafter')}</span>
<div className="input-grid"> {raftCodes.length > 0 && (
<input <div className="grid-select">
type="text" <QSelectBox
className="input-origin block" options={raftCodes}
onChange={(e) => { value={roof}
handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index) showKey={'clCodeNm'}
}} sourceKey={'clCode'}
defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle} targetKey={roof.raft ? 'raft' : 'raftBaseCd'}
onChange={(e) => handleChangeRaft(e, index)}
/> />
</div> </div>
<span className="absol">{pitchText}</span> )}
</div> </div>
</div> </div>
)}
{(roof.widAuth || roof.lenAuth) && ( {(roof.widAuth || roof.lenAuth) && (
<> <>
{roof.widAuth && ( {roof.widAuth && (
@ -169,27 +174,6 @@ export default function RoofAllocationSetting(props) {
)} )}
</> </>
)} )}
{(roof.raftAuth || roof.roofPchAuth) && (
<>
{roof.raftAuth && (
<div className="block-box">
<div className="flex-ment">
<span>{getMessage('modal.placement.initial.setting.rafter')}</span>
{raftCodes.length > 0 && (
<div className="grid-select">
<QSelectBox
options={raftCodes}
value={roof}
showKey={'clCodeNm'}
sourceKey={'clCode'}
targetKey={roof.raft ? 'raft' : 'raftBaseCd'}
onChange={(e) => handleChangeRaft(e, index)}
/>
</div>
)}
</div>
</div>
)}
{roof.roofPchAuth && ( {roof.roofPchAuth && (
<div className="block-box"> <div className="block-box">
<div className="flex-ment"> <div className="flex-ment">
@ -206,8 +190,22 @@ export default function RoofAllocationSetting(props) {
</div> </div>
</div> </div>
)} )}
</> <div className="block-box">
)} <div className="flex-ment">
<span>{getMessage('slope')}</span>
<div className="input-grid">
<input
type="text"
className="input-origin block"
onChange={(e) => {
handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
}}
defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
/>
</div>
<span className="absol">{pitchText}</span>
</div>
</div>
<div className="block-box"> <div className="block-box">
<div className="icon-btn-wrap"> <div className="icon-btn-wrap">
<button <button