Merge pull request 'dev' (#579) from dev into prd-deploy
Reviewed-on: #579
This commit is contained in:
commit
8a1e0fa638
@ -649,12 +649,18 @@ export default function StepUp(props) {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{pcsItem.serQtyList.map((item, serQtyIdx) => {
|
||||
{pcsItem?.serQtyList?.map((item, serQtyIdx) => {
|
||||
return (
|
||||
<tr
|
||||
key={`row-${serQtyIdx}`}
|
||||
className={`${item.selected ? 'on' : ''}`}
|
||||
style={{ cursor: allocationType === 'auto' ? 'pointer' : 'default' }}
|
||||
onClick={() => {
|
||||
if (stepUp?.pcsItemList.length !== 1) {
|
||||
return
|
||||
}
|
||||
handleRowClick(idx, serQtyIdx, item.paralQty)
|
||||
}}
|
||||
>
|
||||
<td
|
||||
className="al-r"
|
||||
@ -667,33 +673,37 @@ export default function StepUp(props) {
|
||||
<td className="al-r">
|
||||
{/* 2025.12.04 select 추가 */}
|
||||
{idx === 0 ? (
|
||||
<select
|
||||
className="select-light dark table-select"
|
||||
defaultValue={item.paralQty}
|
||||
name=""
|
||||
id=""
|
||||
onChange={(e) => {
|
||||
handleChangeApplyParalQty(idx, serQtyIdx, e.target.value)
|
||||
}}
|
||||
>
|
||||
{item.paralQty === 0 && (
|
||||
<option key="0" value="0">
|
||||
0
|
||||
</option>
|
||||
)}
|
||||
{Array.from(
|
||||
{
|
||||
length: originPcsVoltageStepUpList[index]
|
||||
? originPcsVoltageStepUpList[index]?.pcsItemList[idx].serQtyList[serQtyIdx].paralQty
|
||||
: item.paralQty,
|
||||
},
|
||||
(_, i) => i + 1,
|
||||
).map((num) => (
|
||||
<option key={num} value={num}>
|
||||
{num}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
stepUp?.pcsItemList.length !== 1 ? (
|
||||
<select
|
||||
className="select-light dark table-select"
|
||||
defaultValue={item.paralQty}
|
||||
name=""
|
||||
id=""
|
||||
onChange={(e) => {
|
||||
handleChangeApplyParalQty(idx, serQtyIdx, e.target.value)
|
||||
}}
|
||||
>
|
||||
{item.paralQty === 0 && (
|
||||
<option key="0" value="0">
|
||||
0
|
||||
</option>
|
||||
)}
|
||||
{Array.from(
|
||||
{
|
||||
length: originPcsVoltageStepUpList[index]
|
||||
? originPcsVoltageStepUpList[index]?.pcsItemList[idx].serQtyList[serQtyIdx].paralQty
|
||||
: item.paralQty,
|
||||
},
|
||||
(_, i) => i + 1,
|
||||
).map((num) => (
|
||||
<option key={num} value={num}>
|
||||
{num}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
) : (
|
||||
<>{item.paralQty}</>
|
||||
)
|
||||
) : (
|
||||
<>{item.paralQty}</>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user