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
2e295d04
Commit
2e295d04
authored
Oct 22, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pagiku cerah~
parent
caa2c6ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
891 additions
and
857 deletions
+891
-857
OperatingIndicatorDetail.js
src/container/OprIndicator/OperatingIndicatorDetail.js
+891
-857
No files found.
src/container/OprIndicator/OperatingIndicatorDetail.js
View file @
2e295d04
import
React
,
{
Component
}
from
'react'
;
import
{
Typography
,
Paper
,
createMuiTheme
,
MuiThemeProvider
,
TableCell
,
FormControlLabel
,
TextField
,
Input
,
Snackbar
}
from
'@material-ui/core'
;
import
{
Typography
,
Paper
,
createMuiTheme
,
MuiThemeProvider
,
TableCell
,
FormControlLabel
,
TextField
,
Input
,
Snackbar
,
withStyles
,
Tooltip
}
from
'@material-ui/core'
;
import
MUIDataTable
from
'mui-datatables'
;
import
NumberFormat
from
'react-number-format'
;
import
api
from
'../../api'
;
...
...
@@ -28,6 +28,15 @@ const style2 = {
zIndex
:
100
};
const
LightTooltip
=
withStyles
((
theme
)
=>
({
tooltip
:
{
backgroundColor
:
theme
.
palette
.
common
.
white
,
color
:
'rgba(0, 0, 0, 0.87)'
,
boxShadow
:
theme
.
shadows
[
1
],
fontSize
:
11
,
},
}))(
Tooltip
);
export
default
class
BalanceSheet
extends
Component
{
constructor
(
props
)
{
super
(
props
)
...
...
@@ -89,7 +98,7 @@ export default class BalanceSheet extends Component {
}
// console.log(payload)
api
.
create
().
getOperatingIndDetail
(
payload
).
then
(
response
=>
{
//
console.log(response)
console
.
log
(
response
)
let
dataTable
=
[]
let
res
=
response
.
data
.
data
// // console.log(res)
...
...
@@ -357,7 +366,7 @@ export default class BalanceSheet extends Component {
api
.
create
().
checkUploadOperatingInd
(
this
.
state
.
payload
).
then
(
response
=>
{
// // console.log(JSON.stringify(this.state.payload));
// console.log('===============')
//
console.log(response)
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
setState
({
visibleUpload
:
false
,
visibleOI
:
false
,
loading
:
true
})
...
...
@@ -429,7 +438,7 @@ export default class BalanceSheet extends Component {
// console.log(JSON.stringify(body))
api
.
create
(
'UPLOAD'
).
uploadOperatingInd
(
body
).
then
(
response
=>
{
// console.log(response);
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
...
...
@@ -578,35 +587,22 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
width
:
300
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
null
:
tableMeta
.
rowData
[
22
]
?
tableMeta
.
rowData
[
22
].
length
>
0
?
tableMeta
.
rowData
[
22
][
0
].
field
===
'item'
?
tableMeta
.
rowData
[
4
]
==
0
?
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
22
][
0
].
message
}
data
-
for
=
"account"
>
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
,
color
:
'red'
}}
>
{
String
(
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
).
toUpperCase
()}
<
/span
>
<
/a
>
:
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
22
][
0
].
message
}
data
-
for
=
"account"
>
<
span
style
=
{{
fontSize
:
12
,
color
:
'red'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
/a
>
<
/div
>
:
{
tableMeta
.
rowData
[
0
]
===
null
?
tableMeta
.
rowData
[
1
]
!==
null
?
tableMeta
.
rowData
[
4
]
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
).
toUpperCase
()}
<
/span
>
:
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
<
span
style
=
{{
fontSize
:
12
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
/div
>
:
<
/div>
:
tableMeta
.
rowData
[
4
]
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
).
toUpperCase
()}
<
/span
>
:
<
LightTooltip
title
=
{
"Report Items Not Registered"
}
arrow
>
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
,
color
:
'red'
}}
>
{
String
(
val
).
toUpperCase
()}
<
/span
>
<
/LightTooltip>
:
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
<
span
style
=
{{
fontSize
:
12
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
LightTooltip
title
=
{
"Report Items Not Registered"
}
arrow
>
<
span
style
=
{{
fontSize
:
12
,
color
:
'red'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
/LightTooltip
>
<
/div
>
:
tableMeta
.
rowData
[
4
]
==
0
?
...
...
@@ -615,8 +611,46 @@ export default class BalanceSheet extends Component {
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
<
span
style
=
{{
fontSize
:
12
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
/div
>
}
<
ReactTooltip
border
=
{
true
}
id
=
"account"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
// tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === null ?
// null
// :
// tableMeta.rowData[22] ?
// tableMeta.rowData[22].length > 0 ?
// tableMeta.rowData[22][0].field === 'item' ?
// tableMeta.rowData[4] == 0 ?
// <a data-tip={tableMeta.rowData[22][0].message} data-for="account">
// <span style={{ fontSize: 12, fontWeight: 'bold', color: 'red' }}>{String(tableMeta.rowData[0] === 4 ? "" : val).toUpperCase()}</span>
// </a>
// :
// <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[4]) }}>
// <a data-tip={tableMeta.rowData[22][0].message} data-for="account">
// <span style={{ fontSize: 12, color: 'red' }}>{tableMeta.rowData[0] === 4 ? "" : val}</span>
// </a>
// </div>
// :
// tableMeta.rowData[4] == 0 ?
// <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(tableMeta.rowData[0] === 4 ? "" : val).toUpperCase()}</span>
// :
// <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[4]) }}>
// <span style={{ fontSize: 12 }}>{tableMeta.rowData[0] === 4 ? "" : val}</span>
// </div>
// :
// tableMeta.rowData[4] == 0 ?
// <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(tableMeta.rowData[0] === 4 ? "" : val).toUpperCase()}</span>
// :
// <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[4]) }}>
// <span style={{ fontSize: 12 }}>{tableMeta.rowData[0] === 4 ? "" : val}</span>
// </div>
// :
// tableMeta.rowData[4] == 0 ?
// <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(tableMeta.rowData[0] === 4 ? "" : val).toUpperCase()}</span>
// :
// <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[4]) }}>
// <span style={{ fontSize: 12 }}>{tableMeta.rowData[0] === 4 ? "" : val}</span>
// </div>
}
{
/* <ReactTooltip border={true} id="account" place="bottom" type="light" effect="solid" /> */
}
<
/div
>
)
}
...
...
@@ -633,7 +667,7 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
<
FormControlLabel
...
...
@@ -674,7 +708,7 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
<
NumberFormat
...
...
@@ -702,10 +736,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -724,7 +758,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -788,10 +822,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -810,7 +844,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -873,10 +907,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -895,7 +929,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -958,10 +992,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -980,7 +1014,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1043,10 +1077,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1065,7 +1099,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1128,10 +1162,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1150,7 +1184,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1213,10 +1247,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1235,7 +1269,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1298,10 +1332,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1320,7 +1354,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1383,10 +1417,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1405,7 +1439,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1468,10 +1502,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1490,7 +1524,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1553,10 +1587,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1575,7 +1609,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1638,10 +1672,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1660,7 +1694,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1723,10 +1757,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
null
?
null
:
tableMeta
.
rowData
[
0
]
==
2
?
tableMeta
.
rowData
[
0
]
==
2
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1745,7 +1779,7 @@ export default class BalanceSheet extends Component {
/
>
<
/div
>
:
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -1989,7 +2023,7 @@ export default class BalanceSheet extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
{
this
.
state
.
dataLoaded
&&
(
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)}}
>
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
{
this
.
state
.
loading
&&
loadingComponent
}
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
...
...
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