From bccac3a6202b2a9eb8ab5c34f2413fc8ee4ed332 Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 8 Jul 2022 15:19:22 +0300 Subject: [PATCH] Form/Insurance: remove dgo & ns --- .../Form/Insurance/FinGAPTable/config.ts | 2 +- .../Form/Insurance/InsuranceTable/types.ts | 2 +- config/tables/insurance-table.ts | 78 ------------------- 3 files changed, 2 insertions(+), 80 deletions(-) diff --git a/Components/Calculation/Form/Insurance/FinGAPTable/config.ts b/Components/Calculation/Form/Insurance/FinGAPTable/config.ts index 8451361..fd5545c 100644 --- a/Components/Calculation/Form/Insurance/FinGAPTable/config.ts +++ b/Components/Calculation/Form/Insurance/FinGAPTable/config.ts @@ -7,7 +7,7 @@ export const columns: ColumnsType = [ { key: 'riskName', dataIndex: 'riskName', - title: 'Риск', + title: 'Риск Safe Finance', width: '55%', }, { diff --git a/Components/Calculation/Form/Insurance/InsuranceTable/types.ts b/Components/Calculation/Form/Insurance/InsuranceTable/types.ts index 98f2771..3805ba7 100644 --- a/Components/Calculation/Form/Insurance/InsuranceTable/types.ts +++ b/Components/Calculation/Form/Insurance/InsuranceTable/types.ts @@ -1,6 +1,6 @@ import type { BaseOption, Status } from 'Elements/types'; -export type Keys = 'osago' | 'kasko' | 'dgo' | 'ns' | 'finGAP'; +export type Keys = 'osago' | 'kasko' | 'finGAP'; export type RowValues = { key: Keys; diff --git a/config/tables/insurance-table.ts b/config/tables/insurance-table.ts index 2dab343..4e60d5e 100644 --- a/config/tables/insurance-table.ts +++ b/config/tables/insurance-table.ts @@ -48,52 +48,6 @@ export const defaultOptions: Insurance.RowOptions[] = [ }, ], }, - { - key: 'dgo', - insured: [ - { - label: 'ЛП', - value: 100_000_000, - }, - { - label: 'ЛД', - value: 100_000_001, - }, - ], - insTerm: [ - { - label: '12 месяцев', - value: 100_000_000, - }, - { - label: 'Срок ДЛ', - value: 100_000_001, - }, - ], - }, - { - key: 'ns', - insured: [ - { - label: 'ЛП', - value: 100_000_000, - }, - { - label: 'ЛД', - value: 100_000_001, - }, - ], - insTerm: [ - { - label: '12 месяцев', - value: 100_000_000, - }, - { - label: 'Срок ДЛ', - value: 100_000_001, - }, - ], - }, { key: 'finGAP', insured: [ @@ -136,22 +90,6 @@ export const defaultValues: Insurance.RowValues[] = [ insCost: 0, insTerm: null, }, - { - key: 'dgo', - policyType: 'ДГО', - insuranceCompany: null, - insured: null, - insCost: 0, - insTerm: null, - }, - { - key: 'ns', - policyType: 'НС', - insuranceCompany: null, - insured: null, - insCost: 0, - insTerm: null, - }, { key: 'finGAP', policyType: 'Safe Finance', @@ -179,22 +117,6 @@ export const defaultStatuses: Insurance.RowStatuses[] = [ insured: 'Default', policyType: 'Default', }, - { - key: 'dgo', - insuranceCompany: 'Disabled', - insured: 'Disabled', - insTerm: 'Disabled', - insCost: 'Default', - policyType: 'Default', - }, - { - key: 'ns', - insuranceCompany: 'Disabled', - insured: 'Disabled', - insTerm: 'Disabled', - insCost: 'Default', - policyType: 'Default', - }, { key: 'finGAP', insCost: 'Disabled',