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
1c0caa5e
Commit
1c0caa5e
authored
Jul 22, 2021
by
syadziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update RO CAT
parent
ee9809e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+1
-1
CorporateAnnualTargetRO.js
src/container/RollingOutlook/CorporateAnnualTargetRO.js
+5
-2
No files found.
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
1c0caa5e
...
...
@@ -419,7 +419,7 @@ export default class CorporateAnnualTargetMR extends Component {
item
.
formula
,
item
.
level
,
item
.
item_report
,
item
.
parent
==
null
?
(
String
(
item
.
weight
).
includes
(
"%"
)
?
Number
(
String
(
item
.
weight
).
trim
().
substr
(
0
,
String
(
item
.
weight
).
trim
().
length
-
1
))
*
100
:
Number
(
item
.
weight
)
*
100
)
:
(
String
(
item
.
weight
).
includes
(
"%"
)
?
String
(
item
.
weight
).
trim
().
substr
(
0
,
String
(
item
.
weight
).
trim
().
length
-
1
)
:
item
.
weight
),
item
.
parent
==
null
?
(
String
(
item
.
weight
).
includes
(
"%"
)
?
Number
(
String
(
item
.
weight
).
trim
().
substr
(
0
,
String
(
item
.
weight
).
trim
().
length
-
1
))
:
Number
(
item
.
weight
)
*
100
)
:
(
String
(
item
.
weight
).
includes
(
"%"
)
?
String
(
item
.
weight
).
trim
().
substr
(
0
,
String
(
item
.
weight
).
trim
().
length
-
1
)
:
item
.
weight
),
item
.
uom
,
item
.
jenis_kpi
,
item
.
max_ach
,
...
...
src/container/RollingOutlook/CorporateAnnualTargetRO.js
View file @
1c0caa5e
...
...
@@ -142,6 +142,7 @@ export default class CorporateAnnualTargetRO extends Component {
if
(
indexIDzz
===
-
1
)
{
let
parentTrue
=
item
.
parent_name
==
'INTERNAL BUSINESS PROCESS PERSPECTIVE'
||
item
.
parent_name
==
'CUSTOMER PERSPECTIVE'
let
weight
=
String
(
item
.
weight
).
includes
(
'%'
)?
String
(
item
.
weight
).
substr
(
0
,
String
(
item
.
weight
).
length
-
1
)
:
String
(
item
.
weight
)
let
weightTB
=
String
(
item
.
corporate_annual_target
.
weight
).
includes
(
'%'
)?
String
(
item
.
corporate_annual_target
.
weight
).
substr
(
0
,
String
(
item
.
corporate_annual_target
.
weight
).
length
-
1
)
:
String
(
item
.
corporate_annual_target
.
weight
)
dataTable
.
push
([
item
.
type_report_id
,
item
.
id
,
...
...
@@ -149,7 +150,8 @@ export default class CorporateAnnualTargetRO extends Component {
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
corporate_annual_target
.
weight
==
""
?
Number
(
0
).
toFixed
(
1
)
:
Number
(
weight
).
toFixed
(
1
),
// item.parent == null ? Number(weight).toFixed(1) : (item.corporate_annual_target.weight == "" ? Number(0).toFixed(1) : Number(weight).toFixed(1)),
parentTrue
?
weight
:
weightTB
,
parentTrue
?
item
.
corporate_annual_target
.
uom
:
item
.
uom
,
parentTrue
?
item
.
corporate_annual_target
.
kpi
==
""
?
null
:
{
value
:
item
.
corporate_annual_target
.
kpi
}
:
item
.
kpi_type
==
""
?
null
:
{
value
:
item
.
kpi_type
},
parentTrue
?
item
.
corporate_annual_target
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
corporate_annual_target
.
max_ach
)
}
:
item
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
max_ach
)
},
...
...
@@ -189,7 +191,8 @@ export default class CorporateAnnualTargetRO extends Component {
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
corporate_annual_target
.
weight
==
''
?
Number
(
item
.
weight
*
100
).
toFixed
(
1
)
:
(
item
.
parent
==
null
?
Number
(
weight
*
100
).
toFixed
(
1
)
:
Number
(
weight
).
toFixed
(
1
)),
item
.
weight
==
''
?
Number
(
0
).
toFixed
(
1
)
:
Number
(
Number
(
item
.
weight
)
*
100
).
toFixed
(
1
),
// item.parent == null ? Number(weight * 100).toFixed(1) : (item.corporate_annual_target.weight == '' ? Number(item.weight * 100).toFixed(1) : (item.parent == null ? Number(weight * 100).toFixed(1) : Number(weight).toFixed(1))),
// item.corporate_annual_target.weight == "" ? Number(0).toFixed(1) : Number(Number(weight * 100)).toFixed(1),
item
.
corporate_annual_target
.
uom
,
item
.
kpi_type
==
""
?
null
:
{
value
:
item
.
kpi_type
},
...
...
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