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
c0fec4a5
Commit
c0fec4a5
authored
Aug 14, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item laporan
parent
eaf8314e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
17 deletions
+54
-17
CreateItemLaporan.js
...container/MasterData/formItemLaporan/CreateItemLaporan.js
+54
-17
No files found.
src/container/MasterData/formItemLaporan/CreateItemLaporan.js
View file @
c0fec4a5
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
{
TextField
,
Typography
}
from
'@material-ui/core'
;
import
{
TextField
,
Typography
}
from
'@material-ui/core'
;
import
{
DatePicker
}
from
'@material-ui/pickers'
;
const
companies
=
[
const
companies
=
[
{
{
...
@@ -62,12 +63,34 @@ const companies = [
...
@@ -62,12 +63,34 @@ const companies = [
];
];
export
default
class
CreateItemLaporan
extends
Component
{
export
default
class
CreateItemLaporan
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
startDate
:
new
Date
(),
endDate
:
new
Date
(),
}
}
handleStartDate
=
(
date
)
=>
{
this
.
setState
({
startDate
:
date
});
};
handleEndDate
=
(
date
)
=>
{
this
.
setState
({
endDate
:
date
});
};
componentDidMount
()
{
componentDidMount
()
{
console
.
log
(
this
.
props
.
data
);
console
.
log
(
this
.
props
.
data
);
}
}
render
()
{
render
()
{
const
{
startDate
,
endDate
}
=
this
.
state
;
return
(
return
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
...
@@ -269,33 +292,39 @@ export default class CreateItemLaporan extends Component {
...
@@ -269,33 +292,39 @@ export default class CreateItemLaporan extends Component {
}}
}}
/
>
/
>
<
/div
>
<
/div
>
<
div
style
=
{{
padding
:
10
,
borderRadius
:
5
}}
>
<
div
className
=
"margin-top-10px"
style
=
{{
padding
:
10
,
borderRadius
:
5
}}
>
<
TextField
<
DatePicker
style
=
{{
width
:
'100%'
}}
margin
=
"normal"
id
=
"startDate"
id
=
"startDate"
value
=
{
startDate
}
onChange
=
{
this
.
handleStartDate
}
label
=
"Berlaku Mulai"
label
=
"Berlaku Mulai"
// value={this.props.data.business_unit_name}
format
=
"dd MMMM yyyy"
KeyboardButtonProps
=
{{
'aria-label'
:
'change date'
,
}}
inputProps
=
{{
inputProps
=
{{
style
:
{
style
:
{
fontSize
:
11
,
fontSize
:
11
,
fontWeight
:
600
,
fontWeight
:
600
,
fontFamily
:
'Nunito Sans, sans-serif'
,
fontFamily
:
'Nunito Sans, sans-serif'
,
paddingLeft
:
10
paddingLeft
:
10
}
}
}}
}}
InputLabelProps
=
{{
InputLabelProps
=
{{
style
:
{
style
:
{
fontSize
:
11
,
fontSize
:
11
,
color
:
'#7e8085'
,
fontWeight
:
600
,
fontWeight
:
600
,
fontFamily
:
'Nunito Sans, sans-serif'
,
fontFamily
:
'Nunito Sans, sans-serif'
,
color
:
'#7e8085'
,
paddingLeft
:
10
paddingLeft
:
10
}
}
}}
}}
>
<
/TextField
>
style
=
{{
padding
:
0
,
margin
:
0
,
width
:
'100%'
}}
/
>
<
/div
>
<
/div
>
<
div
style
=
{{
backgroundColor
:
'#e8e8e8'
,
padding
:
10
,
borderRadius
:
5
}}
>
<
div
className
=
"margin-top-10px"
style
=
{{
backgroundColor
:
'#e8e8e8'
,
padding
:
10
,
borderRadius
:
5
}}
>
<
TextField
<
TextField
style
=
{{
width
:
'100%'
}}
style
=
{{
width
:
'100%'
}}
value
=
"Aktif"
value
=
"Aktif"
...
@@ -512,28 +541,36 @@ export default class CreateItemLaporan extends Component {
...
@@ -512,28 +541,36 @@ export default class CreateItemLaporan extends Component {
/
>
/
>
<
/div
>
<
/div
>
<
div
className
=
"margin-top-10px"
style
=
{{
padding
:
10
,
borderRadius
:
5
}}
>
<
div
className
=
"margin-top-10px"
style
=
{{
padding
:
10
,
borderRadius
:
5
}}
>
<
TextField
<
DatePicker
style
=
{{
width
:
'100%'
}}
margin
=
"normal"
id
=
"unit"
id
=
"endDate"
value
=
{
endDate
}
onChange
=
{
this
.
handleEndDate
}
label
=
"Berlaku Hingga"
label
=
"Berlaku Hingga"
// defaultValue={"31 Desember 2100"}
format
=
"dd MMMM yyyy"
KeyboardButtonProps
=
{{
'aria-label'
:
'change date'
,
}}
inputProps
=
{{
inputProps
=
{{
style
:
{
style
:
{
fontSize
:
11
,
fontSize
:
11
,
fontWeight
:
600
,
fontWeight
:
600
,
fontFamily
:
'Nunito Sans, sans-serif'
fontFamily
:
'Nunito Sans, sans-serif'
,
paddingLeft
:
10
}
}
}}
}}
InputLabelProps
=
{{
InputLabelProps
=
{{
style
:
{
style
:
{
fontSize
:
11
,
fontSize
:
11
,
color
:
'#7e8085'
,
fontWeight
:
600
,
fontWeight
:
600
,
fontFamily
:
'Nunito Sans, sans-serif'
,
fontFamily
:
'Nunito Sans, sans-serif'
,
color
:
'#7e8085'
paddingLeft
:
10
}
}
}}
}}
>
<
/TextField
>
style
=
{{
padding
:
0
,
margin
:
0
,
width
:
'100%'
}}
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment