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
b55d3543
Commit
b55d3543
authored
Jan 06, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into rifka
parents
98cddffd
c943395d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
308 additions
and
209 deletions
+308
-209
index.js
src/api/index.js
+5
-5
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+22
-14
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+52
-4
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+7
-7
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+145
-111
OperatingIndicatorMR.js
src/container/MonthlyReport/OperatingIndicatorMR.js
+77
-68
No files found.
src/api/index.js
View file @
b55d3543
...
@@ -263,7 +263,7 @@ const create = (type = "") => {
...
@@ -263,7 +263,7 @@ const create = (type = "") => {
const
getLastestUpdateMR
=
(
body
)
=>
api
.
post
(
'/transaction/monthly_report/get_latest_update'
,
body
)
const
getLastestUpdateMR
=
(
body
)
=>
api
.
post
(
'/transaction/monthly_report/get_latest_update'
,
body
)
// const getHierarkiMontlyReportTP = (body) => api.post('transaction/monthly_report_tp/get_report_hierarki', body)
// const getHierarkiMontlyReportTP = (body) => api.post('transaction/monthly_report_tp/get_report_hierarki', body)
const
getHierarkiMontlyReportTP
=
(
body
)
=>
api
.
post
(
'transaction/tax_planning/monthly_report/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportTP
=
(
body
)
=>
api
.
post
(
'transaction/tax_planning/monthly_report/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
monthly_report_locf
/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
locf/monthly_report
/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportFAM
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/fam/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportFAM
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/fam/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportCF
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_cf/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportCF
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_cf/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportCAT
=
(
body
)
=>
api
.
post
(
'/transaction/monthly_report/cat/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportCAT
=
(
body
)
=>
api
.
post
(
'/transaction/monthly_report/cat/get_report_hierarki'
,
body
)
...
@@ -276,7 +276,7 @@ const create = (type = "") => {
...
@@ -276,7 +276,7 @@ const create = (type = "") => {
const
deleteAttachmentMonthly
=
(
id
)
=>
api
.
post
(
`transaction/monthly_report/delete_attachment/
${
id
}
`
)
const
deleteAttachmentMonthly
=
(
id
)
=>
api
.
post
(
`transaction/monthly_report/delete_attachment/
${
id
}
`
)
// const createMonthlyReportBS = (body) => api.post('transaction/monthly_report_bs/create_monthly_report', body)
// const createMonthlyReportBS = (body) => api.post('transaction/monthly_report_bs/create_monthly_report', body)
const
createMonthlyReportBS
=
(
body
)
=>
api
.
post
(
'transaction/balance_sheet/monthly_report/create_monthly_report'
,
body
)
const
createMonthlyReportBS
=
(
body
)
=>
api
.
post
(
'transaction/balance_sheet/monthly_report/create_monthly_report'
,
body
)
const
createMonthlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
monthly_report_locf
/create_monthly_report'
,
body
)
const
createMonthlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
locf/monthly_report
/create_monthly_report'
,
body
)
// const createMonthlyReportTP = (body) => api.post('transaction/monthly_report_tp/create_monthly_report', body)
// const createMonthlyReportTP = (body) => api.post('transaction/monthly_report_tp/create_monthly_report', body)
const
createMonthlyReportTP
=
(
body
)
=>
api
.
post
(
'transaction/tax_planning/monthly_report/create_monthly_report'
,
body
)
const
createMonthlyReportTP
=
(
body
)
=>
api
.
post
(
'transaction/tax_planning/monthly_report/create_monthly_report'
,
body
)
const
createMonthlyReportFAM
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/fam/create_monthly_report'
,
body
)
const
createMonthlyReportFAM
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/fam/create_monthly_report'
,
body
)
...
@@ -301,9 +301,9 @@ const create = (type = "") => {
...
@@ -301,9 +301,9 @@ const create = (type = "") => {
const
validateSubmitReportMR
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/validate_save'
,
body
)
const
validateSubmitReportMR
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/validate_save'
,
body
)
// const validateSubmitReportMRTP = (body) => api.post('transaction/monthly_report_tp/validate_save', body)
// const validateSubmitReportMRTP = (body) => api.post('transaction/monthly_report_tp/validate_save', body)
const
validateSubmitReportMRTP
=
(
body
)
=>
api
.
post
(
'transaction/tax_planning/monthly_report/validate_save'
,
body
)
const
validateSubmitReportMRTP
=
(
body
)
=>
api
.
post
(
'transaction/tax_planning/monthly_report/validate_save'
,
body
)
const
getPerBSiMontlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
monthly_report_locf
/get_per_bs'
,
body
)
const
getPerBSiMontlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
locf/monthly_report
/get_per_bs'
,
body
)
const
checkUploadMonthlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
monthly_report_locf
/check_import'
,
body
)
const
checkUploadMonthlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
locf/monthly_report
/check_import'
,
body
)
const
uploadMonthlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
monthly_report_locf
/import_monthly_report'
,
body
)
const
uploadMonthlyReportLOCF
=
(
body
)
=>
api
.
post
(
'transaction/
locf/monthly_report
/import_monthly_report'
,
body
)
const
validateSubmitReportOI
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_oi/validate_save'
,
body
)
const
validateSubmitReportOI
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_oi/validate_save'
,
body
)
// MonthlyPL
// MonthlyPL
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
b55d3543
...
@@ -684,6 +684,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -684,6 +684,7 @@ export default class CorporateAnnualTarget extends Component {
let
weightReal
=
null
let
weightReal
=
null
let
handleKosongKPIMAXYTD
=
false
let
handleKosongKPIMAXYTD
=
false
let
stateFR
=
false
let
stateFR
=
false
console
.
log
(
this
.
state
.
dataTable
)
this
.
state
.
dataTable
.
map
((
i
,
index
)
=>
{
this
.
state
.
dataTable
.
map
((
i
,
index
)
=>
{
if
(
i
[
0
]
==
1
)
{
if
(
i
[
0
]
==
1
)
{
dataTampung
.
push
({
dataTampung
.
push
({
...
@@ -746,6 +747,10 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -746,6 +747,10 @@ export default class CorporateAnnualTarget extends Component {
}
}
// // console.log(String(weightReal).substr(0,String(weightReal).length-1))
// // console.log(String(weightReal).substr(0,String(weightReal).length-1))
// // console.log(Number(String(weightReal).substr(0,String(weightReal).length-1)).toFixed(1));
// // console.log(Number(String(weightReal).substr(0,String(weightReal).length-1)).toFixed(1));
console
.
log
(
weightReal
)
console
.
log
(
i
[
7
])
let
b
=
[]
// console.log(i[13].value == undefined? 'Y' : 'N')
data
.
push
({
data
.
push
({
"item_report_id"
:
i
[
1
]
==
""
||
i
[
1
]
==
null
?
0
:
i
[
1
],
"item_report_id"
:
i
[
1
]
==
""
||
i
[
1
]
==
null
?
0
:
i
[
1
],
"item_name"
:
String
(
i
[
6
]),
"item_name"
:
String
(
i
[
6
]),
...
@@ -756,24 +761,26 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -756,24 +761,26 @@ export default class CorporateAnnualTarget extends Component {
"max_ach"
:
i
[
10
]
==
null
?
""
:
i
[
10
].
value
,
"max_ach"
:
i
[
10
]
==
null
?
""
:
i
[
10
].
value
,
"formula"
:
i
[
11
]
==
null
?
""
:
i
[
11
].
value
,
"formula"
:
i
[
11
]
==
null
?
""
:
i
[
11
].
value
,
"total_actual_before"
:
String
(
i
[
12
])
==
""
?
"0.0"
:
String
(
i
[
12
]),
"total_actual_before"
:
String
(
i
[
12
])
==
""
?
"0.0"
:
String
(
i
[
12
]),
"january"
:
stateFR
?
String
(
i
[
13
].
value
)
:
String
(
i
[
13
])
==
""
?
"0.0"
:
String
(
i
[
13
]),
"january"
:
i
[
13
].
value
==
undefined
?
(
String
(
i
[
13
])
==
''
?
"0.0"
:
String
(
i
[
13
]))
:
String
(
i
[
13
].
value
),
"february"
:
stateFR
?
String
(
i
[
14
].
value
)
:
String
(
i
[
14
])
==
""
?
"0.0"
:
String
(
i
[
14
]),
// "january": stateFR ? String(i[13].value) : String(i[13]) == "" ? "0.0" : String(i[13]),
"march"
:
stateFR
?
String
(
i
[
15
].
value
)
:
String
(
i
[
15
])
==
""
?
"0.0"
:
String
(
i
[
15
]),
"february"
:
i
[
14
].
value
==
undefined
?
(
String
(
i
[
14
])
==
''
?
"0.0"
:
String
(
i
[
14
]))
:
String
(
i
[
14
].
value
),
"april"
:
stateFR
?
String
(
i
[
16
].
value
)
:
String
(
i
[
16
])
==
""
?
"0.0"
:
String
(
i
[
16
]),
"march"
:
i
[
15
].
value
==
undefined
?
(
String
(
i
[
15
])
==
''
?
"0.0"
:
String
(
i
[
15
]))
:
String
(
i
[
15
].
value
),
"may"
:
stateFR
?
String
(
i
[
17
].
value
)
:
String
(
i
[
17
])
==
""
?
"0.0"
:
String
(
i
[
17
]),
"april"
:
i
[
16
].
value
==
undefined
?
(
String
(
i
[
16
])
==
''
?
"0.0"
:
String
(
i
[
16
]))
:
String
(
i
[
16
].
value
),
"june"
:
stateFR
?
String
(
i
[
18
].
value
)
:
String
(
i
[
18
])
==
""
?
"0.0"
:
String
(
i
[
18
]),
"may"
:
i
[
17
].
value
==
undefined
?
(
String
(
i
[
17
])
==
''
?
"0.0"
:
String
(
i
[
17
]))
:
String
(
i
[
17
].
value
),
"july"
:
stateFR
?
String
(
i
[
19
].
value
)
:
String
(
i
[
19
])
==
""
?
"0.0"
:
String
(
i
[
19
]),
"june"
:
i
[
18
].
value
==
undefined
?
(
String
(
i
[
18
])
==
''
?
"0.0"
:
String
(
i
[
18
]))
:
String
(
i
[
18
].
value
),
"august"
:
stateFR
?
String
(
i
[
20
].
value
)
:
String
(
i
[
20
])
==
""
?
"0.0"
:
String
(
i
[
20
]),
"july"
:
i
[
19
].
value
==
undefined
?
(
String
(
i
[
19
])
==
''
?
"0.0"
:
String
(
i
[
19
]))
:
String
(
i
[
19
].
value
),
"september"
:
stateFR
?
String
(
i
[
21
].
value
)
:
String
(
i
[
21
])
==
""
?
"0.0"
:
String
(
i
[
21
]),
"august"
:
i
[
20
].
value
==
undefined
?
(
String
(
i
[
20
])
==
''
?
"0.0"
:
String
(
i
[
20
]))
:
String
(
i
[
20
].
value
),
"october"
:
stateFR
?
String
(
i
[
22
].
value
)
:
String
(
i
[
22
])
==
""
?
"0.0"
:
String
(
i
[
22
]),
"september"
:
i
[
21
].
value
==
undefined
?
(
String
(
i
[
21
])
==
''
?
"0.0"
:
String
(
i
[
21
]))
:
String
(
i
[
21
].
value
),
"november"
:
stateFR
?
String
(
i
[
23
].
value
)
:
String
(
i
[
23
])
==
""
?
"0.0"
:
String
(
i
[
23
]),
"october"
:
i
[
22
].
value
==
undefined
?
(
String
(
i
[
22
])
==
''
?
"0.0"
:
String
(
i
[
22
]))
:
String
(
i
[
22
].
value
),
"december"
:
stateFR
?
String
(
i
[
24
].
value
)
:
String
(
i
[
24
])
==
""
?
"0.0"
:
String
(
i
[
24
]),
"november"
:
i
[
23
].
value
==
undefined
?
(
String
(
i
[
23
])
==
''
?
"0.0"
:
String
(
i
[
23
]))
:
String
(
i
[
23
].
value
),
"december"
:
i
[
24
].
value
==
undefined
?
(
String
(
i
[
24
])
==
''
?
"0.0"
:
String
(
i
[
24
]))
:
String
(
i
[
24
].
value
),
"total_current_year"
:
String
(
i
[
25
])
==
""
?
"0.0"
:
String
(
i
[
25
]),
"total_current_year"
:
String
(
i
[
25
])
==
""
?
"0.0"
:
String
(
i
[
25
]),
"total_next_year"
:
String
(
i
[
26
])
==
""
?
"0.0"
:
String
(
i
[
26
]),
"total_next_year"
:
String
(
i
[
26
])
==
""
?
"0.0"
:
String
(
i
[
26
]),
"total_more_year"
:
String
(
i
[
27
])
==
""
?
"0.0"
:
String
(
i
[
27
]),
"total_more_year"
:
String
(
i
[
27
])
==
""
?
"0.0"
:
String
(
i
[
27
]),
"strategic"
:
String
(
i
[
28
]),
"strategic"
:
String
(
i
[
28
]),
"pic"
:
String
(
i
[
29
])
"pic"
:
String
(
i
[
29
])
})
})
stateFR
=
false
})
})
// // // // console.log(dataTableBaru)
// // // // console.log(dataTableBaru)
...
@@ -793,8 +800,9 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -793,8 +800,9 @@ export default class CorporateAnnualTarget extends Component {
}
else
if
(
totalWeight
<
100
)
{
}
else
if
(
totalWeight
<
100
)
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'Total weight less than 100%'
,
tipeAlert
:
'warning'
,
loading
:
false
,
editable
:
true
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Total weight less than 100%'
,
tipeAlert
:
'warning'
,
loading
:
false
,
editable
:
true
})
}
else
{
}
else
{
console
.
log
(
JSON
.
stringify
(
payload
))
api
.
create
().
validateSubmitReport
(
payload
).
then
((
response
)
=>
{
api
.
create
().
validateSubmitReport
(
payload
).
then
((
response
)
=>
{
// // // //
console.log(response)
console
.
log
(
response
)
if
(
response
.
data
.
data
.
result
)
{
if
(
response
.
data
.
data
.
result
)
{
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
buttonDraft
:
false
})
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
buttonDraft
:
false
})
}
else
{
}
else
{
...
@@ -867,7 +875,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -867,7 +875,7 @@ export default class CorporateAnnualTarget extends Component {
"status"
:
type
,
"status"
:
type
,
"cat"
:
data
"cat"
:
data
}
}
//
console.log(JSON.stringify(payload));
console
.
log
(
JSON
.
stringify
(
payload
));
this
.
deleteReport
(
payload
)
this
.
deleteReport
(
payload
)
}
}
...
...
src/container/MonthlyReport/BalanceSheetMR.js
View file @
b55d3543
...
@@ -476,7 +476,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -476,7 +476,7 @@ export default class BalanceSheetMR extends Component {
}
}
api
.
create
(
'UPLOAD'
).
createMonthlyReportBS
(
payload
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
createMonthlyReportBS
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
//
console.log(JSON.stringify(payload))
console
.
log
(
JSON
.
stringify
(
payload
))
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
saveToMonthlyReport
()
this
.
props
.
saveToMonthlyReport
()
...
@@ -1669,6 +1669,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -1669,6 +1669,7 @@ export default class BalanceSheetMR 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
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)}
/
>
/
>
...
@@ -1812,6 +1813,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -1812,6 +1813,7 @@ export default class BalanceSheetMR 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
=
""
suffix
=
{
'%'
}
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
14
]).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
14
]).
toFixed
(
1
)}
/
>
/
>
...
@@ -1954,6 +1956,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -1954,6 +1956,7 @@ export default class BalanceSheetMR extends Component {
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"
suffix
=
{
'%'
}
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
16
]).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
16
]).
toFixed
(
1
)}
...
@@ -2061,7 +2064,22 @@ export default class BalanceSheetMR extends Component {
...
@@ -2061,7 +2064,22 @@ export default class BalanceSheetMR extends Component {
{
tableMeta
.
rowData
[
0
]
!==
3
?
{
tableMeta
.
rowData
[
0
]
!==
3
?
null
:
null
:
(
this
.
state
.
get_for
==
'view'
?
(
this
.
state
.
get_for
==
'view'
?
tableMeta
.
rowData
[
17
]
<
Input
disableUnderline
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
// disabled={Number(tableMeta.rowData[12]) < this.state.minValue || Number(tableMeta.rowData[12]) > this.state.maxValue ? false : true}
disabled
=
{
true
}
multiline
=
{
true
}
defaultValue
=
{
tableMeta
.
rowData
[
17
]}
inputProps
=
{{
style
:
{
color
:
'black'
,
textAlign
:
'left'
}
}}
/
>
:
:
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -2156,7 +2174,22 @@ export default class BalanceSheetMR extends Component {
...
@@ -2156,7 +2174,22 @@ export default class BalanceSheetMR extends Component {
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
{
tableMeta
.
rowData
[
0
]
!==
3
?
null
:
{
tableMeta
.
rowData
[
0
]
!==
3
?
null
:
(
this
.
state
.
get_for
==
'view'
?
(
this
.
state
.
get_for
==
'view'
?
tableMeta
.
rowData
[
18
]
<
Input
disableUnderline
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
// disabled={Number(tableMeta.rowData[12]) < this.state.minValue || Number(tableMeta.rowData[12]) > this.state.maxValue ? false : true}
disabled
=
{
true
}
multiline
=
{
true
}
defaultValue
=
{
tableMeta
.
rowData
[
18
]}
inputProps
=
{{
style
:
{
color
:
'black'
,
textAlign
:
'left'
}
}}
/
>
:
:
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -2251,7 +2284,22 @@ export default class BalanceSheetMR extends Component {
...
@@ -2251,7 +2284,22 @@ export default class BalanceSheetMR extends Component {
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
{
tableMeta
.
rowData
[
0
]
!==
3
?
null
:
{
tableMeta
.
rowData
[
0
]
!==
3
?
null
:
(
this
.
state
.
get_for
==
'view'
?
(
this
.
state
.
get_for
==
'view'
?
tableMeta
.
rowData
[
19
]
<
Input
disableUnderline
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
// disabled={Number(tableMeta.rowData[12]) < this.state.minValue || Number(tableMeta.rowData[12]) > this.state.maxValue ? false : true}
disabled
=
{
true
}
multiline
=
{
true
}
defaultValue
=
{
tableMeta
.
rowData
[
19
]}
inputProps
=
{{
style
:
{
color
:
'black'
,
textAlign
:
'left'
}
}}
/
>
:
:
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
...
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
b55d3543
...
@@ -1296,14 +1296,14 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1296,14 +1296,14 @@ export default class CorporateAnnualTargetMR extends Component {
<
div
style
=
{{
flex
:
1
,
textAlign
:
'right'
}}
>
<
div
style
=
{{
flex
:
1
,
textAlign
:
'right'
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
value
=
{
value
}
value
=
{
Number
(
value
).
toFixed
(
1
)
}
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
],
tableMeta
)?
"#5198ea"
:
'black'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
],
tableMeta
)?
"#5198ea"
:
'black'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
Number
(
handleValueFormula
(
value
,
tableMeta
,
tableMeta
.
columnIndex
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
tableMeta
.
rowData
[
0
]
===
5
||
tableMeta
.
rowData
[
0
]
===
6
?
Number
(
handleValueFormula
(
value
,
tableMeta
,
tableMeta
.
columnIndex
))
.
toFixed
(
1
)
:
Number
(
value
).
toFixed
(
1
)}
// disabled={this.props.isApprover ? true : ((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') ? false : true)}
// disabled={this.props.isApprover ? true : ((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') ? false : true)}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
!
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
],
tableMeta
)}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
!
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
],
tableMeta
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
...
@@ -1336,7 +1336,7 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1336,7 +1336,7 @@ export default class CorporateAnnualTargetMR extends Component {
null
:
null
:
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
value
=
{
value
}
value
=
{
Number
(
value
).
toFixed
(
1
)
}
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
...
@@ -1381,14 +1381,14 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1381,14 +1381,14 @@ export default class CorporateAnnualTargetMR extends Component {
:
:
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
value
=
{
value
}
value
=
{
Number
(
value
).
toFixed
(
1
)
}
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
=
{
handleAchiement
(
tableMeta
)}
value
=
{
handleAchiement
(
tableMeta
)
.
toFixed
(
1
)
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
disabled
=
{
true
}
disabled
=
{
true
}
/
>
/
>
...
@@ -1426,7 +1426,7 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1426,7 +1426,7 @@ export default class CorporateAnnualTargetMR extends Component {
:
:
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
value
=
{
value
}
value
=
{
Number
(
value
).
toFixed
(
1
)
}
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
...
@@ -1479,7 +1479,7 @@ export default class CorporateAnnualTargetMR extends Component {
...
@@ -1479,7 +1479,7 @@ export default class CorporateAnnualTargetMR extends Component {
style
=
{{
color
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
handleTotal
(
tableMeta
)}
value
=
{
handleTotal
(
tableMeta
)
.
toFixed
(
1
)
}
decimalScale
=
{
2
}
decimalScale
=
{
2
}
disabled
=
{
true
}
disabled
=
{
true
}
/
>
/
>
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
b55d3543
...
@@ -83,6 +83,18 @@ const theme2 = createMuiTheme({
...
@@ -83,6 +83,18 @@ const theme2 = createMuiTheme({
},
},
});
});
const
theme3
=
createMuiTheme
({
overrides
:
{
// Style sheet name ⚛️
MuiInputBase
:
{
input
:
{
color
:
'#black'
,
textAlign
:
'center'
}
}
},
});
export
default
class
ListOfCreditFacilities
extends
Component
{
export
default
class
ListOfCreditFacilities
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
)
super
(
props
)
...
@@ -216,7 +228,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -216,7 +228,7 @@ export default class ListOfCreditFacilities extends Component {
item
.
locf
.
borrower_comp_name
===
null
||
item
.
locf
.
borrower_comp_name
===
""
?
this
.
props
.
company
.
company_name
:
item
.
locf
.
borrower_comp_name
,
item
.
locf
.
borrower_comp_name
===
null
||
item
.
locf
.
borrower_comp_name
===
""
?
this
.
props
.
company
.
company_name
:
item
.
locf
.
borrower_comp_name
,
item
.
locf
.
bank_name
===
null
?
null
:
item
.
locf
.
bank_name
===
""
?
null
:
{
value
:
item
.
locf
.
bank_name
},
item
.
locf
.
bank_name
===
null
?
null
:
item
.
locf
.
bank_name
===
""
?
null
:
{
value
:
item
.
locf
.
bank_name
},
item
.
locf
.
type_of_credit
===
null
?
null
:
item
.
locf
.
type_of_credit
===
""
?
null
:
{
value
:
item
.
locf
.
type_of_credit
},
item
.
locf
.
type_of_credit
===
null
?
null
:
item
.
locf
.
type_of_credit
===
""
?
null
:
{
value
:
item
.
locf
.
type_of_credit
},
item
.
locf
.
remarks
===
null
?
"0.0"
:
item
.
locf
.
remarks
===
""
?
"0.0
"
:
item
.
locf
.
remarks
,
item
.
locf
.
remarks
===
null
||
item
.
locf
.
remarks
===
""
?
"
"
:
item
.
locf
.
remarks
,
item
.
locf
.
loan_maturity_date
===
null
||
item
.
locf
.
loan_maturity_date
===
""
?
null
:
item
.
locf
.
loan_maturity_date
,
item
.
locf
.
loan_maturity_date
===
null
||
item
.
locf
.
loan_maturity_date
===
""
?
null
:
item
.
locf
.
loan_maturity_date
,
item
.
locf
.
interest
===
null
||
item
.
locf
.
interest
===
""
?
"0.00"
:
item
.
locf
.
interest
,
item
.
locf
.
interest
===
null
||
item
.
locf
.
interest
===
""
?
"0.00"
:
item
.
locf
.
interest
,
item
.
locf
.
currency
===
null
||
item
.
locf
.
currency
===
""
?
""
:
item
.
locf
.
currency
,
item
.
locf
.
currency
===
null
||
item
.
locf
.
currency
===
""
?
""
:
item
.
locf
.
currency
,
...
@@ -272,7 +284,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -272,7 +284,7 @@ export default class ListOfCreditFacilities extends Component {
item
.
locf
.
borrower_comp_name
===
null
||
item
.
locf
.
borrower_comp_name
===
""
?
this
.
props
.
company
.
company_name
:
item
.
locf
.
borrower_comp_name
,
item
.
locf
.
borrower_comp_name
===
null
||
item
.
locf
.
borrower_comp_name
===
""
?
this
.
props
.
company
.
company_name
:
item
.
locf
.
borrower_comp_name
,
item
.
locf
.
bank_name
===
null
?
null
:
item
.
locf
.
bank_name
===
""
?
null
:
{
value
:
item
.
locf
.
bank_name
},
item
.
locf
.
bank_name
===
null
?
null
:
item
.
locf
.
bank_name
===
""
?
null
:
{
value
:
item
.
locf
.
bank_name
},
item
.
locf
.
type_of_credit
===
null
?
null
:
item
.
locf
.
type_of_credit
===
""
?
null
:
{
value
:
item
.
locf
.
type_of_credit
},
item
.
locf
.
type_of_credit
===
null
?
null
:
item
.
locf
.
type_of_credit
===
""
?
null
:
{
value
:
item
.
locf
.
type_of_credit
},
item
.
locf
.
remarks
===
null
?
"0.0"
:
item
.
locf
.
remarks
===
""
?
"0.0
"
:
item
.
locf
.
remarks
,
item
.
locf
.
remarks
===
null
||
item
.
locf
.
remarks
===
""
?
"
"
:
item
.
locf
.
remarks
,
item
.
locf
.
loan_maturity_date
===
null
||
item
.
locf
.
loan_maturity_date
===
""
?
null
:
item
.
locf
.
loan_maturity_date
,
item
.
locf
.
loan_maturity_date
===
null
||
item
.
locf
.
loan_maturity_date
===
""
?
null
:
item
.
locf
.
loan_maturity_date
,
item
.
locf
.
interest
===
null
||
item
.
locf
.
interest
===
""
?
"0.00"
:
item
.
locf
.
interest
,
item
.
locf
.
interest
===
null
||
item
.
locf
.
interest
===
""
?
"0.00"
:
item
.
locf
.
interest
,
item
.
locf
.
currency
===
null
||
item
.
locf
.
currency
===
""
?
""
:
item
.
locf
.
currency
,
item
.
locf
.
currency
===
null
||
item
.
locf
.
currency
===
""
?
""
:
item
.
locf
.
currency
,
...
@@ -601,6 +613,11 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -601,6 +613,11 @@ export default class ListOfCreditFacilities extends Component {
if
(
i
[
6
]
==
null
||
i
[
7
]
==
null
||
i
[
8
]
==
""
||
i
[
9
]
==
""
||
i
[
10
]
==
""
||
i
[
11
]
==
""
)
{
if
(
i
[
6
]
==
null
||
i
[
7
]
==
null
||
i
[
8
]
==
""
||
i
[
9
]
==
""
||
i
[
10
]
==
""
||
i
[
11
]
==
""
)
{
error
=
true
error
=
true
}
}
if
(
i
[
7
].
value
==
'Others'
&&
i
[
18
]
==
''
)
{
error
=
true
}
data
.
push
({
data
.
push
({
"item_report_id"
:
i
[
1
],
"item_report_id"
:
i
[
1
],
"borrower_comp_name"
:
i
[
5
],
"borrower_comp_name"
:
i
[
5
],
...
@@ -786,7 +803,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -786,7 +803,7 @@ export default class ListOfCreditFacilities extends Component {
downloadTemplate
=
async
()
=>
{
downloadTemplate
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/
monthly_report_locf
/download_template?report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&months=
${
this
.
props
.
month
.
month_id
}
`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/
locf/monthly_report
/download_template?report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&months=
${
this
.
props
.
month
.
month_id
}
`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
// console.log(this.props.report_id)
// console.log(this.props.report_id)
...
@@ -803,8 +820,8 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -803,8 +820,8 @@ export default class ListOfCreditFacilities extends Component {
}
}
async
downloadAllData
()
{
async
downloadAllData
()
{
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/
monthly_report_locf
/export_monthly_report?monthly_report_id=&&report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
&&months=
${
this
.
props
.
month
.
month_id
}
`
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/
locf/monthly_report
/export_monthly_report?monthly_report_id=&&report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
&&months=
${
this
.
props
.
month
.
month_id
}
`
let
urls
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/
monthly_report_locf
/export_monthly_report?monthly_report_id=
${
this
.
props
.
monthlyReportId
}
&&report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
&&months=
${
this
.
props
.
month
.
month_id
}
`
let
urls
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/
locf/monthly_report
/export_monthly_report?monthly_report_id=
${
this
.
props
.
monthlyReportId
}
&&report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
&&months=
${
this
.
props
.
month
.
month_id
}
`
// console.log(url);
// console.log(url);
// console.log(urls);
// console.log(urls);
let
res
=
await
fetch
(
let
res
=
await
fetch
(
...
@@ -855,6 +872,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -855,6 +872,7 @@ export default class ListOfCreditFacilities extends Component {
"months"
:
this
.
props
.
month
.
month_id
"months"
:
this
.
props
.
month
.
month_id
}
}
api
.
create
().
getPerBSiMontlyReportLOCF
(
payload
).
then
((
response
)
=>
{
api
.
create
().
getPerBSiMontlyReportLOCF
(
payload
).
then
((
response
)
=>
{
console
.
log
(
response
)
if
(
response
.
data
.
status
==
"success"
)
{
if
(
response
.
data
.
status
==
"success"
)
{
this
.
setState
({
perBS
:
response
.
data
.
data
.
per_bs
==
null
||
response
.
data
.
data
.
per_bs
==
''
?
0.0
:
Number
(
response
.
data
.
data
.
per_bs
).
toFixed
(
1
)})
this
.
setState
({
perBS
:
response
.
data
.
data
.
per_bs
==
null
||
response
.
data
.
data
.
per_bs
==
''
?
0.0
:
Number
(
response
.
data
.
data
.
per_bs
).
toFixed
(
1
)})
}
}
...
@@ -980,6 +998,9 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -980,6 +998,9 @@ export default class ListOfCreditFacilities extends Component {
if
(
i
[
6
]
==
null
||
i
[
7
]
==
null
||
i
[
8
]
==
""
||
i
[
9
]
==
""
||
i
[
10
]
==
""
||
i
[
11
]
==
""
)
{
if
(
i
[
6
]
==
null
||
i
[
7
]
==
null
||
i
[
8
]
==
""
||
i
[
9
]
==
""
||
i
[
10
]
==
""
||
i
[
11
]
==
""
)
{
error
=
true
error
=
true
}
}
if
(
i
[
7
].
value
==
'Others'
&&
i
[
18
]
==
''
)
{
error
=
true
}
data
.
push
({
data
.
push
({
"item_report_id"
:
i
[
1
],
"item_report_id"
:
i
[
1
],
"borrower_comp_name"
:
i
[
5
],
"borrower_comp_name"
:
i
[
5
],
...
@@ -1781,13 +1802,14 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1781,13 +1802,14 @@ export default class ListOfCreditFacilities extends Component {
textAlign
:
'center'
,
textAlign
:
'center'
,
fontSize
:
11
,
fontSize
:
11
,
fontFamily
:
'Nunito Sans, sans-serif'
,
fontFamily
:
'Nunito Sans, sans-serif'
,
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
'#5198ea'
,
backgroundColor
:
(
tableMeta
.
rowData
[
9
]
==
null
||
tableMeta
.
rowData
[
9
]
==
''
)
&&
this
.
state
.
get_for
==
'edit'
?
'#ffac99'
:
'white'
backgroundColor
:
(
tableMeta
.
rowData
[
9
]
==
null
||
tableMeta
.
rowData
[
9
]
==
''
)
&&
this
.
state
.
get_for
==
'edit'
?
'#ffac99'
:
'white'
}
}
}}
}}
InputLabelProps
=
{{
InputLabelProps
=
{{
style
:
{
style
:
{
fontSize
:
11
,
fontSize
:
11
,
color
:
'#
7e8085
'
,
color
:
'#
5198ea
'
,
fontFamily
:
'Nunito Sans, sans-serif'
,
fontFamily
:
'Nunito Sans, sans-serif'
,
}
}
}}
}}
...
@@ -1814,12 +1836,12 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1814,12 +1836,12 @@ export default class ListOfCreditFacilities extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
==
8
||
tableMeta
.
rowData
[
0
]
==
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
==
8
||
tableMeta
.
rowData
[
0
]
==
9
?
null
:
null
:
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
,
backgroundColor
:
(
tableMeta
.
rowData
[
10
]
==
'0.00'
||
tableMeta
.
rowData
[
10
]
==
''
)
&&
this
.
state
.
get_for
==
'edit'
?
'#ffac99'
:
'white'
}}
style
=
{{
margin
:
0
}}
value
=
{
value
}
value
=
{
value
}
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
}}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
(
tableMeta
.
rowData
[
10
]
==
'0.00'
||
tableMeta
.
rowData
[
10
]
==
''
)
&&
this
.
state
.
get_for
==
'edit'
?
'#ffac99'
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
2
)}
value
=
{
Number
(
value
).
toFixed
(
2
)}
...
@@ -1853,7 +1875,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1853,7 +1875,7 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
==
8
||
tableMeta
.
rowData
[
0
]
==
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
==
8
||
tableMeta
.
rowData
[
0
]
==
9
?
null
:
null
:
<
ThemeProvider
theme
=
{
theme2
}
>
<
ThemeProvider
theme
=
{
th
is
.
state
.
get_for
==
'view'
?
theme3
:
th
eme2
}
>
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
width
:
96
,
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
backgroundColor
:
tableMeta
.
rowData
[
11
]
==
''
&&
this
.
state
.
get_for
==
'edit'
?
'#ffac99'
:
'white'
}}
style
=
{{
width
:
96
,
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
backgroundColor
:
tableMeta
.
rowData
[
11
]
==
''
&&
this
.
state
.
get_for
==
'edit'
?
'#ffac99'
:
'white'
}}
...
@@ -2058,7 +2080,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2058,7 +2080,7 @@ export default class ListOfCreditFacilities extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
t
ableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Investment Loan'
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
t
his
.
state
.
get_for
==
'view'
?
"black"
:
(
tableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Investment Loan'
?
"#5198ea"
:
"black"
)
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Investment Loan'
?
false
:
true
}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Investment Loan'
?
false
:
true
}
...
@@ -2102,7 +2124,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2102,7 +2124,7 @@ export default class ListOfCreditFacilities extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
t
ableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Investment Loan'
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
t
his
.
state
.
get_for
==
'view'
?
"black"
:
(
tableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Investment Loan'
?
"#5198ea"
:
"black"
)
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Investment Loan'
?
false
:
true
}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Investment Loan'
?
false
:
true
}
...
@@ -2181,7 +2203,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2181,7 +2203,7 @@ export default class ListOfCreditFacilities extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
t
ableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Revolving Loan (KMK)'
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
t
his
.
state
.
get_for
==
'view'
?
"black"
:
(
tableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Revolving Loan (KMK)'
?
"#5198ea"
:
"black"
)
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Revolving Loan (KMK)'
?
false
:
true
}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Revolving Loan (KMK)'
?
false
:
true
}
...
@@ -2225,7 +2247,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2225,7 +2247,7 @@ export default class ListOfCreditFacilities extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
t
ableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Revolving Loan (KMK)'
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
t
his
.
state
.
get_for
==
'view'
?
"black"
:
(
tableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Revolving Loan (KMK)'
?
"#5198ea"
:
"black"
)
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Revolving Loan (KMK)'
?
false
:
true
}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Revolving Loan (KMK)'
?
false
:
true
}
...
@@ -2302,10 +2324,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2302,10 +2324,10 @@ export default class ListOfCreditFacilities extends Component {
// </div>
// </div>
:
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
ThemeProvider
theme
=
{
th
eme
}
>
<
ThemeProvider
theme
=
{
th
is
.
state
.
get_for
==
'view'
?
theme3
:
theme2
}
>
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
style
=
{{
width
:
96
,
color
:
tableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
backgroundColor
:
tableMeta
.
rowData
[
7
]
==
null
?
"transparent"
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
&&
tableMeta
.
rowData
[
18
]
==
''
?
"#ffac99"
:
"transparent"
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
false
:
true
}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
false
:
true
}
...
@@ -2351,7 +2373,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2351,7 +2373,7 @@ export default class ListOfCreditFacilities extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
t
ableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
t
his
.
state
.
get_for
==
'view'
?
"black"
:
(
tableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
"#5198ea"
:
"black"
)
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
false
:
true
}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
false
:
true
}
...
@@ -2395,10 +2417,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2395,10 +2417,10 @@ export default class ListOfCreditFacilities extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
t
ableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
t
his
.
state
.
get_for
==
'view'
?
"black"
:
(
tableMeta
.
rowData
[
7
]
==
null
?
"black"
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
"#5198ea"
:
"black"
)
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
this
.
state
.
get_for
==
'view'
}
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
false
:
true
}
value
=
{
Number
(
tableMeta
.
rowData
[
20
]).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
20
]).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
,
20
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
20
)
...
@@ -2653,10 +2675,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2653,10 +2675,10 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -2679,22 +2701,25 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2679,22 +2701,25 @@ export default class ListOfCreditFacilities extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
null
:
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
ThemeProvider
theme
=
{
theme
}
>
<
FormControlLabel
<
Input
style
=
{{
margin
:
0
}}
disableUnderline
=
{
true
}
value
=
{
val
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
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
.
state
.
get_for
==
'view'
}
disabled
=
{
this
.
state
.
get_for
==
'view'
}
defaultValue
=
{
tableMeta
.
rowData
[
25
]}
fixedDecimalScale
=
{
2
}
decimalScale
=
{
2
}
value
=
{
Number
(
tableMeta
.
rowData
[
25
]).
toFixed
(
2
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// // // console.log(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
25
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
25
)
// // // console.log(dataTable2)
}}
}}
/
>
/
>
<
/ThemeProvider
>
}
/
>
<
/div
>
<
/div
>
}
}
<
/div
>
<
/div
>
...
@@ -2734,10 +2759,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2734,10 +2759,10 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -2759,22 +2784,25 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2759,22 +2784,25 @@ export default class ListOfCreditFacilities extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
null
:
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
ThemeProvider
theme
=
{
theme
}
>
<
FormControlLabel
<
Input
style
=
{{
margin
:
0
}}
disableUnderline
=
{
true
}
value
=
{
val
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
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
.
state
.
get_for
==
'view'
}
disabled
=
{
this
.
state
.
get_for
==
'view'
}
defaultValue
=
{
tableMeta
.
rowData
[
27
]}
fixedDecimalScale
=
{
2
}
decimalScale
=
{
2
}
value
=
{
Number
(
tableMeta
.
rowData
[
27
]).
toFixed
(
2
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// // // console.log(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
27
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
27
)
// // // console.log(dataTable2)
}}
}}
/
>
/
>
<
/ThemeProvider
>
}
/
>
<
/div
>
<
/div
>
}
}
<
/div
>
<
/div
>
...
@@ -2814,10 +2842,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2814,10 +2842,10 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -2839,22 +2867,25 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2839,22 +2867,25 @@ export default class ListOfCreditFacilities extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
null
:
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
ThemeProvider
theme
=
{
theme
}
>
<
FormControlLabel
<
Input
style
=
{{
margin
:
0
}}
disableUnderline
=
{
true
}
value
=
{
val
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
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
.
state
.
get_for
==
'view'
}
disabled
=
{
this
.
state
.
get_for
==
'view'
}
defaultValue
=
{
tableMeta
.
rowData
[
29
]}
fixedDecimalScale
=
{
2
}
decimalScale
=
{
2
}
value
=
{
Number
(
tableMeta
.
rowData
[
29
]).
toFixed
(
2
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// // // console.log(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
29
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
29
)
// // // console.log(dataTable2)
}}
}}
/
>
/
>
<
/ThemeProvider
>
}
/
>
<
/div
>
<
/div
>
}
}
<
/div
>
<
/div
>
...
@@ -2894,10 +2925,10 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2894,10 +2925,10 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-2x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
backgroundColor
:
'#07a7d0'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
14
:
6
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -2919,22 +2950,25 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2919,22 +2950,25 @@ export default class ListOfCreditFacilities extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
null
:
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
ThemeProvider
theme
=
{
theme
}
>
<
FormControlLabel
<
Input
style
=
{{
margin
:
0
}}
disableUnderline
=
{
true
}
value
=
{
val
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
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
.
state
.
get_for
==
'view'
}
disabled
=
{
this
.
state
.
get_for
==
'view'
}
defaultValue
=
{
tableMeta
.
rowData
[
31
]}
fixedDecimalScale
=
{
2
}
decimalScale
=
{
2
}
value
=
{
Number
(
tableMeta
.
rowData
[
31
]).
toFixed
(
2
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// // // console.log(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
31
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
31
)
// // // console.log(dataTable2)
}}
}}
/
>
/
>
<
/ThemeProvider
>
}
/
>
<
/div
>
<
/div
>
}
}
<
/div
>
<
/div
>
...
@@ -2974,13 +3008,13 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -2974,13 +3008,13 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -3002,7 +3036,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -3002,7 +3036,7 @@ export default class ListOfCreditFacilities extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
null
:
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
ThemeProvider
theme
=
{
theme
}
>
<
ThemeProvider
theme
=
{
th
is
.
state
.
get_for
==
'view'
?
theme3
:
th
eme
}
>
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
...
@@ -3087,13 +3121,13 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -3087,13 +3121,13 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -3115,7 +3149,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -3115,7 +3149,7 @@ export default class ListOfCreditFacilities extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
null
:
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
ThemeProvider
theme
=
{
theme
}
>
<
ThemeProvider
theme
=
{
th
is
.
state
.
get_for
==
'view'
?
theme3
:
th
eme
}
>
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
...
@@ -3200,13 +3234,13 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -3200,13 +3234,13 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -3228,7 +3262,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -3228,7 +3262,7 @@ export default class ListOfCreditFacilities extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
null
:
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
ThemeProvider
theme
=
{
theme
}
>
<
ThemeProvider
theme
=
{
th
is
.
state
.
get_for
==
'view'
?
theme3
:
th
eme
}
>
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
...
@@ -3313,13 +3347,13 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -3313,13 +3347,13 @@ export default class ListOfCreditFacilities extends Component {
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
th
style
=
{{
...
style2
,
color
:
'#fff'
,
backgroundColor
:
'#1c71b8'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
,
padding
:
0
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
backgroundColor
:
'#1c71b8'
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
height
:
43
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"grid grid-3x"
style
=
{{
...
style2
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
span
>
{
"Ratio Name"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-2"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
borderRight
:
"1px #fff solid"
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
span
>
{
"Financial Covenant"
}
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
5
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
div
className
=
"column-3"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
backgroundColor
:
'#07a7d0'
,
height
:
4
3
,
display
:
'grid'
,
alignItems
:
'center'
,
padding
:
dataTable2
.
length
==
0
?
13
:
5
,
paddingBottom
:
dataTable2
.
length
==
0
?
48
:
5
}}
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
span
>
{
"Current Testing"
}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -3341,7 +3375,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -3341,7 +3375,7 @@ export default class ListOfCreditFacilities extends Component {
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
8
||
tableMeta
.
rowData
[
0
]
===
9
?
null
:
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
ThemeProvider
theme
=
{
theme
}
>
<
ThemeProvider
theme
=
{
th
is
.
state
.
get_for
==
'view'
?
theme3
:
th
eme
}
>
<
Input
<
Input
disableUnderline
=
{
true
}
disableUnderline
=
{
true
}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
style
=
{{
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'center'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
,
marginBottom
:
-
105
}}
...
@@ -3727,8 +3761,8 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -3727,8 +3761,8 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
padding
:
5
}}
>
<
div
style
=
{{
padding
:
5
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Diff
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Diff
<
/Typography
>
<
/div
>
<
/div
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
,
backgroundColor
:
this
.
state
.
get_for
==
'edit'
&&
Number
(
this
.
state
.
diff
)
>
0
?
'#ffac99'
:
'transparent'
}}
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
formatSeparator
(
this
.
state
.
diff
)}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
Number
(
this
.
state
.
diff
)
>
0
?
'#ffac99'
:
'#4b4b4b'
}}
>
{
formatSeparator
(
this
.
state
.
diff
)}
<
/Typography
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -3920,8 +3954,8 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -3920,8 +3954,8 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
padding
:
5
}}
>
<
div
style
=
{{
padding
:
5
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Diff
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Diff
<
/Typography
>
<
/div
>
<
/div
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
,
backgroundColor
:
this
.
state
.
get_for
==
'edit'
&&
Number
(
this
.
state
.
diff
)
>
0
?
'#ffac99'
:
'transparent'
}}
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
formatSeparator
(
this
.
state
.
diff
)}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
Number
(
this
.
state
.
diff
)
>
0
?
'#ffac99'
:
'#4b4b4b'
}}
>
{
formatSeparator
(
this
.
state
.
diff
)}
<
/Typography
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/container/MonthlyReport/OperatingIndicatorMR.js
View file @
b55d3543
...
@@ -89,7 +89,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -89,7 +89,7 @@ export default class OperatingIndicatorMR extends Component {
"report_id"
:
this
.
props
.
data
.
report_id
,
"report_id"
:
this
.
props
.
data
.
report_id
,
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"periode"
:
this
.
props
.
data
.
periode
,
"periode"
:
this
.
props
.
data
.
periode
,
"months"
:
this
.
props
.
data
.
report_id
===
22
?
1
:
23
?
2
:
24
?
3
:
25
?
4
:
27
?
5
:
28
?
6
:
29
?
7
:
31
?
8
:
32
?
9
:
33
?
10
:
35
?
11
:
36
?
12
:
null
"months"
:
this
.
props
.
months
}
}
// console.log(payload);
// console.log(payload);
api
.
create
().
getLastestUpdateMROI
(
payload
).
then
(
response
=>
{
api
.
create
().
getLastestUpdateMROI
(
payload
).
then
(
response
=>
{
...
@@ -124,7 +124,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -124,7 +124,7 @@ export default class OperatingIndicatorMR extends Component {
}
}
api
.
create
().
getAllSettingByType
(
body
).
then
(
response
=>
{
api
.
create
().
getAllSettingByType
(
body
).
then
(
response
=>
{
//
console.log(response);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
setState
({
this
.
setState
({
...
@@ -154,7 +154,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -154,7 +154,7 @@ export default class OperatingIndicatorMR extends Component {
let
payload
=
{
let
payload
=
{
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"periode"
:
this
.
props
.
data
.
periode
,
"periode"
:
this
.
props
.
data
.
periode
,
"months"
:
this
.
props
.
data
.
report_id
===
22
?
1
:
23
?
2
:
24
?
3
:
25
?
4
:
27
?
5
:
28
?
6
:
29
?
7
:
31
?
8
:
32
?
9
:
33
?
10
:
35
?
11
:
36
?
12
:
null
"months"
:
this
.
props
.
months
}
}
api
.
create
().
getMonthlyOI
(
payload
).
then
(
response
=>
{
api
.
create
().
getMonthlyOI
(
payload
).
then
(
response
=>
{
// console.log(response);
// console.log(response);
...
@@ -181,10 +181,10 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -181,10 +181,10 @@ export default class OperatingIndicatorMR extends Component {
"report_id"
:
this
.
props
.
data
.
report_id
,
"report_id"
:
this
.
props
.
data
.
report_id
,
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"periode"
:
this
.
props
.
data
.
periode
,
"periode"
:
this
.
props
.
data
.
periode
,
"months"
:
this
.
props
.
data
.
report_id
===
22
?
1
:
23
?
2
:
24
?
3
:
25
?
4
:
27
?
5
:
28
?
6
:
29
?
7
:
31
?
8
:
32
?
9
:
33
?
10
:
35
?
11
:
36
?
12
:
null
,
"months"
:
this
.
props
.
months
,
"get_for"
:
this
.
state
.
get_for
"get_for"
:
this
.
state
.
get_for
}
}
//
console.log(payload);
console
.
log
(
payload
);
api
.
create
().
getHierarkiMontlyReportOI
(
payload
).
then
(
response
=>
{
api
.
create
().
getHierarkiMontlyReportOI
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
let
dataTable
=
[]
let
dataTable
=
[]
...
@@ -302,10 +302,11 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -302,10 +302,11 @@ export default class OperatingIndicatorMR extends Component {
}
}
async
downloadAllData
()
{
async
downloadAllData
()
{
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/monthly_report_oi/export_monthly_report?operating_indicator_id=
${
this
.
props
.
data
.
operatingIndID
==
null
?
""
:
this
.
props
.
data
.
operatingIndID
}
&&report_id=
${
this
.
props
.
data
.
report_id
}
&&company_id=
${
this
.
props
.
data
.
company
.
company_id
}
&&year=
${
this
.
props
.
data
.
periode
}
&&months=
${
this
.
props
.
data
.
report_id
===
22
?
1
:
23
?
2
:
24
?
3
:
25
?
4
:
27
?
5
:
28
?
6
:
29
?
7
:
31
?
8
:
32
?
9
:
33
?
10
:
35
?
11
:
36
?
12
:
null
}
`
// console.log(this.props.months);
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/monthly_report_oi/export_monthly_report?operating_indicator_id=
${
this
.
props
.
data
.
operatingIndID
==
null
?
""
:
this
.
props
.
data
.
operatingIndID
}
&&report_id=
${
this
.
props
.
data
.
report_id
}
&&company_id=
${
this
.
props
.
data
.
company
.
company_id
}
&&year=
${
this
.
props
.
data
.
periode
}
&&months=
${
this
.
props
.
months
}
`
console
.
log
(
url
);
console
.
log
(
url
);
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/monthly_report_oi/export_monthly_report?operating_indicator_id=
${
this
.
props
.
data
.
operatingIndID
===
null
?
""
:
this
.
props
.
data
.
operatingIndID
}
&&report_id=
${
this
.
props
.
data
.
report_id
}
&&company_id=
${
this
.
props
.
data
.
company
.
company_id
}
&&year=
${
this
.
props
.
data
.
periode
}
&&months=
${
this
.
props
.
data
.
report_id
===
22
?
1
:
23
?
2
:
24
?
3
:
25
?
4
:
27
?
5
:
28
?
6
:
29
?
7
:
31
?
8
:
32
?
9
:
33
?
10
:
35
?
11
:
36
?
12
:
null
}
`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/monthly_report_oi/export_monthly_report?operating_indicator_id=
${
this
.
props
.
data
.
operatingIndID
===
null
?
""
:
this
.
props
.
data
.
operatingIndID
}
&&report_id=
${
this
.
props
.
data
.
report_id
}
&&company_id=
${
this
.
props
.
data
.
company
.
company_id
}
&&year=
${
this
.
props
.
data
.
periode
}
&&months=
${
this
.
props
.
months
}
`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
...
@@ -342,7 +343,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -342,7 +343,7 @@ export default class OperatingIndicatorMR extends Component {
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"periode"
:
this
.
props
.
data
.
periode
,
"periode"
:
this
.
props
.
data
.
periode
,
"status"
:
type
,
"status"
:
type
,
"months"
:
this
.
props
.
data
.
report_id
===
22
?
1
:
23
?
2
:
24
?
3
:
25
?
4
:
27
?
5
:
28
?
6
:
29
?
7
:
31
?
8
:
32
?
9
:
33
?
10
:
35
?
11
:
36
?
12
:
null
,
"months"
:
this
.
props
.
months
,
"monthly_report"
:
data
"monthly_report"
:
data
}
}
console
.
log
(
payload
);
console
.
log
(
payload
);
...
@@ -381,7 +382,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -381,7 +382,7 @@ export default class OperatingIndicatorMR extends Component {
company_id
:
this
.
props
.
data
.
company
.
company_id
,
company_id
:
this
.
props
.
data
.
company
.
company_id
,
periode
:
this
.
props
.
data
.
periode
,
periode
:
this
.
props
.
data
.
periode
,
report_id
:
this
.
props
.
data
.
report_id
,
report_id
:
this
.
props
.
data
.
report_id
,
months
:
this
.
props
.
data
.
report_id
===
22
?
1
:
23
?
2
:
24
?
3
:
25
?
4
:
27
?
5
:
28
?
6
:
29
?
7
:
31
?
8
:
32
?
9
:
33
?
10
:
35
?
11
:
36
?
12
:
null
,
months
:
this
.
props
.
months
,
monthly_report
:
payload
monthly_report
:
payload
}
}
console
.
log
(
body
)
console
.
log
(
body
)
...
@@ -460,7 +461,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -460,7 +461,7 @@ export default class OperatingIndicatorMR extends Component {
periode
:
this
.
props
.
data
.
periode
,
periode
:
this
.
props
.
data
.
periode
,
report_id
:
this
.
props
.
data
.
report_id
,
report_id
:
this
.
props
.
data
.
report_id
,
status
:
type
,
status
:
type
,
months
:
this
.
props
.
data
.
report_id
===
22
?
1
:
23
?
2
:
24
?
3
:
25
?
4
:
27
?
5
:
28
?
6
:
29
?
7
:
31
?
8
:
32
?
9
:
33
?
10
:
35
?
11
:
36
?
12
:
null
,
months
:
this
.
props
.
months
,
monthly_report
:
data
monthly_report
:
data
}
}
// console.log(body);
// console.log(body);
...
@@ -517,7 +518,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -517,7 +518,7 @@ export default class OperatingIndicatorMR extends Component {
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"periode"
:
this
.
props
.
data
.
periode
,
"periode"
:
this
.
props
.
data
.
periode
,
"status"
:
"submitted"
,
"status"
:
"submitted"
,
"months"
:
this
.
props
.
data
.
report_id
===
22
?
1
:
23
?
2
:
24
?
3
:
25
?
4
:
27
?
5
:
28
?
6
:
29
?
7
:
31
?
8
:
32
?
9
:
33
?
10
:
35
?
11
:
36
?
12
:
null
,
"months"
:
this
.
props
.
months
,
"monthly_report"
:
data
"monthly_report"
:
data
}
}
// console.log(JSON.stringify(payload));
// console.log(JSON.stringify(payload));
...
@@ -604,12 +605,10 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -604,12 +605,10 @@ export default class OperatingIndicatorMR extends Component {
const
handleVariancePercent
=
(
tableMeta
,
dex
,
type
)
=>
{
const
handleVariancePercent
=
(
tableMeta
,
dex
,
type
)
=>
{
let
total
=
0
let
total
=
0
if
(
dex
===
1
)
{
if
(
dex
===
1
)
{
// total = Number(dataTable2[tableMeta.rowIndex][11]) / Number(dataTable2[tableMeta.rowIndex][8])
total
=
R
.
equals
(
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
NaN
)
?
'0'
:
R
.
equals
(
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
Infinity
)
?
'0'
:
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
==
"-Infinity"
?
'0'
:
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
)
total
=
R
.
equals
((
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
NaN
)
?
'0'
:
R
.
equals
((
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
8
]))
*
100
),
Infinity
)
?
'0'
:
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
11
])
/
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
===
2
)
{
}
else
if
(
dex
===
2
)
{
// total = Number(dataTable2[tableMeta.rowIndex][13]) / Number(dataTable2[tableMeta.rowIndex][9])
total
=
R
.
equals
(
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
]))
*
100
),
NaN
)
?
'0'
:
R
.
equals
(
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
]))
*
100
),
Infinity
)
?
'0'
:
Number
((
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
]))
*
100
==
"-Infinity"
?
'0'
:
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
]))
*
100
)
total
=
R
.
equals
((
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
]))
*
100
),
NaN
)
?
'0'
:
R
.
equals
((
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
]))
*
100
),
Infinity
)
?
'0'
:
Number
(
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
13
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
][
9
])
*
100
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
}
}
return
total
return
total
...
@@ -1072,6 +1071,24 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1072,6 +1071,24 @@ export default class OperatingIndicatorMR extends Component {
/
>
/
>
<
/div>
<
/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
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -1209,11 +1226,11 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1209,11 +1226,11 @@ export default class OperatingIndicatorMR extends Component {
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
value
=
{
Number
(
tableMeta
.
rowData
[
12
]).
toFixed
(
1
)
}
value
=
{
val
}
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
Number
(
tableMeta
.
rowData
[
12
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
12
])
>
this
.
state
.
maxValue
?
'red'
:
'
black
'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
Number
(
tableMeta
.
rowData
[
12
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
12
])
>
this
.
state
.
maxValue
?
'red'
:
'
#000000b0
'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
suffix
=
{
'%'
}
suffix
=
{
'%'
}
...
@@ -1283,11 +1300,11 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1283,11 +1300,11 @@ export default class OperatingIndicatorMR extends Component {
<
div
style
=
{{
flex
:
1
,
width
:
120
}}
>
<
div
style
=
{{
flex
:
1
,
width
:
120
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
value
=
{
Number
(
tableMeta
.
rowData
[
14
]).
toFixed
(
1
)
}
value
=
{
val
}
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
Number
(
tableMeta
.
rowData
[
1
4
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
14
])
>
this
.
state
.
maxValue
?
'red'
:
'black
'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
Number
(
tableMeta
.
rowData
[
1
2
])
<
this
.
state
.
minValue
||
Number
(
tableMeta
.
rowData
[
12
])
>
this
.
state
.
maxValue
?
'red'
:
'#000000b0
'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
...
@@ -1562,18 +1579,18 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1562,18 +1579,18 @@ export default class OperatingIndicatorMR extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
Period
:
{
this
.
props
.
data
.
report_id
===
22
?
'JAN'
:
this
.
props
.
months
===
1
?
'JAN'
:
this
.
props
.
data
.
report_id
===
23
?
'FEB'
:
this
.
props
.
months
===
2
?
'FEB'
:
this
.
props
.
data
.
report_id
===
24
?
'MAR'
:
this
.
props
.
months
===
3
?
'MAR'
:
this
.
props
.
data
.
report_id
===
25
?
'APR'
:
this
.
props
.
months
===
4
?
'APR'
:
this
.
props
.
data
.
report_id
===
26
?
'MAY'
:
this
.
props
.
months
===
5
?
'MAY'
:
this
.
props
.
data
.
report_id
===
27
?
'JUN'
:
this
.
props
.
months
===
6
?
'JUN'
:
this
.
props
.
data
.
report_id
===
28
?
'JUL'
:
this
.
props
.
months
===
7
?
'JUL'
:
this
.
props
.
data
.
report_id
===
29
?
'AUG'
:
this
.
props
.
months
===
8
?
'AUG'
:
this
.
props
.
data
.
report_id
===
30
?
'SEP'
:
this
.
props
.
months
===
9
?
'SEP'
:
this
.
props
.
data
.
report_id
===
31
?
'OCT'
:
this
.
props
.
months
===
10
?
'OCT'
:
this
.
props
.
data
.
report_id
===
32
?
'NOV'
:
this
.
props
.
months
===
11
?
'NOV'
:
this
.
props
.
data
.
report_id
===
33
?
'DEC'
:
""
}
{
this
.
props
.
data
.
periode
}
this
.
props
.
months
===
12
?
'DEC'
:
""
}
{
this
.
props
.
data
.
periode
}
<
/Typography
>
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
/div
>
...
@@ -1750,18 +1767,18 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1750,18 +1767,18 @@ export default class OperatingIndicatorMR extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
Period
:
{
this
.
props
.
data
.
report_id
===
22
?
'JAN'
:
this
.
props
.
months
===
1
?
'JAN'
:
this
.
props
.
data
.
report_id
===
23
?
'FEB'
:
this
.
props
.
months
===
2
?
'FEB'
:
this
.
props
.
data
.
report_id
===
24
?
'MAR'
:
this
.
props
.
months
===
3
?
'MAR'
:
this
.
props
.
data
.
report_id
===
25
?
'APR'
:
this
.
props
.
months
===
4
?
'APR'
:
this
.
props
.
data
.
report_id
===
26
?
'MAY'
:
this
.
props
.
months
===
5
?
'MAY'
:
this
.
props
.
data
.
report_id
===
27
?
'JUN'
:
this
.
props
.
months
===
6
?
'JUN'
:
this
.
props
.
data
.
report_id
===
28
?
'JUL'
:
this
.
props
.
months
===
7
?
'JUL'
:
this
.
props
.
data
.
report_id
===
29
?
'AUG'
:
this
.
props
.
months
===
8
?
'AUG'
:
this
.
props
.
data
.
report_id
===
30
?
'SEP'
:
this
.
props
.
months
===
9
?
'SEP'
:
this
.
props
.
data
.
report_id
===
31
?
'OCT'
:
this
.
props
.
months
===
10
?
'OCT'
:
this
.
props
.
data
.
report_id
===
32
?
'NOV'
:
this
.
props
.
months
===
11
?
'NOV'
:
this
.
props
.
data
.
report_id
===
33
?
'DEC'
:
""
}
{
this
.
props
.
data
.
periode
}
this
.
props
.
months
===
12
?
'DEC'
:
""
}
{
this
.
props
.
data
.
periode
}
<
/Typography
>
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
/div
>
...
@@ -1829,25 +1846,30 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1829,25 +1846,30 @@ export default class OperatingIndicatorMR extends Component {
}}
}}
// disabled={this.state.editable}
// disabled={this.state.editable}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
editable
===
true
?
this
.
state
.
saveDraft
===
true
?
null
:
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete !'
,
tipeAlert
:
'error'
})
:
this
.
setState
({
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
uploadOI
(
"draft"
)
this
.
uploadOI
(
"draft"
)
},
100
);
},
100
);
})}
})}
>
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
{
this
.
state
.
editable
===
true
?
<
LightTooltip
title
=
{
"Data Incomplete"
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
}
<
/div
>
<
/div
>
<
/button
>
<
/button
>
<
button
<
button
className
=
"button"
type
=
"button"
type
=
"button"
// disabled={this.state.editable}
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
marginRight
:
20
}}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
editable
===
true
?
this
.
state
.
editable
===
true
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete !'
,
tipeAlert
:
'error'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete !'
,
tipeAlert
:
'error'
})
...
@@ -1857,23 +1879,10 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -1857,23 +1879,10 @@ export default class OperatingIndicatorMR extends Component {
this
.
uploadOI
(
"submitted"
)
this
.
uploadOI
(
"submitted"
)
},
100
);
},
100
);
})}
})}
// disabled={this.state.editable}
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
marginRight
:
20
}}
>
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
{
this
.
state
.
editable
===
true
?
<
LightTooltip
title
=
{
"Data Incomplete"
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
}
<
/div
>
<
/div
>
<
/button
>
<
/button
>
<
/div>
}
<
/div>
}
...
...
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