Enhance Filament model to include vendor information
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added 'vendor' to the columns and filters in the Filament model for improved data categorization. - Introduced a new 'vendor' field with specific properties, enhancing the model's capability to track filament sources.
This commit is contained in:
parent
cc712e7427
commit
1a68456be6
@ -81,6 +81,7 @@ export const Filament = {
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'vendor',
|
||||
'material',
|
||||
'density',
|
||||
'diameter',
|
||||
@ -89,10 +90,11 @@ export const Filament = {
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
filters: ['_id', 'name', 'material', 'cost', 'costWithTax'],
|
||||
filters: ['_id', 'name', 'vendor', 'material', 'cost', 'costWithTax'],
|
||||
sorters: [
|
||||
'name',
|
||||
'createdAt',
|
||||
'vendor',
|
||||
'material',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
@ -126,6 +128,13 @@ export const Filament = {
|
||||
readOnly: true,
|
||||
columnWidth: 180
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
@ -135,11 +144,13 @@ export const Filament = {
|
||||
columnWidth: 200
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
name: 'vendor',
|
||||
label: 'Vendor',
|
||||
type: 'object',
|
||||
objectType: 'vendor',
|
||||
required: false,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
},
|
||||
{
|
||||
name: 'material',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user