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
2e381d30
Commit
2e381d30
authored
Jan 18, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/riri' into 'ENV-DEV'
Workaround MB See merge request
!1673
parents
f4b22c3e
c1892a84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+5
-3
No files found.
src/container/BudgetTahunan/BudgetTahunan.js
View file @
2e381d30
...
@@ -230,6 +230,7 @@ export default class BudgetTahunan extends Component {
...
@@ -230,6 +230,7 @@ export default class BudgetTahunan extends Component {
}
}
this
.
setState
({
listCompany
:
defaultProps
,
company
:
indexID
==
null
?
(
this
.
state
.
company
!==
null
?
this
.
state
.
company
:
companyData
[
0
])
:
companyData
[
indexID
]
},
()
=>
{
this
.
setState
({
listCompany
:
defaultProps
,
company
:
indexID
==
null
?
(
this
.
state
.
company
!==
null
?
this
.
state
.
company
:
companyData
[
0
])
:
companyData
[
indexID
]
},
()
=>
{
// this.setState({ listCompany: defaultProps, company: indexID == null ? companyData[0] : companyData[indexID] }, () => {
// // // console.log(response.data.data);
// // // console.log(response.data.data);
if
(
response
.
data
.
data
.
length
>
0
)
{
if
(
response
.
data
.
data
.
length
>
0
)
{
this
.
getRevision
()
this
.
getRevision
()
...
@@ -282,6 +283,7 @@ export default class BudgetTahunan extends Component {
...
@@ -282,6 +283,7 @@ export default class BudgetTahunan extends Component {
"periode"
:
this
.
state
.
periode
.
periode
,
"periode"
:
this
.
state
.
periode
.
periode
,
"report_type"
:
"Master Budget"
,
"report_type"
:
"Master Budget"
,
}
}
console
.
log
(
payload
);
api
.
create
().
getReportTypeBody
(
payload
).
then
(
response
=>
{
api
.
create
().
getReportTypeBody
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
@@ -343,7 +345,7 @@ export default class BudgetTahunan extends Component {
...
@@ -343,7 +345,7 @@ export default class BudgetTahunan extends Component {
"periode"
:
this
.
state
.
periode
.
periode
"periode"
:
this
.
state
.
periode
.
periode
}
}
api
.
create
().
getSubmitMasterBudget
(
body
).
then
(
response
=>
{
api
.
create
().
getSubmitMasterBudget
(
body
).
then
(
response
=>
{
// // //
console.log(response);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
isSubmit
:
response
.
data
.
data
.
is_can_submit
},
()
=>
{
this
.
setState
({
isSubmit
:
response
.
data
.
data
.
is_can_submit
},
()
=>
{
...
@@ -2661,8 +2663,8 @@ export default class BudgetTahunan extends Component {
...
@@ -2661,8 +2663,8 @@ export default class BudgetTahunan extends Component {
disabled
=
{
this
.
state
.
listCompany
===
null
?
true
:
this
.
state
.
intent
===
'Home'
?
true
:
false
}
disabled
=
{
this
.
state
.
listCompany
===
null
?
true
:
this
.
state
.
intent
===
'Home'
?
true
:
false
}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
company
:
newInputValue
},
()
=>
{
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
company
:
newInputValue
},
()
=>
{
this
.
setState
({
visibleTableHistory
:
false
})
this
.
setState
({
visibleTableHistory
:
false
})
this
.
getLastPeriod
()
//
this.getLastPeriod()
//
this.getRevision()
this
.
getRevision
()
})}
})}
disableClearable
disableClearable
style
=
{{
width
:
250
}}
style
=
{{
width
:
250
}}
...
...
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