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
ad05c9e0
Commit
ad05c9e0
authored
Jan 24, 2021
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'didam' into 'master'
update See merge request
!1017
parents
405763a7
c1349437
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
619 additions
and
87 deletions
+619
-87
package-lock.json
package-lock.json
+3
-3
index.js
src/api/index.js
+9
-2
SubHolding.js
src/container/Laporan/SubHolding.js
+390
-0
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+217
-82
No files found.
package-lock.json
View file @
ad05c9e0
...
...
@@ -4223,9 +4223,9 @@
}
},
"caniuse-lite"
:
{
"version"
:
"1.0.300011
11
"
,
"resolved"
:
"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.300011
11
.tgz"
,
"integrity"
:
"sha512-
xnDje2wchd/8mlJu8sXvWxOGvMgv+uT3iZ3bkIAynKOzToCssWCmkz/ZIkQBs/2pUB4uwnJKVORWQ31UkbVjOg
=="
"version"
:
"1.0.300011
79
"
,
"resolved"
:
"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.300011
79
.tgz"
,
"integrity"
:
"sha512-
blMmO0QQujuUWZKyVrD1msR4WNDAqb/UPO1Sw2WWsQ7deoM5bJiicKnWJ1Y0NS/aGINSnKPIWBMw5luX+NDUCA
=="
},
"capture-exit"
:
{
"version"
:
"2.0.0"
,
...
...
src/api/index.js
View file @
ad05c9e0
...
...
@@ -240,7 +240,10 @@ const create = (type = "") => {
const
getReportPLDetailMR
=
(
body
)
=>
api
.
post
(
'/transaction/db_profit_loss_detail/monthly_report/get_report_hierarki'
,
body
)
const
getReportPLMB
=
(
body
)
=>
api
.
post
(
'/transaction/db_profit_loss/master_budget/get_report_hierarki'
,
body
)
const
getReportPLMR
=
(
body
)
=>
api
.
post
(
'/transaction/db_profit_loss/monthly_report/get_report_hierarki'
,
body
)
const
getReportTPMB
=
(
body
)
=>
api
.
post
(
'/transaction/db_tax_planning/master_budget/get_report_hierarki'
,
body
)
const
getReportTPMR
=
(
body
)
=>
api
.
post
(
'/transaction/db_tax_planning/monthly_report/get_report_hierarki'
,
body
)
const
getReportOIMB
=
(
body
)
=>
api
.
post
(
'/transaction/db_operating_indicator/master_budget/get_report_hierarki'
,
body
)
const
getReportOIMR
=
(
body
)
=>
api
.
post
(
'/transaction/db_operating_indicator/monthly_report/get_report_hierarki'
,
body
)
//CASH FLOW
const
getDetailReportCF
=
(
body
)
=>
api
.
post
(
'/transaction/cash_flow/master_budget/get_report_hierarki'
,
body
)
...
...
@@ -587,7 +590,11 @@ const create = (type = "") => {
getReportPLDetailMB
,
getReportPLDetailMR
,
getReportPLMB
,
getReportPLMR
getReportPLMR
,
getReportTPMB
,
getReportTPMR
,
getReportOIMB
,
getReportOIMR
}
}
...
...
src/container/Laporan/SubHolding.js
View file @
ad05c9e0
...
...
@@ -650,7 +650,397 @@ export default class SubHolding extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
else
if
(
this
.
state
.
report
.
value
===
5
)
{
api
.
create
().
getReportTPMB
(
payload
).
then
(
response
=>
{
// console.log(payload);
console
.
log
(
response
);
let
dataTable
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
let
res
=
response
.
data
.
data
const
handlePushChild
=
(
item
)
=>
{
let
indexIDzz
=
dataTable
.
findIndex
((
val
)
=>
val
[
1
]
===
item
.
id
)
if
(
indexIDzz
===
-
1
)
{
dataTable
.
push
([
item
.
type_report_id
,
item
.
type_report_tax
.
value_tbc
.
type_report_id
,
item
.
type_report_tax
.
value_fc
.
type_report_id
,
item
.
type_report_tax
.
value_tbf
.
type_report_id
,
item
.
id
,
item
.
parent
,
{
tbc
:
item
.
formula_tax
.
value_tbc
,
fcp
:
item
.
formula_tax
.
value_fc
,
tbf
:
item
.
formula_tax
.
value_tbf
},
item
.
level
,
item
.
description
,
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
january
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
tbc
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
january
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
fcp
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
january
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
tbf
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
february
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
tbc
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
february
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
fcp
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
february
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
tbf
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
march
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
tbc
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
march
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
fcp
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
march
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
tbf
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
april
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
tbc
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
april
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
fcp
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
april
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
tbf
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
may
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
tbc
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
may
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
fcp
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
may
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
tbf
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
june
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
tbc
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
june
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
fcp
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
june
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
tbf
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
july
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
tbc
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
july
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
fcp
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
july
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
tbf
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
august
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
tbc
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
tbc
===
null
?
"0"
:
item
.
tax_planning
.
august
.
tbc
===
""
?
"0"
:
item
.
tax_planning
.
august
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
august
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
fcp
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
august
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
tbf
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
september
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
tbc
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
september
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
fcp
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
september
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
tbf
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
october
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
tbc
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
october
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
fcp
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
october
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
tbf
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
november
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
tbc
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
november
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
fcp
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
november
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
tbf
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
december
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
tbc
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
december
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
fcp
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
december
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
tbf
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
tbf
},
Number
(
item
.
tax_planning
.
total_current_year
).
toFixed
(
1
),
{
tbc
:
item
.
tax_planning
.
total_next_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_next_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_next_year
.
tbf
},
{
tbc
:
item
.
tax_planning
.
total_more_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_more_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_more_year
.
tbf
},
item
.
order
,
{
tbc
:
item
.
condition_it_should_be_tax
.
value_tbc
,
fcp
:
item
.
condition_it_should_be_tax
.
value_fc
,
tbf
:
item
.
condition_it_should_be_tax
.
value_tbf
},
{
tbc
:
item
.
condition_if_wrong_tax
.
value_tbc
,
fcp
:
item
.
condition_if_wrong_tax
.
value_fc
,
tbf
:
item
.
condition_if_wrong_tax
.
value_tbf
},
item
.
tax_planning
.
forecast_tbc_formula
,
item
.
tax_planning
.
forecast_fcp_formula
,
item
.
tax_planning
.
forecast_tbf_formula
])
}
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
}
res
.
map
((
item
,
index
)
=>
{
dataTable
.
push
([
item
.
type_report_id
,
item
.
type_report_tax
.
value_tbc
.
type_report_id
,
item
.
type_report_tax
.
value_fc
.
type_report_id
,
item
.
type_report_tax
.
value_tbf
.
type_report_id
,
item
.
id
,
item
.
parent
,
{
tbc
:
item
.
formula_tax
.
value_tbc
,
fcp
:
item
.
formula_tax
.
value_fc
,
tbf
:
item
.
formula_tax
.
value_tbf
},
item
.
level
,
item
.
description
,
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
january
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
tbc
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
january
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
fcp
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
january
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
tbf
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
february
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
tbc
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
february
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
fcp
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
february
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
tbf
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
march
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
tbc
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
march
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
fcp
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
march
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
tbf
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
april
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
tbc
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
april
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
fcp
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
april
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
tbf
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
may
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
tbc
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
may
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
fcp
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
may
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
tbf
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
june
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
tbc
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
june
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
fcp
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
june
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
tbf
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
july
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
tbc
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
july
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
fcp
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
july
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
tbf
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
august
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
tbc
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
tbc
===
null
?
"0"
:
item
.
tax_planning
.
august
.
tbc
===
""
?
"0"
:
item
.
tax_planning
.
august
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
august
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
fcp
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
august
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
tbf
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
september
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
tbc
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
september
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
fcp
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
september
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
tbf
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
october
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
tbc
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
october
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
fcp
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
october
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
tbf
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
november
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
tbc
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
november
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
fcp
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
november
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
tbf
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
december
.
tbc
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
tbc
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
december
.
fcp
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
fcp
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
tax_planning
.
december
.
tbf
).
toFixed
(
1
)
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
tbf
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
tbf
},
Number
(
item
.
tax_planning
.
total_current_year
).
toFixed
(
1
),
{
tbc
:
item
.
tax_planning
.
total_next_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_next_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_next_year
.
tbf
},
{
tbc
:
item
.
tax_planning
.
total_more_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_more_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_more_year
.
tbf
},
item
.
order
,
{
tbc
:
item
.
condition_it_should_be_tax
.
value_tbc
,
fcp
:
item
.
condition_it_should_be_tax
.
value_fc
,
tbf
:
item
.
condition_it_should_be_tax
.
value_tbf
},
{
tbc
:
item
.
condition_if_wrong_tax
.
value_tbc
,
fcp
:
item
.
condition_if_wrong_tax
.
value_fc
,
tbf
:
item
.
condition_if_wrong_tax
.
value_tbf
},
item
.
tax_planning
.
forecast_tbc_formula
,
item
.
tax_planning
.
forecast_fcp_formula
,
item
.
tax_planning
.
forecast_tbf_formula
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
})
this
.
setState
({
dataTable
,
loading
:
false
,
previewDownload
:
false
},
()
=>
{
console
.
log
(
this
.
state
.
dataTable
)
this
.
getTaxPlanMR
(
payload
)
})
}
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
})
}
})
}
else
if
(
this
.
state
.
report
.
value
===
21
)
{
let
OPID
=
null
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"periode"
:
this
.
state
.
periode
.
periode
}
api
.
create
().
getOpetratingIndID
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
)
{
// console.log(response.data.data)
if
(
response
.
data
.
data
)
{
OPID
=
response
.
data
.
data
.
operating_indicator_id
}
else
{
OPID
=
null
}
}
})
let
payloadOI
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"operating_indicator_id"
:
OPID
,
"periode"
:
this
.
state
.
periode
.
periode
,
"report_id"
:
21
}
api
.
create
().
getReportOIMB
(
payloadOI
).
then
(
response
=>
{
// console.log(payload);
console
.
log
(
response
);
let
dataTable
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
let
res
=
response
.
data
.
data
// // // console.log(res)
const
handlePushChild
=
(
item
)
=>
{
let
indexIDzz
=
dataTable
.
findIndex
((
val
)
=>
val
[
1
]
===
item
.
id
)
if
(
indexIDzz
===
-
1
)
{
dataTable
.
push
([
item
.
type_report_id
,
item
.
id
,
item
.
parent
,
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
uom
,
item
.
master_budget
.
total_actual_before
==
""
?
item
.
master_budget
.
total_actual_before
:
String
(
item
.
master_budget
.
total_actual_before
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_actual_before
)
:
Number
(
item
.
master_budget
.
total_actual_before
).
toFixed
(
1
),
item
.
master_budget
.
january
==
""
?
item
.
master_budget
.
january
:
String
(
item
.
master_budget
.
january
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
january
)
:
Number
(
item
.
master_budget
.
january
).
toFixed
(
1
),
item
.
master_budget
.
february
==
""
?
item
.
master_budget
.
february
:
String
(
item
.
master_budget
.
february
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
february
)
:
Number
(
item
.
master_budget
.
february
).
toFixed
(
1
),
item
.
master_budget
.
march
==
""
?
item
.
master_budget
.
march
:
String
(
item
.
master_budget
.
march
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
march
)
:
Number
(
item
.
master_budget
.
march
).
toFixed
(
1
),
item
.
master_budget
.
april
==
""
?
item
.
master_budget
.
april
:
String
(
item
.
master_budget
.
april
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
april
)
:
Number
(
item
.
master_budget
.
april
).
toFixed
(
1
),
item
.
master_budget
.
may
==
""
?
item
.
master_budget
.
may
:
String
(
item
.
master_budget
.
may
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
may
)
:
Number
(
item
.
master_budget
.
may
).
toFixed
(
1
),
item
.
master_budget
.
june
==
""
?
item
.
master_budget
.
june
:
String
(
item
.
master_budget
.
june
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
june
)
:
Number
(
item
.
master_budget
.
june
).
toFixed
(
1
),
item
.
master_budget
.
july
==
""
?
item
.
master_budget
.
july
:
String
(
item
.
master_budget
.
july
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
july
)
:
Number
(
item
.
master_budget
.
july
).
toFixed
(
1
),
item
.
master_budget
.
august
==
""
?
item
.
master_budget
.
august
:
String
(
item
.
master_budget
.
august
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
august
)
:
Number
(
item
.
master_budget
.
august
).
toFixed
(
1
),
item
.
master_budget
.
september
==
""
?
item
.
master_budget
.
september
:
String
(
item
.
master_budget
.
september
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
september
)
:
Number
(
item
.
master_budget
.
september
).
toFixed
(
1
),
item
.
master_budget
.
october
==
""
?
item
.
master_budget
.
october
:
String
(
item
.
master_budget
.
october
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
october
)
:
Number
(
item
.
master_budget
.
october
).
toFixed
(
1
),
item
.
master_budget
.
november
==
""
?
item
.
master_budget
.
november
:
String
(
item
.
master_budget
.
november
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
november
)
:
Number
(
item
.
master_budget
.
november
).
toFixed
(
1
),
item
.
master_budget
.
december
==
""
?
item
.
master_budget
.
december
:
String
(
item
.
master_budget
.
december
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
december
)
:
Number
(
item
.
master_budget
.
december
).
toFixed
(
1
),
item
.
master_budget
.
total_current_year
==
""
?
item
.
master_budget
.
total_current_year
:
String
(
item
.
master_budget
.
total_current_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_current_year
)
:
Number
(
item
.
master_budget
.
total_current_year
).
toFixed
(
1
),
item
.
order
])
}
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
}
res
.
map
((
item
,
index
)
=>
{
dataTable
.
push
([
item
.
type_report_id
,
item
.
id
,
item
.
parent
,
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
uom
,
item
.
master_budget
.
total_actual_before
==
""
?
item
.
master_budget
.
total_actual_before
:
String
(
item
.
master_budget
.
total_actual_before
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_actual_before
)
:
Number
(
item
.
master_budget
.
total_actual_before
).
toFixed
(
1
),
item
.
master_budget
.
january
==
""
?
item
.
master_budget
.
january
:
String
(
item
.
master_budget
.
january
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
january
)
:
Number
(
item
.
master_budget
.
january
).
toFixed
(
1
),
item
.
master_budget
.
february
==
""
?
item
.
master_budget
.
february
:
String
(
item
.
master_budget
.
february
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
february
)
:
Number
(
item
.
master_budget
.
february
).
toFixed
(
1
),
item
.
master_budget
.
march
==
""
?
item
.
master_budget
.
march
:
String
(
item
.
master_budget
.
march
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
march
)
:
Number
(
item
.
master_budget
.
march
).
toFixed
(
1
),
item
.
master_budget
.
april
==
""
?
item
.
master_budget
.
april
:
String
(
item
.
master_budget
.
april
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
april
)
:
Number
(
item
.
master_budget
.
april
).
toFixed
(
1
),
item
.
master_budget
.
may
==
""
?
item
.
master_budget
.
may
:
String
(
item
.
master_budget
.
may
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
may
)
:
Number
(
item
.
master_budget
.
may
).
toFixed
(
1
),
item
.
master_budget
.
june
==
""
?
item
.
master_budget
.
june
:
String
(
item
.
master_budget
.
june
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
june
)
:
Number
(
item
.
master_budget
.
june
).
toFixed
(
1
),
item
.
master_budget
.
july
==
""
?
item
.
master_budget
.
july
:
String
(
item
.
master_budget
.
july
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
july
)
:
Number
(
item
.
master_budget
.
july
).
toFixed
(
1
),
item
.
master_budget
.
august
==
""
?
item
.
master_budget
.
august
:
String
(
item
.
master_budget
.
august
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
august
)
:
Number
(
item
.
master_budget
.
august
).
toFixed
(
1
),
item
.
master_budget
.
september
==
""
?
item
.
master_budget
.
september
:
String
(
item
.
master_budget
.
september
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
september
)
:
Number
(
item
.
master_budget
.
september
).
toFixed
(
1
),
item
.
master_budget
.
october
==
""
?
item
.
master_budget
.
october
:
String
(
item
.
master_budget
.
october
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
october
)
:
Number
(
item
.
master_budget
.
october
).
toFixed
(
1
),
item
.
master_budget
.
november
==
""
?
item
.
master_budget
.
november
:
String
(
item
.
master_budget
.
november
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
november
)
:
Number
(
item
.
master_budget
.
november
).
toFixed
(
1
),
item
.
master_budget
.
december
==
""
?
item
.
master_budget
.
december
:
String
(
item
.
master_budget
.
december
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
december
)
:
Number
(
item
.
master_budget
.
december
).
toFixed
(
1
),
item
.
master_budget
.
total_current_year
==
""
?
item
.
master_budget
.
total_current_year
:
String
(
item
.
master_budget
.
total_current_year
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
total_current_year
)
:
Number
(
item
.
master_budget
.
total_current_year
).
toFixed
(
1
),
item
.
order
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
})
this
.
setState
({
dataTable
},
()
=>
{
console
.
log
(
this
.
state
.
dataTable
)
this
.
getOIMR
(
payloadOI
)
})
}
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
})
}
})
}
}
getOIMR
(
payload
)
{
// let payloadOI = {...payload, "periode": Number(this.state.periode.periode) - 1}
api
.
create
().
getReportOIMR
(
payload
).
then
(
response
=>
{
console
.
log
(
payload
);
console
.
log
(
response
);
let
dataTable
=
this
.
state
.
dataTable
let
dataTable2
=
[]
if
(
response
.
data
)
{
let
res
=
response
.
data
.
data
res
.
map
((
item
,
index
)
=>
{
let
indexID
=
dataTable
.
findIndex
((
val
)
=>
val
[
1
]
==
item
.
id
)
if
(
indexID
!=
-
1
)
{
const
handlePushChild
=
(
items
)
=>
{
let
indexIDzz
=
dataTable
.
findIndex
((
val
)
=>
val
[
1
]
===
items
.
id
)
// console.log(indexIDzz)
if
(
indexIDzz
!=
-
1
)
{
dataTable2
.
push
([...
dataTable
[
indexIDzz
],
items
.
master_budget
.
january
==
""
?
items
.
master_budget
.
january
:
String
(
items
.
master_budget
.
january
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
january
)
:
Number
(
items
.
master_budget
.
january
).
toFixed
(
1
),
items
.
master_budget
.
february
==
""
?
items
.
master_budget
.
february
:
String
(
items
.
master_budget
.
february
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
february
)
:
Number
(
items
.
master_budget
.
february
).
toFixed
(
1
),
items
.
master_budget
.
march
==
""
?
items
.
master_budget
.
march
:
String
(
items
.
master_budget
.
march
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
march
)
:
Number
(
items
.
master_budget
.
march
).
toFixed
(
1
),
items
.
master_budget
.
april
==
""
?
items
.
master_budget
.
april
:
String
(
items
.
master_budget
.
april
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
april
)
:
Number
(
items
.
master_budget
.
april
).
toFixed
(
1
),
items
.
master_budget
.
may
==
""
?
items
.
master_budget
.
may
:
String
(
items
.
master_budget
.
may
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
may
)
:
Number
(
items
.
master_budget
.
may
).
toFixed
(
1
),
items
.
master_budget
.
june
==
""
?
items
.
master_budget
.
june
:
String
(
items
.
master_budget
.
june
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
june
)
:
Number
(
items
.
master_budget
.
june
).
toFixed
(
1
),
items
.
master_budget
.
july
==
""
?
items
.
master_budget
.
july
:
String
(
items
.
master_budget
.
july
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
july
)
:
Number
(
items
.
master_budget
.
july
).
toFixed
(
1
),
items
.
master_budget
.
august
==
""
?
items
.
master_budget
.
august
:
String
(
items
.
master_budget
.
august
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
august
)
:
Number
(
items
.
master_budget
.
august
).
toFixed
(
1
),
items
.
master_budget
.
september
==
""
?
items
.
master_budget
.
september
:
String
(
items
.
master_budget
.
september
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
september
)
:
Number
(
items
.
master_budget
.
september
).
toFixed
(
1
),
items
.
master_budget
.
october
==
""
?
items
.
master_budget
.
october
:
String
(
items
.
master_budget
.
october
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
october
)
:
Number
(
items
.
master_budget
.
october
).
toFixed
(
1
),
items
.
master_budget
.
november
==
""
?
items
.
master_budget
.
november
:
String
(
items
.
master_budget
.
november
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
november
)
:
Number
(
items
.
master_budget
.
november
).
toFixed
(
1
),
items
.
master_budget
.
december
==
""
?
items
.
master_budget
.
december
:
String
(
items
.
master_budget
.
december
).
indexOf
(
"."
)
==
-
1
?
Number
(
items
.
master_budget
.
december
)
:
Number
(
items
.
master_budget
.
december
).
toFixed
(
1
),
])
}
if
(
items
.
children
!==
null
)
{
if
(
items
.
children
.
length
>
0
)
{
items
.
children
.
map
((
itemss
,
indexss
)
=>
{
handlePushChild
(
itemss
)
})
}
}
}
dataTable2
.
push
([...
dataTable
[
indexID
],
item
.
master_budget
.
january
==
""
?
item
.
master_budget
.
january
:
String
(
item
.
master_budget
.
january
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
january
)
:
Number
(
item
.
master_budget
.
january
).
toFixed
(
1
),
item
.
master_budget
.
february
==
""
?
item
.
master_budget
.
february
:
String
(
item
.
master_budget
.
february
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
february
)
:
Number
(
item
.
master_budget
.
february
).
toFixed
(
1
),
item
.
master_budget
.
march
==
""
?
item
.
master_budget
.
march
:
String
(
item
.
master_budget
.
march
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
march
)
:
Number
(
item
.
master_budget
.
march
).
toFixed
(
1
),
item
.
master_budget
.
april
==
""
?
item
.
master_budget
.
april
:
String
(
item
.
master_budget
.
april
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
april
)
:
Number
(
item
.
master_budget
.
april
).
toFixed
(
1
),
item
.
master_budget
.
may
==
""
?
item
.
master_budget
.
may
:
String
(
item
.
master_budget
.
may
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
may
)
:
Number
(
item
.
master_budget
.
may
).
toFixed
(
1
),
item
.
master_budget
.
june
==
""
?
item
.
master_budget
.
june
:
String
(
item
.
master_budget
.
june
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
june
)
:
Number
(
item
.
master_budget
.
june
).
toFixed
(
1
),
item
.
master_budget
.
july
==
""
?
item
.
master_budget
.
july
:
String
(
item
.
master_budget
.
july
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
july
)
:
Number
(
item
.
master_budget
.
july
).
toFixed
(
1
),
item
.
master_budget
.
august
==
""
?
item
.
master_budget
.
august
:
String
(
item
.
master_budget
.
august
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
august
)
:
Number
(
item
.
master_budget
.
august
).
toFixed
(
1
),
item
.
master_budget
.
september
==
""
?
item
.
master_budget
.
september
:
String
(
item
.
master_budget
.
september
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
september
)
:
Number
(
item
.
master_budget
.
september
).
toFixed
(
1
),
item
.
master_budget
.
october
==
""
?
item
.
master_budget
.
october
:
String
(
item
.
master_budget
.
october
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
october
)
:
Number
(
item
.
master_budget
.
october
).
toFixed
(
1
),
item
.
master_budget
.
november
==
""
?
item
.
master_budget
.
november
:
String
(
item
.
master_budget
.
november
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
november
)
:
Number
(
item
.
master_budget
.
november
).
toFixed
(
1
),
item
.
master_budget
.
december
==
""
?
item
.
master_budget
.
december
:
String
(
item
.
master_budget
.
december
).
indexOf
(
"."
)
==
-
1
?
Number
(
item
.
master_budget
.
december
)
:
Number
(
item
.
master_budget
.
december
).
toFixed
(
1
),
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
}
})
console
.
log
(
dataTable2
)
this
.
setState
({
dataTable
:
dataTable2
,
previewTable
:
true
,
loading
:
false
,
previewDownload
:
false
})
}
else
{
this
.
setState
({
dataTable
:
[],
previewTable
:
false
,
loading
:
false
,
previewDownload
:
false
})
}
})
}
getTaxPlanMR
(
payload
)
{
let
payloadLast
=
{
"report_id"
:
this
.
state
.
report
.
value
,
"revision"
:
this
.
state
.
revisionType
,
"periode"
:
Number
(
this
.
state
.
periode
.
periode
)
-
1
,
"company_id"
:
this
.
state
.
company
.
company_id
,
"submission_id"
:
this
.
state
.
submissionID
}
api
.
create
().
getReportTPMR
(
payload
).
then
(
response
=>
{
console
.
log
(
payload
);
console
.
log
(
response
);
let
dataTable
=
this
.
state
.
dataTable
// let dataTable2 = []
// if (response.data) {
// let res = response.data.data
// res.map((item,index) => {
// let indexID = dataTable.findIndex((val) => val[1] == item.id)
// if (indexID != -1) {
// const handlePushChild = (items) => {
// let indexIDzz = dataTable.findIndex((val) => val[1] === items.id)
// // console.log(indexIDzz)
// if (indexIDzz != -1) {
// dataTable2.push([...dataTable[indexIDzz],
// Number(items.balance_sheet.january).toFixed(1),
// Number(items.balance_sheet.february).toFixed(1),
// Number(items.balance_sheet.march).toFixed(1),
// Number(items.balance_sheet.april).toFixed(1),
// Number(items.balance_sheet.may).toFixed(1),
// Number(items.balance_sheet.june).toFixed(1),
// Number(items.balance_sheet.july).toFixed(1),
// Number(items.balance_sheet.august).toFixed(1),
// Number(items.balance_sheet.september).toFixed(1),
// Number(items.balance_sheet.october).toFixed(1),
// Number(items.balance_sheet.november).toFixed(1),
// Number(items.balance_sheet.december).toFixed(1),
// ])
// }
// if (items.children !== null) {
// if (items.children.length > 0) {
// items.children.map((itemss, indexss) => {
// handlePushChild(itemss)
// })
// }
// }
// }
// dataTable2.push([...dataTable[indexID],
// Number(item.balance_sheet.january).toFixed(1),
// Number(item.balance_sheet.february).toFixed(1),
// Number(item.balance_sheet.march).toFixed(1),
// Number(item.balance_sheet.april).toFixed(1),
// Number(item.balance_sheet.may).toFixed(1),
// Number(item.balance_sheet.june).toFixed(1),
// Number(item.balance_sheet.july).toFixed(1),
// Number(item.balance_sheet.august).toFixed(1),
// Number(item.balance_sheet.september).toFixed(1),
// Number(item.balance_sheet.october).toFixed(1),
// Number(item.balance_sheet.november).toFixed(1),
// Number(item.balance_sheet.december).toFixed(1),
// ])
// if (item.children !== null) {
// if (item.children.length > 0) {
// item.children.map((items, indexs) => {
// handlePushChild(items)
// })
// }
// }
// }
// })
// console.log(dataTable2)
// // this.setState({ dataTable: dataTable2, previewTable: true, loading: false, previewDownload: true })
// this.setState({ dataTable2 }, () => {
// // console.log(this.state.dataTable2)
// this.getTaxPlanLastMR(payloadLast)
// })
// } else {
// this.setState({ dataTable: [], previewTable: false, loading: false, previewDownload: false })
// }
})
}
getBalanceSheetMR
(
payload
)
{
...
...
src/container/Laporan/TableSubHolding.js
View file @
ad05c9e0
...
...
@@ -5896,21 +5896,6 @@ export default class TableSubHolding extends Component {
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},{
name
:
`Actual Last Year
${
Number
(
this
.
props
.
periode
)
-
1
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
...
...
@@ -6006,7 +5991,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
39
],
tableMeta
,
12
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
39
],
tableMeta
,
0
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6020,7 +6005,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
39
],
tableMeta
,
12
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
39
],
tableMeta
,
0
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6040,7 +6025,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
39
],
tableMeta
,
12
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
39
],
tableMeta
,
0
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6080,7 +6065,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
40
],
tableMeta
,
1
3
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
40
],
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6095,7 +6080,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
40
],
tableMeta
,
1
3
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
40
],
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6115,7 +6100,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
40
],
tableMeta
,
1
3
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
40
],
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6155,7 +6140,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
41
],
tableMeta
,
14
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
41
],
tableMeta
,
2
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6170,7 +6155,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
41
],
tableMeta
,
14
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
41
],
tableMeta
,
2
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6190,7 +6175,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
41
],
tableMeta
,
14
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
41
],
tableMeta
,
2
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6230,7 +6215,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
42
],
tableMeta
,
15
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
42
],
tableMeta
,
3
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6245,7 +6230,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
42
],
tableMeta
,
15
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
42
],
tableMeta
,
3
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6275,7 +6260,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
42
],
tableMeta
,
15
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
42
],
tableMeta
,
3
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6317,7 +6302,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
43
],
tableMeta
,
16
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
43
],
tableMeta
,
4
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6332,7 +6317,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
43
],
tableMeta
,
16
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
43
],
tableMeta
,
4
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6362,7 +6347,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
43
],
tableMeta
,
16
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
43
],
tableMeta
,
4
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6402,7 +6387,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
44
],
tableMeta
,
17
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
44
],
tableMeta
,
5
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6417,7 +6402,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
44
],
tableMeta
,
17
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
44
],
tableMeta
,
5
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6447,7 +6432,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
44
],
tableMeta
,
17
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
44
],
tableMeta
,
5
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6487,7 +6472,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
45
],
tableMeta
,
18
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
45
],
tableMeta
,
6
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6502,7 +6487,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
45
],
tableMeta
,
18
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
45
],
tableMeta
,
6
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6532,7 +6517,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
45
],
tableMeta
,
18
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
45
],
tableMeta
,
6
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6572,7 +6557,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
46
],
tableMeta
,
19
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
46
],
tableMeta
,
7
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6587,7 +6572,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
46
],
tableMeta
,
19
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
46
],
tableMeta
,
7
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6617,7 +6602,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
46
],
tableMeta
,
19
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
46
],
tableMeta
,
7
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6659,7 +6644,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
47
],
tableMeta
,
20
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
47
],
tableMeta
,
8
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6674,7 +6659,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
47
],
tableMeta
,
20
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
47
],
tableMeta
,
8
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6704,7 +6689,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
47
],
tableMeta
,
20
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
47
],
tableMeta
,
8
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6744,7 +6729,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
48
],
tableMeta
,
21
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
48
],
tableMeta
,
9
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6759,7 +6744,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
48
],
tableMeta
,
21
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
48
],
tableMeta
,
9
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6789,7 +6774,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
48
],
tableMeta
,
21
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
48
],
tableMeta
,
9
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6829,7 +6814,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
49
],
tableMeta
,
22
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
49
],
tableMeta
,
10
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6844,7 +6829,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
49
],
tableMeta
,
22
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
49
],
tableMeta
,
10
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6874,7 +6859,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
49
],
tableMeta
,
22
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
49
],
tableMeta
,
10
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -6914,7 +6899,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
50
],
tableMeta
,
23
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
50
],
tableMeta
,
11
)).
toFixed
(
1
)}
/
>
<
/span
>
:
...
...
@@ -6929,7 +6914,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
50
],
tableMeta
,
23
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
50
],
tableMeta
,
11
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -6959,7 +6944,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
50
],
tableMeta
,
23
)).
toFixed
(
1
)}
value
=
{
Number
(
handleValueFormulaDBPLMR
(
tableMeta
.
rowData
[
50
],
tableMeta
,
11
)).
toFixed
(
1
)}
/
>
:
null
...
...
@@ -9919,10 +9904,10 @@ export default class TableSubHolding extends Component {
<
div
style
=
{{
width
:
300
}}
>
{
tableMeta
.
rowData
[
4
]
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
).
toUpperCase
()}
<
/span
>
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
tableMeta
.
rowData
[
0
]
===
4
?
""
:
tableMeta
.
rowData
[
5
]
).
toUpperCase
()}
<
/span
>
:
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
<
span
style
=
{{
fontSize
:
12
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
span
style
=
{{
fontSize
:
12
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
tableMeta
.
rowData
[
5
]
}
<
/span
>
<
/div
>
}
<
/div
>
...
...
@@ -9954,7 +9939,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
defaultValue
=
{
val
}
defaultValue
=
{
tableMeta
.
rowData
[
6
]
}
// onBlur={(event) => {
// // updateValue(event.target.value)
// handleNotes(event.target.value, tableMeta)
...
...
@@ -10028,7 +10013,7 @@ export default class TableSubHolding extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
console
.
log
(
tableMeta
)
//
console.log(tableMeta)
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -10049,7 +10034,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
1
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
8
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10072,7 +10057,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
2
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
9
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10095,7 +10080,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
3
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
10
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10118,7 +10103,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
4
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
11
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10143,7 +10128,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
5
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
12
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10166,7 +10151,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
6
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
13
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10189,7 +10174,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
7
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
14
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10212,7 +10197,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
8
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
15
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10237,7 +10222,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
9
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
16
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10260,7 +10245,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
10
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
17
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10283,7 +10268,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
11
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
18
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10306,7 +10291,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
12
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
19
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10378,7 +10363,7 @@ export default class TableSubHolding extends Component {
),
setCellProps
:
()
=>
({
style2
}),
customBodyRender
:
(
value
,
tableMeta
,
updateValue
)
=>
{
console
.
log
(
tableMeta
)
// console.log(tableMeta)/
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
...
...
@@ -10399,7 +10384,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
1
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
22
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10422,7 +10407,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
2
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
23
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10445,7 +10430,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
3
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
24
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10468,7 +10453,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
4
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
25
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10493,7 +10478,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
5
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
26
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10516,7 +10501,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
6
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
27
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10539,7 +10524,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
7
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
28
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10562,7 +10547,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
8
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
29
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10587,7 +10572,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
9
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
30
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10610,7 +10595,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
10
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
31
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10633,7 +10618,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
11
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
32
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10656,7 +10641,7 @@ export default class TableSubHolding extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
12
).
toFixed
(
1
)}
value
=
{
Number
(
tableMeta
.
rowData
[
33
]
).
toFixed
(
1
)}
/
>
}
/
>
...
...
@@ -10669,7 +10654,157 @@ export default class TableSubHolding extends Component {
)
}
}
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
]
const
columns
=
[]
...
...
@@ -10679,7 +10814,7 @@ export default class TableSubHolding extends Component {
<
div
style
=
{{
padding
:
'0px 20px 20px 20px'
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
350
:
100
)
}}
>
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
data
=
{
this
.
props
.
type
===
21
?
datas
:
dataTable2
}
data
=
{
dataTable2
}
columns
=
{
this
.
props
.
type
===
2
?
columnDBBS
:
this
.
props
.
type
===
1
?
columnDBPLDetail
:
this
.
props
.
type
===
3
?
columnDBPL
:
this
.
props
.
type
===
4
?
columnDBFR
:
this
.
props
.
type
===
5
?
columnDBTP
:
this
.
props
.
type
===
21
?
columnDBOI
:
columns
}
options
=
{
options
}
/
>
...
...
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