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
40b33f84
Commit
40b33f84
authored
Feb 09, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
b15ae90a
90b2a18c
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
225 additions
and
223 deletions
+225
-223
BudgetTahunan.js
src/container/BudgetTahunan.js
+15
-15
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+3
-21
MonthlyReport.js
src/container/MonthlyReport.js
+12
-12
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+6
-3
SummaryOfTriputra.js
src/container/SummaryTriputra/SummaryOfTriputra.js
+2
-1
TableSummaryTriputra.js
src/container/SummaryTriputra/TableSummaryTriputra.js
+187
-171
No files found.
src/container/BudgetTahunan.js
View file @
40b33f84
...
...
@@ -1794,21 +1794,21 @@ export default class BudgetTahunan extends Component {
listFR
.
push
(
{
"item_report_id"
:
item
[
1
],
"january"
:
String
(
item
[
7
]
==
undefined
?
item
[
7
]
:
Number
(
item
[
7
]).
toFixed
(
2
)),
"february"
:
String
(
item
[
8
]
==
undefined
?
item
[
8
]
:
Number
(
item
[
8
]).
toFixed
(
2
)),
"march"
:
String
(
item
[
9
]
==
undefined
?
item
[
9
]
:
Number
(
item
[
9
]).
toFixed
(
2
)),
"april"
:
String
(
item
[
10
]
==
undefined
?
item
[
10
]
:
Number
(
item
[
10
]).
toFixed
(
2
)),
"may"
:
String
(
item
[
11
]
==
undefined
?
item
[
11
]
:
Number
(
item
[
11
]).
toFixed
(
2
)),
"june"
:
String
(
item
[
12
]
==
undefined
?
item
[
12
]
:
Number
(
item
[
12
]).
toFixed
(
2
)),
"july"
:
String
(
item
[
13
]
==
undefined
?
item
[
13
]
:
Number
(
item
[
13
]).
toFixed
(
2
)),
"august"
:
String
(
item
[
14
]
==
undefined
?
item
[
14
]
:
Number
(
item
[
14
]).
toFixed
(
2
)),
"september"
:
String
(
item
[
15
]
==
undefined
?
item
[
15
]
:
Number
(
item
[
15
]).
toFixed
(
2
)),
"october"
:
String
(
item
[
16
]
==
undefined
?
item
[
16
]
:
Number
(
item
[
16
]).
toFixed
(
2
)),
"november"
:
String
(
item
[
17
]
==
undefined
?
item
[
17
]
:
Number
(
item
[
17
]).
toFixed
(
2
)),
"december"
:
String
(
item
[
18
]
==
undefined
?
item
[
18
]
:
Number
(
item
[
18
]).
toFixed
(
2
)),
"total_current_year"
:
String
(
totalCY
==
undefined
?
totalCY
:
Number
(
totalCY
).
toFixed
(
2
)),
"total_next_year"
:
String
(
item
[
19
]
!=
''
?
Number
(
item
[
19
]).
toFixed
(
2
)
:
item
[
19
]),
"total_more_year"
:
String
(
item
[
20
]
!=
''
?
Number
(
item
[
20
]).
toFixed
(
2
)
:
item
[
20
]),
"january"
:
String
(
item
[
7
]
==
undefined
||
item
[
7
]
==
'Infinity'
||
item
[
7
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
7
]).
toFixed
(
2
)),
"february"
:
String
(
item
[
8
]
==
undefined
||
item
[
8
]
==
'Infinity'
||
item
[
8
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
8
]).
toFixed
(
2
)),
"march"
:
String
(
item
[
9
]
==
undefined
||
item
[
9
]
==
'Infinity'
||
item
[
9
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
9
]).
toFixed
(
2
)),
"april"
:
String
(
item
[
10
]
==
undefined
||
item
[
10
]
==
'Infinity'
||
item
[
10
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
10
]).
toFixed
(
2
)),
"may"
:
String
(
item
[
11
]
==
undefined
||
item
[
11
]
==
'Infinity'
||
item
[
11
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
11
]).
toFixed
(
2
)),
"june"
:
String
(
item
[
12
]
==
undefined
||
item
[
12
]
==
'Infinity'
||
item
[
12
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
12
]).
toFixed
(
2
)),
"july"
:
String
(
item
[
13
]
==
undefined
||
item
[
13
]
==
'Infinity'
||
item
[
13
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
13
]).
toFixed
(
2
)),
"august"
:
String
(
item
[
14
]
==
undefined
||
item
[
14
]
==
'Infinity'
||
item
[
14
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
14
]).
toFixed
(
2
)),
"september"
:
String
(
item
[
15
]
==
undefined
||
item
[
15
]
==
'Infinity'
||
item
[
15
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
15
]).
toFixed
(
2
)),
"october"
:
String
(
item
[
16
]
==
undefined
||
item
[
16
]
==
'Infinity'
||
item
[
16
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
16
]).
toFixed
(
2
)),
"november"
:
String
(
item
[
17
]
==
undefined
||
item
[
17
]
==
'Infinity'
||
item
[
17
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
17
]).
toFixed
(
2
)),
"december"
:
String
(
item
[
18
]
==
undefined
||
item
[
18
]
==
'Infinity'
||
item
[
18
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
18
]).
toFixed
(
2
)),
"total_current_year"
:
String
(
totalCY
==
undefined
||
totalCY
==
'Infinity'
||
totalCY
==
'-Infinity'
?
"0.0"
:
Number
(
totalCY
).
toFixed
(
2
)),
"total_next_year"
:
String
(
item
[
19
]
!=
''
||
item
[
19
]
!=
'Infinity'
||
item
[
19
]
!=
'-Infinity'
?
Number
(
item
[
19
]).
toFixed
(
2
)
:
item
[
19
]),
"total_more_year"
:
String
(
item
[
20
]
!=
''
||
item
[
20
]
!=
'Infinity'
||
item
[
20
]
!=
'-Infinity'
?
Number
(
item
[
20
]).
toFixed
(
2
)
:
item
[
20
]),
}
)
...
...
src/container/Laporan/TableSubHolding.js
View file @
40b33f84
...
...
@@ -14351,29 +14351,11 @@ export default class TableSubHolding extends Component {
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
val
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'
right
'
,
width
:
90
}}
>
<
div
style
=
{{
textAlign
:
'
center
'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
// value={val}
control
=
{
<
Input
disableUnderline
=
{
true
}
style
=
{{
color
:
"#000"
,
fontSize
:
12
,
textAlign
:
'left'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
defaultValue
=
{
tableMeta
.
rowData
[
6
]}
// onBlur={(event) => {
// // updateValue(event.target.value)
// handleNotes(event.target.value, tableMeta)
// // console.log(dataTable2)
// }}
/
>
}
/
>
<
div
>
<
span
style
=
{{
fontSize
:
12
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
/div
>
}
<
/div
>
...
...
src/container/MonthlyReport.js
View file @
40b33f84
...
...
@@ -2006,28 +2006,28 @@ export default class MonthlyReport extends Component {
{
"item_report_id"
:
item
[
1
],
"actual"
:
this
.
state
.
month
.
month_id
==
1
?
String
(
item
[
7
]
==
undefined
?
item
[
7
]
:
Number
(
item
[
7
]).
toFixed
(
2
))
:
String
(
item
[
7
]
==
undefined
||
item
[
7
]
==
'Infinity'
||
item
[
7
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
7
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
2
?
String
(
item
[
8
]
==
undefined
?
item
[
8
]
:
Number
(
item
[
8
]).
toFixed
(
2
))
:
String
(
item
[
8
]
==
undefined
||
item
[
8
]
==
'Infinity'
||
item
[
8
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
8
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
3
?
String
(
item
[
9
]
==
undefined
?
item
[
8
]
:
Number
(
item
[
9
]).
toFixed
(
2
))
:
String
(
item
[
9
]
==
undefined
||
item
[
9
]
==
'Infinity'
||
item
[
9
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
9
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
4
?
String
(
item
[
10
]
==
undefined
?
item
[
10
]
:
Number
(
item
[
10
]).
toFixed
(
2
))
:
String
(
item
[
10
]
==
undefined
||
item
[
10
]
==
'Infinity'
||
item
[
10
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
10
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
5
?
String
(
item
[
11
]
==
undefined
?
item
[
11
]
:
Number
(
item
[
11
]).
toFixed
(
2
))
:
String
(
item
[
11
]
==
undefined
||
item
[
11
]
==
'Infinity'
||
item
[
11
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
11
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
6
?
String
(
item
[
12
]
==
undefined
?
item
[
12
]
:
Number
(
item
[
12
]).
toFixed
(
2
))
:
String
(
item
[
12
]
==
undefined
||
item
[
12
]
==
'Infinity'
||
item
[
12
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
12
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
7
?
String
(
item
[
13
]
==
undefined
?
item
[
13
]
:
Number
(
item
[
13
]).
toFixed
(
2
))
:
String
(
item
[
13
]
==
undefined
||
item
[
13
]
==
'Infinity'
||
item
[
13
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
13
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
8
?
String
(
item
[
14
]
==
undefined
?
item
[
14
]
:
Number
(
item
[
14
]).
toFixed
(
2
))
:
String
(
item
[
14
]
==
undefined
||
item
[
14
]
==
'Infinity'
||
item
[
14
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
14
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
9
?
String
(
item
[
15
]
==
undefined
?
item
[
15
]
:
Number
(
item
[
15
]).
toFixed
(
2
))
:
String
(
item
[
15
]
==
undefined
||
item
[
15
]
==
'Infinity'
||
item
[
15
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
15
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
10
?
String
(
item
[
16
]
==
undefined
?
item
[
16
]
:
Number
(
item
[
16
]).
toFixed
(
2
))
:
String
(
item
[
16
]
==
undefined
||
item
[
16
]
==
'Infinity'
||
item
[
16
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
16
]).
toFixed
(
2
))
:
this
.
state
.
month
.
month_id
==
11
?
String
(
item
[
17
]
==
undefined
?
item
[
17
]
:
Number
(
item
[
17
]).
toFixed
(
2
))
:
String
(
item
[
18
]
==
undefined
?
item
[
18
]
:
Number
(
item
[
18
]).
toFixed
(
2
))
String
(
item
[
17
]
==
undefined
||
item
[
17
]
==
'Infinity'
||
item
[
17
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
17
]).
toFixed
(
2
))
:
String
(
item
[
18
]
==
undefined
||
item
[
18
]
==
'Infinity'
||
item
[
18
]
==
'-Infinity'
?
"0.0"
:
Number
(
item
[
18
]).
toFixed
(
2
))
// "january": String(item[7] == undefined? item[7] : Number(item[7]).toFixed(1)),
// "february": String(item[8] == undefined? item[8] : Number(item[8]).toFixed(1)),
// "march": String(item[9] == undefined? item[9] : Number(item[9]).toFixed(1)),
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
40b33f84
...
...
@@ -1372,7 +1372,7 @@ export default class ListOfCreditFacilities extends Component {
// console.log(dataGabung)
console
.
log
(
newData
)
// console.log(dataTampungBank)
console
.
log
(
totalLoan
);
console
.
log
(
Number
(
totalLoan
).
toFixed
(
1
)
);
console
.
log
(
this
.
state
.
perBS
)
console
.
log
(
this
.
state
.
diff
)
// console.log(bankNameEmpty)
...
...
@@ -1385,9 +1385,12 @@ export default class ListOfCreditFacilities extends Component {
}
}
else
{
if
(
this
.
state
.
get_for
==
'view'
)
{
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
this
.
state
.
diff
==
null
?
"0.0"
:
Number
(
totalLoan
-
this
.
state
.
perBS
).
toFixed
(
1
),
perBS
:
this
.
state
.
totalOutStand
==
null
?
"0.0"
:
this
.
state
.
totalOutStand
})
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
this
.
state
.
diff
==
null
?
"0.0"
:
Number
(
Number
(
totalLoan
).
toFixed
(
1
)
-
this
.
state
.
perBS
).
toFixed
(
1
),
perBS
:
this
.
state
.
totalOutStand
==
null
?
"0.0"
:
this
.
state
.
totalOutStand
})
}
else
{
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
Number
(
totalLoan
-
this
.
state
.
perBS
).
toFixed
(
1
),
saveDraft
:
false
,
saveComp
:
Number
(
totalLoan
-
this
.
state
.
perBS
)
==
0
?
false
:
true
})
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
Number
(
Number
(
totalLoan
).
toFixed
(
1
)
-
this
.
state
.
perBS
).
toFixed
(
1
),
saveDraft
:
false
,
saveComp
:
Number
(
Number
(
totalLoan
).
toFixed
(
1
)
-
this
.
state
.
perBS
)
==
0
||
Number
(
Number
(
totalLoan
).
toFixed
(
1
)
-
this
.
state
.
perBS
)
==
"-0.0"
?
false
:
true
},
()
=>
{
// alert(this.state.saveComp)
// console.log(Number(Number(totalLoan).toFixed(1) - this.state.perBS));
})
}
}
...
...
src/container/SummaryTriputra/SummaryOfTriputra.js
View file @
40b33f84
...
...
@@ -42,7 +42,7 @@ export default class SummaryOfTriputra extends Component {
componentDidMount
()
{
// this.getDetailUser()
this
.
setState
({
report
:
this
.
state
.
reportType
[
0
],
loading
:
tru
e
},
()
=>
{
this
.
setState
({
report
:
this
.
state
.
reportType
[
0
],
loading
:
fals
e
},
()
=>
{
console
.
log
(
this
.
state
.
report
);
this
.
getPeriode
()
})
...
...
@@ -195,6 +195,7 @@ export default class SummaryOfTriputra extends Component {
// }
getDataTable
()
{
this
.
setState
({
loading
:
true
})
let
payload
=
{
"report_type"
:
this
.
state
.
report
.
key
,
"periode"
:
this
.
state
.
periode
.
periode
,
...
...
src/container/SummaryTriputra/TableSummaryTriputra.js
View file @
40b33f84
This diff is collapsed.
Click to expand it.
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