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
1489e3fc
Commit
1489e3fc
authored
Oct 01, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
0f8575ba
b50d1837
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
29 deletions
+56
-29
BudgetTahunan.js
src/container/BudgetTahunan.js
+5
-5
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+38
-19
OperatingIndicatorDetail.js
src/container/OprIndicator/OperatingIndicatorDetail.js
+13
-5
No files found.
src/container/BudgetTahunan.js
View file @
1489e3fc
...
@@ -591,13 +591,13 @@ export default class BudgetTahunan extends Component {
...
@@ -591,13 +591,13 @@ export default class BudgetTahunan extends Component {
<
button
<
button
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
tableMeta
.
rowData
[
5
]
?
'pointer'
:
null
,
cursor
:
tableMeta
.
rowData
[
5
]
?
'pointer'
:
'default'
,
borderColor
:
'transparent'
borderColor
:
'transparent'
}}
}}
onClick
=
{()
=>
onClick
=
{()
=>
// tableMeta.rowData[5]
?
tableMeta
.
rowData
[
5
]
==
true
?
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
],
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
3
])
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
],
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
3
])
//
: null
:
null
}
}
>
>
<
Typography
style
=
{{
color
:
tableMeta
.
rowData
[
5
]
?
'#5198ea'
:
'GrayText'
,
fontSize
:
12
,
}}
>
Detail
<
/Typography
>
<
Typography
style
=
{{
color
:
tableMeta
.
rowData
[
5
]
?
'#5198ea'
:
'GrayText'
,
fontSize
:
12
,
}}
>
Detail
<
/Typography
>
...
@@ -713,8 +713,7 @@ export default class BudgetTahunan extends Component {
...
@@ -713,8 +713,7 @@ export default class BudgetTahunan extends Component {
download
:
false
,
download
:
false
,
selectableRows
:
false
,
selectableRows
:
false
,
viewColumns
:
false
,
viewColumns
:
false
,
rowsPerPage
:
5
,
pagination
:
false
,
rowsPerPageOptions
:
[
5
,
25
,
100
],
search
:
false
search
:
false
}
}
const
optionsRevision
=
{
const
optionsRevision
=
{
...
@@ -803,6 +802,7 @@ export default class BudgetTahunan extends Component {
...
@@ -803,6 +802,7 @@ export default class BudgetTahunan extends Component {
this
.
getReport
()
this
.
getReport
()
this
.
getReportAttachment
()
this
.
getReportAttachment
()
})}
})}
disabled
=
{
true
}
disableClearable
disableClearable
style
=
{{
width
:
250
}}
style
=
{{
width
:
250
}}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
label
=
"Revision"
margin
=
"normal"
style
=
{{
marginTop
:
7
}}
/>
}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
label
=
"Revision"
margin
=
"normal"
style
=
{{
marginTop
:
7
}}
/>
}
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
1489e3fc
...
@@ -245,31 +245,50 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -245,31 +245,50 @@ export default class CorporateAnnualTarget extends Component {
let
reg
=
/^
\d
+$/
;
let
reg
=
/^
\d
+$/
;
isi
.
map
((
i
,
index
)
=>
{
isi
.
map
((
i
,
index
)
=>
{
if
(
i
.
length
>
0
)
{
if
(
i
.
length
>
0
)
{
let
total
=
0
let
lastValz
=
0
let
nilaiTotal
=
0
if
(
i
[
6
]
!==
undefined
)
{
if
(
i
[
6
]
==
'SUM'
||
i
[
6
]
==
'AVG'
||
i
[
6
]
==
'LAST'
)
{
i
.
map
((
items
,
indexs
)
=>
{
if
(
indexs
>=
8
&&
indexs
<=
19
)
{
let
valItem
=
items
==
undefined
||
items
==
""
?
0
:
items
total
+=
Number
(
valItem
)
if
(
index
==
19
)
{
lastValz
+=
Number
(
valItem
)
}
}
})
}
nilaiTotal
=
i
[
6
]
==
'SUM'
?
total
:
i
[
6
]
==
'AVG'
?
total
/
12
:
lastValz
}
console
.
log
(
nilaiTotal
)
payload
.
push
({
payload
.
push
({
item_report_id
:
i
[
0
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
0
]))
===
false
?
""
:
String
(
i
[
0
]).
trim
(),
item_report_id
:
i
[
0
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
0
]))
===
false
?
""
:
String
(
i
[
0
]).
trim
(),
item_report
:
i
[
1
]
===
undefined
?
""
:
String
(
i
[
1
]).
trim
(),
item_report
:
i
[
1
]
===
undefined
?
""
:
String
(
i
[
1
]).
trim
(),
weight
:
i
[
2
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
2
]))
===
false
?
""
:
String
(
i
[
2
]).
trim
(),
weight
:
i
[
2
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
2
]))
===
false
?
""
:
String
(
i
[
2
]).
trim
(),
uom
:
i
[
3
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
3
]))
===
false
?
""
:
String
(
i
[
3
]).
trim
(),
uom
:
i
[
3
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
3
]))
===
false
?
""
:
String
(
i
[
3
]).
trim
(),
kpi_type
:
i
[
4
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
4
]))
===
false
?
""
:
String
(
i
[
4
]).
trim
(),
kpi_type
:
i
[
4
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
4
]))
===
false
?
""
:
String
(
i
[
4
]).
trim
(),
formula
:
i
[
5
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
5
]))
===
false
?
""
:
String
(
i
[
5
]).
trim
(),
max_ach
:
i
[
5
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
5
]))
===
false
?
""
:
String
(
i
[
5
]).
trim
(),
total_actual_before
:
i
[
6
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
6
]))
===
false
?
"0"
:
String
(
i
[
6
]).
trim
(),
formula
:
i
[
6
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
6
]))
===
false
?
""
:
String
(
i
[
6
]).
trim
(),
january
:
i
[
7
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
7
]))
===
false
?
"0"
:
String
(
i
[
7
]).
trim
(),
total_actual_before
:
i
[
7
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
7
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
7
]).
toFixed
(
1
)).
trim
(),
february
:
i
[
8
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
8
]))
===
false
?
"0"
:
String
(
i
[
8
]).
trim
(),
january
:
i
[
8
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
8
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
8
]).
toFixed
(
1
)).
trim
(),
march
:
i
[
9
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
9
]))
===
false
?
"0"
:
String
(
i
[
9
]).
trim
(),
february
:
i
[
9
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
9
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
9
]).
toFixed
(
1
)).
trim
(),
april
:
i
[
10
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
10
]))
===
false
?
"0"
:
String
(
i
[
10
]).
trim
(),
march
:
i
[
10
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
10
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
10
].
toFixed
(
1
))).
trim
(),
may
:
i
[
11
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
11
]))
===
false
?
"0"
:
String
(
i
[
11
]).
trim
(),
april
:
i
[
11
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
11
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
11
]).
toFixed
(
1
)).
trim
(),
june
:
i
[
12
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
12
]))
===
false
?
"0"
:
String
(
i
[
12
]).
trim
(),
may
:
i
[
12
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
12
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
12
].
toFixed
(
1
))).
trim
(),
july
:
i
[
13
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
13
]))
===
false
?
"0"
:
String
(
i
[
13
]).
trim
(),
june
:
i
[
13
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
13
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
13
].
toFixed
(
1
))).
trim
(),
august
:
i
[
14
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
14
]))
===
false
?
"0"
:
String
(
i
[
14
]).
trim
(),
july
:
i
[
14
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
14
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
14
].
toFixed
(
1
))).
trim
(),
september
:
i
[
15
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
15
]))
===
false
?
"0"
:
String
(
i
[
15
]).
trim
(),
august
:
i
[
15
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
15
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
15
]).
toFixed
(
1
)).
trim
(),
october
:
i
[
16
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
16
]))
===
false
?
"0"
:
String
(
i
[
16
]).
trim
(),
september
:
i
[
16
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
16
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
16
]).
toFixed
(
1
)).
trim
(),
november
:
i
[
17
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
17
]))
===
false
?
"0"
:
String
(
i
[
17
]).
trim
(),
october
:
i
[
17
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
17
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
17
]).
toFixed
(
1
)).
trim
(),
december
:
i
[
18
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
18
]))
===
false
?
"0"
:
String
(
i
[
18
]).
trim
(),
november
:
i
[
18
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
18
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
18
]).
toFixed
(
1
)).
trim
(),
total_current_year
:
i
[
19
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
19
]))
===
false
?
"0"
:
String
(
i
[
19
]).
trim
(),
december
:
i
[
19
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
19
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
19
]).
toFixed
(
1
)).
trim
(),
total_next_year
:
i
[
20
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
20
]))
===
false
?
"0"
:
String
(
i
[
20
]).
trim
(),
total_current_year
:
i
[
20
]
==
0
?
"0.0"
:
String
(
Number
(
nilaiTotal
).
toFixed
(
1
)).
trim
(),
total_more_year
:
i
[
21
]
===
undefined
?
"0"
:
reg
.
test
(
String
(
i
[
21
]))
===
false
?
"0"
:
String
(
i
[
21
]).
trim
(),
total_next_year
:
i
[
21
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
21
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
21
]).
toFixed
(
1
)).
trim
(),
strategic
:
i
[
22
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
22
]))
===
false
?
""
:
String
(
i
[
22
]).
trim
(),
total_more_year
:
i
[
22
]
===
undefined
?
"0.0"
:
reg
.
test
(
String
(
i
[
22
]))
===
false
?
"0.0"
:
String
(
Number
(
i
[
22
]).
toFixed
(
1
)).
trim
(),
pic
:
i
[
23
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
23
]))
===
false
?
""
:
String
(
i
[
23
]).
trim
()
strategic
:
i
[
23
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
23
]))
===
false
?
""
:
String
(
i
[
23
]).
trim
(),
pic
:
i
[
24
]
===
undefined
?
""
:
reg
.
test
(
String
(
i
[
24
]))
===
false
?
""
:
String
(
i
[
24
]).
trim
()
})
})
}
}
})
})
...
...
src/container/OprIndicator/OperatingIndicatorDetail.js
View file @
1489e3fc
...
@@ -520,7 +520,10 @@ export default class BalanceSheet extends Component {
...
@@ -520,7 +520,10 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
<
div
style
=
{{
width
:
300
}}
>
<
div
style
=
{{
width
:
300
}}
>
{
tableMeta
.
rowData
[
22
]
?
{
tableMeta
.
rowData
[
0
]
===
4
?
null
:
tableMeta
.
rowData
[
22
]
?
tableMeta
.
rowData
[
22
].
length
>
0
?
tableMeta
.
rowData
[
22
].
length
>
0
?
tableMeta
.
rowData
[
22
][
0
].
field
===
'item'
?
tableMeta
.
rowData
[
22
][
0
].
field
===
'item'
?
tableMeta
.
rowData
[
4
]
==
0
?
tableMeta
.
rowData
[
4
]
==
0
?
...
@@ -572,6 +575,9 @@ export default class BalanceSheet extends Component {
...
@@ -572,6 +575,9 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
null
:
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
// value={value}
// value={value}
...
@@ -593,7 +599,7 @@ export default class BalanceSheet extends Component {
...
@@ -593,7 +599,7 @@ export default class BalanceSheet extends Component {
// }}
// }}
/
>
/
>
}
}
/
>
/>
}
<
/div
>
<
/div
>
)
)
}
}
...
@@ -610,6 +616,9 @@ export default class BalanceSheet extends Component {
...
@@ -610,6 +616,9 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
null
:
<
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'
}}
...
@@ -618,7 +627,7 @@ export default class BalanceSheet extends Component {
...
@@ -618,7 +627,7 @@ export default class BalanceSheet extends Component {
disabled
=
{
true
}
disabled
=
{
true
}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
value
=
{
value
}
value
=
{
value
}
/
>
/>
}
<
/div
>
<
/div
>
)
)
}
}
...
@@ -1141,9 +1150,8 @@ export default class BalanceSheet extends Component {
...
@@ -1141,9 +1150,8 @@ export default class BalanceSheet extends Component {
style
=
{{
color
:
"#5198ea"
,
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
=
{
handleValue
(
value
,
tableMeta
)}
decimalScale
=
{
1
}
decimalScale
=
{
1
}
disabled
=
{
tr
ue
}
value
=
{
val
ue
}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
)
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
...
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