282 lines
4.9 KiB
JavaScript
282 lines
4.9 KiB
JavaScript
export const defaultState = {
|
|
auth:
|
|
{
|
|
logged: false,
|
|
observer: false,
|
|
},
|
|
user:
|
|
{
|
|
name: "",
|
|
lastname: "",
|
|
secondname: "",
|
|
phone: "",
|
|
},
|
|
admin:
|
|
{
|
|
list: null,
|
|
},
|
|
company:
|
|
{
|
|
title: "",
|
|
inn: "",
|
|
kpp: "",
|
|
ogrn: "",
|
|
},
|
|
companies:
|
|
{
|
|
list: null,
|
|
},
|
|
contracts_info: {},
|
|
contracts:
|
|
{
|
|
list: null,
|
|
page: 1,
|
|
pages: 1,
|
|
},
|
|
contract:
|
|
{
|
|
payments: null,
|
|
avans: null,
|
|
debt: null,
|
|
penalty: null,
|
|
date: null,
|
|
car: null,
|
|
insurance: null,
|
|
helpcard: null,
|
|
registration: null,
|
|
telematic: null,
|
|
agreement:
|
|
{
|
|
unsigned: null,
|
|
signed: null,
|
|
},
|
|
documents: null,
|
|
fines: null,
|
|
rules: null,
|
|
materials: null,
|
|
change:
|
|
{
|
|
signatories: null,
|
|
calculations: null,
|
|
variants: null,
|
|
options: null,
|
|
current: null,
|
|
calculated: null,
|
|
},
|
|
},
|
|
contract_events: {},
|
|
contract_fines: {},
|
|
calendar: {
|
|
payments: null,
|
|
periods: null,
|
|
},
|
|
schedule:
|
|
{
|
|
peyments: null,
|
|
},
|
|
finals:
|
|
{
|
|
list: null,
|
|
page: null,
|
|
pages: false,
|
|
},
|
|
reconciliations:
|
|
{
|
|
list: null,
|
|
page: null,
|
|
pages: false,
|
|
},
|
|
events:
|
|
{
|
|
loaded: false,
|
|
list: undefined,
|
|
filtered: undefined,
|
|
},
|
|
support:
|
|
{
|
|
themes: null,
|
|
filtered: null,
|
|
appeals: { list: null, new: 0 },
|
|
appeal: null,
|
|
request: null,
|
|
},
|
|
questionnaire_main: {
|
|
title: "",
|
|
inn: "",
|
|
kpp: "",
|
|
email: "",
|
|
telephone: "",
|
|
websiteurl: "",
|
|
financial_loan: "",
|
|
is_individual_executive: false,
|
|
individual_executive_inn: "",
|
|
individual_executive_kpp: "",
|
|
individual_executive_oop: "",
|
|
individual_executive_docnum: "",
|
|
individual_executive_docdate: "",
|
|
high_level: "",
|
|
board_of_directors: "",
|
|
collective_executive: "",
|
|
individual_executive: "",
|
|
other_control: "",
|
|
nko: false,
|
|
accept: false,
|
|
},
|
|
questionnaire: {
|
|
step: 1,
|
|
main: {
|
|
title: "",
|
|
inn: "",
|
|
kpp: "",
|
|
email: "",
|
|
telephone: "",
|
|
websiteurl: "",
|
|
financial_loan: "",
|
|
is_individual_executive: false,
|
|
individual_executive_inn: "",
|
|
individual_executive_kpp: "",
|
|
individual_executive_oop: "",
|
|
individual_executive_docnum: "",
|
|
individual_executive_docdate: "",
|
|
high_level: "",
|
|
board_of_directors: "",
|
|
collective_executive: "",
|
|
individual_executive: "",
|
|
other_control: "",
|
|
nko: false,
|
|
accept: false,
|
|
},
|
|
individual_executive_files: [],
|
|
contacts: {
|
|
address_type: "legal",
|
|
legal_address: {
|
|
title: "",
|
|
fias_id: "",
|
|
},
|
|
fact_address: {
|
|
title: "",
|
|
fias_id: "",
|
|
},
|
|
postal_address: {
|
|
title: "",
|
|
fias_id: "",
|
|
},
|
|
},
|
|
head_person: {
|
|
lastname: "",
|
|
firstname: "",
|
|
middlename: "",
|
|
no_middle_name: false,
|
|
jobtitle: "",
|
|
telephone: "",
|
|
email: "",
|
|
identity_document: {
|
|
doctype: "",
|
|
seria: "",
|
|
docnumber: "",
|
|
issuedate: "",
|
|
code: "",
|
|
issueby: "",
|
|
issueby_search_dadata: "",
|
|
placebirth: "",
|
|
citizenship: {
|
|
title: "",
|
|
code: "",
|
|
},
|
|
registration_address: {
|
|
title: "",
|
|
fias_id: "",
|
|
}
|
|
},
|
|
evo_assignment_date: "",
|
|
evo_credentials_dateend: "",
|
|
evo_indefinite: false,
|
|
},
|
|
head_person_files: [],
|
|
signatory_person: {
|
|
not_head_person: false,
|
|
lastname: "",
|
|
firstname: "",
|
|
middlename: "",
|
|
no_middle_name: false,
|
|
jobtitle: "",
|
|
signer_rule_basis: "",
|
|
signer_rule_basis_add: "",
|
|
docdate: "",
|
|
docnumber: "",
|
|
delegation_agreement: false,
|
|
telephone: "",
|
|
email: "",
|
|
identity_document: {
|
|
docype: "",
|
|
seria: "",
|
|
docnumber: "",
|
|
issuedate: "",
|
|
icode: "",
|
|
issueby: "",
|
|
issueby_search_dadata: "",
|
|
placebirth: "",
|
|
citizenship: {
|
|
title: "",
|
|
code: "",
|
|
},
|
|
registration_address: {
|
|
title: "",
|
|
fias_id: "",
|
|
}
|
|
}
|
|
},
|
|
signatory_person_files: [],
|
|
founded_persons: [],
|
|
client_contacts: {
|
|
lastname: "",
|
|
firstname: "",
|
|
middlename: "",
|
|
no_middle_name: false,
|
|
jobtitle: "",
|
|
assignment_date: "",
|
|
indefinite: false,
|
|
credentials_dateend: "",
|
|
telephone: "",
|
|
email: "",
|
|
signer_rule_basis: "",
|
|
signer_rule_basis_add: "",
|
|
docdate: "",
|
|
docnumber: "",
|
|
delegation_agreement: false,
|
|
functiontype: "",
|
|
identity_document: {
|
|
doctype: "",
|
|
seria: "",
|
|
docnumber: "",
|
|
issuedate: "",
|
|
code: "",
|
|
issueby: "",
|
|
issueby_search_dadata: "",
|
|
placebirth: "",
|
|
citizenship: {
|
|
title: "",
|
|
code: "",
|
|
},
|
|
registration_address: {
|
|
title: "",
|
|
fias_id: "",
|
|
}
|
|
}
|
|
},
|
|
non_profit: {
|
|
fin_source_business: false,
|
|
fin_source_donate: false,
|
|
fin_source_fees: false,
|
|
fin_source_another: false,
|
|
fin_source_another_description: "",
|
|
foreign_payers: false,
|
|
fin_goals_cars: "",
|
|
fin_goals_trucks: "",
|
|
fin_goals_special: "",
|
|
},
|
|
personal_data_consent: false,
|
|
},
|
|
};
|
|
|
|
export default JSON.parse(JSON.stringify(defaultState)); |