Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
2217adfb
Commit
2217adfb
authored
Aug 25, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
++
parent
dd31a8d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
10 deletions
+25
-10
ReportItems.js
src/container/MasterData/ReportItems.js
+8
-8
CustomTable.js
src/library/CustomTable.js
+17
-2
No files found.
src/container/MasterData/ReportItems.js
View file @
2217adfb
...
...
@@ -65,14 +65,14 @@ export default class ReportItems extends Component {
report
:
item
[
0
],
company
:
item
[
1
],
orders
:
item
[
2
],
description
:
item
[
3
],
parent
:
item
[
4
],
uom
:
item
[
5
],
weight
:
String
(
item
[
6
])
,
description
:
item
[
3
]
===
undefined
?
null
:
item
[
3
]
,
parent
:
item
[
4
]
===
undefined
?
null
:
item
[
4
]
,
uom
:
item
[
5
]
===
undefined
?
null
:
item
[
5
]
,
weight
:
item
[
6
]
===
undefined
?
""
:
item
[
6
]
,
type_report
:
item
[
7
],
formula
:
item
[
8
],
condition_it_should_be
:
item
[
9
],
condition_if_wrong
:
item
[
10
],
condition_it_should_be
:
item
[
9
]
===
undefined
?
null
:
item
[
9
]
,
condition_if_wrong
:
item
[
10
]
===
undefined
?
null
:
item
[
10
]
,
start_date
:
item
[
11
],
end_date
:
item
[
12
],
})
...
...
@@ -81,12 +81,12 @@ export default class ReportItems extends Component {
let
body
=
{
item_report
:
payload
}
console
.
log
(
JSON
.
stringify
(
body
))
this
.
setState
({
payload
:
body
,
buttonError
:
false
})
api
.
create
().
checkUploadReportItems
(
body
).
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
.
data
.
status
===
"success"
)
{
console
.
log
(
response
)
let
dataRow
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
return
[
index
+
1
,
item
.
report
,
...
...
src/library/CustomTable.js
View file @
2217adfb
...
...
@@ -84,6 +84,21 @@ exports.customTable = function () {
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
:
{
main
:
{
position
:
'relative'
,
...
...
@@ -97,7 +112,7 @@ exports.customTable = function () {
borderBottom
:
"1px rgba(0,0,0,0.1) solid"
,
backgroundColor
:
'#f2f6fa'
,
//'rgba(0,76,151,0.05)',
color
:
"#555"
,
padding
:
"10px
15
px"
,
padding
:
"10px
20
px"
,
height
:
"auto"
},
},
...
...
@@ -119,7 +134,7 @@ exports.customTable = function () {
borderBottom
:
"1px rgba(0,0,0,0.1) solid"
,
backgroundColor
:
'#f2f6fa'
,
//'rgba(0,76,151,0.05)',
color
:
"#555"
,
padding
:
"10px
1
5px"
,
padding
:
"10px
2
5px"
,
height
:
"auto"
},
toolButton
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment