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
8d8746e1
Commit
8d8746e1
authored
Aug 26, 2020
by
faisalhamdi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add CAT & update md-company
parent
067b985e
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
548 additions
and
170 deletions
+548
-170
BudgetTahunan.js
src/container/BudgetTahunan.js
+20
-2
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+394
-0
CreatePerusahaan.js
src/container/MasterData/Perusahaan/CreatePerusahaan.js
+13
-72
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+121
-96
No files found.
src/container/BudgetTahunan.js
View file @
8d8746e1
...
...
@@ -9,6 +9,7 @@ import { titleCase } from '../library/Utils';
import
ProfitLoss
from
'./BudgetTahunan/ProfitLoss'
;
import
TaxPlanning
from
'./BudgetTahunan/TaxPlanning'
;
import
FixedAssetsMovement
from
'./BudgetTahunan/FixedAssetsMovement'
;
import
CorporateAnnualTarget
from
'./BudgetTahunan/CorporateAnnualTarget'
;
export
default
class
BudgetTahunan
extends
Component
{
constructor
(
props
)
{
...
...
@@ -23,7 +24,8 @@ export default class BudgetTahunan extends Component {
company
:
null
,
report_id
:
null
,
visiblePL
:
false
,
visibleFAM
:
false
visibleFAM
:
false
,
visibleCAT
:
false
}
}
...
...
@@ -114,6 +116,15 @@ export default class BudgetTahunan extends Component {
visibleFAM
:
true
,
visibleTP
:
false
})
}
else
if
(
item
===
'CAT'
)
{
this
.
setState
({
visibleBudgetTahunan
:
false
,
visibleBS
:
false
,
visiblePL
:
false
,
visibleCAT
:
true
,
visibleFAM
:
false
,
visibleTP
:
false
})
}
}
...
...
@@ -314,7 +325,14 @@ export default class BudgetTahunan extends Component {
/
>
)}
{
this
.
state
.
visibleFAM
&&
(
<
FixedAssetsMovement
/>
<
FixedAssetsMovement
onClickClose
=
{()
=>
this
.
setState
({
visibleFAM
:
false
,
visibleBudgetTahunan
:
true
})}
/
>
)}
{
this
.
state
.
visibleCAT
&&
(
<
CorporateAnnualTarget
onClickClose
=
{()
=>
this
.
setState
({
visibleCAT
:
false
,
visibleBudgetTahunan
:
true
})}
/
>
)}
<
/div
>
);
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
0 → 100644
View file @
8d8746e1
This diff is collapsed.
Click to expand it.
src/container/MasterData/Perusahaan/CreatePerusahaan.js
View file @
8d8746e1
This diff is collapsed.
Click to expand it.
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
8d8746e1
...
...
@@ -238,6 +238,29 @@ export default class Perusahaan extends Component {
componentDidMount
()
{
this
.
getData
()
this
.
getPermission
()
}
getPermission
()
{
let
payload
=
{
menu
:
"company"
}
api
.
create
().
getPermission
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
create
:
response
.
data
.
data
.
create
,
edit
:
response
.
data
.
data
.
edit
,
load
:
true
})
}
else
{
this
.
setState
({
load
:
true
})
}
}
})
}
getData
()
{
...
...
@@ -472,6 +495,7 @@ export default class Perusahaan extends Component {
<
/Alert
>
<
/Snackbar
>
{
this
.
state
.
visiblePerusahaan
===
true
?
this
.
state
.
load
&&
(
<
div
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingRight
:
25
,
paddingLeft
:
25
,
marginTop
:
-
118
}}
>
<
label
style
=
{{
color
:
'white'
,
fontSize
:
16
,
alignSelf
:
'center'
,
width
:
'20%'
,
}}
>
Master
Data
-
Company
<
/label
>
...
...
@@ -570,8 +594,9 @@ export default class Perusahaan extends Component {
<
/div
>
<
/div
>
)
:
this
.
state
.
visibleVisual
==
true
?
this
.
state
.
visibleVisual
==
=
true
?
<
VisualPerusahaan
onClickClose
=
{()
=>
this
.
setState
({
visibleVisual
:
false
,
visiblePerusahaan
:
true
})}
height
=
{
this
.
props
.
height
}
...
...
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