[DYN-635] ELT(Kasko): Добавить ID Спецтехники
This commit is contained in:
parent
301fa66e1a
commit
093ec71ddb
@ -69,7 +69,11 @@ export default function (this: ICalculationStore) {
|
||||
|
||||
let country = 0,
|
||||
countrySpecified = false;
|
||||
if (leaseObjectCategory === 100000002 || leaseObjectType?.evo_id === '9')
|
||||
if (
|
||||
leaseObjectCategory === 100000002 ||
|
||||
(leaseObjectType?.evo_id &&
|
||||
['6', '9', '10'].includes(leaseObjectType?.evo_id))
|
||||
)
|
||||
if (brand?.evo_brand_owner === 100000001) {
|
||||
country = 1;
|
||||
countrySpecified = true;
|
||||
@ -96,7 +100,11 @@ export default function (this: ICalculationStore) {
|
||||
selfIgnitionSpecified = false,
|
||||
outsideRoads,
|
||||
outsideRoadsSpecified = false;
|
||||
if (leaseObjectCategory === 100000002 || leaseObjectType?.evo_id === '9') {
|
||||
if (
|
||||
leaseObjectCategory === 100000002 ||
|
||||
(leaseObjectType?.evo_id &&
|
||||
['6', '9', '10'].includes(leaseObjectType?.evo_id))
|
||||
) {
|
||||
notConfirmedGlassesDamages = 3;
|
||||
notConfirmedGlassesDamagesSpecified = true;
|
||||
notConfirmedDamages = 2;
|
||||
@ -118,7 +126,11 @@ export default function (this: ICalculationStore) {
|
||||
sex = '0',
|
||||
driversCount = 1;
|
||||
|
||||
const risk = leaseObjectType?.evo_id === '9' ? 3 : 0;
|
||||
const risk =
|
||||
leaseObjectType?.evo_id &&
|
||||
['6', '9', '10'].includes(leaseObjectType?.evo_id)
|
||||
? 3
|
||||
: 0;
|
||||
|
||||
if (this.getValue('insUnlimitDrivers')) {
|
||||
age = 18;
|
||||
@ -183,16 +195,16 @@ export default function (this: ICalculationStore) {
|
||||
let specialMachineryType = 0,
|
||||
specialMachineryIndustry = 0,
|
||||
specialMachineryMover = 0;
|
||||
if (leaseObjectType?.evo_id === '9') {
|
||||
if (
|
||||
leaseObjectType?.evo_id &&
|
||||
['6', '9', '10'].includes(leaseObjectType?.evo_id)
|
||||
) {
|
||||
specialMachineryType = parseInt(
|
||||
model?.evo_vehicle_body_typeidData?.evo_id_elt || '0',
|
||||
);
|
||||
specialMachineryIndustry =
|
||||
mapLeaseObjectUseForToIndustry[leaseObjectUseForValue];
|
||||
specialMachineryMover =
|
||||
leaseObjectType.evo_id === '9' && model?.evo_running_gear === 100000001
|
||||
? 2
|
||||
: 1;
|
||||
specialMachineryMover = model?.evo_running_gear === 100000001 ? 2 : 1;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user