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
b684c83c
Commit
b684c83c
authored
Mar 23, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
0153d656
99c11cb8
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
264 additions
and
303 deletions
+264
-303
HomePage.js
src/container/HomePage.js
+2
-2
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+35
-1
CatRevision.js
src/container/RollingOutlook/CatRevision.js
+188
-264
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 @
b684c83c
...
@@ -683,7 +683,7 @@ class HomePage extends Component {
...
@@ -683,7 +683,7 @@ class HomePage extends Component {
return
(
return
(
<
div
>
<
div
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontSize
:
'16px'
,
marginTop
:
20
}}
>
{
item
.
item_business
}
<
/Typography
>
<
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
)
=>
{
{
item
.
category
.
map
((
items
,
indexs
)
=>
{
return
(
return
(
<
Link
to
=
{{
<
Link
to
=
{{
...
@@ -957,7 +957,7 @@ class HomePage extends Component {
...
@@ -957,7 +957,7 @@ class HomePage extends Component {
return
(
return
(
<
div
>
<
div
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontSize
:
'16px'
,
marginTop
:
20
}}
>
{
item
.
item_business
}
<
/Typography
>
<
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
)
=>
{
{
item
.
category
.
map
((
items
,
indexs
)
=>
{
return
(
return
(
<
Link
to
=
{{
<
Link
to
=
{{
...
...
src/container/RollingOutlook/BalanceSheetRO.js
View file @
b684c83c
...
@@ -63,6 +63,7 @@ export default class BalanceSheetRO extends Component {
...
@@ -63,6 +63,7 @@ export default class BalanceSheetRO extends Component {
componentDidMount
()
{
componentDidMount
()
{
// this.getItemHierarki()
// this.getItemHierarki()
this
.
getLatestUpdate
()
this
.
getSettingControl
()
this
.
getSettingControl
()
this
.
handleViewOnly
()
this
.
handleViewOnly
()
}
}
...
@@ -141,6 +142,39 @@ export default class BalanceSheetRO extends Component {
...
@@ -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
()
{
getItemHierarki
()
{
this
.
setState
({
loading
:
true
,
judulColumn
:
null
})
this
.
setState
({
loading
:
true
,
judulColumn
:
null
})
let
payload
=
{
let
payload
=
{
...
@@ -291,7 +325,7 @@ export default class BalanceSheetRO extends Component {
...
@@ -291,7 +325,7 @@ export default class BalanceSheetRO extends Component {
console
.
log
(
type
)
console
.
log
(
type
)
this
.
setState
({
get_for
:
type
},
()
=>
{
this
.
setState
({
get_for
:
type
},
()
=>
{
// this.getSettingControl()
// this.getSettingControl()
//
this.getLatestUpdate()
this
.
getLatestUpdate
()
this
.
getItemHierarki
()
this
.
getItemHierarki
()
})
})
}
}
...
...
src/container/RollingOutlook/CatRevision.js
View file @
b684c83c
This diff is collapsed.
Click to expand it.
src/container/RollingOutlook/ProfitLossRO.js
View file @
b684c83c
...
@@ -101,7 +101,7 @@ export default class ProfitLossROO extends Component {
...
@@ -101,7 +101,7 @@ export default class ProfitLossROO extends Component {
componentDidMount
()
{
componentDidMount
()
{
this
.
getItemHierarki
()
this
.
getItemHierarki
()
//
this.getLatestUpdate()
this
.
getLatestUpdate
()
// this.getSettingControl()
// this.getSettingControl()
this
.
handleViewOnly
()
this
.
handleViewOnly
()
}
}
...
@@ -182,38 +182,38 @@ export default class ProfitLossROO extends Component {
...
@@ -182,38 +182,38 @@ export default class ProfitLossROO extends Component {
// })
// })
// }
// }
//
getLatestUpdate() {
getLatestUpdate
()
{
//
let payload = {
let
payload
=
{
//
"report_id": this.props.report_id,
"report_id"
:
this
.
props
.
report_id
,
//
"revision": Number(this.props.revision),
"revision"
:
Number
(
this
.
props
.
revision
),
//
"periode": this.props.periode,
"periode"
:
this
.
props
.
periode
,
//
"company_id": this.props.company.company_id,
"company_id"
:
this
.
props
.
company
.
company_id
,
// "monthly_report_id": this.props.monthlyReportId
,
"rolling_outlook_id"
:
this
.
props
.
rollingOutlookID
,
// // "months": this.props.month.month_id
"quartal"
:
this
.
props
.
quarter
//
}
}
// api.create().getLastestUpdateMR
(payload).then(response => {
api
.
create
().
getRollingOutlookLastUpdate
(
payload
).
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({
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
,
// notesUpdate: response.data.data.notes_update === null ? '-'
: response.data.data.notes_update
notes
:
response
.
data
.
data
.
notes_update
===
null
?
""
:
response
.
data
.
data
.
notes_update
//
})
})
//
} else {
}
else
{
//
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
//
if (response.data.message.includes("Someone Logged In")) {
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
))
{
//
setTimeout(() => {
setTimeout
(()
=>
{
//
localStorage.removeItem(Constant.TOKEN)
localStorage
.
removeItem
(
Constant
.
TOKEN
)
//
window.location.reload();
window
.
location
.
reload
();
//
}, 1000);
},
1000
);
//
}
}
//
})
})
//
}
}
//
} else {
}
else
{
//
this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error', loading: false })
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
//
}
}
//
})
})
//
}
}
getItemHierarki
()
{
getItemHierarki
()
{
let
payload
=
{
let
payload
=
{
...
...
src/container/RollingOutlook/TaxPlanningRO.js
View file @
b684c83c
...
@@ -136,13 +136,16 @@ export default class TaxPlanning extends Component {
...
@@ -136,13 +136,16 @@ export default class TaxPlanning extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"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
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
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
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
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