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
60d485cc
Commit
60d485cc
authored
May 11, 2021
by
r.kurnia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
olpa cat again
parent
3679ff8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
CorporateAnnualTargetOLPA.js
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
+20
-15
No files found.
src/container/OutlookPA/CorporateAnnualTargetOLPA.js
View file @
60d485cc
...
@@ -533,6 +533,11 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -533,6 +533,11 @@ export default class CorporateAnnualTargetRO extends Component {
this
.
setState
({
visibleUpload
:
false
,
visibleCATRO
:
false
})
this
.
setState
({
visibleUpload
:
false
,
visibleCATRO
:
false
})
let
dataTable
=
[]
let
dataTable
=
[]
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
let
indexID
=
dataTable
.
findIndex
((
val
)
=>
val
[
1
]
==
item
.
parent
)
let
parent_name
=
""
if
(
indexID
!=
-
1
)
{
parent_name
=
dataTable
[
indexID
][
5
]
}
dataTable
.
push
([
dataTable
.
push
([
item
.
type_report_id
,
item
.
type_report_id
,
item
.
item_report_id
,
item
.
item_report_id
,
...
@@ -540,23 +545,23 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -540,23 +545,23 @@ export default class CorporateAnnualTargetRO extends Component {
item
.
formula
,
item
.
formula
,
item
.
level
,
item
.
level
,
item
.
item_report
,
item
.
item_report
,
Number
(
String
(
item
.
weight
).
substr
(
0
,
String
(
item
.
weight
).
length
-
1
)),
item
.
parent
==
null
?
(
Number
(
item
.
weight
)
*
100
)
:
Number
(
String
(
item
.
weight
).
substr
(
0
,
String
(
item
.
weight
).
length
-
1
)),
item
.
uom
,
item
.
uom
,
item
.
kpi_type
==
""
||
item
.
kpi_type
==
null
?
null
:
{
value
:
item
.
kpi_type
},
item
.
kpi_type
==
""
||
item
.
kpi_type
==
null
?
null
:
{
value
:
item
.
kpi_type
},
item
.
max_ach
==
""
||
item
.
max_ach
==
null
?
null
:
{
value
:
titleCase
(
item
.
max_ach
)
},
item
.
max_ach
==
""
||
item
.
max_ach
==
null
?
null
:
{
value
:
titleCase
(
item
.
max_ach
)
},
item
.
formula_ytd
==
""
||
item
.
formula_ytd
==
null
?
null
:
{
value
:
item
.
formula_ytd
},
item
.
formula_ytd
==
""
||
item
.
formula_ytd
==
null
?
null
:
{
value
:
item
.
formula_ytd
},
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
january
).
toFixed
(
1
)
:
{
value
:
item
.
january
,
formula
:
item
.
january_formula
}
:
item
.
january
==
""
?
item
.
january
:
String
(
item
.
january
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
january
)
:
Number
(
item
.
january
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
january
).
toFixed
(
1
)
:
{
value
:
item
.
january
,
formula
:
item
.
january_formula
}
:
item
.
january
==
""
?
item
.
january
:
String
(
item
.
january
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
january
)
:
Number
(
item
.
january
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
february
).
toFixed
(
1
)
:
{
value
:
item
.
february
,
formula
:
item
.
february_formula
}
:
item
.
february
==
""
?
item
.
february
:
String
(
item
.
february
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
february
)
:
Number
(
item
.
february
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
february
).
toFixed
(
1
)
:
{
value
:
item
.
february
,
formula
:
item
.
february_formula
}
:
item
.
february
==
""
?
item
.
february
:
String
(
item
.
february
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
february
)
:
Number
(
item
.
february
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
march
).
toFixed
(
1
)
:
{
value
:
item
.
march
,
formula
:
item
.
march_formula
}
:
item
.
march
==
""
?
item
.
march
:
String
(
item
.
march
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
march
)
:
Number
(
item
.
march
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
march
).
toFixed
(
1
)
:
{
value
:
item
.
march
,
formula
:
item
.
march_formula
}
:
item
.
march
==
""
?
item
.
march
:
String
(
item
.
march
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
march
)
:
Number
(
item
.
march
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
april
).
toFixed
(
1
)
:
{
value
:
item
.
april
,
formula
:
item
.
april_formula
}
:
item
.
april
==
""
?
item
.
april
:
String
(
item
.
april
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
april
)
:
Number
(
item
.
april
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
april
).
toFixed
(
1
)
:
{
value
:
item
.
april
,
formula
:
item
.
april_formula
}
:
item
.
april
==
""
?
item
.
april
:
String
(
item
.
april
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
april
)
:
Number
(
item
.
april
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
may
).
toFixed
(
1
)
:
{
value
:
item
.
may
,
formula
:
item
.
may_formula
}
:
item
.
may
==
""
?
item
.
may
:
String
(
item
.
may
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
may
)
:
Number
(
item
.
may
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
may
).
toFixed
(
1
)
:
{
value
:
item
.
may
,
formula
:
item
.
may_formula
}
:
item
.
may
==
""
?
item
.
may
:
String
(
item
.
may
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
may
)
:
Number
(
item
.
may
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
june
).
toFixed
(
1
)
:
{
value
:
item
.
june
,
formula
:
item
.
june_formula
}
:
item
.
june
==
""
?
item
.
june
:
String
(
item
.
june
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
june
)
:
Number
(
item
.
june
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
june
).
toFixed
(
1
)
:
{
value
:
item
.
june
,
formula
:
item
.
june_formula
}
:
item
.
june
==
""
?
item
.
june
:
String
(
item
.
june
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
june
)
:
Number
(
item
.
june
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
july
).
toFixed
(
1
)
:
{
value
:
item
.
july
,
formula
:
item
.
july_formula
}
:
item
.
july
==
""
?
item
.
july
:
String
(
item
.
july
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
july
)
:
Number
(
item
.
july
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
july
).
toFixed
(
1
)
:
{
value
:
item
.
july
,
formula
:
item
.
july_formula
}
:
item
.
july
==
""
?
item
.
july
:
String
(
item
.
july
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
july
)
:
Number
(
item
.
july
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
august
).
toFixed
(
1
)
:
{
value
:
item
.
august
,
formula
:
item
.
august_formula
}
:
item
.
august
==
""
?
item
.
august
:
String
(
item
.
august
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
august
)
:
Number
(
item
.
august
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
august
).
toFixed
(
1
)
:
{
value
:
item
.
august
,
formula
:
item
.
august_formula
}
:
item
.
august
==
""
?
item
.
august
:
String
(
item
.
august
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
august
)
:
Number
(
item
.
august
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
september
).
toFixed
(
1
)
:
{
value
:
item
.
september
,
formula
:
item
.
september_formula
}
:
item
.
september
==
""
?
item
.
september
:
String
(
item
.
september
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
september
)
:
Number
(
item
.
september
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
september
).
toFixed
(
1
)
:
{
value
:
item
.
september
,
formula
:
item
.
september_formula
}
:
item
.
september
==
""
?
item
.
september
:
String
(
item
.
september
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
september
)
:
Number
(
item
.
september
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
october
).
toFixed
(
1
)
:
{
value
:
item
.
october
,
formula
:
item
.
october_formula
}
:
item
.
october
==
""
?
item
.
october
:
String
(
item
.
october
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
october
)
:
Number
(
item
.
october
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
october
).
toFixed
(
1
)
:
{
value
:
item
.
october
,
formula
:
item
.
october_formula
}
:
item
.
october
==
""
?
item
.
october
:
String
(
item
.
october
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
october
)
:
Number
(
item
.
october
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
november
).
toFixed
(
1
)
:
{
value
:
item
.
november
,
formula
:
item
.
november_formula
}
:
item
.
november
==
""
?
item
.
november
:
String
(
item
.
november
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
november
)
:
Number
(
item
.
november
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
november
).
toFixed
(
1
)
:
{
value
:
item
.
november
,
formula
:
item
.
november_formula
}
:
item
.
november
==
""
?
item
.
november
:
String
(
item
.
november
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
november
)
:
Number
(
item
.
november
).
toFixed
(
1
),
item
.
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
december
).
toFixed
(
1
)
:
{
value
:
item
.
december
,
formula
:
item
.
december_formula
}
:
item
.
december
==
""
?
item
.
december
:
String
(
item
.
december
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
december
)
:
Number
(
item
.
december
).
toFixed
(
1
),
parent_name
==
"FINANCIAL PERSPECTIVE"
?
item
.
type_report_id
==
3
?
Number
(
item
.
december
).
toFixed
(
1
)
:
{
value
:
item
.
december
,
formula
:
item
.
december_formula
}
:
item
.
december
==
""
?
item
.
december
:
String
(
item
.
december
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
december
)
:
Number
(
item
.
december
).
toFixed
(
1
),
item
.
total_current_year
==
""
?
item
.
total_current_year
:
String
(
item
.
total_current_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
total_current_year
)
:
Number
(
item
.
total_current_year
).
toFixed
(
1
),
item
.
total_current_year
==
""
?
item
.
total_current_year
:
String
(
item
.
total_current_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
total_current_year
)
:
Number
(
item
.
total_current_year
).
toFixed
(
1
),
item
.
strategic
,
item
.
strategic
,
item
.
pic
,
item
.
pic
,
...
@@ -632,8 +637,8 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -632,8 +637,8 @@ export default class CorporateAnnualTargetRO extends Component {
"october"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
20
])
:
String
(
Number
(
i
[
20
].
value
).
toFixed
(
1
))
:
String
(
i
[
20
]),
"october"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
20
])
:
String
(
Number
(
i
[
20
].
value
).
toFixed
(
1
))
:
String
(
i
[
20
]),
"november"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
21
])
:
String
(
Number
(
i
[
21
].
value
).
toFixed
(
1
))
:
String
(
i
[
21
]),
"november"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
21
])
:
String
(
Number
(
i
[
21
].
value
).
toFixed
(
1
))
:
String
(
i
[
21
]),
"december"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
22
])
:
String
(
Number
(
i
[
22
].
value
).
toFixed
(
1
))
:
String
(
i
[
22
]),
"december"
:
stateFR
?
i
[
0
]
==
3
?
String
(
i
[
22
])
:
String
(
Number
(
i
[
22
].
value
).
toFixed
(
1
))
:
String
(
i
[
22
]),
"
current_year_total
"
:
String
(
Number
(
i
[
23
]).
toFixed
(
1
))
==
""
?
"0.0"
:
String
(
Number
(
i
[
23
]).
toFixed
(
1
)),
"
total_current_year
"
:
String
(
Number
(
i
[
23
]).
toFixed
(
1
))
==
""
?
"0.0"
:
String
(
Number
(
i
[
23
]).
toFixed
(
1
)),
"strategic"
:
String
(
i
[
24
]),
"strategic"
:
i
[
24
]
==
null
?
""
:
String
(
i
[
24
]),
"pic"
:
String
(
i
[
25
])
"pic"
:
String
(
i
[
25
])
})
})
})
})
...
...
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