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
48bd113f
Commit
48bd113f
authored
Apr 13, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bobol
parent
2911e85a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
53 deletions
+29
-53
CorporateAnnualTargetRO.js
src/container/RollingOutlook/CorporateAnnualTargetRO.js
+29
-53
No files found.
src/container/RollingOutlook/CorporateAnnualTargetRO.js
View file @
48bd113f
...
@@ -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"
?
<
NumberForma
t
<
Inpu
t
thousandSeparator
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'
righ
t'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'
lef
t'
,
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
>
)
)
...
...
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