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
ca353319
Commit
ca353319
authored
Mar 24, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update banyak
parent
e71f2433
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
38 deletions
+47
-38
index.js
src/api/index.js
+7
-1
OutlookPA.js
src/container/OutlookPA.js
+1
-1
RollingOutlook.js
src/container/RollingOutlook.js
+11
-8
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+28
-28
No files found.
src/api/index.js
View file @
ca353319
...
...
@@ -251,6 +251,9 @@ const create = (type = "") => {
const
getRollingOutlookIsApprover
=
(
body
)
=>
api
.
get
(
'transaction/rolling_outlook/is_approver'
,
body
)
const
uploadAttachmentRO
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/upload_attachment'
,
body
)
const
deleteAttachmentRO
=
(
id
)
=>
api
.
post
(
`transaction/rolling_outlook/delete_attachment/
${
id
}
`
)
const
approvalRolling
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/approval_rolling'
,
body
)
const
createPeriodeRevisionRO
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/create_periode_revision'
,
body
)
const
historyApprovalRO
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/history_approval'
,
body
)
const
getRollingOutlookBS
=
(
body
)
=>
api
.
post
(
'transaction/balance_sheet/rolling_outlook/get_report_hierarki'
,
body
)
const
checkImportRollingOutlookBS
=
(
body
)
=>
api
.
post
(
'transaction/balance_sheet/rolling_outlook/check_import'
,
body
)
...
...
@@ -770,7 +773,10 @@ const create = (type = "") => {
uploadRollingOutlookOI
,
submitRollingOutlook
,
getRollingOutlookCompanySubmitted
,
createPeriodeRevisionOLPA
createPeriodeRevisionOLPA
,
approvalRolling
,
createPeriodeRevisionRO
,
historyApprovalRO
}
}
...
...
src/container/OutlookPA.js
View file @
ca353319
...
...
@@ -382,7 +382,7 @@ export default class OutlookPA extends Component {
"is_approver"
:
this
.
state
.
isApprover
}
api
.
create
().
getOutlookPAID
(
payload
).
then
(
response
=>
{
//
console.log(response)
console
.
log
(
response
)
if
(
response
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
...
...
src/container/RollingOutlook.js
View file @
ca353319
...
...
@@ -555,9 +555,10 @@ export default class RollingOutlook extends Component {
historyApproval
()
{
let
body
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"periode"
:
this
.
state
.
periode
.
periode
"periode"
:
this
.
state
.
periode
.
periode
,
"quartal"
:
this
.
state
.
quarter
.
value
}
api
.
create
().
historyApproval
(
body
).
then
(
response
=>
{
api
.
create
().
historyApproval
RO
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
.
data
.
length
>
0
)
{
let
dataTableHistory
=
response
.
data
.
data
.
map
(
item
=>
{
...
...
@@ -569,7 +570,7 @@ export default class RollingOutlook extends Component {
item
.
history_approval_date
]
})
this
.
setState
({
dataTableHistory
,
visibleTableHistory
:
fals
e
})
this
.
setState
({
dataTableHistory
,
visibleTableHistory
:
tru
e
})
}
})
}
...
...
@@ -580,21 +581,23 @@ export default class RollingOutlook extends Component {
let
body
=
{
"approval_id"
:
this
.
props
.
location
.
state
==
undefined
?
this
.
state
.
approverID
:
this
.
state
.
rawData
.
approval_id
,
"status"
:
type
,
"detail"
:
this
.
state
.
detailRevisiCheck
"detail"
:
this
.
state
.
detailRevisiCheck
,
"quartal"
:
this
.
state
.
quarter
.
value
}
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"min_periode"
:
moment
(
this
.
state
.
minDateRevision
).
format
(
'YYYY-MM-DD'
),
"max_periode"
:
moment
(
this
.
state
.
maxDateRevision
).
format
(
'YYYY-MM-DD'
)
"max_periode"
:
moment
(
this
.
state
.
maxDateRevision
).
format
(
'YYYY-MM-DD'
),
"quartal"
:
this
.
state
.
quarter
.
value
}
console
.
log
(
payload
)
api
.
create
().
approval
Submission
(
body
).
then
((
res
)
=>
{
api
.
create
().
approval
Rolling
(
body
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
getRollingOutlookID
()
})
if
(
type
==
'revision'
)
{
api
.
create
().
createPeriodeRevision
(
payload
).
then
((
res
)
=>
console
.
log
(
res
))
api
.
create
().
createPeriodeRevision
RO
(
payload
).
then
((
res
)
=>
console
.
log
(
res
))
}
})
}
...
...
@@ -785,7 +788,7 @@ export default class RollingOutlook extends Component {
api
.
create
().
submitRollingOutlook
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"
S
uccess"
)
{
if
(
response
.
data
.
status
===
"
s
uccess"
)
{
this
.
getRollingOutlookID
()
}
}
...
...
src/container/RollingOutlook/BalanceSheetRO.js
View file @
ca353319
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