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
4b93b16b
Commit
4b93b16b
authored
Sep 02, 2020
by
Rifka Kurnia Irfiana
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into rifka
parents
d2afc224
fbe62400
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
219 additions
and
194 deletions
+219
-194
BudgetTahunan.js
src/container/BudgetTahunan.js
+2
-0
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+39
-22
Home.js
src/container/Home.js
+12
-9
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+165
-163
CustomTable.js
src/library/CustomTable.js
+1
-0
No files found.
src/container/BudgetTahunan.js
View file @
4b93b16b
...
@@ -559,6 +559,8 @@ export default class BudgetTahunan extends Component {
...
@@ -559,6 +559,8 @@ export default class BudgetTahunan extends Component {
{
this
.
state
.
visibleBS
&&
(
{
this
.
state
.
visibleBS
&&
(
<
BalanceSheet
<
BalanceSheet
report_id
=
{
this
.
state
.
report_id
}
report_id
=
{
this
.
state
.
report_id
}
height
=
{
this
.
props
.
height
}
width
=
{
this
.
props
.
width
}
company
=
{
this
.
state
.
company
}
company
=
{
this
.
state
.
company
}
revision
=
{
this
.
state
.
revisionTable
}
revision
=
{
this
.
state
.
revisionTable
}
periode
=
{
this
.
state
.
periode
.
periode
}
periode
=
{
this
.
state
.
periode
.
periode
}
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
4b93b16b
This diff is collapsed.
Click to expand it.
src/container/Home.js
View file @
4b93b16b
...
@@ -473,22 +473,25 @@ export default function MiniDrawer() {
...
@@ -473,22 +473,25 @@ export default function MiniDrawer() {
<
/IconButton>
}
<
/IconButton>
}
{
open
&&
{
open
&&
<
div
style
=
{{
width
:
'100%'
,
marginTop
:
15
,
marginBottom
:
60
}}
>
<
div
style
=
{{
width
:
'100%'
,
marginTop
:
15
,
marginBottom
:
60
}}
>
<
Link
to
=
{
"profile"
}
>
<
Typography
style
=
{{
fontSize
:
14
,
color
:
'#fff'
,
textAlign
:
'center'
,
fontWeight
:
'bold'
}}
>
{
userFullname
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
14
,
color
:
'#fff'
,
textAlign
:
'center'
,
fontWeight
:
'bold'
}}
>
{
userFullname
}
<
/Typography
>
<
/Link
>
<
Link
to
=
{
"profile"
}
>
<
Typography
style
=
{{
fontSize
:
14
,
color
:
'#fff'
,
textAlign
:
'center'
,
marginTop
:
10
}}
>
{
userEmail
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
14
,
color
:
'#fff'
,
textAlign
:
'center'
,
marginTop
:
10
}}
>
{
userEmail
}
<
/Typography
>
<
/Link
>
<
/div
>
<
/div
>
}
}
<
/div
>
<
/div
>
<
Divider
/>
<
Divider
/>
{
open
&&
{
open
&&
<
div
style
=
{{
width
:
'100%'
,
textAlign
:
'-webkit-center'
,
marginTop
:
-
45
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
width
:
'100%'
,
textAlign
:
'-webkit-center'
,
marginTop
:
-
45
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
Link
to
=
{
"profile"
}
>
<
div
className
=
{
"sub-color"
}
style
=
{{
width
:
90
,
height
:
90
,
borderRadius
:
50
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
className
=
{
"sub-color"
}
style
=
{{
width
:
90
,
height
:
90
,
borderRadius
:
50
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
width
:
72
,
height
:
72
,
backgroundColor
:
'#838383'
,
borderRadius
:
50
,
alignSelf
:
'center'
}}
>
<
div
style
=
{{
width
:
72
,
height
:
72
,
backgroundColor
:
'#838383'
,
borderRadius
:
50
,
alignSelf
:
'center'
}}
>
<
Link
to
=
{
"profile"
}
>
{
userPhoto
===
""
?
null
:
<
img
src
=
{
userPhoto
}
style
=
{{
width
:
72
,
height
:
72
,
borderRadius
:
50
}}
/>
}
{
userPhoto
===
""
?
null
:
<
img
src
=
{
userPhoto
}
style
=
{{
width
:
72
,
height
:
72
,
borderRadius
:
50
}}
/>
}
<
/Link
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/Link
>
<
/div
>
<
/div
>
}
}
{
open
&&
application
.
length
>
0
&&
{
open
&&
application
.
length
>
0
&&
...
@@ -619,7 +622,7 @@ export default function MiniDrawer() {
...
@@ -619,7 +622,7 @@ export default function MiniDrawer() {
key
=
{
index
}
key
=
{
index
}
path
=
{
route
.
path
}
path
=
{
route
.
path
}
// exact={route.exact}
// exact={route.exact}
children
=
{
<
route
.
main
height
=
{
height
}
/>
}
children
=
{
<
route
.
main
height
=
{
height
}
width
=
{
width
}
/>
}
/>
/>
))}
))}
<
/Switch
>
<
/Switch
>
...
...
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
4b93b16b
...
@@ -78,7 +78,12 @@ export default class Perusahaan extends Component {
...
@@ -78,7 +78,12 @@ export default class Perusahaan extends Component {
}
}
console
.
log
(
resp
.
rows
[
1
])
console
.
log
(
resp
.
rows
[
1
])
this
.
setState
({
payload
:
body
,
buttonError
:
false
,
judul
:
resp
.
rows
[
1
][
0
]
})
this
.
setState
({
payload
:
body
,
buttonError
:
false
,
judul
:
resp
.
rows
[
1
][
0
]
})
api
.
create
().
checkUploadPerusahaan
(
body
).
then
(
response
=>
{
}
});
}
checkUpload
()
{
api
.
create
().
checkUploadPerusahaan
(
this
.
state
.
payload
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
ok
)
{
if
(
response
.
ok
)
{
...
@@ -147,7 +152,7 @@ export default class Perusahaan extends Component {
...
@@ -147,7 +152,7 @@ export default class Perusahaan extends Component {
}
}
},
},
{
{
name
:
"Unit Bisnis
"
,
name
:
"Business Unit
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
...
@@ -172,7 +177,7 @@ export default class Perusahaan extends Component {
...
@@ -172,7 +177,7 @@ export default class Perusahaan extends Component {
}
}
},
},
{
{
name
:
"Start Date
"
,
name
:
"Valid From
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
...
@@ -197,7 +202,7 @@ export default class Perusahaan extends Component {
...
@@ -197,7 +202,7 @@ export default class Perusahaan extends Component {
}
}
},
},
{
{
name
:
"End Date
"
,
name
:
"Valid To
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
...
@@ -229,11 +234,12 @@ export default class Perusahaan extends Component {
...
@@ -229,11 +234,12 @@ export default class Perusahaan extends Component {
}
}
]
]
console
.
log
(
dataRow
);
//
console.log(dataRow);
this
.
setState
({
this
.
setState
({
dataLoaded
:
true
,
dataLoaded
:
true
,
cols
:
columns
,
cols
:
columns
,
rows
:
dataRow
rows
:
dataRow
,
visibleUpload
:
false
,
visiblePerusahaan
:
false
});
});
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
...
@@ -251,11 +257,7 @@ export default class Perusahaan extends Component {
...
@@ -251,11 +257,7 @@ export default class Perusahaan extends Component {
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
})
}
}
console
.
log
(
response
);
})
})
}
});
}
}
componentDidMount
()
{
componentDidMount
()
{
...
@@ -287,7 +289,7 @@ export default class Perusahaan extends Component {
...
@@ -287,7 +289,7 @@ export default class Perusahaan extends Component {
getData
()
{
getData
()
{
api
.
create
().
getPerusahaan
().
then
((
response
)
=>
{
api
.
create
().
getPerusahaan
().
then
((
response
)
=>
{
console
.
log
(
response
)
//
console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
ok
)
{
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
==
'success'
)
{
if
(
response
.
data
.
status
==
'success'
)
{
...
@@ -307,10 +309,10 @@ export default class Perusahaan extends Component {
...
@@ -307,10 +309,10 @@ export default class Perusahaan extends Component {
})
})
}
}
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
dataTable
:
[]
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
})
}
}
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
dataTable
:
[]
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
})
}
}
})
})
}
}
...
@@ -789,7 +791,7 @@ export default class Perusahaan extends Component {
...
@@ -789,7 +791,7 @@ export default class Perusahaan extends Component {
}}
}}
onUpload
=
{()
=>
{
onUpload
=
{()
=>
{
this
.
state
.
judul
===
"MASTER DATA - COMPANY"
?
this
.
state
.
judul
===
"MASTER DATA - COMPANY"
?
this
.
setState
({
visibleUpload
:
false
,
visiblePerusahaan
:
false
}
)
:
this
.
checkUpload
(
)
:
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
}}
}}
/
>
/
>
...
...
src/library/CustomTable.js
View file @
4b93b16b
...
@@ -356,6 +356,7 @@ exports.customOptionsFixedColumn = function () {
...
@@ -356,6 +356,7 @@ exports.customOptionsFixedColumn = function () {
filterType
:
false
,
filterType
:
false
,
filter
:
false
,
filter
:
false
,
sort
:
false
,
sort
:
false
,
responsive
:
'scrollMaxHeight'
,
viewColumns
:
false
,
viewColumns
:
false
,
overflowX
:
'auto'
,
overflowX
:
'auto'
,
print
:
false
,
print
:
false
,
...
...
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