Commit a30c5bfb authored by faisalhamdi's avatar faisalhamdi

update company

parent 22820550
......@@ -129,7 +129,7 @@ const create = (baseURL = 'https://trftia.eksad.com/tia-reporting-dev/public/')
getAM,
getPerusahaan,
createPerusahaan,
updatePerusahaan
updatePerusahaan,
getApprovedByAM,
createAM,
updateAM
......
......@@ -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"
......
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