Commit befc2725 authored by Rifka Kurnia Irfiana's avatar Rifka Kurnia Irfiana

update

parent 2523da7a
...@@ -92,8 +92,8 @@ export default class ApprovalMatrix extends Component { ...@@ -92,8 +92,8 @@ export default class ApprovalMatrix extends Component {
let body = { let body = {
approval_matrix: payload approval_matrix: payload
} }
console.log(resp.rows[1])
this.setState({ payload: body, buttonError: false, judul: resp.rows[1][0] }) this.setState({ payload: body, buttonError: false, judul: resp.rows[1][0] })
console.log(this.state.payload)
} }
}); });
} }
...@@ -621,7 +621,7 @@ export default class ApprovalMatrix extends Component { ...@@ -621,7 +621,7 @@ export default class ApprovalMatrix extends Component {
filter: false, filter: false,
sort: false, sort: false,
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
console.log(tableMeta) // console.log(tableMeta)
return ( return (
<div style={{ display: 'flex' }}> <div style={{ display: 'flex' }}>
{this.state.btnedit && <span> {this.state.btnedit && <span>
......
...@@ -722,13 +722,12 @@ export default class TaxPlanning extends Component { ...@@ -722,13 +722,12 @@ export default class TaxPlanning extends Component {
} }
} }
const handleTotal = (tableMeta) => { const handleTotal = (tableMeta) => {
console.log(dataTable2[tableMeta.rowIndex]);
let total = 0 let total = 0
dataTable2[tableMeta.rowIndex].map((item, index) => { dataTable2[tableMeta.rowIndex].map((item, index) => {
if (index >= 9 && index <= 20) { if (index >= 9 && index <= 20) {
console.log(item);
let valItem = item.fcp == undefined || item.fcp == "" ? 0 : item.fcp let valItem = item.fcp == undefined || item.fcp == "" ? 0 : item.fcp
total += Number(valItem) total += Number(valItem)
console.log(item);
} }
}) })
dataTable2[tableMeta.rowIndex][21] = total dataTable2[tableMeta.rowIndex][21] = total
......
...@@ -63,15 +63,9 @@ export default class CreateManagementDoc extends Component { ...@@ -63,15 +63,9 @@ export default class CreateManagementDoc extends Component {
console.log(response); console.log(response);
if (response.data) { if (response.data) {
if (response.data.status === "success") { if (response.data.status === "success") {
if (response.data.data.length == 0){ this.setState({
this.setState({ sizeUpload: response.data.data[0] ? response.data.data[0].value === undefined ? "1" : response.data.data[0].value : "1"
sizeUpload: 1 })
})
} else {
this.setState({
sizeUpload: response.data.data[0].value
})
}
} }
} }
}) })
......
...@@ -65,15 +65,9 @@ export default class EditManagementDoc extends Component { ...@@ -65,15 +65,9 @@ export default class EditManagementDoc extends Component {
console.log(response); console.log(response);
if (response.data) { if (response.data) {
if (response.data.status === "success") { if (response.data.status === "success") {
if (response.data.data.length == 0){ this.setState({
this.setState({ sizeUpload: response.data.data[0] ? response.data.data[0].value === undefined ? "1" : response.data.data[0].value : "1"
sizeUpload: 1 })
})
} else {
this.setState({
sizeUpload: response.data.data[0].value
})
}
} }
} }
}) })
......
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