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
79747d8b
Commit
79747d8b
authored
Mar 08, 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
d37baa6d
4752199b
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
269 additions
and
156 deletions
+269
-156
HomePage.js
src/container/HomePage.js
+55
-47
SubHolding.js
src/container/Laporan/SubHolding.js
+7
-0
MonthlyReport.js
src/container/MonthlyReport.js
+1
-2
CashFlowMR.js
src/container/MonthlyReport/CashFlowMR.js
+35
-33
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+171
-74
No files found.
src/container/HomePage.js
View file @
79747d8b
This diff is collapsed.
Click to expand it.
src/container/Laporan/SubHolding.js
View file @
79747d8b
...
@@ -3062,10 +3062,17 @@ export default class SubHolding extends Component {
...
@@ -3062,10 +3062,17 @@ export default class SubHolding extends Component {
a
.
click
();
a
.
click
();
}
}
}
else
if
(
this
.
state
.
report
.
value
===
8
)
{
}
else
if
(
this
.
state
.
report
.
value
===
8
)
{
<<<<<<<
HEAD
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_profit_loss/export_report?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=28&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1`
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_profit_loss/export_report?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=28&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1`
console
.
log
(
url
);
console
.
log
(
url
);
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_profit_loss/export_report?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=28&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_profit_loss/export_report?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=28&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1`
=======
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_profit_loss/export_report_summary?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=28&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1`
console
.
log
(
url
);
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_profit_loss/export_report_summary?submission_id=
${
this
.
state
.
submissionID
===
null
?
""
:
this
.
state
.
submissionID
}
&&report_id=28&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&revision=
${
this
.
state
.
revisionType
}
&&months=
${
this
.
state
.
month
.
month_id
}
&&quarter=1`
>>>>>>>
4752199
b2929e79f17c72bc4f983e9058f435870
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
...
...
src/container/MonthlyReport.js
View file @
79747d8b
...
@@ -625,10 +625,8 @@ export default class MonthlyReport extends Component {
...
@@ -625,10 +625,8 @@ export default class MonthlyReport extends Component {
// // console.log(this.state.lastStatus);
// // console.log(this.state.lastStatus);
this
.
historyApproval
()
this
.
historyApproval
()
this
.
getLatestPeriodSubmit
()
this
.
getLatestPeriodSubmit
()
// this.getCashFlow(type)
// this.getPL(type)
// this.getPL(type)
if
(
type
!=
undefined
)
{
if
(
type
!=
undefined
)
{
// this.getCashFlow(type)
this
.
getPL
(
type
)
this
.
getPL
(
type
)
}
else
{
}
else
{
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
...
@@ -722,6 +720,7 @@ export default class MonthlyReport extends Component {
...
@@ -722,6 +720,7 @@ export default class MonthlyReport extends Component {
visibleBS
:
false
,
visibleBS
:
false
,
visiblePL
:
false
,
visiblePL
:
false
,
visibleCAT
:
false
,
visibleCAT
:
false
,
visibleCF
:
false
,
visibleFAM
:
false
,
visibleFAM
:
false
,
visibleTP
:
false
,
visibleTP
:
false
,
visibleLOCF
:
false
,
visibleLOCF
:
false
,
...
...
src/container/MonthlyReport/CashFlowMR.js
View file @
79747d8b
...
@@ -63,19 +63,19 @@ export default class CashFlowMR extends Component {
...
@@ -63,19 +63,19 @@ export default class CashFlowMR extends Component {
}
else
{
}
else
{
checkApprover
=
false
checkApprover
=
false
}
}
if
(
this
.
props
.
lastStatus
==
'SUBMIT'
||
this
.
props
.
lastStatus
==
'REVISION'
)
{
if
(
this
.
props
.
lastStatus
==
'SUBMIT'
||
this
.
props
.
lastStatus
==
'REVISION'
)
{
checkLastStatus
=
true
checkLastStatus
=
true
}
else
{
}
else
{
checkLastStatus
=
false
checkLastStatus
=
false
}
}
if
(
this
.
props
.
prevRevision
)
{
if
(
this
.
props
.
prevRevision
)
{
checkPrevRev
=
true
checkPrevRev
=
true
}
else
{
}
else
{
checkPrevRev
=
false
checkPrevRev
=
false
}
}
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'drat'
||
this
.
props
.
status
===
'submitted'
)
{
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'drat'
||
this
.
props
.
status
===
'submitted'
)
{
checkStatus
=
true
checkStatus
=
true
}
else
{
}
else
{
...
@@ -85,7 +85,7 @@ export default class CashFlowMR extends Component {
...
@@ -85,7 +85,7 @@ export default class CashFlowMR extends Component {
// console.log(checkLastStatus)
// console.log(checkLastStatus)
// console.log(checkApprover)
// console.log(checkApprover)
// console.log(checkPrevRev)
// console.log(checkPrevRev)
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
}
}
componentDidMount
()
{
componentDidMount
()
{
...
@@ -214,10 +214,10 @@ export default class CashFlowMR extends Component {
...
@@ -214,10 +214,10 @@ export default class CashFlowMR extends Component {
dataTable2
.
map
((
item
,
index
)
=>
{
dataTable2
.
map
((
item
,
index
)
=>
{
// if (item[6].value == "" || item[6].value == 0 || item[6].value == "0.0") {
// if (item[6].value == "" || item[6].value == 0 || item[6].value == "0.0") {
// item[6].value = this.handleValueFormula(item, index)
// item[6].value = this.handleValueFormula(item, index)
listCF
.
push
({
listCF
.
push
({
"item_report_id"
:
item
[
1
],
"item_report_id"
:
item
[
1
],
"actual"
:
item
[
0
]
==
1
?
""
:
Number
(
item
[
6
].
value
).
toFixed
(
1
)
"actual"
:
item
[
0
]
==
1
?
""
:
Number
(
item
[
6
].
value
).
toFixed
(
1
)
})
})
// } else {
// } else {
// listCF.push({
// listCF.push({
// "item_report_id": item[1],
// "item_report_id": item[1],
...
@@ -717,30 +717,32 @@ export default class CashFlowMR extends Component {
...
@@ -717,30 +717,32 @@ export default class CashFlowMR extends Component {
<
/div
>
<
/div
>
<
/button
>
<
/button
>
<
/div
>
<
/div
>
{
this
.
state
.
viewOnly
&&
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
}}
>
{
this
.
state
.
viewOnly
&&
<
button
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
}}
>
type
=
"button"
<
button
// disabled={this.state.buttonError}
type
=
"button"
onClick
=
{()
=>
// disabled={this.state.buttonError}
// this.state.buttonError ?
onClick
=
{()
=>
// this.setState({ alert: true, messageAlert: 'Data is not complete !', tipeAlert: 'warning' })
// this.state.buttonError ?
// :
// this.setState({ alert: true, messageAlert: 'Data is not complete !', tipeAlert: 'warning' })
this
.
state
.
handleTekTekTek
==
1
?
null
:
// :
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
payloadCF
(
dataTable2
)
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
})}
this
.
payloadCF
(
dataTable2
)
style
=
{{
})}
backgroundColor
:
'transparent'
,
style
=
{{
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
backgroundColor
:
'transparent'
,
borderColor
:
'transparent'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
outline
:
'none'
,
borderColor
:
'transparent'
,
}}
outline
:
'none'
,
>
}}
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
/div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
/button
>
<
/div
>
<
/div>
}
<
/button
>
<
/div
>
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/Paper
>
<
/Paper
>
...
...
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
79747d8b
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