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
8c2d63a0
Commit
8c2d63a0
authored
Apr 07, 2021
by
faisalhamdi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update!
parent
e4e3fd1b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
128 additions
and
18 deletions
+128
-18
index.js
src/api/index.js
+2
-0
SubHolding.js
src/container/Laporan/SubHolding.js
+83
-4
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+31
-2
CorporateAnnualTargetRO.js
src/container/RollingOutlook/CorporateAnnualTargetRO.js
+12
-12
No files found.
src/api/index.js
View file @
8c2d63a0
...
@@ -332,6 +332,7 @@ const create = (type = "") => {
...
@@ -332,6 +332,7 @@ const create = (type = "") => {
const
getFullApproveMB
=
(
body
)
=>
api
.
post
(
'/transaction/master_budget/get_approved_submit'
,
body
)
const
getFullApproveMB
=
(
body
)
=>
api
.
post
(
'/transaction/master_budget/get_approved_submit'
,
body
)
const
getFullApproveMonthly
=
(
body
)
=>
api
.
post
(
'/transaction/monthly_report/get_approved_submit'
,
body
)
const
getFullApproveMonthly
=
(
body
)
=>
api
.
post
(
'/transaction/monthly_report/get_approved_submit'
,
body
)
const
getDashboardFinancial
=
(
body
)
=>
api
.
post
(
'/transaction/dashboard/get_dashboard_financial'
,
body
)
const
getDashboardFinancial
=
(
body
)
=>
api
.
post
(
'/transaction/dashboard/get_dashboard_financial'
,
body
)
const
getReportCATPA
=
(
body
)
=>
api
.
post
(
'/transaction/cat/performance_appraisal'
,
body
)
//CASH FLOW
//CASH FLOW
const
getDetailReportCF
=
(
body
)
=>
api
.
post
(
'/transaction/cash_flow/master_budget/get_report_hierarki'
,
body
)
const
getDetailReportCF
=
(
body
)
=>
api
.
post
(
'/transaction/cash_flow/master_budget/get_report_hierarki'
,
body
)
...
@@ -732,6 +733,7 @@ const create = (type = "") => {
...
@@ -732,6 +733,7 @@ const create = (type = "") => {
getFullApproveMB
,
getFullApproveMB
,
getFullApproveMonthly
,
getFullApproveMonthly
,
getDashboardFinancial
,
getDashboardFinancial
,
getReportCATPA
,
getHierarkiCronJobMBPL
,
getHierarkiCronJobMBPL
,
getHierarkiCronJobMBCF
,
getHierarkiCronJobMBCF
,
getHierarkiCronJobMBRatio
,
getHierarkiCronJobMBRatio
,
...
...
src/container/Laporan/SubHolding.js
View file @
8c2d63a0
...
@@ -2653,10 +2653,89 @@ export default class SubHolding extends Component {
...
@@ -2653,10 +2653,89 @@ export default class SubHolding extends Component {
]
]
this
.
setState
({
dataTable
:
dbCatPQ
,
previewTable
:
true
,
loading
:
false
,
previewDownload
:
true
})
this
.
setState
({
dataTable
:
dbCatPQ
,
previewTable
:
true
,
loading
:
false
,
previewDownload
:
true
})
}
else
if
(
this
.
state
.
report
.
value
===
11
)
{
}
else
if
(
this
.
state
.
report
.
value
===
11
)
{
let
dbCatPA
=
[
let
dbCATPA
=
[]
[
"ABCD"
,
"%"
,
"Rp Bio"
,
"HIG"
,
"Unlimited"
,
"SUM"
,
"6"
,
"7"
,
"8"
,
"9"
,
"10"
,
"11"
,
"12"
,
"13"
,
"14"
,
"15"
,
"16"
,
"17"
,
"18"
]
let
payloadCATPA
=
{...
payload
,
report_id
:
17
,
months
:
this
.
state
.
month
.
month_id
,
get_for
:
"view"
}
]
api
.
create
().
getReportCATPA
(
payloadCATPA
).
then
(
response
=>
{
this
.
setState
({
dataTable
:
dbCatPA
,
previewTable
:
true
,
loading
:
false
,
previewDownload
:
true
})
console
.
log
(
payloadCATPA
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
let
res
=
response
.
data
.
data
const
handlePushChild
=
(
item
)
=>
{
let
indexIDzz
=
dbCATPA
.
findIndex
((
val
)
=>
val
[
1
]
===
item
.
id
)
if
(
indexIDzz
===
-
1
)
{
dbCATPA
.
push
([
item
.
type_report_id
,
item
.
id
,
item
.
parent
,
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
weight
,
item
.
uom
,
item
.
kpi_type
,
item
.
max_ach
,
item
.
formula_ytd
,
item
.
actual_monthly
,
item
.
target_monthly
,
item
.
achivement_monthly
,
item
.
score
,
item
.
score_x_weight
,
item
.
order
])
}
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
}
res
.
map
((
item
,
index
)
=>
{
dbCATPA
.
push
([
item
.
type_report_id
,
item
.
id
,
item
.
parent
,
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
weight
,
item
.
uom
,
item
.
kpi_type
,
item
.
max_ach
,
item
.
formula_ytd
,
item
.
actual_monthly
,
item
.
target_monthly
,
item
.
achivement_monthly
,
item
.
score
,
item
.
score_x_weight
,
item
.
order
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
})
this
.
setState
({
dataTable
:
dbCATPA
,
previewTable
:
true
,
loading
:
false
,
previewDownload
:
true
})
console
.
log
(
this
.
state
.
dataTable
)
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
))
{
setTimeout
(()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
window
.
location
.
reload
();
},
1000
);
}
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
}
}
}
...
...
src/container/Laporan/TableSubHolding.js
View file @
8c2d63a0
...
@@ -23312,6 +23312,31 @@ export default class TableSubHolding extends Component {
...
@@ -23312,6 +23312,31 @@ export default class TableSubHolding extends Component {
const columnCatPA = [
const columnCatPA = [
{
{
name: "",
options: {
display: false
}
}, {
name: "",
options: {
display: false
}
}, {
name: "",
options: {
display: false
}
}, {
name: "",
options: {
display: false
}
}, {
name: "",
options: {
display: false
}
}, {
name: "Key Performance Indicator",
name: "Key Performance Indicator",
options: {
options: {
customHeadRender: (columnMeta) => (
customHeadRender: (columnMeta) => (
...
@@ -23597,8 +23622,12 @@ export default class TableSubHolding extends Component {
...
@@ -23597,8 +23622,12 @@ export default class TableSubHolding extends Component {
)
)
}
}
}
}
},{
name: "",
options: {
display: false
}
}
]
}
]
const columns = []
const columns = []
src/container/RollingOutlook/CorporateAnnualTargetRO.js
View file @
8c2d63a0
...
@@ -1802,11 +1802,11 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -1802,11 +1802,11 @@ export default class CorporateAnnualTargetRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quarter
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quarter
==
'q1'
||
this
.
props
.
quarter
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quarter
==
'q1'
||
this
.
props
.
quarter
==
'q2'
?
false
:
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -1902,11 +1902,11 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -1902,11 +1902,11 @@ export default class CorporateAnnualTargetRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quarter
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quarter
==
'q1'
||
this
.
props
.
quarter
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quarter
==
'q1'
||
this
.
props
.
quarter
==
'q2'
?
false
:
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -2002,11 +2002,11 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -2002,11 +2002,11 @@ export default class CorporateAnnualTargetRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quarter
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quarter
==
'q1'
||
this
.
props
.
quarter
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quarter
==
'q1'
||
this
.
props
.
quarter
==
'q2'
?
false
:
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -2102,11 +2102,11 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -2102,11 +2102,11 @@ export default class CorporateAnnualTargetRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quarter
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
tru
e
}
disabled
=
{
fals
e
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -2202,11 +2202,11 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -2202,11 +2202,11 @@ export default class CorporateAnnualTargetRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quarter
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
tru
e
}
disabled
=
{
fals
e
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
@@ -2302,11 +2302,11 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -2302,11 +2302,11 @@ export default class CorporateAnnualTargetRO extends Component {
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quarter
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
tru
e
}
disabled
=
{
fals
e
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
...
...
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