[1014] : [819の追加 レイアウト指定配置の自動配置]
[작업내용] : 고도화 단수 열수 자동 배치 작업
This commit is contained in:
parent
d6b0e4994a
commit
d244ba3b97
3
.gitmessage.txt
Normal file
3
.gitmessage.txt
Normal file
@ -0,0 +1,3 @@
|
||||
[일감번호] : [제목]
|
||||
|
||||
[작업내용] :
|
||||
@ -330,20 +330,21 @@ const Placement = forwardRef((props, refs) => {
|
||||
<th rowSpan={2} style={{ width: '22%' }}></th>
|
||||
{selectedModules &&
|
||||
selectedModules.itemList.map((item) => (
|
||||
<th colSpan={colspan}>
|
||||
// <th colSpan={colspan}>
|
||||
<th>
|
||||
<div className="color-wrap">
|
||||
<span className="color-box" style={{ backgroundColor: item.color }}></span>
|
||||
<span className="name">{item.itemNm}</span>
|
||||
</div>
|
||||
</th>
|
||||
))}
|
||||
{colspan > 1 && <th rowSpan={2}>{getMessage('total')}</th>}
|
||||
{colspan > 1 && <th rowSpan={2}>{getMessage('modal.module.basic.setting.module.placement.max.rows.multiple')}</th>}
|
||||
</tr>
|
||||
<tr>
|
||||
{selectedModules.itemList.map((item) => (
|
||||
<>
|
||||
<th>{getMessage('modal.module.basic.setting.module.placement.max.row')}</th>
|
||||
{colspan > 1 && <th>{getMessage('modal.module.basic.setting.module.placement.max.rows.multiple')}</th>}
|
||||
{/* {colspan > 1 && <th>{getMessage('modal.module.basic.setting.module.placement.max.rows.multiple')}</th>} */}
|
||||
</>
|
||||
))}
|
||||
</tr>
|
||||
@ -360,7 +361,7 @@ const Placement = forwardRef((props, refs) => {
|
||||
{moduleRowColArray[index]?.map((item, index2) => (
|
||||
<>
|
||||
<td className="al-c">{item.moduleMaxRows}</td>
|
||||
{colspan > 1 && <td className="al-c">{item.mixModuleMaxRows}</td>}
|
||||
{/* {colspan > 1 && <td className="al-c">{item.mixModuleMaxRows}</td>} */}
|
||||
{colspan > 1 && index2 === moduleRowColArray[index].length - 1 && <td className="al-c">{item.maxRow}</td>}
|
||||
</>
|
||||
))}
|
||||
|
||||
@ -2809,14 +2809,9 @@ export function useModuleBasicSetting(tabNum) {
|
||||
/**
|
||||
* 자동 레이아웃일떄 설치 가능한 애들은 설치 해주고 실패한 애들은 이름, 최대 설치 가능한 높이 알려줄라고
|
||||
*/
|
||||
if (type === MODULE_SETUP_TYPE.LAYOUT && failAutoSetupRoof.length > 0) {
|
||||
const roofNamesList = failAutoSetupRoof.map((roof) => ({
|
||||
roofName: roof.roofMaterial.roofMatlNmJp,
|
||||
moduleMaxRows: roof.trestleDetail.moduleMaxRows,
|
||||
}))
|
||||
|
||||
const alertString = roofNamesList.map((item, index) => `${item.roofName}(${item.moduleMaxRows})`)
|
||||
swalFire({ text: alertString, icon: 'warning' })
|
||||
if (type === MODULE_SETUP_TYPE.LAYOUT && failAutoSetupRoof.length) {
|
||||
const roofNames = failAutoSetupRoof.map((roof) => roof.roofMaterial.roofMatlNmJp).join(', ')
|
||||
swalFire({ text: getMessage('modal.module.basic.setting.module.placement.over.max.row', [roofNames]), icon: 'warning' })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1075,5 +1075,6 @@
|
||||
"modal.module.basic.setting.module.placement.max.rows.multiple": "2種混合時\rの最大段数",
|
||||
"modal.module.basic.setting.module.placement.mix.asg.yn.error": "混合インストール不可能なモジュールです。 (JA)",
|
||||
"modal.module.basic.setting.module.placement.mix.asg.yn": "混合",
|
||||
"modal.module.basic.setting.layoutpassivity.placement": "layout配置 (JA)"
|
||||
"modal.module.basic.setting.layoutpassivity.placement": "layout配置 (JA)",
|
||||
"modal.module.basic.setting.module.placement.over.max.row": "{0}의 최대단수를 초과했습니다. 최대단수표를 참고해 주세요.(JA)"
|
||||
}
|
||||
|
||||
@ -1076,5 +1076,6 @@
|
||||
"modal.module.basic.setting.module.placement.max.rows.multiple": "2종 혼합 최대단수",
|
||||
"modal.module.basic.setting.module.placement.mix.asg.yn.error": "혼합 설치 불가능한 모듈입니다.",
|
||||
"modal.module.basic.setting.module.placement.mix.asg.yn": "혼합",
|
||||
"modal.module.basic.setting.layoutpassivity.placement": "레이아웃 배치"
|
||||
"modal.module.basic.setting.layoutpassivity.placement": "레이아웃 배치",
|
||||
"modal.module.basic.setting.module.placement.over.max.row": "{0}의 최대단수를 초과했습니다. 최대단수표를 참고해 주세요."
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user