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
5f7ff9f4
Commit
5f7ff9f4
authored
Jul 09, 2021
by
r.kurnia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ubah url progres report
parent
d617fb8b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
index.js
src/api/index.js
+2
-2
ProgressReport.js
src/container/Progress/ProgressReport.js
+6
-6
No files found.
src/api/index.js
View file @
5f7ff9f4
...
...
@@ -478,10 +478,10 @@ const create = (type = "") => {
const
deleteDocument
=
(
id
)
=>
api
.
post
(
`document/delete_document/
${
id
}
`
)
// Monitoring
const
getMonitoringMB
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/
master_budget`
,
body
)
const
getMonitoringMB
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/
submission/
${
body
.
year
}
`
)
const
getMonitoringMR
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/monthly_report/
${
body
.
year
}
/
${
body
.
month
}
`
)
const
getMonitoringRO
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/rolling_outlook/
${
body
.
year
}
/
${
body
.
quarter
}
`
)
const
getMonitoringOLPA
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/outlook
_pa`
,
body
)
const
getMonitoringOLPA
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/outlook
/
${
body
.
year
}
`
)
// Superadmin Approve
const
getListApprover
=
(
report
,
monthlyReportId
)
=>
api
.
get
(
`transaction/
${
report
}
/get_approver/
${
monthlyReportId
}
`
)
...
...
src/container/Progress/ProgressReport.js
View file @
5f7ff9f4
...
...
@@ -171,8 +171,8 @@ class ReportProgress extends Component {
let
data
=
response
.
data
.
data
data
.
map
((
item
,
index
)
=>
{
let
report
=
[]
let
statusSubmission
=
String
(
item
.
submission
S
tatus
).
toLocaleUpperCase
()
let
statusOI
=
String
(
item
.
operating
I
ndicator
).
toLocaleUpperCase
()
let
statusSubmission
=
String
(
item
.
submission
_s
tatus
).
toLocaleUpperCase
()
let
statusOI
=
String
(
item
.
operating
_i
ndicator
).
toLocaleUpperCase
()
item
.
report
.
map
((
items
,
index
)
=>
{
let
statusReport
=
String
(
items
.
status_report
).
toLocaleUpperCase
()
report
.
push
({
report_name
:
items
.
report_name
,
status_report
:
(
statusReport
==
'APPROVED'
||
statusReport
==
'REVISION'
||
statusReport
==
'COMPLETED'
)
?
(
statusReport
+
' - '
+
items
.
report_date
)
:
statusReport
})
...
...
@@ -181,7 +181,7 @@ class ReportProgress extends Component {
{
report_name
:
'Operating Indicator'
,
status_report
:
statusOI
},
{
report_name
:
'Submission Status'
,
status_report
:
(
statusSubmission
==
'APPROVED'
||
statusSubmission
==
'REVISION'
||
statusSubmission
==
'COMPLETED'
)
?
(
statusSubmission
+
' - '
+
item
.
submissionStatusDate
)
:
statusSubmission
})
dataTable
.
push
([
item
.
company
N
ame
,
item
.
company
_n
ame
,
report
])
})
...
...
@@ -293,8 +293,8 @@ class ReportProgress extends Component {
let
data
=
response
.
data
.
data
data
.
map
((
item
,
index
)
=>
{
let
report
=
[]
let
statusSubmission
=
String
(
item
.
submissionS
tatus
).
toLocaleUpperCase
()
let
statusOI
=
String
(
item
.
operating
I
ndicator
).
toLocaleUpperCase
()
let
statusSubmission
=
String
(
item
.
outlook_s
tatus
).
toLocaleUpperCase
()
let
statusOI
=
String
(
item
.
operating
_i
ndicator
).
toLocaleUpperCase
()
item
.
report
.
map
((
items
,
index
)
=>
{
let
statusReport
=
String
(
items
.
status_report
).
toLocaleUpperCase
()
report
.
push
({
report_name
:
items
.
report_name
,
status_report
:
(
statusReport
==
'APPROVED'
||
statusReport
==
'REVISION'
||
statusReport
==
'COMPLETED'
)
?
(
statusReport
+
' - '
+
items
.
report_date
)
:
statusReport
})
...
...
@@ -303,7 +303,7 @@ class ReportProgress extends Component {
{
report_name
:
'Operating Indicator'
,
status_report
:
statusOI
},
{
report_name
:
'OLPA Status'
,
status_report
:
(
statusSubmission
==
'APPROVED'
||
statusSubmission
==
'REVISION'
||
statusSubmission
==
'COMPLETED'
)
?
(
statusSubmission
+
' - '
+
item
.
submissionStatusDate
)
:
statusSubmission
})
dataTable
.
push
([
item
.
company
N
ame
,
item
.
company
_n
ame
,
report
])
})
...
...
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