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
37e0fe4e
Commit
37e0fe4e
authored
Jan 06, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oi++
parent
e6e83dec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
OperatingIndicatorMR.js
src/container/MonthlyReport/OperatingIndicatorMR.js
+21
-5
No files found.
src/container/MonthlyReport/OperatingIndicatorMR.js
View file @
37e0fe4e
...
...
@@ -184,7 +184,7 @@ export default class OperatingIndicatorMR extends Component {
"months"
:
this
.
props
.
months
,
"get_for"
:
this
.
state
.
get_for
}
//
console.log(payload);
console
.
log
(
payload
);
api
.
create
().
getHierarkiMontlyReportOI
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
let
dataTable
=
[]
...
...
@@ -214,8 +214,7 @@ export default class OperatingIndicatorMR extends Component {
item
.
description
,
item
.
uom
===
""
?
null
:
item
.
uom
,
item
.
monthly_report
.
rolling_outlook
===
null
?
"0.0"
:
item
.
monthly_report
.
rolling_outlook
===
""
?
"0.0"
:
item
.
monthly_report
.
rolling_outlook
,
// item.monthly_report.master_budget === null ? "0.0" : item.monthly_report.master_budget === "" ? "0.0" : item.monthly_report.master_budget,
5
,
item
.
monthly_report
.
master_budget
===
null
?
"0.0"
:
item
.
monthly_report
.
master_budget
===
""
?
"0.0"
:
item
.
monthly_report
.
master_budget
,
item
.
monthly_report
.
rolling_budget
===
null
?
"0.0"
:
item
.
monthly_report
.
rolling_budget
===
""
?
"0.0"
:
item
.
monthly_report
.
rolling_budget
,
item
.
monthly_report
.
actual
===
null
?
"0.0"
:
item
.
monthly_report
.
actual
===
""
?
"0.0"
:
item
.
monthly_report
.
actual
,
item
.
monthly_report
.
amount_act_vs_mb
===
null
?
"0.0"
:
item
.
monthly_report
.
amount_act_vs_mb
===
""
?
"0.0"
:
item
.
monthly_report
.
amount_act_vs_mb
,
...
...
@@ -255,8 +254,7 @@ export default class OperatingIndicatorMR extends Component {
item
.
description
,
item
.
uom
===
""
?
null
:
item
.
uom
,
item
.
monthly_report
.
rolling_outlook
===
null
?
"0.0"
:
item
.
monthly_report
.
rolling_outlook
===
""
?
"0.0"
:
item
.
monthly_report
.
rolling_outlook
,
// item.monthly_report.master_budget === null ? "0.0" : item.monthly_report.master_budget === "" ? "0.0" : item.monthly_report.master_budget,
5
,
item
.
monthly_report
.
master_budget
===
null
?
"0.0"
:
item
.
monthly_report
.
master_budget
===
""
?
"0.0"
:
item
.
monthly_report
.
master_budget
,
item
.
monthly_report
.
rolling_budget
===
null
?
"0.0"
:
item
.
monthly_report
.
rolling_budget
===
""
?
"0.0"
:
item
.
monthly_report
.
rolling_budget
,
item
.
monthly_report
.
actual
===
null
?
"0.0"
:
item
.
monthly_report
.
actual
===
""
?
"0.0"
:
item
.
monthly_report
.
actual
,
item
.
monthly_report
.
amount_act_vs_mb
===
null
?
"0.0"
:
item
.
monthly_report
.
amount_act_vs_mb
===
""
?
"0.0"
:
item
.
monthly_report
.
amount_act_vs_mb
,
...
...
@@ -1073,6 +1071,24 @@ export default class OperatingIndicatorMR extends Component {
/
>
<
/div>
:
tableMeta
.
rowData
[
0
]
===
6
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
1
)}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleFormula
(
val
,
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
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