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
8d1f4573
Commit
8d1f4573
authored
Mar 24, 2021
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'GGMAC' into 'master'
update banyak See merge request
!1332
parents
81c79c34
ca353319
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 @
8d1f4573
...
@@ -251,6 +251,9 @@ const create = (type = "") => {
...
@@ -251,6 +251,9 @@ const create = (type = "") => {
const
getRollingOutlookIsApprover
=
(
body
)
=>
api
.
get
(
'transaction/rolling_outlook/is_approver'
,
body
)
const
getRollingOutlookIsApprover
=
(
body
)
=>
api
.
get
(
'transaction/rolling_outlook/is_approver'
,
body
)
const
uploadAttachmentRO
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/upload_attachment'
,
body
)
const
uploadAttachmentRO
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/upload_attachment'
,
body
)
const
deleteAttachmentRO
=
(
id
)
=>
api
.
post
(
`transaction/rolling_outlook/delete_attachment/
${
id
}
`
)
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
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
)
const
checkImportRollingOutlookBS
=
(
body
)
=>
api
.
post
(
'transaction/balance_sheet/rolling_outlook/check_import'
,
body
)
...
@@ -770,7 +773,10 @@ const create = (type = "") => {
...
@@ -770,7 +773,10 @@ const create = (type = "") => {
uploadRollingOutlookOI
,
uploadRollingOutlookOI
,
submitRollingOutlook
,
submitRollingOutlook
,
getRollingOutlookCompanySubmitted
,
getRollingOutlookCompanySubmitted
,
createPeriodeRevisionOLPA
createPeriodeRevisionOLPA
,
approvalRolling
,
createPeriodeRevisionRO
,
historyApprovalRO
}
}
}
}
...
...
src/container/OutlookPA.js
View file @
8d1f4573
...
@@ -382,7 +382,7 @@ export default class OutlookPA extends Component {
...
@@ -382,7 +382,7 @@ export default class OutlookPA extends Component {
"is_approver"
:
this
.
state
.
isApprover
"is_approver"
:
this
.
state
.
isApprover
}
}
api
.
create
().
getOutlookPAID
(
payload
).
then
(
response
=>
{
api
.
create
().
getOutlookPAID
(
payload
).
then
(
response
=>
{
//
console.log(response)
console
.
log
(
response
)
if
(
response
)
{
if
(
response
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
this
.
setState
({
...
...
src/container/RollingOutlook.js
View file @
8d1f4573
...
@@ -555,9 +555,10 @@ export default class RollingOutlook extends Component {
...
@@ -555,9 +555,10 @@ export default class RollingOutlook extends Component {
historyApproval
()
{
historyApproval
()
{
let
body
=
{
let
body
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"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
);
console
.
log
(
response
);
if
(
response
.
data
.
data
.
length
>
0
)
{
if
(
response
.
data
.
data
.
length
>
0
)
{
let
dataTableHistory
=
response
.
data
.
data
.
map
(
item
=>
{
let
dataTableHistory
=
response
.
data
.
data
.
map
(
item
=>
{
...
@@ -569,7 +570,7 @@ export default class RollingOutlook extends Component {
...
@@ -569,7 +570,7 @@ export default class RollingOutlook extends Component {
item
.
history_approval_date
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 {
...
@@ -580,21 +581,23 @@ export default class RollingOutlook extends Component {
let
body
=
{
let
body
=
{
"approval_id"
:
this
.
props
.
location
.
state
==
undefined
?
this
.
state
.
approverID
:
this
.
state
.
rawData
.
approval_id
,
"approval_id"
:
this
.
props
.
location
.
state
==
undefined
?
this
.
state
.
approverID
:
this
.
state
.
rawData
.
approval_id
,
"status"
:
type
,
"status"
:
type
,
"detail"
:
this
.
state
.
detailRevisiCheck
"detail"
:
this
.
state
.
detailRevisiCheck
,
"quartal"
:
this
.
state
.
quarter
.
value
}
}
let
payload
=
{
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"company_id"
:
this
.
state
.
company
.
company_id
,
"min_periode"
:
moment
(
this
.
state
.
minDateRevision
).
format
(
'YYYY-MM-DD'
),
"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
)
console
.
log
(
payload
)
api
.
create
().
approval
Submission
(
body
).
then
((
res
)
=>
{
api
.
create
().
approval
Rolling
(
body
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
getRollingOutlookID
()
this
.
getRollingOutlookID
()
})
})
if
(
type
==
'revision'
)
{
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 {
...
@@ -785,7 +788,7 @@ export default class RollingOutlook extends Component {
api
.
create
().
submitRollingOutlook
(
body
).
then
(
response
=>
{
api
.
create
().
submitRollingOutlook
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"
S
uccess"
)
{
if
(
response
.
data
.
status
===
"
s
uccess"
)
{
this
.
getRollingOutlookID
()
this
.
getRollingOutlookID
()
}
}
}
}
...
...
src/container/RollingOutlook/BalanceSheetRO.js
View file @
8d1f4573
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