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
f6c236ea
Commit
f6c236ea
authored
Oct 12, 2020
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apdeet
parent
025bc64e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+10
-10
No files found.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
f6c236ea
...
...
@@ -266,7 +266,7 @@ export default class CorporateAnnualTarget extends Component {
// console.log(nilaiTotal)
// // console.log(i[2] === undefined ? "" : String(Number(i[2]*100)).length > 3? String(Number(i[2]*100).toFixed(0) + '%') : String(Number(i[2]*100)) + '%')
payload
.
push
({
item_report_id
:
i
[
0
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
0
]))
===
false
?
""
:
String
(
i
[
0
]).
trim
(),
item_report_id
:
i
[
0
]
===
undefined
?
0
:
reg
.
test
(
String
(
i
[
0
]))
===
false
?
0
:
String
(
i
[
0
]).
trim
(),
item_report
:
i
[
1
]
===
undefined
?
""
:
String
(
i
[
1
]).
trim
(),
weight
:
i
[
2
]
===
undefined
?
""
:
String
(
Number
(
i
[
2
]
*
100
)).
length
>
3
?
String
(
Number
(
i
[
2
]
*
100
).
toFixed
(
0
)
+
'%'
)
:
String
(
Number
(
i
[
2
]
*
100
))
+
'%'
,
uom
:
i
[
3
]
===
undefined
?
""
:
String
(
i
[
3
]).
trim
(),
...
...
@@ -322,7 +322,7 @@ export default class CorporateAnnualTarget extends Component {
}
}
})
//
console.log(JSON.stringify(this.state.payload))
console
.
log
(
JSON
.
stringify
(
this
.
state
.
payload
))
api
.
create
().
checkUploadMB
(
this
.
state
.
payload
).
then
(
response
=>
{
// // console.log(JSON.stringify(this.state.payload));
// console.log(response)
...
...
@@ -334,7 +334,7 @@ export default class CorporateAnnualTarget extends Component {
return
[
item
.
type_report_id
,
item
.
item_report_id
,
item
.
parent
==
null
&&
item
.
item_report_id
==
null
?
(
response
.
data
.
data
[
index
-
1
].
item
.
parent
==
null
?
response
.
data
.
data
[
index
-
1
].
item
.
item_report_id
:
response
.
data
.
data
[
index
-
1
].
item
.
parent
)
:
item
.
parent
,
item
.
parent
,
item
.
formula
,
item
.
level
==
null
?
1
:
item
.
level
,
""
,
...
...
@@ -488,12 +488,12 @@ export default class CorporateAnnualTarget extends Component {
}
}
if
(
i
[
0
]
==
null
&&
i
[
2
]
==
null
)
{
if
(
i
[
6
]
==
""
||
i
[
7
]
==
""
||
i
[
9
]
==
null
||
i
[
10
]
==
null
||
i
[
11
]
==
null
)
{
handleKosongKPIMAXYTD
=
true
// console.log(handleKosongKPIMAXYTD)
}
}
//
if (i[0] == null && i[2] == null) {
//
if (i[6] == "" || i[7] == "" || i[9] == null || i[10] == null || i[11] == null) {
//
handleKosongKPIMAXYTD = true
//
// console.log(handleKosongKPIMAXYTD)
//
}
//
}
if
(
i
[
2
]
!==
null
)
{
let
indexID
=
dataTampung
.
findIndex
((
val
)
=>
val
.
id
==
i
[
2
])
...
...
@@ -896,7 +896,7 @@ export default class CorporateAnnualTarget extends Component {
newData
.
push
([
null
,
""
,
item
[
2
]
==
null
||
item
[
2
]
==
""
?
(
item
[
1
]
==
null
||
item
[
1
]
==
""
?
(
dataTable2
[
index
-
1
][
2
]
==
null
||
dataTable2
[
index
-
1
][
2
]
==
""
?
dataTable2
[
index
-
1
][
1
]
:
dataTable2
[
index
-
1
][
2
])
:
item
[
1
])
:
item
[
2
],
item
[
2
]
==
null
||
item
[
2
]
==
""
?
item
[
1
]
:
item
[
2
],
item
[
3
],
item
[
4
],
""
,
...
...
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