From e5714d8bca139510286b6d7613afd637759c4731 Mon Sep 17 00:00:00 2001 From: Chika Date: Tue, 8 Sep 2020 16:13:57 +0300 Subject: [PATCH] tab 5 elements layout & values --- .../Containers/Calculation/Sections/list.js | 129 +++++++++--------- src/core/config/initialOptions.ts | 3 +- src/core/config/initialValues.ts | 3 - 3 files changed, 65 insertions(+), 70 deletions(-) diff --git a/src/client/Containers/Calculation/Sections/list.js b/src/client/Containers/Calculation/Sections/list.js index 366f766..8a95a5c 100644 --- a/src/client/Containers/Calculation/Sections/list.js +++ b/src/client/Containers/Calculation/Sections/list.js @@ -1123,59 +1123,18 @@ export default [ }, ], }, - { - blocks: [ - { - elements: [], - }, - ], - }, { blocks: [ { elements: [ - // { - // title: 'Марка GPS', - // Component: Select, - // props: { - // name: 'selectGPSBrand', - // valueName: 'GPSBrand', - // }, - // }, - // { - // title: 'Модель GPS', - // Component: Select, - // props: { - // name: 'selectGPSModel', - // valueName: 'GPSModel', - // }, - // }, - { - title: 'Регион регистрации', - Component: Select, + title: 'Децентрализованное страхование', + Component: Switch, props: { - name: 'selectRegionRegistration', - valueName: 'regionRegistration', + name: 'cbxInsDecentral', + valueName: 'insDecentral', }, }, - { - title: 'Город регистрации', - Component: Select, - props: { - name: 'selectTownRegistration', - valueName: 'townRegistration', - }, - }, - // { - // title: 'ОПФ для расчета страховки', - // Component: Select, - // props: { - // name: 'selectInfuranceOPF', - // valueName: 'infuranceOPF', - // }, - // }, - { title: 'Тип страхования КАСКО', Component: Radio, @@ -1196,14 +1155,6 @@ export default [ valueName: 'insFranchise', }, }, - { - title: 'Децентрализованное страхование', - Component: Switch, - props: { - name: 'cbxInsDecentral', - valueName: 'insDecentral', - }, - }, // { // Component: Button, // props: { @@ -1230,18 +1181,21 @@ export default [ onClick: undefined, }, }, - - { - title: 'Стоимость страхования доп.оборудования', - Component: InputNumber, - props: { - min: '10000', - max: '1000000000', - step: '10000.00', - name: 'tbxInsAddEquipmentPrice', - valueName: 'insAddEquipmentPrice', - }, - }, + // { + // title: 'Стоимость страхования доп.оборудования', + // Component: InputNumber, + // props: { + // min: '10000', + // max: '1000000000', + // step: '10000.00', + // name: 'tbxInsAddEquipmentPrice', + // valueName: 'insAddEquipmentPrice', + // }, + // }, + ], + }, + { + elements: [ { title: 'Неограниченное число водителей', Component: Switch, @@ -1287,6 +1241,51 @@ export default [ onClick: undefined, }, }, + ], + }, + { + elements: [ + // { + // title: 'Марка GPS', + // Component: Select, + // props: { + // name: 'selectGPSBrand', + // valueName: 'GPSBrand', + // }, + // }, + // { + // title: 'Модель GPS', + // Component: Select, + // props: { + // name: 'selectGPSModel', + // valueName: 'GPSModel', + // }, + // }, + + { + title: 'Регион регистрации', + Component: Select, + props: { + name: 'selectRegionRegistration', + valueName: 'regionRegistration', + }, + }, + { + title: 'Город регистрации', + Component: Select, + props: { + name: 'selectTownRegistration', + valueName: 'townRegistration', + }, + }, + // { + // title: 'ОПФ для расчета страховки', + // Component: Select, + // props: { + // name: 'selectInfuranceOPF', + // valueName: 'infuranceOPF', + // }, + // }, { title: 'Стоимость страховки КАСКО на весь срок', Component: InputNumber, diff --git a/src/core/config/initialOptions.ts b/src/core/config/initialOptions.ts index e088995..b8a9215 100644 --- a/src/core/config/initialOptions.ts +++ b/src/core/config/initialOptions.ts @@ -229,8 +229,7 @@ const initialOptions: any = { value: 100000004, }, { - name: - 'Для доставки продуктов конечному потребителю (курьерская деятельность, доставка пиццы, продуктов питания и т.д.)', + name: 'Для доставки продуктов конечному потребителю', value: 100000005, }, { diff --git a/src/core/config/initialValues.ts b/src/core/config/initialValues.ts index a8140a7..be827f3 100644 --- a/src/core/config/initialValues.ts +++ b/src/core/config/initialValues.ts @@ -45,10 +45,7 @@ const initialValues: any = { calcBrokerRewardSum: 0, finDepartmentRewardSumm: 0, insKaskoType: 100000000, - insKaskoPriceLeasePeriod: 0, insDecentral: false, - insFranchise: 0, - insAddEquipmentPrice: 0, insUnlimitDrivers: true, insAgeDrivers: 18, insExpDrivers: 18,