374 lines
6.0 KiB
TypeScript
374 lines
6.0 KiB
TypeScript
import { MAX_FRANCHISE, MAX_LEASING_PERIOD } from 'constants/values';
|
|
import DownloadOutlined from 'Elements/icons/DownloadOutlined';
|
|
import date from 'tools/date';
|
|
import type { ElementsProps } from './elements-components';
|
|
|
|
const props: Partial<ElementsProps> = {
|
|
tbxLeaseObjectPrice: {
|
|
min: 0,
|
|
max: 1_000_000_000,
|
|
step: 10_000,
|
|
precision: 2,
|
|
},
|
|
tbxLeaseObjectPriceWthtVAT: {
|
|
min: 0,
|
|
max: 1_000_000_000,
|
|
step: 10_000,
|
|
precision: 2,
|
|
},
|
|
tbxVATInLeaseObjectPrice: {
|
|
min: 0,
|
|
max: 1_000_000_000,
|
|
step: 10_000,
|
|
precision: 2,
|
|
},
|
|
tbxEngineHours: {
|
|
min: 0,
|
|
step: 10,
|
|
precision: 2,
|
|
},
|
|
tbxSupplierDiscountRub: {
|
|
min: 0,
|
|
max: 1_000_000_000,
|
|
step: 10_000,
|
|
precision: 2,
|
|
|
|
addonBefore: '₽',
|
|
},
|
|
tbxSupplierDiscountPerc: {
|
|
min: 0,
|
|
max: 100,
|
|
precision: 2,
|
|
|
|
addonBefore: '%',
|
|
},
|
|
radioBalanceHolder: {
|
|
optionType: 'button',
|
|
buttonStyle: 'solid',
|
|
},
|
|
tbxSaleBonus: {
|
|
min: 0,
|
|
// max: 1.30,
|
|
step: 0.1,
|
|
precision: 2,
|
|
|
|
addonBefore: '%',
|
|
},
|
|
radioLastPaymentRule: {
|
|
block: true,
|
|
},
|
|
tbxFirstPaymentPerc: {
|
|
min: 0,
|
|
max: 50,
|
|
precision: 4,
|
|
|
|
addonBefore: '%',
|
|
},
|
|
tbxFirstPaymentRub: {
|
|
min: 0,
|
|
max: 1_000_000_000,
|
|
step: 10_000,
|
|
precision: 2,
|
|
|
|
addonBefore: '₽',
|
|
},
|
|
tbxLastPaymentPerc: {
|
|
min: 0,
|
|
max: 70,
|
|
step: 1,
|
|
precision: 6,
|
|
|
|
addonBefore: '%',
|
|
},
|
|
tbxLastPaymentRub: {
|
|
min: 0,
|
|
max: 1_000_000_000,
|
|
step: 10_000,
|
|
precision: 2,
|
|
|
|
addonBefore: '₽',
|
|
},
|
|
tbxRedemptionPaymentSum: {
|
|
min: 1000,
|
|
max: 2000,
|
|
step: 1000,
|
|
precision: 2,
|
|
|
|
addonBefore: '₽',
|
|
},
|
|
tbxLeasingPeriod: {
|
|
min: 13,
|
|
max: MAX_LEASING_PERIOD,
|
|
addonAfter: 'мес.',
|
|
},
|
|
tbxSubsidySum: {
|
|
min: 0,
|
|
precision: 2,
|
|
addonBefore: '₽',
|
|
},
|
|
tbxImportProgramSum: {
|
|
min: 0,
|
|
precision: 2,
|
|
addonBefore: '₽',
|
|
},
|
|
tbxAddEquipmentPrice: {
|
|
min: 0,
|
|
precision: 2,
|
|
addonBefore: '₽',
|
|
},
|
|
tbxParmentsDecreasePercent: {
|
|
min: 50,
|
|
max: 99,
|
|
},
|
|
tbxComissionPerc: {
|
|
min: 0,
|
|
max: 100,
|
|
},
|
|
tbxComissionRub: {
|
|
min: 0,
|
|
max: 1_000_000_000,
|
|
step: 10_000,
|
|
},
|
|
selectLeaseObjectType: {
|
|
showSearch: true,
|
|
},
|
|
selectBrand: {
|
|
showSearch: true,
|
|
},
|
|
selectModel: {
|
|
showSearch: true,
|
|
},
|
|
selectConfiguration: {
|
|
showSearch: true,
|
|
},
|
|
tbxLeaseObjectCount: {
|
|
min: 1,
|
|
max: 1000,
|
|
},
|
|
selectLeaseObjectUseFor: {
|
|
showSearch: true,
|
|
},
|
|
tbxLeaseObjectYear: {
|
|
min: 1994,
|
|
max: date().year(),
|
|
},
|
|
selectLeaseObjectCategory: {
|
|
showSearch: false,
|
|
},
|
|
selectEngineType: {
|
|
showSearch: true,
|
|
},
|
|
tbxLeaseObjectMotorPower: {
|
|
min: 0,
|
|
max: 20_000,
|
|
step: 10,
|
|
precision: 2,
|
|
},
|
|
tbxEngineVolume: {
|
|
min: 0,
|
|
max: 99.9999,
|
|
step: 0.5,
|
|
precision: 4,
|
|
},
|
|
tbxMaxMass: {
|
|
min: 0,
|
|
max: 999_999,
|
|
step: 100,
|
|
},
|
|
tbxCountSeats: {
|
|
min: 0,
|
|
max: 2000,
|
|
},
|
|
tbxMaxSpeed: {
|
|
min: 0,
|
|
max: 2000,
|
|
},
|
|
selectDealer: {
|
|
showSearch: true,
|
|
},
|
|
tbxDealerRewardSumm: {
|
|
min: 0,
|
|
max: 20,
|
|
step: 0.1,
|
|
precision: 2,
|
|
},
|
|
tbxDealerBrokerRewardSumm: {
|
|
min: 0,
|
|
max: 20,
|
|
step: 0.1,
|
|
precision: 2,
|
|
},
|
|
tbxIndAgentRewardSumm: {
|
|
min: 0,
|
|
max: 20,
|
|
step: 0.1,
|
|
precision: 2,
|
|
},
|
|
tbxCalcDoubleAgentRewardSumm: {
|
|
min: 0,
|
|
max: 20,
|
|
step: 0.1,
|
|
precision: 2,
|
|
},
|
|
tbxCalcBrokerRewardSum: {
|
|
min: 0,
|
|
max: 20,
|
|
step: 0.1,
|
|
precision: 2,
|
|
},
|
|
tbxFinDepartmentRewardSumm: {
|
|
min: 0,
|
|
max: 20,
|
|
step: 0.1,
|
|
precision: 2,
|
|
},
|
|
radioInsKaskoType: {
|
|
optionType: 'button',
|
|
buttonStyle: 'solid',
|
|
},
|
|
tbxInsFranchise: {
|
|
min: 0,
|
|
max: MAX_FRANCHISE,
|
|
step: 10_000,
|
|
precision: 2,
|
|
},
|
|
tbxInsAgeDrivers: {
|
|
// min: 18,
|
|
// max: 99,
|
|
},
|
|
tbxInsExpDrivers: {
|
|
// min: 0,
|
|
// max: 99,
|
|
},
|
|
selectRegionRegistration: {
|
|
showSearch: true,
|
|
},
|
|
selectTownRegistration: {
|
|
showSearch: true,
|
|
},
|
|
radioQuoteContactGender: {
|
|
optionType: 'button',
|
|
buttonStyle: 'solid',
|
|
},
|
|
btnCreateKP: {
|
|
type: 'primary',
|
|
text: 'Создать КП',
|
|
},
|
|
tbxCreditRate: {
|
|
min: 0,
|
|
max: 99.99,
|
|
step: 0.1,
|
|
},
|
|
tbxMaxPriceChange: {
|
|
min: 0,
|
|
max: 34_999_990,
|
|
step: 10_000,
|
|
},
|
|
tbxMinPriceChange: {
|
|
min: 0,
|
|
max: 34_999_990,
|
|
step: 10_000,
|
|
},
|
|
tbxImporterRewardPerc: {
|
|
min: 0,
|
|
max: 99.99,
|
|
step: 0.1,
|
|
precision: 2,
|
|
},
|
|
tbxImporterRewardRub: {
|
|
min: 0,
|
|
max: 1_000_000_000,
|
|
step: 10_000,
|
|
precision: 2,
|
|
},
|
|
selectLead: {
|
|
showSearch: true,
|
|
},
|
|
selectOpportunity: {
|
|
showSearch: true,
|
|
},
|
|
selectQuote: {
|
|
showSearch: true,
|
|
},
|
|
btnCalculate: {
|
|
text: 'Рассчитать график',
|
|
type: 'primary',
|
|
},
|
|
tbxIRR_Perc: {
|
|
min: 0,
|
|
max: 500,
|
|
step: 0.0001,
|
|
precision: 6,
|
|
},
|
|
linkDownloadKp: {
|
|
type: 'primary',
|
|
text: 'Скачать КП',
|
|
icon: DownloadOutlined,
|
|
},
|
|
tbxMileage: {
|
|
min: 0,
|
|
step: 100,
|
|
precision: 2,
|
|
},
|
|
cbxRecalcWithRevision: {
|
|
text: 'Пересчет без пересмотра',
|
|
style: {
|
|
marginBottom: '8px',
|
|
},
|
|
},
|
|
tbxTotalPayments: {
|
|
min: 0,
|
|
step: 1000,
|
|
precision: 2,
|
|
},
|
|
tbxVehicleTaxInYear: {
|
|
min: 0,
|
|
step: 100,
|
|
max: 9_999_999,
|
|
precision: 2,
|
|
},
|
|
tbxVehicleTaxInLeasingPeriod: {
|
|
min: 0,
|
|
step: 100,
|
|
max: 9_999_999,
|
|
precision: 2,
|
|
},
|
|
selectObjectRegionRegistration: {
|
|
showSearch: true,
|
|
},
|
|
tbxInsKaskoPriceLeasePeriod: {
|
|
min: 0,
|
|
precision: 2,
|
|
|
|
readOnly: true,
|
|
controls: false,
|
|
},
|
|
selectLegalClientRegion: {
|
|
showSearch: true,
|
|
},
|
|
selectLegalClientTown: {
|
|
showSearch: true,
|
|
},
|
|
radioInfuranceOPF: {
|
|
optionType: 'button',
|
|
buttonStyle: 'solid',
|
|
},
|
|
radioGraphType: {
|
|
spaceProps: {
|
|
direction: 'vertical',
|
|
},
|
|
},
|
|
radioObjectRegistration: {
|
|
spaceProps: {
|
|
direction: 'vertical',
|
|
},
|
|
},
|
|
radioTypePTS: {
|
|
spaceProps: {
|
|
direction: 'vertical',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default props;
|