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
a693e8b6
Commit
a693e8b6
authored
Jul 09, 2021
by
Rifka Kurnia
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rifka' into 'master'
ubah url progrep See merge request
!1543
parents
024ece7a
6fd1f458
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 @
a693e8b6
...
@@ -478,10 +478,10 @@ const create = (type = "") => {
...
@@ -478,10 +478,10 @@ const create = (type = "") => {
const
deleteDocument
=
(
id
)
=>
api
.
post
(
`document/delete_document/
${
id
}
`
)
const
deleteDocument
=
(
id
)
=>
api
.
post
(
`document/delete_document/
${
id
}
`
)
// Monitoring
// 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
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
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
// Superadmin Approve
const
getListApprover
=
(
report
,
monthlyReportId
)
=>
api
.
get
(
`transaction/
${
report
}
/get_approver/
${
monthlyReportId
}
`
)
const
getListApprover
=
(
report
,
monthlyReportId
)
=>
api
.
get
(
`transaction/
${
report
}
/get_approver/
${
monthlyReportId
}
`
)
...
...
src/container/Progress/ProgressReport.js
View file @
a693e8b6
...
@@ -171,8 +171,8 @@ class ReportProgress extends Component {
...
@@ -171,8 +171,8 @@ class ReportProgress extends Component {
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
data
.
map
((
item
,
index
)
=>
{
data
.
map
((
item
,
index
)
=>
{
let
report
=
[]
let
report
=
[]
let
statusSubmission
=
String
(
item
.
submission
S
tatus
).
toLocaleUpperCase
()
let
statusSubmission
=
String
(
item
.
submission
_s
tatus
).
toLocaleUpperCase
()
let
statusOI
=
String
(
item
.
operating
I
ndicator
).
toLocaleUpperCase
()
let
statusOI
=
String
(
item
.
operating
_i
ndicator
).
toLocaleUpperCase
()
item
.
report
.
map
((
items
,
index
)
=>
{
item
.
report
.
map
((
items
,
index
)
=>
{
let
statusReport
=
String
(
items
.
status_report
).
toLocaleUpperCase
()
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
})
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 {
...
@@ -181,7 +181,7 @@ class ReportProgress extends Component {
{
report_name
:
'Operating Indicator'
,
status_report
:
statusOI
},
{
report_name
:
'Operating Indicator'
,
status_report
:
statusOI
},
{
report_name
:
'Submission Status'
,
status_report
:
(
statusSubmission
==
'APPROVED'
||
statusSubmission
==
'REVISION'
||
statusSubmission
==
'COMPLETED'
)
?
(
statusSubmission
+
' - '
+
item
.
submissionStatusDate
)
:
statusSubmission
})
{
report_name
:
'Submission Status'
,
status_report
:
(
statusSubmission
==
'APPROVED'
||
statusSubmission
==
'REVISION'
||
statusSubmission
==
'COMPLETED'
)
?
(
statusSubmission
+
' - '
+
item
.
submissionStatusDate
)
:
statusSubmission
})
dataTable
.
push
([
dataTable
.
push
([
item
.
company
N
ame
,
item
.
company
_n
ame
,
report
report
])
])
})
})
...
@@ -293,8 +293,8 @@ class ReportProgress extends Component {
...
@@ -293,8 +293,8 @@ class ReportProgress extends Component {
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
data
.
map
((
item
,
index
)
=>
{
data
.
map
((
item
,
index
)
=>
{
let
report
=
[]
let
report
=
[]
let
statusSubmission
=
String
(
item
.
submissionS
tatus
).
toLocaleUpperCase
()
let
statusSubmission
=
String
(
item
.
outlook_s
tatus
).
toLocaleUpperCase
()
let
statusOI
=
String
(
item
.
operating
I
ndicator
).
toLocaleUpperCase
()
let
statusOI
=
String
(
item
.
operating
_i
ndicator
).
toLocaleUpperCase
()
item
.
report
.
map
((
items
,
index
)
=>
{
item
.
report
.
map
((
items
,
index
)
=>
{
let
statusReport
=
String
(
items
.
status_report
).
toLocaleUpperCase
()
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
})
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 {
...
@@ -303,7 +303,7 @@ class ReportProgress extends Component {
{
report_name
:
'Operating Indicator'
,
status_report
:
statusOI
},
{
report_name
:
'Operating Indicator'
,
status_report
:
statusOI
},
{
report_name
:
'OLPA Status'
,
status_report
:
(
statusSubmission
==
'APPROVED'
||
statusSubmission
==
'REVISION'
||
statusSubmission
==
'COMPLETED'
)
?
(
statusSubmission
+
' - '
+
item
.
submissionStatusDate
)
:
statusSubmission
})
{
report_name
:
'OLPA Status'
,
status_report
:
(
statusSubmission
==
'APPROVED'
||
statusSubmission
==
'REVISION'
||
statusSubmission
==
'COMPLETED'
)
?
(
statusSubmission
+
' - '
+
item
.
submissionStatusDate
)
:
statusSubmission
})
dataTable
.
push
([
dataTable
.
push
([
item
.
company
N
ame
,
item
.
company
_n
ame
,
report
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