|
|
@ -169,20 +169,22 @@ export default function RptPendingAnswerFromAmazonDetail( |
|
|
|
}, [EstatusSwith, UserChanged]) |
|
|
|
}, [EstatusSwith, UserChanged]) |
|
|
|
|
|
|
|
|
|
|
|
const ColorSET = (value: number, mode: number) => { |
|
|
|
const ColorSET = (value: number, mode: number) => { |
|
|
|
switch(mode) { |
|
|
|
switch (mode) { |
|
|
|
case 1: { |
|
|
|
case 1: { |
|
|
|
// Background color
|
|
|
|
// Background color
|
|
|
|
if (value === 1) return '#FFFAF2' |
|
|
|
if (value === 1) return '#FFFAF2' |
|
|
|
else if (value === 2) return '#E5F7B6' |
|
|
|
else if (value === 2) return '#E5F7B6' |
|
|
|
else if (value === 3) return '#E9F3FC' |
|
|
|
else if (value === 3) return '#E9F3FC' |
|
|
|
break |
|
|
|
break |
|
|
|
} case 2: { |
|
|
|
} |
|
|
|
|
|
|
|
case 2: { |
|
|
|
// Border color
|
|
|
|
// Border color
|
|
|
|
if (value === 1) return '2px solid #F9A721' |
|
|
|
if (value === 1) return '2px solid #F9A721' |
|
|
|
else if (value === 2) return '2px solid green' |
|
|
|
else if (value === 2) return '2px solid green' |
|
|
|
else if (value === 3) return '2px solid blue' |
|
|
|
else if (value === 3) return '2px solid blue' |
|
|
|
break |
|
|
|
break |
|
|
|
} case 3: { |
|
|
|
} |
|
|
|
|
|
|
|
case 3: { |
|
|
|
// Color
|
|
|
|
// Color
|
|
|
|
if (value === 1) return '#5923F6' |
|
|
|
if (value === 1) return '#5923F6' |
|
|
|
if (value === 2) return '#000000' |
|
|
|
if (value === 2) return '#000000' |
|
|
@ -194,7 +196,7 @@ export default function RptPendingAnswerFromAmazonDetail( |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
{props.detail.confirmaFraccion === 2 ?
|
|
|
|
{props.detail.confirmaFraccion === 2 ? ( |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -306,7 +308,9 @@ export default function RptPendingAnswerFromAmazonDetail( |
|
|
|
className="DetailData" |
|
|
|
className="DetailData" |
|
|
|
> |
|
|
|
> |
|
|
|
<CurrencyFormat |
|
|
|
<CurrencyFormat |
|
|
|
value={props.detail.fraccionGEMCO ? props.detail.fraccionGEMCO : ''} |
|
|
|
value={ |
|
|
|
|
|
|
|
props.detail.fraccionGEMCO ? props.detail.fraccionGEMCO : '' |
|
|
|
|
|
|
|
} |
|
|
|
disabled={true} |
|
|
|
disabled={true} |
|
|
|
format={'######## ##'} |
|
|
|
format={'######## ##'} |
|
|
|
displayType={'input'} |
|
|
|
displayType={'input'} |
|
|
@ -501,7 +505,10 @@ export default function RptPendingAnswerFromAmazonDetail( |
|
|
|
)} |
|
|
|
)} |
|
|
|
</OverlayTrigger> |
|
|
|
</OverlayTrigger> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> : '' } |
|
|
|
</tr> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
'' |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
|
<Modal |
|
|
|
<Modal |
|
|
|
show={ShowModal} |
|
|
|
show={ShowModal} |
|
|
@ -517,8 +524,16 @@ export default function RptPendingAnswerFromAmazonDetail( |
|
|
|
<Col xs={12}> |
|
|
|
<Col xs={12}> |
|
|
|
<Alert key={'danger'} variant={'danger'}> |
|
|
|
<Alert key={'danger'} variant={'danger'}> |
|
|
|
<Row> |
|
|
|
<Row> |
|
|
|
<Col xs={3} style={{fontWeight:'bold', cursor: 'pointer'}} onClick={() => openLink(props.detail.itemId)}>({props.detail.itemId})</Col> |
|
|
|
<Col |
|
|
|
<Col xs={9}>¿Esta seguro que esta fraccion ya la autorizo Amazon?</Col> |
|
|
|
xs={3} |
|
|
|
|
|
|
|
style={{ fontWeight: 'bold', cursor: 'pointer' }} |
|
|
|
|
|
|
|
onClick={() => openLink(props.detail.itemId)} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
({props.detail.itemId}) |
|
|
|
|
|
|
|
</Col> |
|
|
|
|
|
|
|
<Col xs={9}> |
|
|
|
|
|
|
|
¿Esta seguro que esta fraccion ya la autorizo Amazon? |
|
|
|
|
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
</Row> |
|
|
|
</Alert> |
|
|
|
</Alert> |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
@ -569,9 +584,7 @@ export default function RptPendingAnswerFromAmazonDetail( |
|
|
|
as="textarea" |
|
|
|
as="textarea" |
|
|
|
id="Comentarios" |
|
|
|
id="Comentarios" |
|
|
|
size="sm" |
|
|
|
size="sm" |
|
|
|
value={ |
|
|
|
value={Comentarios} |
|
|
|
Comentarios
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
onChange={(e) => setComentarios(e.target.value)} |
|
|
|
onChange={(e) => setComentarios(e.target.value)} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|