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
c763231c
Commit
c763231c
authored
Jul 08, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
done update
parent
c88c2078
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
149 additions
and
80 deletions
+149
-80
index.js
src/api/index.js
+2
-2
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+11
-11
ProgressReport.js
src/container/Progress/ProgressReport.js
+93
-24
TableProgressReport.js
src/container/Progress/TableProgressReport.js
+19
-19
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+24
-24
No files found.
src/api/index.js
View file @
c763231c
...
@@ -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
?year=
${
body
.
year
}
`
)
const
getMonitoringMB
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/master_budget
`
,
body
)
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
?year=
${
body
.
year
}
`
)
const
getMonitoringOLPA
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/outlook_pa
`
,
body
)
// 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/OutlookPA/BalanceSheetOLPA.js
View file @
c763231c
...
@@ -326,17 +326,17 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -326,17 +326,17 @@ export default class BalanceSheetOLPA extends Component {
console
.
log
(
data
);
console
.
log
(
data
);
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
if
(
type
==
'submitted'
)
{
if
(
type
==
'submitted'
)
{
this
.
props
.
saveToOLPA
(
payload
)
this
.
props
.
saveToOLPA
(
payload
,
'BS'
)
let
bodyRatioOLPA
=
{
//
let bodyRatioOLPA = {
"report"
:
'ratio'
,
//
"report": 'ratio',
"outlookPaId"
:
this
.
props
.
outlook_pa_id
,
//
"outlookPaId": this.props.outlook_pa_id,
"companyId"
:
this
.
props
.
company
.
company_id
,
//
"companyId": this.props.company.company_id,
"periode"
:
this
.
props
.
periode
//
"periode": this.props.periode
}
//
}
api
.
create
().
triggerRatioOLPA
(
bodyRatioOLPA
).
then
((
res
)
=>
{
//
api.create().triggerRatioOLPA(bodyRatioOLPA).then((res) => {
console
.
log
(
res
)
//
console.log(res)
this
.
setState
({
loading
:
false
})
//
this.setState({ loading: false })
})
//
})
this
.
props
.
onClickClose
()
this
.
props
.
onClickClose
()
}
else
{
}
else
{
this
.
props
.
saveToOLPA
(
payload
)
this
.
props
.
saveToOLPA
(
payload
)
...
...
src/container/Progress/ProgressReport.js
View file @
c763231c
This diff is collapsed.
Click to expand it.
src/container/Progress/TableProgressReport.js
View file @
c763231c
This diff is collapsed.
Click to expand it.
src/container/RollingOutlook/BalanceSheetRO.js
View file @
c763231c
...
@@ -374,18 +374,18 @@ export default class BalanceSheetRO extends Component {
...
@@ -374,18 +374,18 @@ export default class BalanceSheetRO extends Component {
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
type
==
'submitted'
)
{
if
(
type
==
'submitted'
)
{
this
.
props
.
onClickClose
()
this
.
props
.
onClickClose
()
this
.
props
.
refresh
()
this
.
props
.
refresh
(
'BS'
)
let
bodyRatioRO
=
{
//
let bodyRatioRO = {
"report"
:
'ratio'
,
//
"report": 'ratio',
"rollingOutlookId"
:
this
.
props
.
rollingOutlookID
,
//
"rollingOutlookId": this.props.rollingOutlookID,
"periode"
:
this
.
props
.
periode
,
//
"periode": this.props.periode,
"companyId"
:
this
.
props
.
company
.
company_id
,
//
"companyId": this.props.company.company_id,
"quartal"
:
this
.
props
.
quarter
//
"quartal": this.props.quarter
}
//
}
api
.
create
().
triggerRatioRO
(
bodyRatioRO
).
then
((
res
)
=>
{
//
api.create().triggerRatioRO(bodyRatioRO).then((res) => {
console
.
log
(
res
)
//
console.log(res)
this
.
setState
({
loading
:
false
})
//
this.setState({ loading: false })
})
//
})
}
else
{
}
else
{
this
.
props
.
onClickClose
()
this
.
props
.
onClickClose
()
this
.
props
.
refresh
()
this
.
props
.
refresh
()
...
@@ -600,18 +600,18 @@ export default class BalanceSheetRO extends Component {
...
@@ -600,18 +600,18 @@ export default class BalanceSheetRO extends Component {
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
type
==
'submitted'
)
{
if
(
type
==
'submitted'
)
{
this
.
props
.
onClickClose
()
this
.
props
.
onClickClose
()
this
.
props
.
refresh
()
this
.
props
.
refresh
(
'BS'
)
let
bodyRatioRO
=
{
//
let bodyRatioRO = {
"report"
:
'ratio'
,
//
"report": 'ratio',
"rollingOutlookId"
:
this
.
props
.
rollingOutlookID
,
//
"rollingOutlookId": this.props.rollingOutlookID,
"periode"
:
this
.
props
.
periode
,
//
"periode": this.props.periode,
"companyId"
:
this
.
props
.
company
.
company_id
,
//
"companyId": this.props.company.company_id,
"quartal"
:
this
.
props
.
quarter
//
"quartal": this.props.quarter
}
//
}
api
.
create
().
triggerRatioRO
(
bodyRatioRO
).
then
((
res
)
=>
{
//
api.create().triggerRatioRO(bodyRatioRO).then((res) => {
console
.
log
(
res
)
//
console.log(res)
this
.
setState
({
loading
:
false
})
//
this.setState({ loading: false })
})
//
})
}
else
{
}
else
{
this
.
props
.
onClickClose
()
this
.
props
.
onClickClose
()
this
.
props
.
refresh
()
this
.
props
.
refresh
()
...
...
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