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
00ee7eda
Commit
00ee7eda
authored
Mar 31, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok sip
parent
44985579
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
672 additions
and
669 deletions
+672
-669
OperatingIndicatorRO.js
src/container/RollingOutlook/OperatingIndicatorRO.js
+672
-669
No files found.
src/container/RollingOutlook/OperatingIndicatorRO.js
View file @
00ee7eda
...
@@ -77,7 +77,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -77,7 +77,7 @@ export default class OperatingIndicatorRO extends Component {
}
}
console
.
log
(
checkStatus
);
console
.
log
(
checkStatus
);
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
&&
checkStatus
})
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
&&
checkStatus
})
}
}
handleGetFor
(
type
)
{
handleGetFor
(
type
)
{
...
@@ -352,7 +352,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -352,7 +352,7 @@ export default class OperatingIndicatorRO extends Component {
a
.
click
();
a
.
click
();
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
},
500
);
},
500
);
}
}
...
@@ -373,7 +373,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -373,7 +373,7 @@ export default class OperatingIndicatorRO extends Component {
a
.
click
();
a
.
click
();
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
},
500
);
},
500
);
}
}
...
@@ -802,7 +802,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -802,7 +802,7 @@ export default class OperatingIndicatorRO extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
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'
?
...
@@ -827,7 +827,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -827,7 +827,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
...
@@ -846,7 +846,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -846,7 +846,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
...
@@ -923,7 +923,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -923,7 +923,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
...
@@ -942,7 +942,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -942,7 +942,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
...
@@ -1018,7 +1018,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1018,7 +1018,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
...
@@ -1132,7 +1132,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1132,7 +1132,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
...
@@ -1150,12 +1150,12 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1150,12 +1150,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
@@ -1243,12 +1243,12 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1243,12 +1243,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
@@ -1336,12 +1336,12 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1336,12 +1336,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
@@ -1392,7 +1392,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1392,7 +1392,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
...
@@ -1411,7 +1411,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1411,7 +1411,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
...
@@ -1429,12 +1429,12 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1429,12 +1429,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
@@ -1485,7 +1485,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1485,7 +1485,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
...
@@ -1504,7 +1504,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1504,7 +1504,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
...
@@ -1522,12 +1522,12 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1522,12 +1522,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
@@ -1578,7 +1578,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1578,7 +1578,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
/
>
/
>
...
@@ -1597,7 +1597,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1597,7 +1597,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
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"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
...
@@ -1615,12 +1615,12 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1615,12 +1615,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
@@ -2058,7 +2058,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -2058,7 +2058,7 @@ export default class OperatingIndicatorRO extends Component {
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
margin
:
5
margin
:
5
}}
}}
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
downloadTemplate
()
this
.
downloadTemplate
()
})}
})}
>
>
...
@@ -2113,14 +2113,17 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -2113,14 +2113,17 @@ export default class OperatingIndicatorRO extends Component {
<
/MuiThemeProvider
>
<
/MuiThemeProvider
>
}
}
<
/div
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
<
/Typography
>
<
div
style
=
{{
marginLeft
:
10
,
overflowY
:
'scroll'
,
height
:
75
,
marginTop
:
10
}}
>
<
div
style
=
{{
marginLeft
:
10
,
overflowY
:
'scroll'
,
height
:
this
.
state
.
updateBy
.
length
<
2
?
25
:
75
,
marginTop
:
10
}}
>
{
this
.
state
.
updateBy
.
reverse
().
map
((
item
,
index
)
=>
{
{
this
.
state
.
updateBy
.
length
>
0
?
this
.
state
.
updateBy
.
reverse
().
map
((
item
,
index
)
=>
{
return
(
return
(
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
}}
>
{
item
.
latest_update
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
,
marginRight
:
5
}}
>
{
item
.
latest_update
}
<
/Typography
>
)
)
})}
})
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
,
marginRight
:
5
}}
>-<
/Typography
>
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
}}
>
Notes
:
{
this
.
state
.
notesUpdate
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
}}
>
Notes
:
{
this
.
state
.
notesUpdate
}
<
/Typography
>
...
@@ -2151,7 +2154,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -2151,7 +2154,7 @@ export default class OperatingIndicatorRO extends Component {
<
button
<
button
type
=
"button"
type
=
"button"
onClick
=
{()
=>
{
onClick
=
{()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
handleGetFor
(
'edit'
)
this
.
handleGetFor
(
'edit'
)
})
})
}}
}}
...
...
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