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
eb0eaf92
Commit
eb0eaf92
authored
Feb 22, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cuma get hierarki bs rolling outlook
parent
0d8527cc
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
701 additions
and
95 deletions
+701
-95
index.js
src/api/index.js
+7
-1
RollingOutlook.js
src/container/RollingOutlook.js
+21
-15
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+673
-79
No files found.
src/api/index.js
View file @
eb0eaf92
...
...
@@ -233,6 +233,10 @@ const create = (type = "") => {
const
getReportHierarkiPL
=
(
body
)
=>
api
.
post
(
'transaction/db_profit_loss_detail/get_report_hierarki'
,
body
)
const
getLastestUpdateMROI
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/monthly_report/get_latest_update'
,
body
)
const
getRollingOutlookID
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/get_rolling_outlook_id'
,
body
)
const
getRollingOutlookBS
=
(
body
)
=>
api
.
post
(
'transaction/balance_sheet/rolling_outlook/get_report_hierarki'
,
body
)
//REPORT NEW
const
getAllReportBS
=
(
body
)
=>
api
.
post
(
'/transaction/db_balance_sheet/get_report_hierarki'
,
body
)
const
getReportBSMB
=
(
body
)
=>
api
.
post
(
'/transaction/db_balance_sheet/master_budget/get_report_hierarki'
,
body
)
...
...
@@ -677,7 +681,9 @@ const create = (type = "") => {
getHierarkiCronJobMBRatio
,
getHierarkiCronJobMRPL
,
getHierarkiCronJobMRCF
,
getHierarkiCronJobMRRatio
getHierarkiCronJobMRRatio
,
getRollingOutlookID
,
getRollingOutlookBS
}
}
...
...
src/container/RollingOutlook.js
View file @
eb0eaf92
...
...
@@ -46,7 +46,7 @@ export default class RollingOutlook extends Component {
alert
:
false
,
tipeAlert
:
''
,
messageAlert
:
''
,
submission
ID
:
null
,
rollingOutlook
ID
:
null
,
isSubmit
:
false
,
visibleTableHistory
:
false
,
isApprover
:
false
,
...
...
@@ -363,26 +363,26 @@ export default class RollingOutlook extends Component {
getOptionLabel
:
(
option
)
=>
option
.
revision
,
};
this
.
setState
({
listRevision
:
defaultProps
,
revision
:
revisionData
[
0
]
},
()
=>
{
this
.
get
Submission
()
this
.
get
RollingOutlookID
()
})
}
}
})
}
get
Submission
()
{
get
RollingOutlookID
()
{
this
.
setState
({
loading
:
true
})
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"periode"
:
this
.
state
.
periode
.
periode
,
"is_approver"
:
this
.
state
.
isApprover
}
api
.
create
().
get
Submission
(
payload
).
then
(
response
=>
{
api
.
create
().
get
RollingOutlookID
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
submissionID
:
response
.
data
.
data
.
submission
_id
,
rollingOutlookID
:
response
.
data
.
data
.
rolling_outlook
_id
,
submitter
:
response
.
data
.
data
.
submitter
,
approverID
:
response
.
data
.
data
.
approve_id
,
pic
:
response
.
data
.
data
.
approver
==
null
?
''
:
response
.
data
.
data
.
approver
,
lastStatus
:
response
.
data
.
data
.
last_status
===
null
?
'SUBMIT'
:
response
.
data
.
data
.
last_status
,
...
...
@@ -404,7 +404,7 @@ export default class RollingOutlook extends Component {
})
})
}
else
{
this
.
setState
({
submission
ID
:
null
,
loading
:
false
})
this
.
setState
({
rollingOutlook
ID
:
null
,
loading
:
false
})
}
}
})
...
...
@@ -449,7 +449,7 @@ export default class RollingOutlook extends Component {
api
.
create
().
approvalSubmission
(
body
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
get
Submission
()
this
.
get
RollingOutlookID
()
})
if
(
type
==
'revision'
)
{
api
.
create
().
createPeriodeRevision
(
payload
).
then
((
res
)
=>
console
.
log
(
res
))
...
...
@@ -537,7 +537,7 @@ export default class RollingOutlook extends Component {
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
visibleUpload
:
false
},
()
=>
{
this
.
get
Submission
()
this
.
get
RollingOutlookID
()
})
}
}
...
...
@@ -548,7 +548,7 @@ export default class RollingOutlook extends Component {
api
.
create
().
deleteAttachment
(
item
.
attachment_id
).
then
(
response
=>
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
get
Submission
()
this
.
get
RollingOutlookID
()
}
}
})
...
...
@@ -565,15 +565,15 @@ export default class RollingOutlook extends Component {
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
get
Submission
()
this
.
get
RollingOutlookID
()
}
else
{
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
get
Submission
()
this
.
get
RollingOutlookID
()
})
}
}
else
{
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
get
Submission
()
this
.
get
RollingOutlookID
()
})
}
})
...
...
@@ -618,13 +618,13 @@ export default class RollingOutlook extends Component {
})
if
(
canSubmit
===
true
)
{
let
body
=
{
submission_id
:
this
.
state
.
submission
ID
rolling_outlook_id
:
this
.
state
.
rollingOutlook
ID
}
api
.
create
().
submitMasterBudget
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"Success"
)
{
this
.
get
Submission
()
this
.
get
RollingOutlookID
()
}
}
})
...
...
@@ -1200,7 +1200,13 @@ export default class RollingOutlook extends Component {
{
this
.
state
.
visibleBS
&&
(
<
BalanceSheetRO
width
=
{
this
.
props
.
width
}
height
=
{
this
.
props
.
height
}
open
=
{
this
.
props
.
open
}
report_id
=
{
this
.
state
.
report_id
}
company
=
{
this
.
state
.
company
}
revision
=
{
this
.
state
.
revisionTable
}
periode
=
{
this
.
state
.
periode
.
periode
}
rollingOutlookID
=
{
this
.
state
.
rollingOutlookID
}
onClickClose
=
{()
=>
this
.
setState
({
visibleBS
:
false
,
visibleRollingOutlook
:
true
})}
/
>
)}
...
...
@@ -1222,7 +1228,7 @@ export default class RollingOutlook extends Component {
company
=
{
this
.
state
.
company
}
revision
=
{
this
.
state
.
revisionTable
}
periode
=
{
this
.
state
.
periode
.
periode
}
submissionID
=
{
this
.
state
.
submission
ID
}
rollingOutlookID
=
{
this
.
state
.
rollingOutlook
ID
}
onClickClose
=
{()
=>
this
.
setState
({
visibleTP
:
false
,
visibleRollingOutlook
:
true
})}
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
...
...
src/container/RollingOutlook/BalanceSheetRO.js
View file @
eb0eaf92
This diff is collapsed.
Click to expand it.
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