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
c8efd978
Commit
c8efd978
authored
Mar 19, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apdet ke 9875764543767
parent
9dac1ac1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
index.js
src/api/index.js
+3
-1
OperatingIndicatorRO.js
src/container/RollingOutlook/OperatingIndicatorRO.js
+5
-4
No files found.
src/api/index.js
View file @
c8efd978
...
...
@@ -260,6 +260,7 @@ const create = (type = "") => {
const
getHierarkiRollingOI
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/rolling_outlook/get_report_hierarki'
,
body
)
const
createRollingOI
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/rolling_outlook/create_rolling_outlook'
,
body
)
const
getLastestUpdateROOI
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/rolling_outlook/get_latest_update'
,
body
)
const
checkUploadRollingOutlookOI
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/rolling_outlook/check_import'
,
body
)
...
...
@@ -737,7 +738,8 @@ const create = (type = "") => {
getRollingOI
,
getHierarkiRollingOI
,
createRollingOI
,
getLastestUpdateROOI
getLastestUpdateROOI
,
checkUploadRollingOutlookOI
}
}
...
...
src/container/RollingOutlook/OperatingIndicatorRO.js
View file @
c8efd978
...
...
@@ -385,7 +385,6 @@ export default class OperatingIndicatorRO extends Component {
item_report_id
:
i
[
1
]
===
undefined
?
"0"
:
String
(
i
[
1
]).
trim
(),
item_report
:
i
[
2
]
===
undefined
?
"0"
:
String
(
i
[
2
]).
trim
(),
uom
:
i
[
3
]
===
undefined
?
""
:
String
(
i
[
3
]).
trim
(),
// total_actual_before: i[4] === undefined ? "0" : reg.test(String(i[4])) === false ? "0" : String(i[4]).trim(),
january
:
i
[
4
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
4
]))
===
false
?
"0"
:
String
(
i
[
4
]).
trim
(),
february
:
i
[
5
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
5
]))
===
false
?
"0"
:
String
(
i
[
5
]).
trim
(),
march
:
i
[
6
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
6
]))
===
false
?
"0"
:
String
(
i
[
6
]).
trim
(),
...
...
@@ -404,12 +403,15 @@ export default class OperatingIndicatorRO extends Component {
})
let
body
=
{
company_id
:
this
.
props
.
data
.
company
.
company_id
,
operating_indicator_id
:
this
.
state
.
operatingIndIDRolling
,
periode
:
this
.
props
.
data
.
periode
,
quartal
:
this
.
props
.
quartal
,
report_id
:
this
.
props
.
data
.
report_id
,
rolling_outlook
:
payload
,
status
:
'submitted'
}
console
.
log
(
body
)
console
.
log
(
resp
.
rows
[
1
][
0
]);
this
.
setState
({
payload
:
body
,
buttonError
:
false
,
judul
:
resp
.
rows
[
1
][
0
]
})
}
});
...
...
@@ -417,7 +419,7 @@ export default class OperatingIndicatorRO extends Component {
checkUpload
()
{
// // console.log(JSON.stringify(this.state.payload))
api
.
create
().
checkUpload
OperatingInd
(
this
.
state
.
payload
).
then
(
response
=>
{
api
.
create
().
checkUpload
RollingOutlookOI
(
this
.
state
.
payload
).
then
(
response
=>
{
// // // console.log(JSON.stringify(this.state.payload));
// // console.log('===============')
console
.
log
(
response
)
...
...
@@ -437,7 +439,6 @@ export default class OperatingIndicatorRO extends Component {
item
.
level
,
item
.
item_report
,
item
.
uom
,
item
.
total_actual_before
,
item
.
january
,
item
.
february
,
item
.
march
,
...
...
@@ -2355,7 +2356,7 @@ export default class OperatingIndicatorRO extends Component {
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
}}
onUpload
=
{()
=>
{
this
.
state
.
judul
===
"MASTER BUDGET - OPERATING INDICATOR"
?
String
(
this
.
state
.
judulColumn
).
includes
(
"UPLOAD"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"ROLLING"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"OUTLOOK"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"OPERATING"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"INDICATOR"
)
?
this
.
checkUpload
()
:
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
}}
...
...
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