Commit 2217adfb authored by Deni Rinaldi's avatar Deni Rinaldi

++

parent dd31a8d8
...@@ -65,14 +65,14 @@ export default class ReportItems extends Component { ...@@ -65,14 +65,14 @@ export default class ReportItems extends Component {
report: item[0], report: item[0],
company: item[1], company: item[1],
orders: item[2], orders: item[2],
description: item[3], description: item[3] === undefined ? null : item[3],
parent: item[4], parent: item[4] === undefined ? null : item[4],
uom: item[5], uom: item[5] === undefined ? null : item[5],
weight: String(item[6]), weight: item[6] === undefined ? "" : item[6],
type_report: item[7], type_report: item[7],
formula: item[8], formula: item[8],
condition_it_should_be: item[9], condition_it_should_be: item[9] === undefined ? null : item[9],
condition_if_wrong: item[10], condition_if_wrong: item[10] === undefined ? null : item[10],
start_date: item[11], start_date: item[11],
end_date: item[12], end_date: item[12],
}) })
...@@ -81,12 +81,12 @@ export default class ReportItems extends Component { ...@@ -81,12 +81,12 @@ export default class ReportItems extends Component {
let body = { let body = {
item_report: payload item_report: payload
} }
console.log(JSON.stringify(body))
this.setState({ payload: body, buttonError: false }) this.setState({ payload: body, buttonError: false })
api.create().checkUploadReportItems(body).then(response => { api.create().checkUploadReportItems(body).then(response => {
console.log(response)
if (response.data.status === "success") { if (response.data.status === "success") {
console.log(response)
let dataRow = response.data.data.map((item, index) => { let dataRow = response.data.data.map((item, index) => {
return [ return [
index + 1, index + 1,
item.report, item.report,
......
...@@ -84,6 +84,21 @@ exports.customTable = function () { ...@@ -84,6 +84,21 @@ exports.customTable = function () {
verticalAlign: "top", verticalAlign: "top",
}, },
}, },
MuiTableCell: {
root: {
display: 'table-cell',
padding: 15,
paddingLeft: 25,
fontSize: '0.875rem',
textAlign: 'left',
fontFamily: "Roboto, Helvetica, Arial, sans-serif",
fontWeight: 400,
lineHeight: 1.43,
borderBottom: '1px solid rgba(224, 224, 224, 1)',
letterSpacing: '0.01071em',
verticalAlign: 'inherit',
}
},
MUIDataTableHead: { MUIDataTableHead: {
main: { main: {
position: 'relative', position: 'relative',
...@@ -97,7 +112,7 @@ exports.customTable = function () { ...@@ -97,7 +112,7 @@ exports.customTable = function () {
borderBottom: "1px rgba(0,0,0,0.1) solid", borderBottom: "1px rgba(0,0,0,0.1) solid",
backgroundColor: '#f2f6fa', //'rgba(0,76,151,0.05)', backgroundColor: '#f2f6fa', //'rgba(0,76,151,0.05)',
color: "#555", color: "#555",
padding: "10px 15px", padding: "10px 20px",
height: "auto" height: "auto"
}, },
}, },
...@@ -119,7 +134,7 @@ exports.customTable = function () { ...@@ -119,7 +134,7 @@ exports.customTable = function () {
borderBottom: "1px rgba(0,0,0,0.1) solid", borderBottom: "1px rgba(0,0,0,0.1) solid",
backgroundColor: '#f2f6fa', //'rgba(0,76,151,0.05)', backgroundColor: '#f2f6fa', //'rgba(0,76,151,0.05)',
color: "#555", color: "#555",
padding: "10px 15px", padding: "10px 25px",
height: "auto" height: "auto"
}, },
toolButton: { toolButton: {
......
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