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
699c83fe
Commit
699c83fe
authored
Mar 23, 2021
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'GGMAC' into 'master'
apdet See merge request
!1315
parents
328b5c85
a7f81ee7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
39 deletions
+76
-39
HomePage.js
src/container/HomePage.js
+2
-2
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+35
-1
ProfitLossRO.js
src/container/RollingOutlook/ProfitLossRO.js
+33
-33
TaxPlanningRO.js
src/container/RollingOutlook/TaxPlanningRO.js
+6
-3
No files found.
src/container/HomePage.js
View file @
699c83fe
...
...
@@ -683,7 +683,7 @@ class HomePage extends Component {
return
(
<
div
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontSize
:
'16px'
,
marginTop
:
20
}}
>
{
item
.
item_business
}
<
/Typography
>
<
div
style
=
{{
display
:
'flex'
,
overflowX
:
'scroll'
,
width
:
this
.
props
.
width
*
0.9
}}
>
<
div
style
=
{{
display
:
'flex'
,
overflowX
:
'scroll'
,
width
:
this
.
props
.
width
*
0.9
5
}}
>
{
item
.
category
.
map
((
items
,
indexs
)
=>
{
return
(
<
Link
to
=
{{
...
...
@@ -957,7 +957,7 @@ class HomePage extends Component {
return
(
<
div
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontSize
:
'16px'
,
marginTop
:
20
}}
>
{
item
.
item_business
}
<
/Typography
>
<
div
style
=
{{
display
:
'flex'
,
overflowX
:
'scroll'
,
width
:
this
.
props
.
width
*
0.9
}}
>
<
div
style
=
{{
display
:
'flex'
,
overflowX
:
'scroll'
,
width
:
this
.
props
.
width
*
0.9
5
}}
>
{
item
.
category
.
map
((
items
,
indexs
)
=>
{
return
(
<
Link
to
=
{{
...
...
src/container/RollingOutlook/BalanceSheetRO.js
View file @
699c83fe
...
...
@@ -63,6 +63,7 @@ export default class BalanceSheetRO extends Component {
componentDidMount
()
{
// this.getItemHierarki()
this
.
getLatestUpdate
()
this
.
getSettingControl
()
this
.
handleViewOnly
()
}
...
...
@@ -141,6 +142,39 @@ export default class BalanceSheetRO extends Component {
})
}
getLatestUpdate
()
{
let
payload
=
{
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"rolling_outlook_id"
:
this
.
props
.
rollingOutlookID
,
"quartal"
:
this
.
props
.
quarter
}
api
.
create
().
getRollingOutlookLastUpdate
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
,
notes
:
response
.
data
.
data
.
notes_update
===
null
?
""
:
response
.
data
.
data
.
notes_update
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
))
{
setTimeout
(()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
window
.
location
.
reload
();
},
1000
);
}
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
getItemHierarki
()
{
this
.
setState
({
loading
:
true
,
judulColumn
:
null
})
let
payload
=
{
...
...
@@ -291,7 +325,7 @@ export default class BalanceSheetRO extends Component {
console
.
log
(
type
)
this
.
setState
({
get_for
:
type
},
()
=>
{
// this.getSettingControl()
//
this.getLatestUpdate()
this
.
getLatestUpdate
()
this
.
getItemHierarki
()
})
}
...
...
src/container/RollingOutlook/ProfitLossRO.js
View file @
699c83fe
...
...
@@ -101,7 +101,7 @@ export default class ProfitLossROO extends Component {
componentDidMount
()
{
this
.
getItemHierarki
()
//
this.getLatestUpdate()
this
.
getLatestUpdate
()
// this.getSettingControl()
this
.
handleViewOnly
()
}
...
...
@@ -182,38 +182,38 @@ export default class ProfitLossROO extends Component {
// })
// }
//
getLatestUpdate() {
//
let payload = {
//
"report_id": this.props.report_id,
//
"revision": Number(this.props.revision),
//
"periode": this.props.periode,
//
"company_id": this.props.company.company_id,
// "monthly_report_id": this.props.monthlyReportId
,
// // "months": this.props.month.month_id
//
}
// api.create().getLastestUpdateMR
(payload).then(response => {
// console.log(response)
//
if (response.data) {
//
if (response.data.status === "success") {
//
this.setState({
//
updateBy: response.data.data.latest_update === null ? '-' : response.data.data.latest_update,
// notesUpdate: response.data.data.notes_update === null ? '-'
: response.data.data.notes_update
//
})
//
} else {
//
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => {
//
if (response.data.message.includes("Someone Logged In")) {
//
setTimeout(() => {
//
localStorage.removeItem(Constant.TOKEN)
//
window.location.reload();
//
}, 1000);
//
}
//
})
//
}
//
} else {
//
this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error', loading: false })
//
}
//
})
//
}
getLatestUpdate
()
{
let
payload
=
{
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"rolling_outlook_id"
:
this
.
props
.
rollingOutlookID
,
"quartal"
:
this
.
props
.
quarter
}
api
.
create
().
getRollingOutlookLastUpdate
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
,
notes
:
response
.
data
.
data
.
notes_update
===
null
?
""
:
response
.
data
.
data
.
notes_update
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
))
{
setTimeout
(()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
window
.
location
.
reload
();
},
1000
);
}
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
getItemHierarki
()
{
let
payload
=
{
...
...
src/container/RollingOutlook/TaxPlanningRO.js
View file @
699c83fe
...
...
@@ -136,13 +136,16 @@ export default class TaxPlanning extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"rolling_outlook_id"
:
this
.
props
.
rollingOutlookID
,
"quartal"
:
this
.
props
.
quarter
}
api
.
create
().
getLastestUpdateMB
(
payload
).
then
(
response
=>
{
api
.
create
().
getRollingOutlookLastUpdate
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
,
notes
:
response
.
data
.
data
.
notes_update
===
null
?
""
:
response
.
data
.
data
.
notes_update
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
...
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