Commit 48bd113f authored by d.arizona's avatar d.arizona

bobol

parent 2911e85a
...@@ -394,7 +394,7 @@ export default class CorporateAnnualTargetRO extends Component { ...@@ -394,7 +394,7 @@ export default class CorporateAnnualTargetRO extends Component {
"uom": String(i[7]), "uom": String(i[7]),
"kpi_type": i[8] == null ? "" : i[8].value, "kpi_type": i[8] == null ? "" : i[8].value,
"max_ach": i[9] == null ? "" : i[9].value, "max_ach": i[9] == null ? "" : i[9].value,
"formula": i[10] == null ? "" : i[10].value, "formula_ytd": i[10] == null ? "" : i[10].value,
"january": stateFR ? i[0] == 3 ? String(i[11]) : String(Number(i[11].value).toFixed(1)) : String(i[11]), "january": stateFR ? i[0] == 3 ? String(i[11]) : String(Number(i[11].value).toFixed(1)) : String(i[11]),
"february": stateFR ? i[0] == 3 ? String(i[12]) : String(Number(i[12].value).toFixed(1)) : String(i[12]), "february": stateFR ? i[0] == 3 ? String(i[12]) : String(Number(i[12].value).toFixed(1)) : String(i[12]),
"march": stateFR ? i[0] == 3 ? String(i[13]) : String(Number(i[13].value).toFixed(1)) : String(i[13]), "march": stateFR ? i[0] == 3 ? String(i[13]) : String(Number(i[13].value).toFixed(1)) : String(i[13]),
...@@ -607,7 +607,7 @@ export default class CorporateAnnualTargetRO extends Component { ...@@ -607,7 +607,7 @@ export default class CorporateAnnualTargetRO extends Component {
"uom": String(i[7]), "uom": String(i[7]),
"kpi_type": i[8] == null ? "" : i[8].value, "kpi_type": i[8] == null ? "" : i[8].value,
"max_ach": i[9] == null ? "" : i[9].value, "max_ach": i[9] == null ? "" : i[9].value,
"formula": i[10] == null ? "" : i[10].value, "formula_ytd": i[10] == null ? "" : i[10].value,
"january": stateFR ? i[0] == 3 ? String(i[11]) : String(Number(i[11].value).toFixed(1)) : String(i[11]), "january": stateFR ? i[0] == 3 ? String(i[11]) : String(Number(i[11].value).toFixed(1)) : String(i[11]),
"february": stateFR ? i[0] == 3 ? String(i[12]) : String(Number(i[12].value).toFixed(1)) : String(i[12]), "february": stateFR ? i[0] == 3 ? String(i[12]) : String(Number(i[12].value).toFixed(1)) : String(i[12]),
"march": stateFR ? i[0] == 3 ? String(i[13]) : String(Number(i[13].value).toFixed(1)) : String(i[13]), "march": stateFR ? i[0] == 3 ? String(i[13]) : String(Number(i[13].value).toFixed(1)) : String(i[13]),
...@@ -2437,62 +2437,38 @@ export default class CorporateAnnualTargetRO extends Component { ...@@ -2437,62 +2437,38 @@ export default class CorporateAnnualTargetRO extends Component {
{tableMeta.rowData[0] === 1 || tableMeta.rowData[0] === 2 || tableMeta.rowData[0] === 4 ? {tableMeta.rowData[0] === 1 || tableMeta.rowData[0] === 2 || tableMeta.rowData[0] === 4 ?
null : null :
this.state.get_for == "view" ? this.state.get_for == "view" ?
<NumberFormat <Input
thousandSeparator={true} disableUnderline={true}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'left', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(value).toFixed(1)} defaultValue={value}
/> />
: :
(handleReturnFormula(tableMeta.rowData[2], tableMeta) ? <FormControlLabel
<div style={{ flex: 1 }}> style={{ margin: 0 }}
<FormControlLabel // value={value}
style={{ margin: 0 }} control={
value={value} <ThemeProvider theme={theme}>
control={ <Input
<NumberFormat disableUnderline={true}
thousandSeparator={true} style={{ color: "#5198ea", fontSize: 12, textAlign: 'center', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent', marginBottom: -5 }}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} type="text"
type="text" placeholder=""
placeholder="" disabled={this.props.quarter == 'q1' ? false : true}
value={Number(value).toFixed(1)} defaultValue={value}
disabled={true} onBlur={(event) => {
decimalScale={1} // console.log(event.target.value)
onBlur={(event) => { // updateValue(event.target.value)
// updateValue(event.target.value) handleChangeText(event.target.value, tableMeta)
handleChange(event.target.value, tableMeta) // console.log(dataTable2)
// console.log(tableMeta.rowData[0]) }}
}} />
/> </ThemeProvider>
}
/> }
</div> />
:
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: this.props.quarter == 'q1' ? "#5198ea" : '#555252', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
value={Number(value).toFixed(1)}
disabled={this.props.quarter == 'q1' ? false : true}
decimalScale={1}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(tableMeta.rowData[0])
}}
/>
}
/>
</div>
)
} }
</div> </div>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment