pcs가 한개인 경우 selectbox 제거
This commit is contained in:
parent
c4b03c6745
commit
f91afaed3a
@ -649,12 +649,18 @@ export default function StepUp(props) {
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{pcsItem.serQtyList.map((item, serQtyIdx) => {
|
{pcsItem?.serQtyList?.map((item, serQtyIdx) => {
|
||||||
return (
|
return (
|
||||||
<tr
|
<tr
|
||||||
key={`row-${serQtyIdx}`}
|
key={`row-${serQtyIdx}`}
|
||||||
className={`${item.selected ? 'on' : ''}`}
|
className={`${item.selected ? 'on' : ''}`}
|
||||||
style={{ cursor: allocationType === 'auto' ? 'pointer' : 'default' }}
|
style={{ cursor: allocationType === 'auto' ? 'pointer' : 'default' }}
|
||||||
|
onClick={() => {
|
||||||
|
if (stepUp?.pcsItemList.length !== 1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
handleRowClick(idx, serQtyIdx, item.paralQty)
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<td
|
<td
|
||||||
className="al-r"
|
className="al-r"
|
||||||
@ -667,6 +673,7 @@ export default function StepUp(props) {
|
|||||||
<td className="al-r">
|
<td className="al-r">
|
||||||
{/* 2025.12.04 select 추가 */}
|
{/* 2025.12.04 select 추가 */}
|
||||||
{idx === 0 ? (
|
{idx === 0 ? (
|
||||||
|
stepUp?.pcsItemList.length !== 1 ? (
|
||||||
<select
|
<select
|
||||||
className="select-light dark table-select"
|
className="select-light dark table-select"
|
||||||
defaultValue={item.paralQty}
|
defaultValue={item.paralQty}
|
||||||
@ -696,6 +703,9 @@ export default function StepUp(props) {
|
|||||||
</select>
|
</select>
|
||||||
) : (
|
) : (
|
||||||
<>{item.paralQty}</>
|
<>{item.paralQty}</>
|
||||||
|
)
|
||||||
|
) : (
|
||||||
|
<>{item.paralQty}</>
|
||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
{/* <td className="al-r">{item.paralQty}</td> */}
|
{/* <td className="al-r">{item.paralQty}</td> */}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user