From 77157e34df4ffec2af294d65871db0a1f1555dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=8B=9D?= <43837214+Minsiki@users.noreply.github.com> Date: Tue, 4 Feb 2025 15:49:22 +0900 Subject: [PATCH 1/4] =?UTF-8?q?-=20=F0=9F=9A=A8chore:=20Sync=20Sass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/_modal.scss | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/src/styles/_modal.scss b/src/styles/_modal.scss index 61f631cd..7c959e83 100644 --- a/src/styles/_modal.scss +++ b/src/styles/_modal.scss @@ -259,6 +259,12 @@ $alert-color: #101010; border-bottom: 1px solid #424242; } } +.grid-check-form-block{ + display: block; + > div{ + margin-bottom: 10px; + } +} .grid-option-overflow{ max-height: 350px; overflow-y: auto; @@ -305,6 +311,25 @@ $alert-color: #101010; } .grid-option-block-form{ flex: 1; + .flex-ment{ + position: relative; + padding-right: 70px; + flex: 1 1 auto; + span{ + width: 70px; + &.absol{ + width: fit-content; + position: absolute; + top: 50%; + right: 0; + transform: translateY(-50%); + + } + } + .input-grid{ + flex: 1; + } + } } } .select-form{ @@ -312,6 +337,7 @@ $alert-color: #101010; } .grid-select{ flex: 1; + height: 30px; &.no-flx{ flex: unset; } @@ -2013,7 +2039,7 @@ $alert-color: #101010; } } .roof-module-tab2-overflow{ - max-height: 500px; + max-height: 650px; overflow-y: auto; padding-bottom: 15px; border-bottom: 1px solid #4D4D4D; @@ -2088,17 +2114,3 @@ $alert-color: #101010; justify-content: flex-end; } } - -.reset-word-wrap{ - display: flex; - align-items: center; - .grid-btn-wrap{ - margin-left: auto; - } -} -.reset-word{ - font-size: 12px; - color: #FFCACA; - font-weight: 400; - margin-top: 10px; -} \ No newline at end of file From 0491c14fb45f766bf9dbc41f44ea3dd151dce7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=8B=9D?= <43837214+Minsiki@users.noreply.github.com> Date: Tue, 4 Feb 2025 15:49:48 +0900 Subject: [PATCH 2/4] =?UTF-8?q?-=EB=8B=A8=EC=9C=84=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8(Unit=20Test)=20#554=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../floor-plan/modal/basic/step/Module.jsx | 2 - .../modal/basic/step/ModuleTabContents.jsx | 2 +- .../roofAllocation/RoofAllocationSetting.jsx | 70 +++++++++++-------- .../modal/roofShape/type/option/Wall.jsx | 1 - 4 files changed, 40 insertions(+), 35 deletions(-) diff --git a/src/components/floor-plan/modal/basic/step/Module.jsx b/src/components/floor-plan/modal/basic/step/Module.jsx index eb4f0177..4823ab6e 100644 --- a/src/components/floor-plan/modal/basic/step/Module.jsx +++ b/src/components/floor-plan/modal/basic/step/Module.jsx @@ -156,7 +156,6 @@ export default function Module({ setTabNum }) {
-
{getMessage('modal.module.basic.setting.module.stuff.info')}
{getMessage('modal.module.basic.setting.module.surface.type')}
@@ -271,7 +270,6 @@ export default function Module({ setTabNum }) {
{/* 설정 오류시 노출 */} -
※ 施工方法が選択できません。 基準風速または基準積雪量を確認してください。
diff --git a/src/components/floor-plan/modal/basic/step/ModuleTabContents.jsx b/src/components/floor-plan/modal/basic/step/ModuleTabContents.jsx index 706fad9f..24845bbf 100644 --- a/src/components/floor-plan/modal/basic/step/ModuleTabContents.jsx +++ b/src/components/floor-plan/modal/basic/step/ModuleTabContents.jsx @@ -203,7 +203,7 @@ export default function ModuleTabContents({ tabIndex, addRoof, setAddedRoofs, ro 強化施工 -
+
-
+
handleChangeRoofMaterial(e, index)} />
- {index === 0 && {getMessage('modal.roof.alloc.default.roof.material')}} - {index !== 0 && } + {index === 0 && {getMessage('modal.roof.alloc.default.roof.material')}} + {index !== 0 && ( + + + + )}
{getMessage('slope')} -
+
- {pitchText} + {pitchText}
{(roof.widAuth || roof.lenAuth) && ( -
+ <> {roof.widAuth && ( -
- W -
- handleChangeInput(e, 'width', index)} - readOnly={roof.widAuth === 'R'} - /> +
+
+ W +
+ handleChangeInput(e, 'width', index)} + readOnly={roof.widAuth === 'R'} + /> +
)} {roof.lenAuth && ( -
- L -
- handleChangeInput(e, 'length', index)} - readOnly={roof.lenAuth === 'R'} - /> +
+
+ L +
+ handleChangeInput(e, 'length', index)} + readOnly={roof.lenAuth === 'R'} + /> +
)} -
+ )} {(roof.raftAuth || roof.roofPchAuth) && ( -
+ <> {roof.raftAuth && (
{getMessage('modal.placement.initial.setting.rafter')} {raftCodes.length > 0 && ( -
+
{getMessage('hajebichi')} -
+
)} -
+ )}
diff --git a/src/components/floor-plan/modal/roofShape/type/option/Wall.jsx b/src/components/floor-plan/modal/roofShape/type/option/Wall.jsx index c7b04b2d..f78fe95d 100644 --- a/src/components/floor-plan/modal/roofShape/type/option/Wall.jsx +++ b/src/components/floor-plan/modal/roofShape/type/option/Wall.jsx @@ -6,7 +6,6 @@ export default function Wall({ sleeveOffset, setSleeveOffset, hasSleeve, setHasS const { getMessage } = useMessage() return ( <> - {hasSleeve}
From bc06d35bcf8b9d7a0f9aabd4e2824972a15b02e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=8B=9D?= <43837214+Minsiki@users.noreply.github.com> Date: Tue, 4 Feb 2025 15:51:38 +0900 Subject: [PATCH 3/4] =?UTF-8?q?-=EB=8B=A8=EC=9C=84=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8(Unit=20Test)=20#557=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../step/PowerConditionalSelect.jsx | 4 +- .../step/type/PassivityCircuitAllocation.jsx | 74 ++++++++++++++----- 2 files changed, 56 insertions(+), 22 deletions(-) diff --git a/src/components/floor-plan/modal/circuitTrestle/step/PowerConditionalSelect.jsx b/src/components/floor-plan/modal/circuitTrestle/step/PowerConditionalSelect.jsx index 407c5e34..5496a0d5 100644 --- a/src/components/floor-plan/modal/circuitTrestle/step/PowerConditionalSelect.jsx +++ b/src/components/floor-plan/modal/circuitTrestle/step/PowerConditionalSelect.jsx @@ -38,7 +38,7 @@ export default function PowerConditionalSelect(props) { const { swalFire } = useSwal() const modelHeader = [ { name: getMessage('시리즈'), width: '15%', prop: 'pcsSerNm', type: 'color-box' }, - { name: getMessage('명칭'), width: '15%', prop: 'itemNm', type: 'color-box' }, + { name: getMessage('명칭'), width: '15%', prop: 'goodsNo', type: 'color-box' }, { name: `${getMessage('modal.circuit.trestle.setting.power.conditional.select.rated.output')} (kW)`, width: '10%', @@ -240,7 +240,7 @@ export default function PowerConditionalSelect(props) {
{selectedModels?.map((model) => ( - {model.itemNm} + {model.goodsNo} ))}
diff --git a/src/components/floor-plan/modal/circuitTrestle/step/type/PassivityCircuitAllocation.jsx b/src/components/floor-plan/modal/circuitTrestle/step/type/PassivityCircuitAllocation.jsx index ded6c61f..7cbca2da 100644 --- a/src/components/floor-plan/modal/circuitTrestle/step/type/PassivityCircuitAllocation.jsx +++ b/src/components/floor-plan/modal/circuitTrestle/step/type/PassivityCircuitAllocation.jsx @@ -14,6 +14,7 @@ export default function PassivityCircuitAllocation(props) { tabNum, setTabNum, selectedModels, + setSelectedModels, getOptYn: getApiProps, getUseModuleItemList: getSelectedModuleList, getSelectModelList: getSelectModelList, @@ -201,6 +202,7 @@ export default function PassivityCircuitAllocation(props) { } } + let tempSelectedPcs = { ...selectedPcs } canvas.discardActiveObject() canvas .getObjects() @@ -229,6 +231,8 @@ export default function PassivityCircuitAllocation(props) { obj.pcsItemId = selectedPcs.itemId obj.circuit = moduleCircuitText obj.circuitNumber = getCircuitNumber() + tempSelectedPcs.used = true + setSelectedPcs(tempSelectedPcs) canvas.add(moduleCircuitText) }) @@ -249,25 +253,47 @@ export default function PassivityCircuitAllocation(props) { }), } }) + console.log('uniqueCircuitNumbers', uniqueCircuitNumbers) - const pcsItemList = selectedModels.map((model, index) => { - return { - pcsMkrCd: model.pcsMkrCd, - pcsSerCd: model.pcsSerCd, - itemId: model.itemId, - itemNm: model.itemNm, - goodsNo: model.goodsNo, - serQtyList: [ - { - serQty: targetModules.length, - paralQty: uniqueCircuitNumbers.length, - rmdYn: 'Y', - usePossYn: 'Y', - roofSurfaceList: roofSurfaceList, - }, - ], - } - }) + const usedPcses = selectedModels.filter((model) => model.isUsed) + const pcsItemList = + usedPcses.length === 0 + ? [ + { + pcsMkrCd: selectedPcs.pcsMkrCd, + pcsSerCd: selectedPcs.pcsSerCd, + itemId: selectedPcs.itemId, + itemNm: selectedPcs.itemNm, + goodsNo: selectedPcs.goodsNo, + serQtyList: [ + { + serQty: targetModules.length, + paralQty: uniqueCircuitNumbers.length, + rmdYn: 'Y', + usePossYn: 'Y', + roofSurfaceList: roofSurfaceList, + }, + ], + }, + ] + : selectedModels.map((model, index) => { + return { + pcsMkrCd: model.pcsMkrCd, + pcsSerCd: model.pcsSerCd, + itemId: model.itemId, + itemNm: model.itemNm, + goodsNo: model.goodsNo, + serQtyList: [ + { + serQty: targetModules.length, + paralQty: uniqueCircuitNumbers.length, + rmdYn: 'Y', + usePossYn: 'Y', + roofSurfaceList: roofSurfaceList, + }, + ], + } + }) const params = { ...getApiProps(), @@ -276,6 +302,7 @@ export default function PassivityCircuitAllocation(props) { } getPcsManualConfChk(params).then((res) => { + console.log('targetModules', targetModules) if (res.resultCode === 'E') { swalFire({ text: res.resultMsg, @@ -295,10 +322,17 @@ export default function PassivityCircuitAllocation(props) { canvas.renderAll() }, }) - + setSelectedPcs({ ...selectedPcs, used: false }) + setTargetModules([]) return } + setSelectedModels( + selectedModels.map((model) => { + return { ...model, isUsed: model.id === selectedPcs.id ? true : model.isUsed } + }), + ) + setTargetModules([]) setCircuitNumber(+circuitNumber + 1) setTableData() @@ -512,7 +546,7 @@ export default function PassivityCircuitAllocation(props) { onChange={() => setSelectedPcs(model)} />