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
b1233ae3
Commit
b1233ae3
authored
Jan 14, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'riri' into 'master'
apdet See merge request
!967
parents
bd259167
5c827416
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
898 additions
and
866 deletions
+898
-866
DashboardCAT.js
src/container/Laporan/DashboardCAT.js
+2
-1
KPIs.js
src/container/Laporan/KPIs.js
+31
-0
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+865
-865
No files found.
src/container/Laporan/DashboardCAT.js
View file @
b1233ae3
...
@@ -2,6 +2,7 @@ import React, { Component } from 'react'
...
@@ -2,6 +2,7 @@ import React, { Component } from 'react'
import
{
Typography
,
MenuItem
,
TextField
,
AppBar
,
Paper
,
Tabs
,
Tab
}
from
'@material-ui/core'
import
{
Typography
,
MenuItem
,
TextField
,
AppBar
,
Paper
,
Tabs
,
Tab
}
from
'@material-ui/core'
import
ExceutiveScoreboard
from
'./ExceutiveScoreboard'
import
ExceutiveScoreboard
from
'./ExceutiveScoreboard'
import
StrategiMap
from
'./StrategiMap'
import
StrategiMap
from
'./StrategiMap'
import
KPIs
from
'./KPIs'
export
default
class
DashboardCAT
extends
Component
{
export
default
class
DashboardCAT
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -85,7 +86,7 @@ export default class DashboardCAT extends Component {
...
@@ -85,7 +86,7 @@ export default class DashboardCAT extends Component {
this
.
state
.
tab
===
1
?
this
.
state
.
tab
===
1
?
<
StrategiMap
height
=
{
this
.
props
.
height
}
/
>
<
StrategiMap
height
=
{
this
.
props
.
height
}
/
>
:
:
<
span
>
Test2
<
/span
>
<
KPIs
height
=
{
this
.
props
.
height
}
/
>
}
}
<
/Paper
>
<
/Paper
>
<
/div
>
<
/div
>
...
...
src/container/Laporan/KPIs.js
0 → 100644
View file @
b1233ae3
import
React
,
{
Component
}
from
'react'
import
{
Paper
,
Typography
}
from
'@material-ui/core'
import
Images
from
'../../assets/Images'
export
default
class
StrategiMap
extends
Component
{
render
()
{
return
(
<
div
style
=
{{
padding
:
20
}}
>
<
Paper
style
=
{{
borderRadius
:
10
,
boxShadow
:
'0 0 4px 0 rgba(0, 0, 0, 0.5)'
}}
>
<
div
style
=
{{
height
:
56
,
borderTopLeftRadius
:
10
,
borderTopRightRadius
:
10
,
backgroundColor
:
'#f1f1f1'
,
display
:
'flex'
}}
>
<
div
style
=
{{
width
:
'100%'
,
borderBottom
:
'solid 3px #979696 '
,
display
:
'grid'
,
alignContent
:
'center'
,
marginLeft
:
20
}}
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontWeight
:
'bold'
,
fontSize
:
12
}}
>
Category
<
/Typography
>
<
/div
>
<
div
style
=
{{
width
:
'75%'
,
borderBottom
:
'solid 3px #979696 '
,
display
:
'grid'
,
alignContent
:
'center'
,
paddingLeft
:
20
}}
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontWeight
:
'bold'
,
fontSize
:
12
}}
>
KPI
<
/Typography
>
<
/div
>
<
div
style
=
{{
width
:
'100%'
,
borderBottom
:
'solid 3px #979696 '
,
display
:
'grid'
,
alignContent
:
'center'
,
paddingLeft
:
20
}}
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontWeight
:
'bold'
,
fontSize
:
12
}}
>
Trends
<
/Typography
>
<
/div
>
<
div
style
=
{{
width
:
'75%'
,
borderBottom
:
'solid 3px #979696 '
,
display
:
'grid'
,
alignContent
:
'center'
,
paddingLeft
:
20
}}
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontWeight
:
'bold'
,
fontSize
:
12
}}
>
Current
<
/Typography
>
<
/div
>
<
div
style
=
{{
width
:
'75%'
,
borderBottom
:
'solid 3px #979696 '
,
marginRight
:
20
,
display
:
'grid'
,
alignContent
:
'center'
,
paddingLeft
:
20
}}
>
<
Typography
style
=
{{
color
:
'#656565'
,
fontWeight
:
'bold'
,
fontSize
:
12
}}
>
Achievement
<
/Typography
>
<
/div
>
<
/div
>
<
/Paper
>
<
/div
>
)
}
}
src/container/MonthlyReport/ProfitLossMR.js
View file @
b1233ae3
...
@@ -92,7 +92,7 @@ export default class ProfitLossMR extends Component {
...
@@ -92,7 +92,7 @@ export default class ProfitLossMR extends Component {
handleTekTekTek
:
0
,
handleTekTekTek
:
0
,
saveDraft
:
true
,
saveDraft
:
true
,
buttonError
:
true
,
buttonError
:
true
,
viewOnly
:
true
,
viewOnly
:
true
,
get_for
:
'view'
get_for
:
'view'
}
}
...
@@ -132,11 +132,11 @@ export default class ProfitLossMR extends Component {
...
@@ -132,11 +132,11 @@ export default class ProfitLossMR extends Component {
checkStatus
=
false
checkStatus
=
false
}
}
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
})
}
}
handleGetFor
(
type
)
{
handleGetFor
(
type
)
{
this
.
setState
({
get_for
:
type
},
()
=>
{
this
.
setState
({
get_for
:
type
},
()
=>
{
this
.
getLatestUpdate
()
this
.
getLatestUpdate
()
this
.
getSettingControl
()
this
.
getSettingControl
()
})
})
...
@@ -273,7 +273,7 @@ export default class ProfitLossMR extends Component {
...
@@ -273,7 +273,7 @@ export default class ProfitLossMR extends Component {
}
}
}
}
res
.
map
((
item
,
index
)
=>
{
res
.
map
((
item
,
index
)
=>
{
if
(
item
.
type_report_id
===
3
)
{
if
(
item
.
type_report_id
===
3
)
{
if
(
item
.
profit_loss
.
mtd_vs_mb
==
""
&&
Number
(
item
.
profit_loss
.
percent_act_vs_mb
)
<
this
.
state
.
minValue
||
Number
(
item
.
profit_loss
.
percent_act_vs_mb
)
>
this
.
state
.
maxValue
)
{
if
(
item
.
profit_loss
.
mtd_vs_mb
==
""
&&
Number
(
item
.
profit_loss
.
percent_act_vs_mb
)
<
this
.
state
.
minValue
||
Number
(
item
.
profit_loss
.
percent_act_vs_mb
)
>
this
.
state
.
maxValue
)
{
err
=
true
err
=
true
}
}
...
@@ -498,9 +498,9 @@ export default class ProfitLossMR extends Component {
...
@@ -498,9 +498,9 @@ export default class ProfitLossMR extends Component {
item
.
percent_act_vs_mb
,
item
.
percent_act_vs_mb
,
item
.
amount_act_vs_rb
,
item
.
amount_act_vs_rb
,
item
.
percent_act_vs_rb
,
item
.
percent_act_vs_rb
,
item
.
mtd_vs_mb
,
item
.
mtd_vs_mb
,
item
.
mtd_vs_rb
,
item
.
mtd_vs_rb
,
item
.
mtd_vs_previous_month
,
item
.
mtd_vs_previous_month
,
item
.
orders
,
item
.
orders
,
item
.
ytd_actual
===
null
?
""
:
item
.
ytd_actual
===
""
?
""
:
item
.
ytd_actual
,
item
.
ytd_actual
===
null
?
""
:
item
.
ytd_actual
===
""
?
""
:
item
.
ytd_actual
,
item
.
error
item
.
error
...
@@ -586,9 +586,9 @@ export default class ProfitLossMR extends Component {
...
@@ -586,9 +586,9 @@ export default class ProfitLossMR extends Component {
let
data
=
[]
let
data
=
[]
let
err
=
false
let
err
=
false
this
.
state
.
dataTable
.
map
((
i
,
index
)
=>
{
this
.
state
.
dataTable
.
map
((
i
,
index
)
=>
{
if
(
i
[
0
]
===
3
)
{
if
(
i
[
0
]
===
3
)
{
// console.log(i);
// console.log(i);
if
(
i
[
19
]
===
""
&&
(
Number
(
i
[
16
])
<
this
.
state
.
minValue
||
Number
(
i
[
16
])
>
this
.
state
.
maxValue
))
{
if
(
i
[
19
]
===
""
&&
(
Number
(
i
[
16
])
<
this
.
state
.
minValue
||
Number
(
i
[
16
])
>
this
.
state
.
maxValue
))
{
console
.
log
(
'msk 1'
);
console
.
log
(
'msk 1'
);
// console.log(i);
// console.log(i);
err
=
true
err
=
true
...
@@ -694,7 +694,7 @@ export default class ProfitLossMR extends Component {
...
@@ -694,7 +694,7 @@ export default class ProfitLossMR extends Component {
let
total
=
0
let
total
=
0
dataTable2
.
map
((
item
,
index
)
=>
{
dataTable2
.
map
((
item
,
index
)
=>
{
if
(
data
.
rowData
[
1
]
==
item
[
2
])
{
if
(
data
.
rowData
[
1
]
==
item
[
2
])
{
total
=
item
[
data
.
columnIndex
+
type
]
==
undefined
?
(
Number
(
total
)
+
0
)
:
(
Number
(
total
)
+
Number
(
String
(
item
[
data
.
columnIndex
+
type
]).
includes
(
'-'
)?
Number
(
String
(
item
[
data
.
columnIndex
+
type
]).
substr
(
1
,
String
(
item
[
data
.
columnIndex
+
type
]).
length
))
*
-
1
:
Number
(
item
[
data
.
columnIndex
+
type
])))
total
=
item
[
data
.
columnIndex
+
type
]
==
undefined
?
(
Number
(
total
)
+
0
)
:
(
Number
(
total
)
+
Number
(
String
(
item
[
data
.
columnIndex
+
type
]).
includes
(
'-'
)
?
Number
(
String
(
item
[
data
.
columnIndex
+
type
]).
substr
(
1
,
String
(
item
[
data
.
columnIndex
+
type
]).
length
))
*
-
1
:
Number
(
item
[
data
.
columnIndex
+
type
])))
}
}
})
})
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
1
]
==
dataTable2
[
data
.
rowIndex
][
2
])
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
1
]
==
dataTable2
[
data
.
rowIndex
][
2
])
...
@@ -795,7 +795,7 @@ export default class ProfitLossMR extends Component {
...
@@ -795,7 +795,7 @@ export default class ProfitLossMR extends Component {
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
}
else
if
(
dex
===
2
)
{
}
else
if
(
dex
===
2
)
{
// total = Number(dataTable2[tableMeta.rowIndex][15]) / Number(dataTable2[tableMeta.rowIndex][8])
// total = Number(dataTable2[tableMeta.rowIndex][15]) / Number(dataTable2[tableMeta.rowIndex][8])
total
=
R
.
equals
(
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
15
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
NaN
)
?
'0'
:
R
.
equals
(
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
15
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
Infinity
)
?
'0'
:
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
15
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
==
"-Infinity"
?
'0'
:
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
15
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
)
total
=
R
.
equals
(
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
15
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
NaN
)
?
'0'
:
R
.
equals
(
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
15
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
Infinity
)
?
'0'
:
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
15
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
==
"-Infinity"
?
'0'
:
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
15
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
}
else
if
(
dex
===
3
)
{
}
else
if
(
dex
===
3
)
{
// total = Number(dataTable2[tableMeta.rowIndex][17]) / Number(dataTable2[tableMeta.rowIndex][9])
// total = Number(dataTable2[tableMeta.rowIndex][17]) / Number(dataTable2[tableMeta.rowIndex][9])
...
@@ -928,7 +928,7 @@ export default class ProfitLossMR extends Component {
...
@@ -928,7 +928,7 @@ export default class ProfitLossMR extends Component {
control
=
{
control
=
{
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
// value={tableMeta.rowData[6]}
// value={tableMeta.rowData[6]}
...
@@ -963,7 +963,7 @@ export default class ProfitLossMR extends Component {
...
@@ -963,7 +963,7 @@ export default class ProfitLossMR extends Component {
customBodyRender
:
(
val
,
tableMeta
,
updateValue
)
=>
{
customBodyRender
:
(
val
,
tableMeta
,
updateValue
)
=>
{
return
(
return
(
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
null
:
:
this
.
state
.
get_for
==
'view'
?
this
.
state
.
get_for
==
'view'
?
...
@@ -1063,7 +1063,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1063,7 +1063,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1130,7 +1130,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1130,7 +1130,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
9
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
9
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1197,7 +1197,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1197,7 +1197,7 @@ export default class ProfitLossMR extends Component {
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
value
=
{
Number
(
tableMeta
.
rowData
[
10
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
10
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1209,10 +1209,10 @@ export default class ProfitLossMR extends Component {
...
@@ -1209,10 +1209,10 @@ export default class ProfitLossMR extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
isApprover
||
this
.
state
.
get_for
==
'view'
?
'black'
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
isApprover
||
this
.
state
.
get_for
==
'view'
?
'black'
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
value
=
{
Number
(
tableMeta
.
rowData
[
10
]).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
10
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
fixedDecimalScale
=
{
1
}
fixedDecimalScale
=
{
1
}
...
@@ -1312,7 +1312,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1312,7 +1312,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
23
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
23
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1390,7 +1390,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1390,7 +1390,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1523,7 +1523,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1523,7 +1523,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
13
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
13
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1560,7 +1560,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1560,7 +1560,7 @@ export default class ProfitLossMR extends Component {
placeholder
=
""
placeholder
=
""
suffix
=
{
'%'
}
suffix
=
{
'%'
}
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
14
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
14
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1602,7 +1602,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1602,7 +1602,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
15
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
15
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1639,7 +1639,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1639,7 +1639,7 @@ export default class ProfitLossMR extends Component {
placeholder
=
""
placeholder
=
""
suffix
=
{
'%'
}
suffix
=
{
'%'
}
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
16
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
16
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1680,7 +1680,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1680,7 +1680,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
17
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
17
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1717,7 +1717,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1717,7 +1717,7 @@ export default class ProfitLossMR extends Component {
placeholder
=
""
placeholder
=
""
suffix
=
{
'%'
}
suffix
=
{
'%'
}
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
18
]).
toFixed
(
1
)
}
value
=
{
Number
(
tableMeta
.
rowData
[
18
]).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
:
:
...
@@ -1845,11 +1845,11 @@ export default class ProfitLossMR extends Component {
...
@@ -1845,11 +1845,11 @@ export default class ProfitLossMR extends Component {
<
LightTooltipError
title
=
{
"MTD Explanation vs MB is Reqiured"
}
arrow
>
<
LightTooltipError
title
=
{
"MTD Explanation vs MB is Reqiured"
}
arrow
>
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
minHeight
:
30
,
padding
:
0
}}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
minHeight
:
30
,
padding
:
0
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
multiline
=
{
true
}
multiline
=
{
true
}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
// value={tableMeta.rowData[19]}
// value={tableMeta.rowData[19]}
defaultValue
=
{
tableMeta
.
rowData
[
19
]}
defaultValue
=
{
tableMeta
.
rowData
[
19
]}
inputProps
=
{{
inputProps
=
{{
...
@@ -1873,7 +1873,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1873,7 +1873,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
multiline
=
{
true
}
multiline
=
{
true
}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
defaultValue
=
{
tableMeta
.
rowData
[
19
]}
defaultValue
=
{
tableMeta
.
rowData
[
19
]}
inputProps
=
{{
inputProps
=
{{
style
:
{
style
:
{
...
@@ -1904,7 +1904,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1904,7 +1904,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
multiline
=
{
true
}
multiline
=
{
true
}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
defaultValue
=
{
tableMeta
.
rowData
[
20
]}
defaultValue
=
{
tableMeta
.
rowData
[
20
]}
inputProps
=
{{
inputProps
=
{{
style
:
{
style
:
{
...
@@ -1927,7 +1927,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1927,7 +1927,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
multiline
=
{
true
}
multiline
=
{
true
}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
defaultValue
=
{
tableMeta
.
rowData
[
20
]}
defaultValue
=
{
tableMeta
.
rowData
[
20
]}
inputProps
=
{{
inputProps
=
{{
style
:
{
style
:
{
...
@@ -1958,7 +1958,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1958,7 +1958,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
multiline
=
{
true
}
multiline
=
{
true
}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
defaultValue
=
{
tableMeta
.
rowData
[
21
]}
defaultValue
=
{
tableMeta
.
rowData
[
21
]}
inputProps
=
{{
inputProps
=
{{
style
:
{
style
:
{
...
@@ -1981,7 +1981,7 @@ export default class ProfitLossMR extends Component {
...
@@ -1981,7 +1981,7 @@ export default class ProfitLossMR extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
multiline
=
{
true
}
multiline
=
{
true
}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
disabled
=
{
this
.
props
.
isApprover
?
true
:
(
this
.
state
.
get_for
==
'view'
?
true
:
false
)}
defaultValue
=
{
tableMeta
.
rowData
[
21
]}
defaultValue
=
{
tableMeta
.
rowData
[
21
]}
inputProps
=
{{
inputProps
=
{{
style
:
{
style
:
{
...
@@ -2069,7 +2069,7 @@ export default class ProfitLossMR extends Component {
...
@@ -2069,7 +2069,7 @@ export default class ProfitLossMR extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
props
.
isApprover
===
true
||
this
.
state
.
get_for
==
'view'
?
{
this
.
props
.
isApprover
===
true
||
this
.
state
.
get_for
==
'view'
?
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
<
button
<
button
...
@@ -2162,7 +2162,7 @@ export default class ProfitLossMR extends Component {
...
@@ -2162,7 +2162,7 @@ export default class ProfitLossMR extends Component {
{
/* {this.props.isApprover === true || this.state.dataTable.length == 0 ? null :
{
/* {this.props.isApprover === true || this.state.dataTable.length == 0 ? null :
(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') ? */
}
(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') ? */
}
<
div
className
=
"grid grid-2x"
style
=
{{
padding
:
20
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
padding
:
20
}}
>
<
div
className
=
"col-1"
style
=
{{
paddingLeft
:
0
}}
>
<
div
className
=
"col-1"
style
=
{{
paddingLeft
:
0
}}
>
<
button
<
button
type
=
"button"
type
=
"button"
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
...
@@ -2197,7 +2197,7 @@ export default class ProfitLossMR extends Component {
...
@@ -2197,7 +2197,7 @@ export default class ProfitLossMR extends Component {
marginRight
:
20
marginRight
:
20
}}
}}
onClick
=
{()
=>
{
onClick
=
{()
=>
{
this
.
setState
({
loading
:
true
,
refresh
:
true
},
()
=>
{
this
.
setState
({
loading
:
true
,
refresh
:
true
},
()
=>
{
this
.
handleGetFor
(
'edit'
)
this
.
handleGetFor
(
'edit'
)
})
})
}}
}}
...
@@ -2303,7 +2303,7 @@ export default class ProfitLossMR extends Component {
...
@@ -2303,7 +2303,7 @@ export default class ProfitLossMR extends Component {
)}
)}
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
marginTop
:
20
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
marginTop
:
20
}}
>
<
div
className
=
"col-1"
style
=
{{
paddingLeft
:
0
}}
>
<
div
className
=
"col-1"
style
=
{{
paddingLeft
:
0
}}
>
<
button
<
button
type
=
"button"
type
=
"button"
onClick
=
{()
=>
this
.
setState
({
loading
:
true
,
visiblePLMR
:
true
},
()
=>
{
onClick
=
{()
=>
this
.
setState
({
loading
:
true
,
visiblePLMR
:
true
},
()
=>
{
...
...
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