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
50559bb5
Commit
50559bb5
authored
Mar 17, 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
114f58ab
82fa4ef0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
640 additions
and
591 deletions
+640
-591
HomePage.js
src/container/HomePage.js
+50
-45
OutlookPA.js
src/container/OutlookPA.js
+2
-2
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+542
-487
TaxPlanningOLPA.js
src/container/OutlookPA/TaxPlanningOLPA.js
+45
-56
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+1
-1
No files found.
src/container/HomePage.js
View file @
50559bb5
...
...
@@ -46,12 +46,13 @@ class HomePage extends Component {
accessMR
:
false
,
company
:
[],
dataDashboardCAT
:
[],
loading2
:
false
loading2
:
false
,
loading3
:
false
}
}
componentDidMount
()
{
this
.
setState
({
loading
:
true
,
loading2
:
true
})
this
.
setState
({
loading
:
true
,
loading2
:
true
,
loading3
:
true
})
let
userId
=
localStorage
.
getItem
(
Constant
.
USER
)
api
.
create
().
getDetailUser
(
userId
).
then
((
response
)
=>
{
if
(
response
.
data
)
{
...
...
@@ -137,7 +138,11 @@ class HomePage extends Component {
}
})
console
.
log
(
data
)
this
.
setState
({
dataDashboardCAT
:
data
,
loading
:
false
,
loading2
:
false
})
this
.
setState
({
dataDashboardCAT
:
data
,
loading
:
false
,
loading2
:
false
},
()
=>
{
setTimeout
(()
=>
{
this
.
setState
({
loading3
:
false
})
},
1000
);
})
}
})
}
...
...
@@ -588,7 +593,7 @@ class HomePage extends Component {
let
tahun
=
new
Date
().
getFullYear
()
return
(
<
div
style
=
{{
flex
:
1
,
backgroundColor
:
'#f8f8f8'
,
minHeight
:
this
.
props
.
height
}}
>
{
this
.
state
.
loading
&&
loadingComponent
}
{
(
this
.
state
.
loading
||
this
.
state
.
loading2
||
this
.
state
.
loading3
)
&&
loadingComponent
}
{
this
.
state
.
isApprover
===
true
?
<
div
>
<
div
className
=
{
"main-color"
}
style
=
{{
height
:
78
,
flex
:
1
,
display
:
'flex'
,
alignItems
:
'center'
,
paddingLeft
:
20
}}
>
...
...
@@ -601,7 +606,7 @@ class HomePage extends Component {
<
Autocomplete
{...
this
.
state
.
listMonthCAT
}
id
=
"monthCAT"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
monthCAT
:
newInputValue
,
loading
:
true
},
()
=>
{
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
monthCAT
:
newInputValue
,
loading
:
true
,
loading3
:
true
},
()
=>
{
this
.
getDashboardCAT
()
// if (this.state.isApprover === true) {
// this.getCompanySubmitted()
...
...
@@ -618,7 +623,7 @@ class HomePage extends Component {
<
Autocomplete
{...
this
.
state
.
listPeriodeCAT
}
id
=
"periodeCAT"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
periodeCAT
:
newInputValue
,
loading
:
true
},
()
=>
{
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
periodeCAT
:
newInputValue
,
loading
:
true
,
loading3
:
true
},
()
=>
{
this
.
getDashboardCAT
()
// if (this.state.isApprover === true) {
// this.getCompanySubmitted()
...
...
@@ -633,48 +638,48 @@ class HomePage extends Component {
value
=
{
this
.
state
.
periodeCAT
}
/
>
<
/div
>
{
this
.
state
.
dataDashboardCAT
.
map
((
item
s
,
indexs
)
=>
{
{
this
.
state
.
dataDashboardCAT
.
map
((
item
,
index
)
=>
{
return
(
<
div
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontSize
:
'16px'
,
marginTop
:
20
}}
>
{
item
s
.
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
}}
>
{
item
s
.
category
.
map
((
item
,
index
)
=>
{
{
item
.
category
.
map
((
items
,
indexs
)
=>
{
return
(
<
Link
to
=
{{
pathname
:
`/home/cat-dashboard/`
,
state
:
{
userType
:
'user'
,
rawData
:
{
month
:
this
.
state
.
monthCAT
.
month_id
,
periode
:
this
.
state
.
periodeCAT
.
value
,
companyId
:
item
.
company_id
}
rawData
:
{
month
:
this
.
state
.
monthCAT
.
month_id
,
periode
:
this
.
state
.
periodeCAT
.
value
,
companyId
:
item
s
.
company_id
}
}
}}
>
<
div
style
=
{{
padding
:
10
,
backgroundColor
:
'#fff'
,
height
:
350
,
borderRadius
:
6
,
paddingBottom
:
20
,
margin
:
10
,
boxShadow
:
'0 1px 4px 0 rgba(0, 0, 0, 0.25)'
,
width
:
250
,
marginRight
:
index
==
items
.
category
.
length
-
1
?
25
:
0
,
marginLeft
:
index
==
0
?
5
:
25
}}
>
<
div
style
=
{{
padding
:
10
,
backgroundColor
:
'#fff'
,
height
:
350
,
borderRadius
:
6
,
paddingBottom
:
20
,
margin
:
10
,
boxShadow
:
'0 1px 4px 0 rgba(0, 0, 0, 0.25)'
,
width
:
250
,
marginRight
:
index
s
==
item
.
category
.
length
-
1
?
25
:
0
,
marginLeft
:
indexs
==
0
?
5
:
25
}}
>
{
/* <span style={{ fontSize: '17px', color: this.state.selectIndex === index ? '#fff' : '#7e8085', maxWidth: 100 }}>{item.category_name}</span> */
}
<
div
style
=
{{
fontSize
:
'17px'
,
width
:
'100%'
,
height
:
25
}}
>
<
Typography
style
=
{{
textAlign
:
'left'
,
color
:
'#4b4b4b'
}}
>
{
item
.
category_name
}
<
/Typography
>
<
Typography
style
=
{{
textAlign
:
'left'
,
color
:
'#4b4b4b'
}}
>
{
item
s
.
category_name
}
<
/Typography
>
<
/div
>
{
item
.
total_kpi
!=
null
&&
{
item
s
.
total_kpi
!=
null
&&
<
div
style
=
{{
width
:
'100%'
,
display
:
'flex'
,
justifyContent
:
'center'
,
marginTop
:
10
}}
>
<
span
style
=
{{
textAlign
:
'center'
,
fontSize
:
'18px'
,
color
:
"#fff"
}}
>
{
item
.
total_kpi
}
<
/span
>
{
/* <span style={{ textAlign: 'center', fontSize: '11px', color: selectIndex === index ? "#fff" : '#4b4b4b' }}>KPIs</span> */
}
<
/div>
}
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'center'
,
marginTop
:
item
.
total_kpi
==
null
?
50
:
0
}}
>
<
div
style
=
{{
backgroundColor
:
item
.
performanceColor
,
textAlign
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
,
width
:
40
,
height
:
21
}}
>
<
Typography
style
=
{{
textAlign
:
'center'
,
color
:
'#4b4b4b'
}}
>
{
item
.
performance
}
<
/Typography
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'center'
,
marginTop
:
item
s
.
total_kpi
==
null
?
50
:
0
}}
>
<
div
style
=
{{
backgroundColor
:
item
s
.
performanceColor
,
textAlign
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
,
width
:
40
,
height
:
21
}}
>
<
Typography
style
=
{{
textAlign
:
'center'
,
color
:
'#4b4b4b'
}}
>
{
item
s
.
performance
}
<
/Typography
>
<
/div
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
ReactSpeedometer
maxSegmentLabels
=
{
0
}
segmentColors
=
{[
item
.
performanceColor
,
item
s
.
performanceColor
,
"#d8d8d8"
]}
needleColor
=
{
"#4b4b4b"
}
value
=
{
Number
(
item
.
current_value
).
toFixed
(
2
)}
value
=
{
Number
(
item
s
.
current_value
).
toFixed
(
2
)}
valueFormat
=
{
'.2f'
}
minValue
=
{
Number
(
item
.
low
)}
maxValue
=
{
Number
(
item
.
high
)}
customSegmentStops
=
{[
0
,
Number
(
item
.
current_value
),
5
]}
minValue
=
{
Number
(
item
s
.
low
)}
maxValue
=
{
Number
(
item
s
.
high
)}
customSegmentStops
=
{[
0
,
Number
(
item
s
.
current_value
),
5
]}
width
=
{
200
}
height
=
{
140
}
ringWidth
=
{
25
}
...
...
@@ -682,13 +687,13 @@ class HomePage extends Component {
/
>
<
/div
>
<
div
style
=
{{
backgroundColor
:
'transparent'
,
display
:
'flex'
,
marginTop
:
20
,
placeContent
:
'center'
}}
>
{
item
.
is_higher
==
'-'
?
{
item
s
.
is_higher
==
'-'
?
<
div
style
=
{{
textAlign
:
'-webkit-center'
}}
>
<
Typography
style
=
{{
fontSize
:
16
,
color
:
'#4b4b4b'
}}
>
-
<
/Typography
>
<
/div
>
:
<
div
style
=
{{
textAlign
:
'-webkit-center'
}}
>
{
item
.
is_higher
==
'true'
?
{
item
s
.
is_higher
==
'true'
?
<
img
src
=
{
Images
.
up
}
/> : <img src={Images.down} /
>
}
<
Typography
style
=
{{
fontSize
:
16
,
color
:
'#4b4b4b'
}}
>
vs
Last
Month
<
/Typography
>
<
/div
>
...
...
@@ -875,7 +880,7 @@ class HomePage extends Component {
<
Autocomplete
{...
this
.
state
.
listMonthCAT
}
id
=
"monthCAT"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
monthCAT
:
newInputValue
,
loading
:
true
},
()
=>
{
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
monthCAT
:
newInputValue
,
loading
:
true
,
loading3
:
true
},
()
=>
{
this
.
getDashboardCAT
()
// if (this.state.isApprover === true) {
// this.getCompanySubmitted()
...
...
@@ -892,7 +897,7 @@ class HomePage extends Component {
<
Autocomplete
{...
this
.
state
.
listPeriodeCAT
}
id
=
"periodeCAT"
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
periodeCAT
:
newInputValue
,
loading
:
true
},
()
=>
{
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
periodeCAT
:
newInputValue
,
loading
:
true
,
loading3
:
true
},
()
=>
{
this
.
getDashboardCAT
()
// if (this.state.isApprover === true) {
// this.getCompanySubmitted()
...
...
@@ -907,62 +912,62 @@ class HomePage extends Component {
value
=
{
this
.
state
.
periodeCAT
}
/
>
<
/div
>
{
this
.
state
.
dataDashboardCAT
.
map
((
item
s
,
indexs
)
=>
{
{
this
.
state
.
dataDashboardCAT
.
map
((
item
,
index
)
=>
{
return
(
<
div
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontSize
:
'16px'
,
marginTop
:
20
}}
>
{
item
s
.
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
}}
>
{
item
s
.
category
.
map
((
item
,
index
)
=>
{
{
item
.
category
.
map
((
items
,
indexs
)
=>
{
return
(
<
Link
to
=
{{
pathname
:
`/home/cat-dashboard/`
,
state
:
{
userType
:
'user'
,
rawData
:
{
month
:
this
.
state
.
monthCAT
.
month_id
,
periode
:
this
.
state
.
periodeCAT
.
value
,
companyId
:
item
.
company_id
}
rawData
:
{
month
:
this
.
state
.
monthCAT
.
month_id
,
periode
:
this
.
state
.
periodeCAT
.
value
,
companyId
:
item
s
.
company_id
}
}
}}
>
<
div
style
=
{{
padding
:
10
,
backgroundColor
:
'#fff'
,
height
:
350
,
borderRadius
:
6
,
paddingBottom
:
20
,
margin
:
10
,
boxShadow
:
'0 1px 4px 0 rgba(0, 0, 0, 0.25)'
,
width
:
250
,
marginRight
:
index
==
items
.
category
.
length
-
1
?
25
:
0
,
marginLeft
:
index
==
0
?
5
:
25
}}
>
<
div
style
=
{{
padding
:
10
,
backgroundColor
:
'#fff'
,
height
:
350
,
borderRadius
:
6
,
paddingBottom
:
20
,
margin
:
10
,
boxShadow
:
'0 1px 4px 0 rgba(0, 0, 0, 0.25)'
,
width
:
250
,
marginRight
:
index
s
==
item
.
category
.
length
-
1
?
25
:
0
,
marginLeft
:
indexs
==
0
?
5
:
25
}}
>
{
/* <span style={{ fontSize: '17px', color: this.state.selectIndex === index ? '#fff' : '#7e8085', maxWidth: 100 }}>{item.category_name}</span> */
}
<
div
style
=
{{
fontSize
:
'17px'
,
width
:
'100%'
,
height
:
25
}}
>
<
Typography
style
=
{{
textAlign
:
'left'
,
color
:
'#4b4b4b'
}}
>
{
item
.
category_name
}
<
/Typography
>
<
Typography
style
=
{{
textAlign
:
'left'
,
color
:
'#4b4b4b'
}}
>
{
item
s
.
category_name
}
<
/Typography
>
<
/div
>
{
item
.
total_kpi
!=
null
&&
{
item
s
.
total_kpi
!=
null
&&
<
div
style
=
{{
width
:
'100%'
,
display
:
'flex'
,
justifyContent
:
'center'
,
marginTop
:
10
}}
>
<
span
style
=
{{
textAlign
:
'center'
,
fontSize
:
'18px'
,
color
:
"#fff"
}}
>
{
item
.
total_kpi
}
<
/span
>
<
span
style
=
{{
textAlign
:
'center'
,
fontSize
:
'18px'
,
color
:
"#fff"
}}
>
{
item
s
.
total_kpi
}
<
/span
>
{
/* <span style={{ textAlign: 'center', fontSize: '11px', color: selectIndex === index ? "#fff" : '#4b4b4b' }}>KPIs</span> */
}
<
/div>
}
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'center'
,
marginTop
:
item
.
total_kpi
==
null
?
50
:
0
}}
>
<
div
style
=
{{
backgroundColor
:
item
.
performanceColor
,
textAlign
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
,
width
:
40
,
height
:
21
}}
>
<
Typography
style
=
{{
textAlign
:
'center'
,
color
:
'#4b4b4b'
}}
>
{
item
.
performance
}
<
/Typography
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'center'
,
marginTop
:
item
s
.
total_kpi
==
null
?
50
:
0
}}
>
<
div
style
=
{{
backgroundColor
:
item
s
.
performanceColor
,
textAlign
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
,
width
:
40
,
height
:
21
}}
>
<
Typography
style
=
{{
textAlign
:
'center'
,
color
:
'#4b4b4b'
}}
>
{
item
s
.
performance
}
<
/Typography
>
<
/div
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'center'
}}
>
{
!
this
.
state
.
loading3
&&
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
ReactSpeedometer
maxSegmentLabels
=
{
0
}
segmentColors
=
{[
item
.
performanceColor
,
item
s
.
performanceColor
,
"#d8d8d8"
]}
needleColor
=
{
"#4b4b4b"
}
value
=
{
Number
(
item
.
current_value
).
toFixed
(
2
)}
value
=
{
Number
(
item
s
.
current_value
).
toFixed
(
2
)}
valueFormat
=
{
'.2f'
}
minValue
=
{
Number
(
item
.
low
)}
maxValue
=
{
Number
(
item
.
high
)}
customSegmentStops
=
{[
0
,
Number
(
item
.
current_value
),
5
]}
minValue
=
{
Number
(
item
s
.
low
)}
maxValue
=
{
Number
(
item
s
.
high
)}
customSegmentStops
=
{[
0
,
Number
(
item
s
.
current_value
),
5
]}
width
=
{
200
}
height
=
{
140
}
ringWidth
=
{
25
}
textColor
=
{
'#4b4b4b'
}
/
>
<
/div
>
<
/div>
}
<
div
style
=
{{
backgroundColor
:
'transparent'
,
display
:
'flex'
,
marginTop
:
20
,
placeContent
:
'center'
}}
>
{
item
.
is_higher
==
'-'
?
{
item
s
.
is_higher
==
'-'
?
<
div
style
=
{{
textAlign
:
'-webkit-center'
}}
>
<
Typography
style
=
{{
fontSize
:
16
,
color
:
'#4b4b4b'
}}
>
-
<
/Typography
>
<
/div
>
:
<
div
style
=
{{
textAlign
:
'-webkit-center'
}}
>
{
item
.
is_higher
==
'true'
?
{
item
s
.
is_higher
==
'true'
?
<
img
src
=
{
Images
.
up
}
/> : <img src={Images.down} /
>
}
<
Typography
style
=
{{
fontSize
:
16
,
color
:
'#4b4b4b'
}}
>
vs
Last
Month
<
/Typography
>
<
/div
>
...
...
src/container/OutlookPA.js
View file @
50559bb5
...
...
@@ -310,7 +310,7 @@ export default class OutlookPA extends Component {
let
data
=
[]
response
.
data
.
data
.
map
((
item
)
=>
{
if
(
this
.
state
.
isApprover
)
{
if
(
item
>=
2000
&&
item
<=
(
Number
(
currentYear
)
+
1
))
{
if
(
item
>=
2000
&&
item
<=
(
Number
(
currentYear
)
+
1
0
))
{
data
.
push
(
item
)
}
}
else
{
...
...
@@ -328,7 +328,7 @@ export default class OutlookPA extends Component {
options
:
periodeData
,
getOptionLabel
:
(
option
)
=>
option
.
periode
,
};
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
)
+
1
)
:
this
.
state
.
lastPeriod
)
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
)
+
1
0
)
:
this
.
state
.
lastPeriod
)
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
===
periode
)
// console.log(data)
// console.log(this.state.lastPeriod)
...
...
src/container/OutlookPA/BalanceSheetOLPA.js
View file @
50559bb5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/container/OutlookPA/TaxPlanningOLPA.js
View file @
50559bb5
...
...
@@ -90,11 +90,12 @@ export default class TaxPlanningOLPA extends Component {
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
,
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
this
.
props
.
revision
,
"periode"
:
this
.
props
.
periode
,
"periode"
:
"2021"
,
"company_id"
:
this
.
props
.
company
.
company_id
}
api
.
create
().
getDetailReportOLPA
(
payload
).
then
(
response
=>
{
// console.log(payload);
console
.
log
(
payload
);
console
.
log
(
response
);
let
dataTable
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
.
status
==
'success'
)
{
...
...
@@ -127,8 +128,6 @@ export default class TaxPlanningOLPA extends Component {
{
tbc
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
item
.
tax_planning
.
december
.
tbf
},
item
.
tax_planning
.
total_current_year
,
{
tbc
:
item
.
tax_planning
.
total_next_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_next_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_next_year
.
tbf
},
{
tbc
:
item
.
tax_planning
.
total_more_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_more_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_more_year
.
tbf
},
item
.
order
,
{
tbc
:
item
.
condition_it_should_be
,
fcp
:
item
.
condition_it_should_be
,
tbf
:
item
.
condition_it_should_be
},
{
tbc
:
item
.
condition_if_wrong
,
fcp
:
item
.
condition_if_wrong
,
tbf
:
item
.
condition_if_wrong
},
...
...
@@ -168,8 +167,6 @@ export default class TaxPlanningOLPA extends Component {
{
tbc
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
item
.
tax_planning
.
december
.
tbf
},
item
.
tax_planning
.
total_current_year
,
{
tbc
:
item
.
tax_planning
.
total_next_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_next_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_next_year
.
tbf
},
{
tbc
:
item
.
tax_planning
.
total_more_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_more_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_more_year
.
tbf
},
item
.
order
,
{
tbc
:
item
.
condition_it_should_be
,
fcp
:
item
.
condition_it_should_be
,
tbf
:
item
.
condition_it_should_be
},
{
tbc
:
item
.
condition_if_wrong
,
fcp
:
item
.
condition_if_wrong
,
tbf
:
item
.
condition_if_wrong
},
...
...
@@ -196,6 +193,7 @@ export default class TaxPlanningOLPA extends Component {
}
else
{
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
})
}
console
.
log
(
dataTable
)
})
}
...
...
@@ -237,53 +235,53 @@ export default class TaxPlanningOLPA extends Component {
data
.
push
({
item_report_id
:
i
[
4
],
january
:
{
tbc
:
String
(
Number
(
i
[
9
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
9
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[9].tbc).toFixed(1)),
//
fcp: String(Number(i[9].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
9
].
tbf
).
toFixed
(
1
))
},
february
:
{
tbc
:
String
(
Number
(
i
[
10
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
10
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[10].tbc).toFixed(1)),
//
fcp: String(Number(i[10].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
10
].
tbf
).
toFixed
(
1
))
},
march
:
{
tbc
:
String
(
Number
(
i
[
11
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
11
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[11].tbc).toFixed(1)),
//
fcp: String(Number(i[11].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
11
].
tbf
).
toFixed
(
1
))
},
april
:
{
tbc
:
String
(
Number
(
i
[
12
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
12
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[12].tbc).toFixed(1)),
//
fcp: String(Number(i[12].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
12
].
tbf
).
toFixed
(
1
))
},
may
:
{
tbc
:
String
(
Number
(
i
[
13
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
13
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[13].tbc).toFixed(1)),
//
fcp: String(Number(i[13].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
13
].
tbf
).
toFixed
(
1
))
},
june
:
{
tbc
:
String
(
Number
(
i
[
14
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
14
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[14].tbc).toFixed(1)),
//
fcp: String(Number(i[14].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
14
].
tbf
).
toFixed
(
1
))
},
july
:
{
tbc
:
String
(
Number
(
i
[
15
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
15
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[15].tbc).toFixed(1)),
//
fcp: String(Number(i[15].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
15
].
tbf
).
toFixed
(
1
))
},
august
:
{
tbc
:
String
(
Number
(
i
[
16
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
16
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[16].tbc).toFixed(1)),
//
fcp: String(Number(i[16].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
16
].
tbf
).
toFixed
(
1
))
},
september
:
{
tbc
:
String
(
Number
(
i
[
17
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
17
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[17].tbc).toFixed(1)),
//
fcp: String(Number(i[17].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
17
].
tbf
).
toFixed
(
1
))
},
october
:
{
tbc
:
String
(
Number
(
i
[
18
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
18
].
fcp
).
toFixed
(
1
)),
//
tbc: String(Number(i[18].tbc).toFixed(1)),
//
fcp: String(Number(i[18].fcp).toFixed(1)),
tbf
:
String
(
Number
(
i
[
18
].
tbf
).
toFixed
(
1
))
},
november
:
{
...
...
@@ -297,16 +295,6 @@ export default class TaxPlanningOLPA extends Component {
tbf
:
String
(
Number
(
i
[
20
].
tbf
).
toFixed
(
1
))
},
total_current_year
:
String
(
Number
(
i
[
21
]).
toFixed
(
1
)),
total_next_year
:
{
tbc
:
String
(
Number
(
i
[
22
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
22
].
fcp
).
toFixed
(
1
)),
tbf
:
String
(
Number
(
i
[
22
].
tbf
).
toFixed
(
1
))
},
total_more_year
:
{
tbc
:
String
(
Number
(
i
[
23
].
tbc
).
toFixed
(
1
)),
fcp
:
String
(
Number
(
i
[
23
].
fcp
).
toFixed
(
1
)),
tbf
:
String
(
Number
(
i
[
23
].
tbf
).
toFixed
(
1
))
}
})
})
let
payload
=
{
...
...
@@ -317,6 +305,7 @@ export default class TaxPlanningOLPA extends Component {
"status"
:
type
,
"tax_planning"
:
data
}
console
.
log
(
payload
);
// console.log(JSON.stringify(payload));
// this.setState({ loading: false })
this
.
props
.
saveToOLPA
(
payload
)
...
...
@@ -1335,10 +1324,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
@@ -1472,10 +1461,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
@@ -1609,10 +1598,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
@@ -1746,10 +1735,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
@@ -1883,10 +1872,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
@@ -2020,10 +2009,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
@@ -2157,10 +2146,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
@@ -2294,10 +2283,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
@@ -2431,10 +2420,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
@@ -2568,10 +2557,10 @@ export default class TaxPlanningOLPA extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
t
his
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)
}
disabled
=
{
t
rue
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
...
...
src/container/RollingOutlook/BalanceSheetRO.js
View file @
50559bb5
...
...
@@ -727,7 +727,7 @@ export default class BalanceSheetRO extends Component {
name
:
"Account"
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
TableCell
key
=
{
columnMeta
.
index
}
style
=
{{
...
style
,
top
:
0
,
zIndex
:
102
,
backgroundColor
:
'#1c71b8'
,
width
:
300
}}
>
<
TableCell
key
=
{
columnMeta
.
index
}
style
=
{{
...
style
,
top
:
0
,
zIndex
:
102
,
backgroundColor
:
'#1c71b8'
,
width
:
300
,
borderRight
:
'1px #fff solid'
}}
>
<
Typography
style
=
{{
color
:
'white'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
textAlign
:
'left'
}}
>
{
columnMeta
.
name
}
<
/Typography
>
<
/TableCell
>
),
...
...
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