Commit 5158b3cf authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'faisal' into 'master'

update company

See merge request !64
parents 586128e4 60fd0171
...@@ -12,6 +12,7 @@ export default class CreatePerusahaan extends Component { ...@@ -12,6 +12,7 @@ export default class CreatePerusahaan extends Component {
company: '', company: '',
parentCompany: '', parentCompany: '',
unitBisnis: '', unitBisnis: '',
totalReport: '',
startDate: '', startDate: '',
endDate: '' endDate: ''
...@@ -30,6 +31,7 @@ export default class CreatePerusahaan extends Component { ...@@ -30,6 +31,7 @@ export default class CreatePerusahaan extends Component {
company: data.company_name, company: data.company_name,
parentCompany: data.parent, parentCompany: data.parent,
unitBisnis: data.businessUnitId, unitBisnis: data.businessUnitId,
totalReport: data.total_report,
startDate: data.start_date, startDate: data.start_date,
endDate: data.end_date endDate: data.end_date
}) })
...@@ -66,8 +68,9 @@ export default class CreatePerusahaan extends Component { ...@@ -66,8 +68,9 @@ export default class CreatePerusahaan extends Component {
let payload = { let payload = {
"company_id": this.state.id, "company_id": this.state.id,
"company_name": this.state.company, "company_name": this.state.company,
"parent": this.state.parentCompany,
"business_unit_id": this.state.unitBisnis, "business_unit_id": this.state.unitBisnis,
"parent": this.state.parentCompany,
"total_report": this.state.totalReport,
"start_date": this.state.startDate, "start_date": this.state.startDate,
"end_date": this.state.endDate "end_date": this.state.endDate
} }
...@@ -277,6 +280,27 @@ export default class CreatePerusahaan extends Component { ...@@ -277,6 +280,27 @@ export default class CreatePerusahaan extends Component {
style={{ padding: 0, margin: 0, width: '100%' }} style={{ padding: 0, margin: 0, width: '100%' }}
/> />
</div> </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>
</div> </div>
...@@ -469,7 +493,7 @@ export default class CreatePerusahaan extends Component { ...@@ -469,7 +493,7 @@ export default class CreatePerusahaan extends Component {
> >
</TextField> </TextField>
</div> </div>
<div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}> <div style={{ padding: 10, borderRadius: 5 }}>
<DatePicker <DatePicker
margin="normal" margin="normal"
id="endDate" id="endDate"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment