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
5925a507
Commit
5925a507
authored
Feb 09, 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
b6e6d884
985ad23a
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
978 additions
and
1538 deletions
+978
-1538
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+35
-6
CorporateAnnualTargetPA.js
src/container/Laporan/CorporateAnnualTargetPA.js
+0
-595
CorporateAnnualTargetPQ.js
src/container/Laporan/CorporateAnnualTargetPQ.js
+0
-925
SubHolding.js
src/container/Laporan/SubHolding.js
+12
-0
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+929
-10
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+1
-1
SummaryOfTriputra.js
src/container/SummaryTriputra/SummaryOfTriputra.js
+1
-1
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
5925a507
...
...
@@ -140,7 +140,7 @@ export default class BalanceSheet extends Component {
"submission_id"
:
this
.
props
.
submissionID
}
let
response
=
await
api
.
create
().
getDetailReportMB
(
payload
)
//
console.log(response);
console
.
log
(
response
);
let
dataTable
=
[]
if
(
response
.
data
)
{
let
res
=
response
.
data
.
data
...
...
@@ -535,17 +535,33 @@ export default class BalanceSheet extends Component {
let
dataTable2
=
this
.
state
.
dataTable
const
handleChange
=
(
value
,
tableMeta
,
type
)
=>
{
let
val
=
String
(
value
).
split
(
","
).
join
(
""
)
// console.log('masuk')
if
(
type
===
"actual"
)
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
).
toFixed
(
1
)
}
else
{
// console.log('masuk2')
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
1
]
===
dataTable2
[
tableMeta
.
rowIndex
][
2
])
if
(
indexParent
>
0
)
{
// console.log(indexParent)
let
a
=
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
)
let
a
=
0
if
(
type
==
'r/e'
)
{
// console.log('masuk8')
a
=
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
value
=
Number
(
val
).
toFixed
(
1
)
}
else
{
// console.log('masuk9')
a
=
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
).
toFixed
(
1
)
}
let
jagain
=
dataTable2
[
indexParent
][
tableMeta
.
columnIndex
]
a
=
dataTable2
[
indexParent
][
tableMeta
.
columnIndex
]
=
jagain
===
undefined
?
(
0
+
Number
(
val
)).
toFixed
(
1
)
:
Number
(
jagain
+
Number
(
val
)).
toFixed
(
1
)
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
).
toFixed
(
1
)
// console.log('masuk3')
if
(
type
==
'r/e'
)
{
// console.log('masuk4')
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
value
=
Number
(
val
).
toFixed
(
1
)
}
else
{
// console.log('masuk5')
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
).
toFixed
(
1
)
}
}
}
}
...
...
@@ -577,7 +593,12 @@ export default class BalanceSheet extends Component {
// console.log(tableMeta.rowIndex)
// console.log(total)
// dataTable2[tableMeta.rowIndex][column] = total
total
=
handleValueFormula
(
dataTable2
[
tableMeta
.
rowIndex
][
column
],
tableMeta
,
column
,
periode
,
dataTable2
[
tableMeta
.
rowIndex
][
25
])
if
(
column
==
19
&&
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"r/e (cummulative)"
)
{
total
=
tableMeta
.
rowData
[
7
].
value
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
tableMeta
.
rowData
[
7
].
value
}
else
{
total
=
handleValueFormula
(
dataTable2
[
tableMeta
.
rowIndex
][
column
],
tableMeta
,
column
,
periode
,
dataTable2
[
tableMeta
.
rowIndex
][
25
])
}
// console.log(total)
return
total
}
...
...
@@ -969,8 +990,12 @@ export default class BalanceSheet extends Component {
style
=
{{
color
:
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"r/e (cummulative)"
?
'#5198ea'
:
'black'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
this
.
props
.
isApprover
==
true
?
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
:
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"r/e (cummulative)"
?
false
:
true
)
)}
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"r/e (cummulative)"
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)}
value
=
{
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"r/e (cummulative)"
?
Number
(
value
.
value
).
toFixed
(
1
)
:
Number
(
handleValueFormula
(
value
,
tableMeta
)).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
,
'r/e'
)
// console.log(dataTable2)
}}
/
>
:
tableMeta
.
rowData
[
0
]
===
5
?
...
...
@@ -979,8 +1004,12 @@ export default class BalanceSheet extends Component {
style
=
{{
color
:
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"r/e (cummulative)"
?
'#5198ea'
:
'black'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
this
.
props
.
isApprover
==
true
?
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
:
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"r/e (cummulative)"
?
false
:
true
)
)}
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"r/e (cummulative)"
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)}
value
=
{
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"r/e (cummulative)"
?
Number
(
value
.
value
).
toFixed
(
1
)
:
Number
(
handleValueFormula
(
value
,
tableMeta
)).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
,
'r/e'
)
// console.log(dataTable2)
}}
/>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
src/container/Laporan/CorporateAnnualTargetPA.js
deleted
100644 → 0
View file @
b6e6d884
This diff is collapsed.
Click to expand it.
src/container/Laporan/CorporateAnnualTargetPQ.js
deleted
100644 → 0
View file @
b6e6d884
This diff is collapsed.
Click to expand it.
src/container/Laporan/SubHolding.js
View file @
5925a507
...
...
@@ -38,6 +38,8 @@ export default class SubHolding extends Component {
{
value
:
7
,
label
:
'Balance Sheet - Summary'
},
{
value
:
8
,
label
:
'Profit Loss - Summary'
},
{
value
:
9
,
label
:
'Financial Ratio - Summary'
},
{
value
:
10
,
label
:
'CAT Performance Quarterly'
},
{
value
:
11
,
label
:
'CAT Performance Appraisal'
},
],
report
:
null
,
loading
:
false
,
...
...
@@ -2378,6 +2380,16 @@ export default class SubHolding extends Component {
})
})
})
}
else
if
(
this
.
state
.
report
.
value
===
10
)
{
let
dbCatPQ
=
[
[
"ABCD"
,
"%"
,
"Rp Bio"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
"10"
,
"11"
,
"12"
,
"13"
,
"14"
,
"15"
,
"16"
,
"17"
,
"18"
]
]
this
.
setState
({
dataTable
:
dbCatPQ
,
previewTable
:
true
,
loading
:
false
,
previewDownload
:
true
})
}
else
if
(
this
.
state
.
report
.
value
===
11
)
{
let
dbCatPA
=
[
[
"ABCD"
,
"%"
,
"Rp Bio"
,
"HIG"
,
"Unlimited"
,
"SUM"
,
"6"
,
"7"
,
"8"
,
"9"
,
"10"
,
"11"
,
"12"
,
"13"
,
"14"
,
"15"
,
"16"
,
"17"
,
"18"
]
]
this
.
setState
({
dataTable
:
dbCatPA
,
previewTable
:
true
,
loading
:
false
,
previewDownload
:
true
})
}
}
...
...
src/container/Laporan/TableSubHolding.js
View file @
5925a507
This diff is collapsed.
Click to expand it.
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
5925a507
...
...
@@ -2461,7 +2461,7 @@ export default class ListOfCreditFacilities extends Component {
// </div>
:
<
div
style
=
{{
padding
:
0
,
margin
:
0
}}
>
<
textarea
disabled
=
{
this
.
state
.
get_for
==
'view'
}
style
=
{{
borderColor
:
'white'
,
width
:
96
,
textAlign
:
'center'
,
justifyContent
:
'center'
,
padding
:
0
,
margin
:
0
,
color
:
this
.
state
.
get_for
==
'view'
?
"black"
:
"#5198ea"
,
backgroundColor
:
'transparent'
}}
type
=
"text"
defaultValue
=
{
tableMeta
.
rowData
[
18
]}
<
textarea
disabled
=
{
this
.
state
.
get_for
==
'view'
?
true
:
tableMeta
.
rowData
[
7
]
==
null
?
true
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
false
:
true
}
style
=
{{
borderColor
:
'white'
,
width
:
96
,
textAlign
:
'center'
,
justifyContent
:
'center'
,
padding
:
0
,
margin
:
0
,
color
:
this
.
state
.
get_for
==
'view'
?
'black'
:
tableMeta
.
rowData
[
7
]
==
null
?
'black'
:
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
'#5198ea'
:
'black'
,
backgroundColor
:
this
.
state
.
get_for
==
'view'
?
'white'
:
tableMeta
.
rowData
[
7
]
==
null
?
'white'
:
(
tableMeta
.
rowData
[
18
]
==
''
&&
tableMeta
.
rowData
[
7
].
value
==
'Others'
?
'#ffac99'
:
'white'
)
}}
type
=
"text"
defaultValue
=
{
tableMeta
.
rowData
[
18
]}
onBlur
=
{(
event
)
=>
handleChange
(
event
.
target
.
value
,
tableMeta
,
18
)}
/
>
<
/div
>
}
...
...
src/container/SummaryTriputra/SummaryOfTriputra.js
View file @
5925a507
...
...
@@ -111,7 +111,7 @@ export default class SummaryOfTriputra extends Component {
let
data
=
response
.
data
.
data
let
monthData
=
data
.
map
((
item
)
=>
{
return
{
month_id
:
item
.
month_
id
,
month_id
:
item
.
id
,
month_name
:
item
.
month_name
}
})
...
...
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