Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
bf83cf01
Commit
bf83cf01
authored
Mar 26, 2021
by
faisalhamdi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue catro!
parent
43c8fd04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
68 deletions
+70
-68
CatRevision.js
src/container/RollingOutlook/CatRevision.js
+70
-68
No files found.
src/container/RollingOutlook/CatRevision.js
View file @
bf83cf01
...
...
@@ -1228,53 +1228,6 @@ export default class CatRevision extends Component {
{
value
}
<
/div
>
<
/div
>
// <div style={{ textAlign: 'center' }}>
// {tableMeta.rowData[0] === 1 || tableMeta.rowData[0] === 2 || tableMeta.rowData[0] === 4 ?
// null :
// <FormControlLabel
// style={{ margin: 0 }}
// // value={value}
// control={
// // !handleAction(tableMeta.rowData[2], tableMeta.rowData[0]) ?
// <Input
// disableUnderline={true}
// style={{ fontSize: 12, textAlign: 'center', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent', marginTop: -10 }}
// type="text"
// placeholder=""
// defaultValue={value}
// color={"#5198ea"}
// disabled={true}
// onBlur={(event) => {
// // // // // console.log(event.target.value)
// // updateValue(event.target.value)
// // handleChangeText(event.target.value, tableMeta)
// // // // // console.log(dataTable2)
// }}
// />
// // />
// // />
// // :
// // <ThemeProvider theme={theme}>
// // <Input
// // disableUnderline={true}
// // style={{ fontSize: 12, textAlign: 'center', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent', marginBottom: -5 }}
// // type="text"
// // placeholder=""
// // defaultValue={value}
// // color={"#5198ea"}
// // // disabled={this.props.isApprover ? true : ((this.props.lastStatus == 'SUBMIT' || this.props.lastStatus == 'REVISION') && this.props.prevRevision === false ? false : !handleAction(tableMeta.rowData[2]))}
// // onBlur={(event) => {
// // // // // // console.log(event.target.value)
// // // updateValue(event.target.value)
// // handleChangeText(event.target.value, tableMeta)
// // // // // // console.log(dataTable2)
// // }}
// // />
// // </ThemeProvider>
// }
// />
// }
// </div>
)
}
}
...
...
@@ -2537,37 +2490,86 @@ export default class CatRevision extends Component {
{
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
2
||
tableMeta
.
rowData
[
0
]
===
4
?
null
:
this
.
state
.
get_for
==
"view"
?
<
Inpu
t
disableUnderline
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'
center
'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
<
NumberForma
t
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'
right
'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
defaultValue
=
{
value
}
value
=
{
Number
(
value
).
toFixed
(
1
)
}
/
>
:
<
FormControlLabel
style
=
{{
margin
:
0
}}
control
=
{
<
ThemeProvider
theme
=
{
theme
}
>
<
Input
disableUnderline
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
5
}}
tableMeta
.
rowData
[
5
]
===
'ROIC'
?
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
true
}
disable
=
{
true
}
defaultValue
=
{
value
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
disabled
=
{
true
}
onBlur
=
{(
event
)
=>
{
//
// // // console.log
(event.target.value)
handleChange
Text
(
event
.
target
.
value
,
tableMeta
)
// // // // console.log(
dataTable2
)
//
updateValue
(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
)
// // // // console.log(
tableMeta.rowData[0]
)
}}
/
>
<
/ThemeProvider
>
}
/
>
}
/>
:
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
2
||
tableMeta
.
rowData
[
0
]
===
4
?
null
:
(
handleReturnFormula
(
tableMeta
.
rowData
[
2
],
tableMeta
)
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
// value={Number(handleValueFormula(value, tableMeta, 4)).toFixed(1)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
)
// // // // console.log(tableMeta.rowData[0])
}}
/
>
}
/
>
<
/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
>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment