fill sections
This commit is contained in:
parent
08afff0e89
commit
00be2fa7a1
@ -5,85 +5,183 @@ import InputNumber from 'client/Elements/InputNumber';
|
||||
import TextArea from 'client/Elements/TextArea';
|
||||
import Switch from 'client/Elements/Switch';
|
||||
import Select from 'client/Elements/Select';
|
||||
import Button from 'client/Elements/Button';
|
||||
|
||||
export default [
|
||||
{
|
||||
title: 'FirstSection',
|
||||
title: 'Интерес/ЛС',
|
||||
elements: [
|
||||
{
|
||||
Component: withTitle('Price')(InputNumber),
|
||||
title: 'Выбор Интереса/ЛС',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'tbxPrice',
|
||||
type: 'number',
|
||||
min: 0,
|
||||
max: 99999,
|
||||
step: 100.0,
|
||||
formatter: value => `% ${value}`,
|
||||
parser: value => value.replace('%', '').trim(),
|
||||
placeholder: 'Enter price',
|
||||
valueName: 'price'
|
||||
name: 'searchSource',
|
||||
valueName: 'source'
|
||||
}
|
||||
},
|
||||
{
|
||||
Component: withTitle('One')(InputNumber),
|
||||
title: 'Выбор Предложения',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'tbxOne',
|
||||
type: 'number',
|
||||
placeholder: 'Enter one',
|
||||
valueName: 'one',
|
||||
step: 10
|
||||
name: 'searchQuote',
|
||||
valueName: 'quote'
|
||||
}
|
||||
},
|
||||
{
|
||||
Component: withTitle('Total')(InputNumber),
|
||||
title: 'Выбор шаблона',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'total',
|
||||
readonly: true,
|
||||
type: 'number',
|
||||
step: 0.01,
|
||||
computedValue: 'total'
|
||||
name: 'searchTemplate',
|
||||
valueName: 'template'
|
||||
}
|
||||
},
|
||||
{
|
||||
Component: withTitle('TextArea')(TextArea),
|
||||
title: 'Канал привлечения',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'textarea',
|
||||
readonly: true,
|
||||
computedValue: 'total'
|
||||
name: 'selectChannel',
|
||||
valueName: 'channel'
|
||||
}
|
||||
},
|
||||
{
|
||||
Component: withTitle('Checkbox')(Checkbox),
|
||||
title: 'Новый контрагент',
|
||||
Component: Input,
|
||||
props: {
|
||||
name: 'cbx',
|
||||
valueName: 'cbx'
|
||||
name: 'tbxNewClient',
|
||||
valueName: 'newClient'
|
||||
}
|
||||
},
|
||||
{
|
||||
Component: withTitle('Switch')(Switch),
|
||||
title: 'Существующий контрагент',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'switch',
|
||||
valueName: 'cbx'
|
||||
name: 'searchAccount',
|
||||
valueName: 'account'
|
||||
}
|
||||
},
|
||||
{
|
||||
Component: withTitle('Cars')(Select),
|
||||
title: 'ИНН',
|
||||
Component: Input,
|
||||
props: {
|
||||
name: 'cars',
|
||||
valueName: 'cars'
|
||||
name: 'tbxINN',
|
||||
valueName: 'INN'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'SecondSection',
|
||||
elements: [
|
||||
},
|
||||
{
|
||||
name: 'priceonAnotherTab',
|
||||
Component: withTitle('Price on another tab')(Input),
|
||||
title: 'КПП',
|
||||
Component: Input,
|
||||
props: {
|
||||
type: 'number',
|
||||
valueName: 'price'
|
||||
name: 'tbxKPP',
|
||||
valueName: 'KPP'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Контактное лицо контрагента',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'searchContact',
|
||||
valueName: 'contact'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Контактное лицо',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'tbxContact',
|
||||
valueName: 'contact'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Телефон',
|
||||
Component: Input,
|
||||
props: {
|
||||
type: 'tel',
|
||||
name: 'tbxPhoneNumber',
|
||||
valueName: 'phoneNumber',
|
||||
pattern: undefined
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'E-mail',
|
||||
Component: Input,
|
||||
props: {
|
||||
type: 'email',
|
||||
name: 'tbxEmailAddress',
|
||||
valueName: 'emailAddress',
|
||||
pattern: undefined
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Пол контактного лица',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'selectContactGender',
|
||||
valueName: 'contactGender'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Поставщик',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'searchSupplier',
|
||||
valueName: 'supplier'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Финотдел',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'searchFinDepartment',
|
||||
valueName: 'finDepartment'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Агент',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'SearchAgent',
|
||||
valueName: 'agent'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Двойной агент',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'SearchDoubleAgent',
|
||||
valueName: 'doubleAgentgent'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Брокер',
|
||||
Component: Select,
|
||||
props: {
|
||||
name: 'SearchBroker',
|
||||
valueName: 'broker'
|
||||
}
|
||||
},
|
||||
// {
|
||||
// title: 'Комментарий к интересу',
|
||||
// Component: TextArea,
|
||||
// props: {
|
||||
// name: 'tbxCommentLead',
|
||||
// valueName: 'commentLead'
|
||||
// }
|
||||
// },
|
||||
{
|
||||
title: 'Пересчет без пересмотра',
|
||||
Component: Switch,
|
||||
props: {
|
||||
name: 'cbxRecalcWthtRevision',
|
||||
valueName: 'recalcWthtRevision'
|
||||
}
|
||||
},
|
||||
{
|
||||
Component: Button,
|
||||
props: {
|
||||
type: 'primary',
|
||||
name: 'btnCreateLead',
|
||||
text: 'Создать интерес',
|
||||
onClick: undefined
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user