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
5713e936
Commit
5713e936
authored
Mar 22, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ro
parent
fe22144d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
131 additions
and
131 deletions
+131
-131
index.js
src/api/index.js
+1
-1
OperatingIndicator.js
src/container/OprIndicator/OperatingIndicator.js
+3
-3
OperatingIndicatorRO.js
src/container/RollingOutlook/OperatingIndicatorRO.js
+127
-127
No files found.
src/api/index.js
View file @
5713e936
...
@@ -241,7 +241,7 @@ const create = (type = "") => {
...
@@ -241,7 +241,7 @@ const create = (type = "") => {
const
getLastestUpdateMROI
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/monthly_report/get_latest_update'
,
body
)
const
getLastestUpdateMROI
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/monthly_report/get_latest_update'
,
body
)
// Rolling Outlook
// Rolling Outlook
const
getRollingOutlookID
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/get_
monthly_report
_id'
,
body
)
const
getRollingOutlookID
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/get_
rolling_outlook
_id'
,
body
)
const
getRollingOutlookAttachment
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/get_report_attachment'
,
body
)
const
getRollingOutlookAttachment
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/get_report_attachment'
,
body
)
const
uploadRollingOutlookAttachment
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/upload_attachment'
,
body
)
const
uploadRollingOutlookAttachment
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/upload_attachment'
,
body
)
const
deleteRollingOutlookAttachment
=
(
body
)
=>
api
.
post
(
`transaction/rolling_outlook/delete_attachment/
${
body
}
`
)
const
deleteRollingOutlookAttachment
=
(
body
)
=>
api
.
post
(
`transaction/rolling_outlook/delete_attachment/
${
body
}
`
)
...
...
src/container/OprIndicator/OperatingIndicator.js
View file @
5713e936
...
@@ -508,10 +508,10 @@ export default class OperatingIndicator extends Component {
...
@@ -508,10 +508,10 @@ export default class OperatingIndicator extends Component {
borderColor
:
'transparent'
borderColor
:
'transparent'
}}
}}
onClick
=
{()
=>
onClick
=
{()
=>
tableMeta
.
rowData
[
4
]
?
//
tableMeta.rowData[4] ?
this
.
clickDetail
(
tableMeta
.
rowData
,
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
3
],
tableMeta
.
rowData
[
2
])
this
.
clickDetail
(
tableMeta
.
rowData
,
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
3
],
tableMeta
.
rowData
[
2
])
:
//
:
null
//
null
}
}
>
>
<
Typography
style
=
{{
color
:
tableMeta
.
rowData
[
4
]
?
'#5198ea'
:
'GrayText'
,
fontSize
:
12
,
}}
>
Detail
<
/Typography
>
<
Typography
style
=
{{
color
:
tableMeta
.
rowData
[
4
]
?
'#5198ea'
:
'GrayText'
,
fontSize
:
12
,
}}
>
Detail
<
/Typography
>
...
...
src/container/RollingOutlook/OperatingIndicatorRO.js
View file @
5713e936
...
@@ -810,47 +810,47 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -810,47 +810,47 @@ export default class OperatingIndicatorRO extends Component {
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
/
>
:
:
//
tableMeta.rowData[0] == 2 ?
tableMeta
.
rowData
[
0
]
==
2
?
//
<div style={{ flex: 1 }}>
<
div
style
=
{{
flex
:
1
}}
>
//
<FormControlLabel
<
FormControlLabel
//
style={{ margin: 0 }}
style
=
{{
margin
:
0
}}
//
value={value}
value
=
{
value
}
//
control={
control
=
{
//
<NumberFormat
<
NumberFormat
//
thousandSeparator={true}
thousandSeparator
=
{
true
}
//
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={
Number(handleParent(tableMeta)).toFixed(1)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
//
disabled={true}
disabled
=
{
true
}
//
decimalScale={1}
decimalScale
=
{
1
}
//
/>
/
>
//
}
}
//
/>
/
>
//
</div>
<
/div
>
//
:
:
//
(tableMeta.rowData[0] == 5 || tableMeta.rowData[0] == 6 ?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
//
<div style={{ flex: 1 }}>
<
div
style
=
{{
flex
:
1
}}
>
//
<FormControlLabel
<
FormControlLabel
//
style={{ margin: 0 }}
style
=
{{
margin
:
0
}}
//
value={value}
value
=
{
value
}
//
control={
control
=
{
//
<NumberFormat
<
NumberFormat
//
thousandSeparator={true}
thousandSeparator
=
{
true
}
//
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={
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
)
=>
{
//
handleChange(event.target.value, tableMeta)
handleChange
(
event
.
target
.
value
,
tableMeta
)
//
}}
}}
//
/>
/
>
//
}
}
//
/>
/
>
//
</div>
<
/div
>
//
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -873,7 +873,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -873,7 +873,7 @@ export default class OperatingIndicatorRO extends Component {
}
}
/
>
/
>
<
/div
>
<
/div
>
//
)
)
}
}
<
/div
>
<
/div
>
)
)
...
@@ -906,47 +906,47 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -906,47 +906,47 @@ export default class OperatingIndicatorRO extends Component {
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
/
>
:
:
//
tableMeta.rowData[0] == 2 ?
tableMeta
.
rowData
[
0
]
==
2
?
//
<div style={{ flex: 1 }}>
<
div
style
=
{{
flex
:
1
}}
>
//
<FormControlLabel
<
FormControlLabel
//
style={{ margin: 0 }}
style
=
{{
margin
:
0
}}
//
value={value}
value
=
{
value
}
//
control={
control
=
{
//
<NumberFormat
<
NumberFormat
//
thousandSeparator={true}
thousandSeparator
=
{
true
}
//
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={
Number(handleParent(tableMeta)).toFixed(1)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
//
disabled={true}
disabled
=
{
true
}
//
decimalScale={1}
decimalScale
=
{
1
}
//
/>
/
>
//
}
}
//
/>
/
>
//
</div>
<
/div
>
//
:
:
//
(tableMeta.rowData[0] == 5 || tableMeta.rowData[0] == 6 ?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
//
<div style={{ flex: 1 }}>
<
div
style
=
{{
flex
:
1
}}
>
//
<FormControlLabel
<
FormControlLabel
//
style={{ margin: 0 }}
style
=
{{
margin
:
0
}}
//
value={value}
value
=
{
value
}
//
control={
control
=
{
//
<NumberFormat
<
NumberFormat
//
thousandSeparator={true}
thousandSeparator
=
{
true
}
//
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={
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
)
=>
{
//
handleChange(event.target.value, tableMeta)
handleChange
(
event
.
target
.
value
,
tableMeta
)
//
}}
}}
//
/>
/
>
//
}
}
//
/>
/
>
//
</div>
<
/div
>
//
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -969,7 +969,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -969,7 +969,7 @@ export default class OperatingIndicatorRO extends Component {
}
}
/
>
/
>
<
/div
>
<
/div
>
//
)
)
}
}
<
/div
>
<
/div
>
)
)
...
@@ -1001,47 +1001,47 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1001,47 +1001,47 @@ export default class OperatingIndicatorRO extends Component {
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
/
>
:
:
//
tableMeta.rowData[0] == 2 ?
tableMeta
.
rowData
[
0
]
==
2
?
//
<div style={{ flex: 1 }}>
<
div
style
=
{{
flex
:
1
}}
>
//
<FormControlLabel
<
FormControlLabel
//
style={{ margin: 0 }}
style
=
{{
margin
:
0
}}
//
value={value}
value
=
{
value
}
//
control={
control
=
{
//
<NumberFormat
<
NumberFormat
//
thousandSeparator={true}
thousandSeparator
=
{
true
}
//
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={
Number(handleParent(tableMeta)).toFixed(1)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
//
disabled={true}
disabled
=
{
true
}
//
decimalScale={1}
decimalScale
=
{
1
}
//
/>
/
>
//
}
}
//
/>
/
>
//
</div>
<
/div
>
//
:
:
//
(tableMeta.rowData[0] == 5 || tableMeta.rowData[0] == 6 ?
(
tableMeta
.
rowData
[
0
]
==
5
||
tableMeta
.
rowData
[
0
]
==
6
?
//
<div style={{ flex: 1 }}>
<
div
style
=
{{
flex
:
1
}}
>
//
<FormControlLabel
<
FormControlLabel
//
style={{ margin: 0 }}
style
=
{{
margin
:
0
}}
//
value={value}
value
=
{
value
}
//
control={
control
=
{
//
<NumberFormat
<
NumberFormat
//
thousandSeparator={true}
thousandSeparator
=
{
true
}
//
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={
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
)
=>
{
//
handleChange(event.target.value, tableMeta)
handleChange
(
event
.
target
.
value
,
tableMeta
)
//
}}
}}
//
/>
/
>
//
}
}
//
/>
/
>
//
</div>
<
/div
>
//
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -1064,7 +1064,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -1064,7 +1064,7 @@ export default class OperatingIndicatorRO extends Component {
}
}
/
>
/
>
<
/div
>
<
/div
>
//
)
)
}
}
<
/div
>
<
/div
>
)
)
...
@@ -2137,7 +2137,7 @@ export default class OperatingIndicatorRO extends Component {
...
@@ -2137,7 +2137,7 @@ export default class OperatingIndicatorRO extends Component {
<
/button
>
<
/button
>
<
/div
>
<
/div
>
{
!
this
.
state
.
emptyData
&&
(
this
.
props
.
permission
.
create
||
this
.
props
.
permission
.
edit
)
&&
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
,
paddingRight
:
2
}}
>
{
!
this
.
state
.
emptyData
&&
(
this
.
props
.
permission
.
create
||
this
.
props
.
permission
.
edit
)
&&
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
,
paddingRight
:
2
}}
>
{
this
.
state
.
get_for
==
'view'
&&
this
.
state
.
viewOnly
&&
{
this
.
state
.
get_for
==
'view'
&&
<
button
<
button
type
=
"button"
type
=
"button"
onClick
=
{()
=>
{
onClick
=
{()
=>
{
...
...
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