191 lines
4.4 KiB
JavaScript
191 lines
4.4 KiB
JavaScript
import Input from 'client/Elements/Input';
|
|
import withTitle from 'client/hocs/withTitle';
|
|
import Checkbox from 'client/Elements/Checkbox';
|
|
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: 'Интерес/ЛС',
|
|
elements: [
|
|
{
|
|
title: 'Выбор Интереса/ЛС',
|
|
Component: Select,
|
|
props: {
|
|
name: 'searchSource',
|
|
valueName: 'source'
|
|
}
|
|
},
|
|
{
|
|
title: 'Выбор Предложения',
|
|
Component: Select,
|
|
props: {
|
|
name: 'searchQuote',
|
|
valueName: 'quote'
|
|
}
|
|
},
|
|
{
|
|
title: 'Выбор шаблона',
|
|
Component: Select,
|
|
props: {
|
|
name: 'searchTemplate',
|
|
valueName: 'template'
|
|
}
|
|
},
|
|
{
|
|
title: 'Канал привлечения',
|
|
Component: Select,
|
|
props: {
|
|
name: 'selectChannel',
|
|
valueName: 'channel'
|
|
}
|
|
},
|
|
{
|
|
title: 'Новый контрагент',
|
|
Component: Input,
|
|
props: {
|
|
name: 'tbxNewClient',
|
|
valueName: 'newClient'
|
|
}
|
|
},
|
|
{
|
|
title: 'Существующий контрагент',
|
|
Component: Select,
|
|
props: {
|
|
name: 'searchAccount',
|
|
valueName: 'account'
|
|
}
|
|
},
|
|
{
|
|
title: 'ИНН',
|
|
Component: Input,
|
|
props: {
|
|
name: 'tbxINN',
|
|
valueName: 'INN'
|
|
}
|
|
},
|
|
{
|
|
title: 'КПП',
|
|
Component: Input,
|
|
props: {
|
|
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'
|
|
},
|
|
newLine: true
|
|
},
|
|
{
|
|
Component: Button,
|
|
props: {
|
|
type: 'primary',
|
|
name: 'btnCreateLead',
|
|
text: 'Создать интерес',
|
|
onClick: undefined
|
|
}
|
|
}
|
|
]
|
|
}
|
|
];
|