mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-14 16:02:34 +08:00
325 lines
6.2 KiB
JavaScript
325 lines
6.2 KiB
JavaScript
|
|
// All references
|
|
const REFERENCES = [
|
|
{
|
|
id: 25,
|
|
type: 'FieldText',
|
|
support: false,
|
|
description: 'Account Element',
|
|
alias: ['Account']
|
|
},
|
|
{
|
|
id: 12,
|
|
type: 'FieldNumber',
|
|
support: true,
|
|
description: 'Number with 4 decimals',
|
|
alias: ['Amount']
|
|
},
|
|
{
|
|
id: 33,
|
|
type: 'FieldText',
|
|
support: false,
|
|
description: 'Resource Assignment',
|
|
alias: ['Assignment']
|
|
},
|
|
{
|
|
id: 23,
|
|
type: 'FieldBinary',
|
|
support: true,
|
|
description: 'Binary Data',
|
|
alias: ['Binary']
|
|
},
|
|
{
|
|
id: 28,
|
|
type: 'FieldButton',
|
|
support: true,
|
|
description: 'Command Button - starts a process',
|
|
alias: ['Button']
|
|
},
|
|
{
|
|
id: 53370,
|
|
type: 'FieldText',
|
|
support: false,
|
|
description: 'Chart',
|
|
alias: ['Chart']
|
|
},
|
|
{
|
|
id: 27,
|
|
type: 'FieldText',
|
|
support: false,
|
|
description: 'Color element',
|
|
alias: ['Color']
|
|
},
|
|
{
|
|
id: 37,
|
|
type: 'FieldNumber',
|
|
support: true,
|
|
description: 'Costs + Prices (minimum currency precision but if exists more)',
|
|
alias: ['Costs+Prices', 'CostsPrices', 'Cost Prices']
|
|
},
|
|
{
|
|
id: 15,
|
|
type: 'FieldDate',
|
|
support: true,
|
|
description: 'Date mm/dd/yyyy',
|
|
alias: ['Date']
|
|
},
|
|
{
|
|
id: 16,
|
|
type: 'FieldDate',
|
|
support: true,
|
|
description: 'Date with time',
|
|
alias: ['DateTime', 'Date Time', 'Date+Time']
|
|
},
|
|
{
|
|
id: 39,
|
|
type: 'FieldText',
|
|
support: true,
|
|
description: 'Local File',
|
|
alias: ['FileName', 'File Name']
|
|
},
|
|
{
|
|
id: 38,
|
|
type: 'FieldText',
|
|
support: true,
|
|
description: 'Local File Path',
|
|
alias: ['FilePath', 'File Path']
|
|
},
|
|
{
|
|
id: 53670,
|
|
type: 'FieldText',
|
|
support: true,
|
|
description: 'Local File Path or Name',
|
|
alias: ['FilePathOrName', 'File Path Or Name']
|
|
},
|
|
{
|
|
id: 13,
|
|
type: 'FieldNumber',
|
|
support: true,
|
|
description: '10 Digit Identifier',
|
|
alias: ['ID']
|
|
},
|
|
{
|
|
id: 32,
|
|
type: 'FieldImage',
|
|
support: true,
|
|
description: 'Binary Image Data',
|
|
alias: ['Image']
|
|
},
|
|
{
|
|
id: 11,
|
|
type: 'FieldNumber',
|
|
support: true,
|
|
description: '10 Digit numeric',
|
|
alias: ['Integer']
|
|
},
|
|
{
|
|
id: 17,
|
|
type: 'FieldSelect',
|
|
support: true,
|
|
description: 'Reference List',
|
|
alias: ['List']
|
|
},
|
|
{
|
|
id: 21,
|
|
type: 'FieldText',
|
|
support: false,
|
|
description: 'Location/Address',
|
|
alias: ['Location', 'Location (Address)', 'Location/Address']
|
|
},
|
|
{
|
|
id: 31,
|
|
type: 'FieldSelect',
|
|
support: true,
|
|
description: 'Warehouse Locator Data type',
|
|
alias: ['Locator', 'Locator (WH)', 'Locator/WH']
|
|
},
|
|
{
|
|
id: 34,
|
|
type: 'FieldTextLong',
|
|
support: true,
|
|
description: 'Reference List',
|
|
alias: ['Memo']
|
|
},
|
|
{
|
|
id: 22,
|
|
type: 'FieldNumber',
|
|
support: true,
|
|
description: 'Float Number',
|
|
alias: ['Number']
|
|
},
|
|
{
|
|
id: 42,
|
|
type: 'FieldText',
|
|
support: true,
|
|
description: 'Printer Name',
|
|
alias: ['PrinterName', 'Printer Name']
|
|
},
|
|
{
|
|
id: 35,
|
|
type: 'FieldText',
|
|
support: false,
|
|
description: 'Product Attribute',
|
|
alias: ['ProductAttribute', 'Product Attribute']
|
|
},
|
|
{
|
|
id: 29,
|
|
type: 'FieldNumber',
|
|
support: true,
|
|
description: 'Quantity data type',
|
|
alias: ['Quantity']
|
|
},
|
|
{
|
|
id: 30,
|
|
type: 'FieldSelect',
|
|
support: true,
|
|
description: 'Search Field',
|
|
alias: ['Search']
|
|
},
|
|
{
|
|
id: 10,
|
|
type: 'FieldText',
|
|
support: true,
|
|
description: 'Character String',
|
|
alias: ['String']
|
|
},
|
|
{
|
|
id: 18,
|
|
type: 'FieldSelect',
|
|
support: true,
|
|
description: 'Table List',
|
|
alias: ['Table']
|
|
},
|
|
{
|
|
id: 19,
|
|
type: 'FieldSelect',
|
|
support: true,
|
|
description: 'Direct Table Access',
|
|
alias: ['TableDirect', 'Table Direct']
|
|
},
|
|
{
|
|
id: 14,
|
|
type: 'FieldText',
|
|
support: true,
|
|
description: 'Character String up to 2000 characters',
|
|
alias: ['Text']
|
|
},
|
|
{
|
|
id: 36,
|
|
type: 'FieldTextLong',
|
|
support: true,
|
|
description: 'Text (Long) - Text > 2000 characters',
|
|
alias: ['TextLong', 'Text Long']
|
|
},
|
|
{
|
|
id: 24,
|
|
type: 'FieldTime',
|
|
support: true,
|
|
description: 'Time',
|
|
alias: ['Time']
|
|
},
|
|
{
|
|
id: 40,
|
|
type: 'FieldText',
|
|
support: true,
|
|
description: 'URL',
|
|
alias: ['URL', 'Url']
|
|
},
|
|
{
|
|
id: 20,
|
|
type: 'FieldYesNo',
|
|
support: true,
|
|
description: 'CheckBox',
|
|
alias: ['YesNo', 'Yes No', 'Yes-No']
|
|
}
|
|
]
|
|
export default REFERENCES
|
|
|
|
export const FIELD_RANGE = [
|
|
{
|
|
id: 12,
|
|
type: 'Amount',
|
|
description: 'Number with 4 decimals',
|
|
alias: ['Amount']
|
|
},
|
|
{
|
|
id: 37,
|
|
type: 'Costs+Prices',
|
|
description: 'Costs + Prices (minimum currency precision but if exists more)',
|
|
alias: ['Costs+Prices', 'CostsPrices', 'Cost Prices']
|
|
},
|
|
{
|
|
id: 15,
|
|
type: 'Date',
|
|
description: 'Date mm/dd/yyyy',
|
|
alias: ['Date']
|
|
},
|
|
{
|
|
id: 16,
|
|
type: 'DateTime',
|
|
description: 'Date with time',
|
|
alias: ['DateTime', 'Date Time', 'Date+Time']
|
|
},
|
|
{
|
|
id: 11,
|
|
type: 'Integer',
|
|
description: '10 Digit numeric',
|
|
alias: ['Integer']
|
|
},
|
|
{
|
|
id: 22,
|
|
type: 'Number',
|
|
description: 'Float Number',
|
|
alias: ['Number']
|
|
},
|
|
{
|
|
id: 29,
|
|
type: 'Quantity',
|
|
description: 'Quantity data type',
|
|
alias: ['Quantity']
|
|
},
|
|
{
|
|
id: 24,
|
|
type: 'Time',
|
|
description: 'Time',
|
|
alias: ['Time']
|
|
}
|
|
]
|
|
|
|
export const FIELD_NOT_SHOWED = [
|
|
{
|
|
id: 28,
|
|
type: 'Button',
|
|
description: 'Command Button - starts a process',
|
|
alias: ['Button']
|
|
}
|
|
]
|
|
|
|
/**
|
|
* Fields with this column name, changed all fields is read only
|
|
*/
|
|
export const FIELD_READ_ONLY_FORM = [
|
|
{
|
|
columnName: 'IsActive', // column name of field
|
|
defaultValue: true, // default value when loading
|
|
valueIsReadOnlyForm: false, // value that activates read-only form
|
|
isChangedAllForm: false // change the entire form to read only including this field
|
|
},
|
|
{
|
|
columnName: 'Processed',
|
|
defaultValue: false,
|
|
valueIsReadOnlyForm: true,
|
|
isChangedAllForm: true
|
|
},
|
|
{
|
|
columnName: 'Processing',
|
|
defaultValue: true,
|
|
valueIsReadOnlyForm: false,
|
|
isChangedAllForm: true
|
|
}
|
|
]
|
|
|
|
export const FIELDS_FLOATS = ['Amount', 'Costs+Prices', 'Number']
|
|
|
|
export const FIELDS_QUANTITY = ['Amount', 'Costs+Prices', 'Integer', 'Number', 'Quantity']
|