Skip to content

Commit

Permalink
reworking product table for new database
Browse files Browse the repository at this point in the history
  • Loading branch information
faris-isa committed May 6, 2021
1 parent a958b30 commit b96a155
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
10 changes: 8 additions & 2 deletions src/views/products/components/table/DepracateTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const fields = [
// {key: 'id', _style: {width: '5%'} },
{ key: 'model_produk', _style: { width: '40%'} },
// { key: 'status', _style: { width: '10%'} },
{ key: 'type_products', _style: { width: '15%'}, label: "Tipe Produk" },
{ key: 'harga_satuan', _style: { width: '20%'}, label:"Harga" },
{ key: 'type_products', _style: { width: '25%'}, label: "Tipe Produk" },
{ key: 'harga_satuan', _style: { width: '15%'}, label:"Harga" },
{key:'action', sorter: false },
];

Expand All @@ -30,6 +30,12 @@ const DepracateTable = (props) => {
itemsPerPage={10}
pagination={{align:"end"}}
scopedSlots = {{
'type_products' :
(item) =>(
<td>
{item.type.name}({item.type.code_name})
</td>
),
'harga_satuan' :
(item) =>(
<td>
Expand Down
10 changes: 8 additions & 2 deletions src/views/products/components/table/GoingTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const fields = [
// {key: 'id', _style: {width: '5%'} },
{ key: 'model_produk', _style: { width: '40%'} },
// { key: 'status', _style: { width: '10%'} },
{ key: 'type_products', _style: { width: '15%'}, label: "Tipe Produk" },
{ key: 'harga_satuan', _style: { width: '20%'}, label:"Harga" },
{ key: 'type_products', _style: { width: '25%'}, label: "Tipe Produk" },
{ key: 'harga_satuan', _style: { width: '15%'}, label:"Harga" },
{key:'action', sorter: false },
];

Expand All @@ -30,6 +30,12 @@ const GoingTable = (props) => {
itemsPerPage={10}
pagination={{align:"end"}}
scopedSlots = {{
'type_products' :
(item) =>(
<td>
{item.type.name}({item.type.code_name})
</td>
),
'harga_satuan' :
(item) =>(
<td>
Expand Down
10 changes: 8 additions & 2 deletions src/views/products/components/table/TableProducts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const fields = [
// {key: 'id', _style: {width: '5%'} },
{ key: 'model_produk', _style: { width: '40%'} },
// { key: 'status', _style: { width: '10%'} },
{ key: 'type_products', _style: { width: '15%'}, label: "Tipe Produk" },
{ key: 'harga_satuan', _style: { width: '20%'}, label:"Harga" },
{ key: 'type_products', _style: { width: '25%'}, label: "Tipe Produk" },
{ key: 'harga_satuan', _style: { width: '15%'}, label:"Harga" },
{key:'action', sorter: false },
];

Expand All @@ -30,6 +30,12 @@ const TableProducts = (props) => {
itemsPerPage={10}
pagination={{align:"end"}}
scopedSlots = {{
'type_products' :
(item) =>(
<td>
{item.type.name}({item.type.code_name})
</td>
),
'harga_satuan' :
(item) =>(
<td>
Expand Down

0 comments on commit b96a155

Please sign in to comment.