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
a30c5bfb
Commit
a30c5bfb
authored
Aug 13, 2020
by
faisalhamdi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update company
parent
22820550
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
index.js
src/api/index.js
+1
-1
CreatePerusahaan.js
src/container/MasterData/Perusahaan/CreatePerusahaan.js
+26
-2
No files found.
src/api/index.js
View file @
a30c5bfb
...
...
@@ -129,7 +129,7 @@ const create = (baseURL = 'https://trftia.eksad.com/tia-reporting-dev/public/')
getAM
,
getPerusahaan
,
createPerusahaan
,
updatePerusahaan
updatePerusahaan
,
getApprovedByAM
,
createAM
,
updateAM
...
...
src/container/MasterData/Perusahaan/CreatePerusahaan.js
View file @
a30c5bfb
...
...
@@ -12,6 +12,7 @@ export default class CreatePerusahaan extends Component {
company
:
''
,
parentCompany
:
''
,
unitBisnis
:
''
,
totalReport
:
''
,
startDate
:
''
,
endDate
:
''
...
...
@@ -30,6 +31,7 @@ export default class CreatePerusahaan extends Component {
company
:
data
.
company_name
,
parentCompany
:
data
.
parent
,
unitBisnis
:
data
.
businessUnitId
,
totalReport
:
data
.
total_report
,
startDate
:
data
.
start_date
,
endDate
:
data
.
end_date
})
...
...
@@ -66,8 +68,9 @@ export default class CreatePerusahaan extends Component {
let
payload
=
{
"company_id"
:
this
.
state
.
id
,
"company_name"
:
this
.
state
.
company
,
"parent"
:
this
.
state
.
parentCompany
,
"business_unit_id"
:
this
.
state
.
unitBisnis
,
"parent"
:
this
.
state
.
parentCompany
,
"total_report"
:
this
.
state
.
totalReport
,
"start_date"
:
this
.
state
.
startDate
,
"end_date"
:
this
.
state
.
endDate
}
...
...
@@ -277,6 +280,27 @@ export default class CreatePerusahaan extends Component {
style
=
{{
padding
:
0
,
margin
:
0
,
width
:
'100%'
}}
/
>
<
/div
>
<
div
className
=
"margin-top-10px"
style
=
{{
padding
:
10
,
borderRadius
:
5
}}
>
<
TextField
style
=
{{
width
:
'100%'
}}
id
=
"report"
label
=
"Jumlah Laporan"
value
=
{
this
.
state
.
totalReport
}
inputProps
=
{{
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
onChange
=
{(
e
)
=>
this
.
setState
({
totalReport
:
e
.
target
.
value
})}
>
<
/TextField
>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -469,7 +493,7 @@ export default class CreatePerusahaan extends Component {
>
<
/TextField
>
<
/div
>
<
div
className
=
"margin-top-10px"
style
=
{{
padding
:
10
,
borderRadius
:
5
}}
>
<
div
style
=
{{
padding
:
10
,
borderRadius
:
5
}}
>
<
DatePicker
margin
=
"normal"
id
=
"endDate"
...
...
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