Commit 723b4cd3 authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'deni-' into 'master'

Deni

See merge request !784
parents 8d006290 4e3dc5c4
...@@ -83,7 +83,7 @@ export default class BudgetTahunan extends Component { ...@@ -83,7 +83,7 @@ export default class BudgetTahunan extends Component {
}) })
this.props.selectIndex('Master Budget & CAT') this.props.selectIndex('Master Budget & CAT')
if (this.props.location.state !== undefined) { if (this.props.location.state !== undefined) {
// // console.log(this.props); console.log(this.props);
this.setState({ userType: this.props.location.state.userType, intent: 'Home', lastPeriod: this.props.location.state.rawData.periode, rawData: this.props.location.state.rawData }, () => { this.setState({ userType: this.props.location.state.userType, intent: 'Home', lastPeriod: this.props.location.state.rawData.periode, rawData: this.props.location.state.rawData }, () => {
this.getPermission() this.getPermission()
// this.checkApprover() // this.checkApprover()
...@@ -562,7 +562,7 @@ export default class BudgetTahunan extends Component { ...@@ -562,7 +562,7 @@ export default class BudgetTahunan extends Component {
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
}) })
let body = { let body = {
"approval_id": this.props.location.state == undefined ? this.state.approverID : this.state.rawData.approval_id, "approval_id": this.state.approverID,
"status": type, "status": type,
"detail": this.state.detailRevisiCheck "detail": this.state.detailRevisiCheck
} }
...@@ -572,7 +572,8 @@ export default class BudgetTahunan extends Component { ...@@ -572,7 +572,8 @@ export default class BudgetTahunan extends Component {
"max_periode": moment(this.state.maxDateRevision).format('YYYY-MM-DD') "max_periode": moment(this.state.maxDateRevision).format('YYYY-MM-DD')
} }
// // console.log(payload) // // console.log(payload)
// // console.log(body) // console.log(this.props.location);
// console.log(body)
api.create().approvalSubmission(body).then((res) => { api.create().approvalSubmission(body).then((res) => {
// // console.log(res) // // console.log(res)
// this.setState({ loading: false }, () => { // this.setState({ loading: false }, () => {
......
...@@ -718,7 +718,7 @@ export default class MonthlyReport extends Component { ...@@ -718,7 +718,7 @@ export default class MonthlyReport extends Component {
} }
render() { render() {
const columns = ["#", "Jenis Laporan", const columns = ["#", "Report Type",
{ {
name: "Revision", name: "Revision",
options: { options: {
...@@ -901,7 +901,7 @@ export default class MonthlyReport extends Component { ...@@ -901,7 +901,7 @@ export default class MonthlyReport extends Component {
})} })}
disableClearable disableClearable
style={{ width: 250 }} style={{ width: 250 }}
renderInput={(params) => <TextField {...params} label="Periode" margin="normal" style={{ marginTop: 7 }} />} renderInput={(params) => <TextField {...params} label="Period" margin="normal" style={{ marginTop: 7 }} />}
value={this.state.periode} value={this.state.periode}
/> />
</div> </div>
......
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