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
c04b2bc9
Commit
c04b2bc9
authored
Oct 02, 2020
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'didam' into 'master'
apdet See merge request
!422
parents
4cb685d5
c91aa0a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+7
-7
No files found.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
c04b2bc9
...
@@ -243,7 +243,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -243,7 +243,7 @@ export default class CorporateAnnualTarget extends Component {
let
isi
=
resp
.
rows
.
slice
(
3
)
let
isi
=
resp
.
rows
.
slice
(
3
)
console
.
log
(
isi
);
console
.
log
(
isi
);
let
payload
=
[]
let
payload
=
[]
let
reg
=
/^
\d
+
$/
;
let
reg
=
/^
[
-+
]?(?:[
0-9
]
+,
)
*
[
0-9
]
+
(?:\.[
0-9
]
+
)?
$/
;
isi
.
map
((
i
,
index
)
=>
{
isi
.
map
((
i
,
index
)
=>
{
if
(
i
.
length
>
0
)
{
if
(
i
.
length
>
0
)
{
let
total
=
0
let
total
=
0
...
@@ -267,11 +267,11 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -267,11 +267,11 @@ export default class CorporateAnnualTarget extends Component {
payload
.
push
({
payload
.
push
({
item_report_id
:
i
[
0
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
0
]))
===
false
?
""
:
String
(
i
[
0
]).
trim
(),
item_report_id
:
i
[
0
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
0
]))
===
false
?
""
:
String
(
i
[
0
]).
trim
(),
item_report
:
i
[
1
]
===
undefined
?
""
:
String
(
i
[
1
]).
trim
(),
item_report
:
i
[
1
]
===
undefined
?
""
:
String
(
i
[
1
]).
trim
(),
weight
:
i
[
2
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
2
]))
===
false
?
""
:
String
(
i
[
2
]).
trim
(
),
weight
:
i
[
2
]
===
undefined
?
""
:
String
(
Number
(
i
[
2
]
*
100
)
+
'%'
),
uom
:
i
[
3
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
3
]))
===
false
?
""
:
String
(
i
[
3
]).
trim
(),
uom
:
i
[
3
]
===
undefined
?
""
:
String
(
i
[
3
]).
trim
(),
kpi_type
:
i
[
4
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
4
]))
===
false
?
""
:
String
(
i
[
4
]).
trim
(),
kpi_type
:
i
[
4
]
===
undefined
?
""
:
String
(
i
[
4
]).
trim
(),
max_ach
:
i
[
5
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
5
]))
===
false
?
""
:
String
(
i
[
5
]).
trim
(),
max_ach
:
i
[
5
]
===
undefined
?
""
:
String
(
i
[
5
]).
toLocaleLowerCase
()
!==
'unlimited'
?
String
(
Number
(
i
[
5
]
*
100
)
+
'%'
)
:
String
(
i
[
5
]).
trim
(),
formula
:
i
[
6
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
6
]))
===
false
?
""
:
String
(
i
[
6
]).
trim
(),
formula
:
i
[
6
]
===
undefined
?
""
:
String
(
i
[
6
]).
trim
(),
total_actual_before
:
i
[
7
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
7
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
7
]).
toFixed
(
1
)).
trim
(),
total_actual_before
:
i
[
7
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
7
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
7
]).
toFixed
(
1
)).
trim
(),
january
:
i
[
8
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
8
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
8
]).
toFixed
(
1
)).
trim
(),
january
:
i
[
8
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
8
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
8
]).
toFixed
(
1
)).
trim
(),
february
:
i
[
9
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
9
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
9
]).
toFixed
(
1
)).
trim
(),
february
:
i
[
9
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
9
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
9
]).
toFixed
(
1
)).
trim
(),
...
@@ -341,7 +341,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -341,7 +341,7 @@ export default class CorporateAnnualTarget extends Component {
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
:
item
.
max_ach
},
item
.
max_ach
==
""
||
item
.
max_ach
==
null
?
null
:
{
value
:
item
.
max_ach
},
item
.
formula
==
""
||
item
.
formula
==
null
?
null
:
{
value
:
item
.
formula
},
item
.
formula
_ytd
==
""
||
item
.
formula_ytd
==
null
?
null
:
{
value
:
item
.
formula_ytd
},
item
.
total_actual_before
==
""
?
item
.
total_actual_before
:
String
(
item
.
total_actual_before
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
total_actual_before
)
:
Number
(
item
.
total_actual_before
).
toFixed
(
1
),
item
.
total_actual_before
==
""
?
item
.
total_actual_before
:
String
(
item
.
total_actual_before
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
total_actual_before
)
:
Number
(
item
.
total_actual_before
).
toFixed
(
1
),
item
.
january
==
""
?
item
.
january
:
String
(
item
.
january
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
january
)
:
Number
(
item
.
january
).
toFixed
(
1
),
item
.
january
==
""
?
item
.
january
:
String
(
item
.
january
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
january
)
:
Number
(
item
.
january
).
toFixed
(
1
),
item
.
february
==
""
?
item
.
february
:
String
(
item
.
february
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
february
)
:
Number
(
item
.
february
).
toFixed
(
1
),
item
.
february
==
""
?
item
.
february
:
String
(
item
.
february
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
february
)
:
Number
(
item
.
february
).
toFixed
(
1
),
...
...
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