remove fields
This commit is contained in:
parent
26130621f2
commit
183f438819
@ -394,36 +394,6 @@ const sections: ISections[] = [
|
||||
valueName: 'supplierDiscountPerc',
|
||||
},
|
||||
},
|
||||
// TODO Input x Addon
|
||||
// {
|
||||
// title: 'Валюта доп.оборудования',
|
||||
// Component: Select,
|
||||
// props: {
|
||||
// name: 'selectAddEquipmentCurrency',
|
||||
// valueName: 'addEquipmentCurrency',
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: 'Стоимость доп.оборудования',
|
||||
// Component: InputNumber,
|
||||
// props: {
|
||||
// min: '0',
|
||||
// max: '1000000000',
|
||||
// step: '10000.00',
|
||||
// name: 'tbxAddEquipmentPrice',
|
||||
// valueName: 'addEquipmentPrice',
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: 'Плательщик доп.оборудования',
|
||||
// Component: Radio,
|
||||
// props: {
|
||||
// name: 'radioAddEquipmentPayer',
|
||||
// valueName: 'addEquipmentPayer',
|
||||
// withSearch: false,
|
||||
// style: 'button',
|
||||
// },
|
||||
// },
|
||||
],
|
||||
},
|
||||
{
|
||||
@ -857,17 +827,6 @@ const sections: ISections[] = [
|
||||
valueName: 'maxSpeed',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Грузоподъемность, т',
|
||||
Component: InputNumber,
|
||||
props: {
|
||||
min: '0',
|
||||
max: '999999999',
|
||||
step: '100',
|
||||
name: 'tbxTonnage',
|
||||
valueName: 'tonnage',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'ТС с прицепом',
|
||||
Component: Select,
|
||||
@ -1265,17 +1224,6 @@ const sections: ISections[] = [
|
||||
onClick: undefined,
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: 'Стоимость страхования доп.оборудования',
|
||||
// Component: InputNumber,
|
||||
// props: {
|
||||
// min: '10000',
|
||||
// max: '1000000000',
|
||||
// step: '10000.00',
|
||||
// name: 'tbxInsAddEquipmentPrice',
|
||||
// valueName: 'insAddEquipmentPrice',
|
||||
// },
|
||||
// },
|
||||
],
|
||||
},
|
||||
{
|
||||
@ -1531,14 +1479,6 @@ const sections: ISections[] = [
|
||||
valueName: 'insurance',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Отображать доп. оборудование',
|
||||
Component: Switch,
|
||||
props: {
|
||||
name: 'cbxAddEquipment',
|
||||
valueName: 'addEquipment',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Отображать регистрацию',
|
||||
Component: Switch,
|
||||
|
||||
@ -81,7 +81,6 @@ const autorunEffects: IAutorunEffect[] = [
|
||||
leaseObjectCategory,
|
||||
maxMass,
|
||||
withTrailer,
|
||||
tonnage,
|
||||
} = calculationStore.values;
|
||||
if (leaseObjectCategory === 100000002) {
|
||||
if (!maxMass) {
|
||||
@ -89,11 +88,6 @@ const autorunEffects: IAutorunEffect[] = [
|
||||
} else {
|
||||
calculationStore.setValidation('tbxMaxMass', true);
|
||||
}
|
||||
if (!tonnage) {
|
||||
calculationStore.setValidation('tbxTonnage', false);
|
||||
} else {
|
||||
calculationStore.setValidation('tbxTonnage', true);
|
||||
}
|
||||
if (!withTrailer) {
|
||||
calculationStore.setValidation('selectWithTrailer', false);
|
||||
} else {
|
||||
@ -101,7 +95,6 @@ const autorunEffects: IAutorunEffect[] = [
|
||||
}
|
||||
} else {
|
||||
calculationStore.setValidation('tbxMaxMass', true);
|
||||
calculationStore.setValidation('tbxTonnage', true);
|
||||
calculationStore.setValidation('selectWithTrailer', true);
|
||||
}
|
||||
},
|
||||
|
||||
@ -36,17 +36,6 @@ const initialOptions: TElements<IBaseOption[]> = {
|
||||
},
|
||||
],
|
||||
|
||||
radioAddEquipmentPayer: [
|
||||
{
|
||||
name: 'Лизингополучатель',
|
||||
value: 100000000,
|
||||
},
|
||||
{
|
||||
name: 'Лизингодатель',
|
||||
value: 100000001,
|
||||
},
|
||||
],
|
||||
|
||||
radioLastPaymentRule: [
|
||||
{
|
||||
name: 'рублей',
|
||||
|
||||
@ -7,9 +7,6 @@ const initialValues: TValues<TValue> = {
|
||||
supplierCurrency: 'RUB',
|
||||
supplierDiscountRub: 0,
|
||||
supplierDiscountPerc: 0,
|
||||
// addEquipmentCurrency: 'RUB',
|
||||
addEquipmentPrice: 0,
|
||||
addEquipmentPayer: 100000000,
|
||||
leasingPeriod: 12,
|
||||
firstPaymentPerc: 25,
|
||||
firstPaymentRub: 0,
|
||||
@ -35,7 +32,6 @@ const initialValues: TValues<TValue> = {
|
||||
maxMass: 0,
|
||||
countSeats: 0,
|
||||
maxSpeed: 0,
|
||||
tonnage: 0,
|
||||
leaseObjectYear: 2020,
|
||||
engineType: 100000000,
|
||||
leaseObjectCategory: 100000001,
|
||||
@ -64,7 +60,6 @@ const initialValues: TValues<TValue> = {
|
||||
priceWithDiscount: false,
|
||||
costIncrease: true,
|
||||
insurance: true,
|
||||
addEquipment: true,
|
||||
registrationQuote: true,
|
||||
technicalCardQuote: true,
|
||||
NSIB: true,
|
||||
|
||||
@ -28,9 +28,6 @@ export type ElementsNames =
|
||||
| 'selectSupplierCurrency'
|
||||
| 'tbxSupplierDiscountRub'
|
||||
| 'tbxSupplierDiscountPerc'
|
||||
| 'selectAddEquipmentCurrency'
|
||||
| 'tbxAddEquipmentPrice'
|
||||
| 'radioAddEquipmentPayer'
|
||||
| 'tbxLeasingPeriod'
|
||||
| 'tbxFirstPaymentPerc'
|
||||
| 'tbxFirstPaymentRub'
|
||||
@ -57,7 +54,6 @@ export type ElementsNames =
|
||||
| 'tbxMaxMass'
|
||||
| 'tbxCountSeats'
|
||||
| 'tbxMaxSpeed'
|
||||
| 'tbxTonnage'
|
||||
| 'selectBrand'
|
||||
| 'selectModel'
|
||||
| 'selectConfiguration'
|
||||
@ -97,7 +93,6 @@ export type ElementsNames =
|
||||
| 'btnInsCalculation'
|
||||
| 'selectInsPeriod'
|
||||
| 'tbxInsFranchise'
|
||||
| 'tbxInsAddEquipmentPrice'
|
||||
| 'cbxInsUnlimitDrivers'
|
||||
| 'tbxInsAgeDrivers'
|
||||
| 'tbxInsExpDrivers'
|
||||
@ -107,7 +102,6 @@ export type ElementsNames =
|
||||
| 'cbxPriceWithDiscount'
|
||||
| 'cbxCostIncrease'
|
||||
| 'cbxInsurance'
|
||||
| 'cbxAddEquipment'
|
||||
| 'cbxRegistrationQuote'
|
||||
| 'cbxTechnicalCardQuote'
|
||||
| 'cbxNSIB'
|
||||
|
||||
@ -27,9 +27,6 @@ export type ValuesNames =
|
||||
| 'supplierCurrency'
|
||||
| 'supplierDiscountRub'
|
||||
| 'supplierDiscountPerc'
|
||||
| 'addEquipmentCurrency'
|
||||
| 'addEquipmentPrice'
|
||||
| 'addEquipmentPayer'
|
||||
| 'leasingPeriod'
|
||||
| 'firstPaymentPerc'
|
||||
| 'firstPaymentRub'
|
||||
@ -56,7 +53,6 @@ export type ValuesNames =
|
||||
| 'maxMass'
|
||||
| 'countSeats'
|
||||
| 'maxSpeed'
|
||||
| 'tonnage'
|
||||
| 'brand'
|
||||
| 'model'
|
||||
| 'configuration'
|
||||
@ -95,7 +91,6 @@ export type ValuesNames =
|
||||
| 'insDecentral'
|
||||
| 'insPeriod'
|
||||
| 'insFranchise'
|
||||
| 'insAddEquipmentPrice'
|
||||
| 'insUnlimitDrivers'
|
||||
| 'insAgeDrivers'
|
||||
| 'insExpDrivers'
|
||||
@ -104,7 +99,6 @@ export type ValuesNames =
|
||||
| 'priceWithDiscount'
|
||||
| 'costIncrease'
|
||||
| 'insurance'
|
||||
| 'addEquipment'
|
||||
| 'registrationQuote'
|
||||
| 'technicalCardQuote'
|
||||
| 'NSIB'
|
||||
|
||||
Reference in New Issue
Block a user