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
2bcfca0d
Commit
2bcfca0d
authored
Mar 31, 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
d9d548b8
3359e66d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
755 additions
and
738 deletions
+755
-738
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+59
-58
OperatingIndicatorRO.js
src/container/RollingOutlook/OperatingIndicatorRO.js
+672
-669
TaxPlanningRO.js
src/container/RollingOutlook/TaxPlanningRO.js
+24
-11
No files found.
src/container/BudgetTahunan/TaxPlanning.js
View file @
2bcfca0d
...
...
@@ -94,6 +94,7 @@ export default class TaxPlanning extends Component {
"submission_id"
:
this
.
props
.
submissionID
}
api
.
create
().
getLastestUpdateMB
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
...
...
@@ -1740,7 +1741,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -1756,7 +1757,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -1778,7 +1779,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -1794,7 +1795,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -1929,7 +1930,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -1945,7 +1946,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -1967,7 +1968,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -1983,7 +1984,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -2303,7 +2304,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -2319,7 +2320,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -2454,7 +2455,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -2470,7 +2471,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -2790,7 +2791,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -2806,7 +2807,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -2942,7 +2943,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -2958,7 +2959,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -3278,7 +3279,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -3294,7 +3295,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -3430,7 +3431,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -3446,7 +3447,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -3767,7 +3768,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -3783,7 +3784,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -3920,7 +3921,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -3936,7 +3937,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -4257,7 +4258,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -4273,7 +4274,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -4410,7 +4411,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -4426,7 +4427,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -4747,7 +4748,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -4763,7 +4764,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -4900,7 +4901,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -4916,7 +4917,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -5237,7 +5238,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -5253,7 +5254,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -5390,7 +5391,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -5406,7 +5407,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -5727,7 +5728,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -5743,7 +5744,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -5880,7 +5881,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -5896,7 +5897,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -6217,7 +6218,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -6233,7 +6234,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -6370,7 +6371,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -6386,7 +6387,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -6707,7 +6708,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -6723,7 +6724,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -6860,7 +6861,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -6876,7 +6877,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -7197,7 +7198,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -7213,7 +7214,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -7350,7 +7351,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -7366,7 +7367,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -7962,7 +7963,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -7978,7 +7979,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -8134,7 +8135,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -8528,7 +8529,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -8544,7 +8545,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -8700,7 +8701,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
.
tbf
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
tbf
).
toFixed
(
2
)
:
Number
(
value
.
tbf
).
toFixed
(
1
)}
/
>
}
/
>
...
...
src/container/RollingOutlook/OperatingIndicatorRO.js
View file @
2bcfca0d
...
...
@@ -77,7 +77,7 @@ export default class OperatingIndicatorRO extends Component {
}
console
.
log
(
checkStatus
);
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
&&
checkStatus
})
this
.
setState
({
viewOnly
:
checkCreate
&&
checkEdit
&&
checkStatus
})
}
handleGetFor
(
type
)
{
...
...
@@ -352,7 +352,7 @@ export default class OperatingIndicatorRO extends Component {
a
.
click
();
}
setTimeout
(()
=>
{
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
},
500
);
}
...
...
@@ -373,7 +373,7 @@ export default class OperatingIndicatorRO extends Component {
a
.
click
();
}
setTimeout
(()
=>
{
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
},
500
);
}
...
...
@@ -802,7 +802,7 @@ export default class OperatingIndicatorRO extends Component {
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
:
this
.
state
.
get_for
==
'view'
?
...
...
@@ -827,7 +827,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
/
>
...
...
@@ -846,7 +846,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
...
...
@@ -923,7 +923,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
/
>
...
...
@@ -942,7 +942,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
...
...
@@ -1018,7 +1018,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
/
>
...
...
@@ -1132,7 +1132,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
...
...
@@ -1150,12 +1150,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
...
@@ -1243,12 +1243,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
...
@@ -1336,12 +1336,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q2'
||
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
...
@@ -1392,7 +1392,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
/
>
...
...
@@ -1411,7 +1411,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
...
...
@@ -1429,12 +1429,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
...
@@ -1485,7 +1485,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
/
>
...
...
@@ -1504,7 +1504,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
...
...
@@ -1522,12 +1522,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
...
@@ -1578,7 +1578,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleParent
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
/
>
...
...
@@ -1597,7 +1597,7 @@ export default class OperatingIndicatorRO extends Component {
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
))
:
Number
(
handleFormula
(
tableMeta
)).
toFixed
(
1
)}
disabled
=
{
true
}
decimalScale
=
{
1
}
onBlur
=
{(
event
)
=>
{
...
...
@@ -1615,12 +1615,12 @@ export default class OperatingIndicatorRO extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
"#5198ea"
:
'#555252'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
value
=
{
this
.
props
.
quartal
==
'q3'
?
(
value
===
"0"
?
""
:
Number
(
value
).
toFixed
(
1
))
:
Number
(
value
).
toFixed
(
1
)}
decimalScale
=
{
1
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
disabled
=
{
this
.
props
.
quartal
==
'q1'
||
this
.
props
.
quartal
==
'q2'
?
false
:
true
}
// disabled={!this.props.permission.create || !this.props.permission.edit || !this.props.isSubmit}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
...
...
@@ -2058,7 +2058,7 @@ export default class OperatingIndicatorRO extends Component {
borderColor
:
'transparent'
,
margin
:
5
}}
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
downloadTemplate
()
})}
>
...
...
@@ -2113,14 +2113,17 @@ export default class OperatingIndicatorRO extends Component {
<
/MuiThemeProvider
>
}
<
/div
>
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
<
/Typography
>
<
div
style
=
{{
marginLeft
:
10
,
overflowY
:
'scroll'
,
height
:
75
,
marginTop
:
10
}}
>
{
this
.
state
.
updateBy
.
reverse
().
map
((
item
,
index
)
=>
{
<
div
style
=
{{
marginLeft
:
10
,
overflowY
:
'scroll'
,
height
:
this
.
state
.
updateBy
.
length
<
2
?
25
:
75
,
marginTop
:
10
}}
>
{
this
.
state
.
updateBy
.
length
>
0
?
this
.
state
.
updateBy
.
reverse
().
map
((
item
,
index
)
=>
{
return
(
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
}}
>
{
item
.
latest_update
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
,
marginRight
:
5
}}
>
{
item
.
latest_update
}
<
/Typography
>
)
})}
})
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
,
marginRight
:
5
}}
>-<
/Typography
>
}
<
/div
>
<
/div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
}}
>
Notes
:
{
this
.
state
.
notesUpdate
}
<
/Typography
>
...
...
@@ -2151,7 +2154,7 @@ export default class OperatingIndicatorRO extends Component {
<
button
type
=
"button"
onClick
=
{()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
handleGetFor
(
'edit'
)
})
}}
...
...
src/container/RollingOutlook/TaxPlanningRO.js
View file @
2bcfca0d
...
...
@@ -49,7 +49,7 @@ export default class TaxPlanning extends Component {
editable
:
false
,
buttonError
:
false
,
judulColumn
:
null
,
updateBy
:
'-'
,
updateBy
:
[]
,
buttonDraft
:
true
,
handleTekTekTek
:
0
,
saveDraft
:
true
,
...
...
@@ -143,6 +143,7 @@ export default class TaxPlanning extends Component {
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
,
// updateBy: response.data.data.detail === null ? [] : response.data.data.detail,
notes
:
response
.
data
.
data
.
notes_update
===
null
?
""
:
response
.
data
.
data
.
notes_update
})
}
else
{
...
...
@@ -1678,7 +1679,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
// console.log(dataTable2)
...
...
@@ -1759,7 +1760,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
...
...
@@ -2189,7 +2190,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
...
...
@@ -2680,7 +2681,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
...
...
@@ -3171,7 +3172,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
...
...
@@ -3662,7 +3663,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
...
...
@@ -4153,7 +4154,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
...
...
@@ -4636,7 +4637,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
...
...
@@ -5080,7 +5081,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
...
...
@@ -5524,7 +5525,7 @@ export default class TaxPlanning extends Component {
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
false
}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
1
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
8
]).
toLocaleUpperCase
()
==
"CORPORATE INCOME TAX"
?
Number
(
value
.
fcp
).
toFixed
(
2
)
:
Number
(
value
.
fcp
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
...
...
@@ -6065,6 +6066,7 @@ export default class TaxPlanning extends Component {
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
{
this
.
state
.
loading
&&
loadingComponent
}
{
!
this
.
state
.
loading
&&
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
data
=
{
dataTable2
}
...
...
@@ -6072,9 +6074,20 @@ export default class TaxPlanning extends Component {
options
=
{
options
}
/
>
<
/MuiThemeProvider
>
}
<
/div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
{
this
.
state
.
updateBy
}
<
/Typography
>
{
/* <div style={{display: 'flex'}}>
<Typography style={{ fontSize: '11px', color: '#4b4b4b', marginTop: 20 }}>Last Updated by : </Typography>
<div style={{marginLeft: 10, overflowY: 'scroll', height: 75, marginTop: 10}}>
{this.state.updateBy.reverse().map((item,index) => {
return (
<Typography style={{ fontSize: '11px', color: '#4b4b4b', marginTop: 10 }}>{item.latest_update}</Typography>
)
})}
</div>
</div> */
}
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Notes
:
{
this
.
state
.
notes
}
<
/Typography
>
<
/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