@coopenomics/desktop 2.2.10 → 2025.4.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env-example +6 -1
- package/.env-testnet +8 -0
- package/Dockerfile +12 -0
- package/extensions/market/install.ts +78 -0
- package/extensions/market-admin/install.ts +42 -0
- package/extensions/participant/install.ts +125 -0
- package/extensions/powerup/install.ts +20 -0
- package/extensions/soviet/install.ts +83 -0
- package/package.json +6 -5
- package/quasar.config.cjs +5 -12
- package/src/app/App.vue +44 -73
- package/src/app/layouts/default.vue +40 -0
- package/src/app/layouts/useDefaultLayoutLogic.ts +59 -0
- package/src/app/providers/routes/index.ts +19 -34
- package/src/app/styles/style.css +4 -0
- package/src/boot/init.ts +6 -0
- package/src/boot/sentry.ts +1 -2
- package/src/desktops/index.ts +0 -6
- package/src/entities/Account/model/index.ts +1 -1
- package/src/entities/Agenda/api/index.ts +20 -0
- package/src/entities/Agenda/index.ts +2 -0
- package/src/entities/Agenda/model/index.ts +2 -0
- package/src/entities/Agenda/model/store.ts +36 -0
- package/src/entities/Agenda/model/types.ts +4 -0
- package/src/entities/Branch/model/index.ts +1 -1
- package/src/entities/Desktop/api/index.ts +16 -1
- package/src/entities/Desktop/model/store.ts +112 -106
- package/src/entities/Desktop/model/types.ts +14 -1
- package/src/entities/Document/api/index.ts +24 -0
- package/src/entities/Document/index.ts +2 -0
- package/src/entities/Document/model/store.ts +117 -0
- package/src/entities/Document/model/types.ts +18 -0
- package/src/entities/Meet/api/index.ts +58 -0
- package/src/entities/Meet/index.ts +2 -0
- package/src/entities/Meet/model/store.ts +72 -0
- package/src/entities/Meet/types/index.ts +7 -0
- package/src/entities/Payment/api/index.ts +20 -0
- package/src/entities/Payment/model/index.ts +2 -0
- package/src/entities/Payment/model/store.ts +62 -0
- package/src/entities/Payment/model/types.ts +7 -0
- package/src/entities/Session/model/store.ts +3 -3
- package/src/entities/System/model/store.ts +1 -1
- package/src/entities/User/model/stores.ts +3 -1
- package/src/entities/Wallet/api/index.ts +15 -33
- package/src/entities/Wallet/model/stores.ts +3 -23
- package/src/entities/Wallet/model/types.ts +2 -3
- package/src/features/Agreementer/SignAgreementDialog/ui/SignAgreementDialog.vue +1 -1
- package/src/features/Branch/SelectBranch/index.ts +2 -0
- package/src/features/Branch/SelectBranch/ui/SelectBranchOverlay.vue +52 -105
- package/src/features/Decision/CreateProject/ui/CreateProjectFreeDecisionButton.vue +1 -1
- package/src/features/Decision/ParticipantApplication/model/index.ts +38 -0
- package/src/features/FreeDecision/CreateProject/model/index.ts +92 -0
- package/src/features/FreeDecision/CreateProject/ui/CreateProjectFreeDecisionButton.vue +51 -0
- package/src/features/FreeDecision/CreateProject/ui/index.ts +1 -0
- package/src/features/FreeDecision/GenerateDecision/index.ts +1 -0
- package/src/features/FreeDecision/GenerateDecision/model/index.ts +36 -0
- package/src/features/FreeDecision/index.ts +2 -0
- package/src/features/Meet/CloseMeetWithDecision/index.ts +1 -0
- package/src/features/Meet/CloseMeetWithDecision/model/index.ts +92 -0
- package/src/features/Meet/CreateMeet/index.ts +2 -0
- package/src/features/Meet/CreateMeet/model/index.ts +65 -0
- package/src/features/Meet/CreateMeet/ui/CreateMeet.vue +34 -0
- package/src/features/Meet/CreateMeet/ui/CreateMeetForm.vue +136 -0
- package/src/features/Meet/CreateMeet/ui/index.ts +2 -0
- package/src/features/Meet/GenerateAgenda/index.ts +1 -0
- package/src/features/Meet/GenerateAgenda/model/index.ts +18 -0
- package/src/features/Meet/GenerateBallot/index.ts +1 -0
- package/src/features/Meet/GenerateBallot/model/index.ts +18 -0
- package/src/features/Meet/GenerateNotification/index.ts +1 -0
- package/src/features/Meet/GenerateNotification/model/index.ts +18 -0
- package/src/features/Meet/GenerateSovietDecision/index.ts +1 -0
- package/src/features/Meet/GenerateSovietDecision/model/index.ts +48 -0
- package/src/features/Meet/MeetDetailsManagement/index.ts +1 -0
- package/src/features/Meet/MeetDetailsManagement/model/index.ts +121 -0
- package/src/features/Meet/RestartMeet/index.ts +2 -0
- package/src/features/Meet/RestartMeet/model/index.ts +54 -0
- package/src/features/Meet/RestartMeet/ui/RestartMeet.vue +46 -0
- package/src/features/Meet/RestartMeet/ui/RestartMeetForm.vue +92 -0
- package/src/features/Meet/RestartMeet/ui/index.ts +2 -0
- package/src/features/Meet/VoteOnMeet/index.ts +1 -0
- package/src/features/Meet/VoteOnMeet/model/index.ts +18 -0
- package/src/features/Payment/SetStatus/api/index.ts +20 -0
- package/src/features/Payment/SetStatus/index.ts +1 -0
- package/src/features/Payment/SetStatus/model/index.ts +30 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderPaidStatusButton/SetOrderPaidStatusButton.vue +7 -3
- package/src/features/PaymentMethod/AddPaymentMethod/model/index.ts +2 -2
- package/src/features/PaymentMethod/AddPaymentMethod/ui/AddPaymentButton.vue +1 -1
- package/src/features/PaymentMethod/DeletePaymentMethod/model/index.ts +1 -1
- package/src/features/PaymentMethod/DeletePaymentMethod/ui/DeletePaymentMethodButton.vue +3 -1
- package/src/features/Request/CancelRequest/ui/CancelButton.vue +1 -1
- package/src/features/Request/ConfirmRecieveOnRequest/ui/ConfirmRecieveOnRequest.vue +1 -1
- package/src/features/Request/CreateParentOffer/ui/CreateParentOfferForm/CreateParentOfferForm.vue +3 -5
- package/src/features/Request/CreateParentOffer/ui/ImageUploaderWithPreview/ImageUploaderWithPreview.vue +4 -3
- package/src/features/Request/DisputeOnRequest/ui/DisputeOnRequestButton.vue +1 -1
- package/src/features/Request/ModerateRequest/ui/ModerateRequestButton.vue +2 -2
- package/src/features/Request/PublishRequest/ui/PublishRequestButton.vue +1 -1
- package/src/features/Request/RecieveOnRequest/ui/RecieveOnRequestButton.vue +1 -1
- package/src/features/Request/UnpublishRequest/ui/UnpublishRequestButton.vue +1 -1
- package/src/features/Union/AddCooperative/model/index.ts +4 -5
- package/src/features/Union/AddCooperative/ui/AddCooperativeForm.vue +5 -6
- package/src/features/User/AddUser/ui/AddUserDialog/AddUserDialog.vue +4 -4
- package/src/features/User/LoginUser/model/index.ts +3 -3
- package/src/features/User/LoginUser/ui/LoginForm/LoginForm.vue +0 -6
- package/src/features/User/Logout/model/index.ts +2 -0
- package/src/features/Wallet/DepositToWallet/ui/DepositButton/DepositButton.vue +8 -7
- package/src/features/Wallet/WithdrawFromWallet/ui/withdrawButton.vue +6 -7
- package/src/pages/Blank/index.ts +1 -0
- package/src/pages/Contacts/ContactsPage.vue +64 -0
- package/src/{widgets/Cooperative/Contacts → pages/Cooperative/ChangeContacts}/ui/index.ts +0 -1
- package/src/{widgets/Cooperative/Contributions/ui/ChangeContributions.vue → pages/Cooperative/ChangeRegisterPayments/ui/ChangeRegisterPayments.vue} +10 -11
- package/src/pages/Cooperative/ChangeRegisterPayments/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfAgenda/index.ts +1 -0
- package/src/pages/Cooperative/ListOfAgenda/ui/ListOfAgendaQuestions.vue +118 -0
- package/src/pages/Cooperative/ListOfAgenda/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfDocuments/ListOfDocumentsPage.vue +24 -0
- package/src/pages/Cooperative/ListOfMeets/model/index.ts +1 -0
- package/src/pages/Cooperative/ListOfMeets/model/model.ts +117 -0
- package/src/pages/Cooperative/ListOfMeets/ui/ListOfMeetsPage.vue +90 -0
- package/src/pages/Cooperative/ListOfMeets/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfOrders/index.ts +1 -1
- package/src/pages/Cooperative/ListOfOrders/ui/ListOfOrdersPage.vue +0 -4
- package/src/pages/Cooperative/ListOfParticipants/ui/ListOfParticipantsPage.vue +61 -10
- package/src/pages/Cooperative/ListOfParticipants/ui/index.ts +1 -1
- package/src/pages/Cooperative/MeetDetails/ui/MeetDetailsPage.vue +88 -0
- package/src/pages/Cooperative/MeetDetails/ui/index.ts +1 -0
- package/src/pages/Cooperative/MemberBranchList/ui/index.ts +1 -0
- package/src/pages/Cooperative/Payments/index.ts +1 -0
- package/src/pages/Cooperative/Payments/ui/PaymentsPage.vue +7 -0
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionPage/ExtensionPage.vue +35 -20
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionsShowcase/ExtensionsShowcase.vue +2 -2
- package/src/pages/{ExtStore → ExtensionStore}/InstalledExtensions/InstalledExtensions.vue +2 -2
- package/src/pages/Marketplace/OfferPage/ui/OfferPage.vue +1 -1
- package/src/pages/Marketplace/Showcase/ui/ShowcasePage.vue +1 -1
- package/src/pages/Marketplace/SuppliesList/ui/SuppliesListPage.vue +1 -1
- package/src/pages/Marketplace/UserParentOffers/ui/UserParentOffersPage.vue +1 -1
- package/src/pages/Marketplace/UserSuppliesList/ui/UserSuppliesListPage.vue +1 -1
- package/src/pages/PermissionDenied/index.ts +1 -0
- package/src/pages/Registrator/SignUp/EmailInput.vue +2 -3
- package/src/pages/Registrator/SignUp/GenerateAccount.vue +2 -3
- package/src/pages/Registrator/SignUp/PayInitial.vue +1 -1
- package/src/pages/Registrator/SignUp/ReadStatement.vue +2 -2
- package/src/pages/Registrator/SignUp/SelectBranch.vue +2 -2
- package/src/pages/Registrator/SignUp/SignStatement.vue +2 -2
- package/src/pages/Registrator/SignUp/SignUp.vue +5 -12
- package/src/pages/Registrator/SignUp/WaitingRegistration.vue +1 -5
- package/src/pages/Registrator/SignUp/Welcome.vue +4 -3
- package/src/pages/Union/ConnectionAgreement/index.ts +1 -0
- package/src/pages/Union/ListOfCooperatives/ui/UnionPageListOfCooperatives.vue +139 -6
- package/src/pages/User/DocumentsPage/UserDocumentsPage.vue +23 -0
- package/src/pages/User/DocumentsPage/index.ts +1 -0
- package/src/pages/User/PaymentsPage/ui/UserPayments.vue +11 -0
- package/src/pages/User/PaymentsPage/ui/index.ts +1 -0
- package/src/pages/User/ProfilePage/index.ts +1 -0
- package/src/pages/User/ProfilePage/ui/ProfilePage.vue +114 -0
- package/src/pages/User/ProfilePage/ui/index.ts +1 -0
- package/src/pages/User/SettingsPage/ui/index.ts +1 -1
- package/src/pages/User/WalletPage/index.ts +1 -0
- package/src/pages/User/WalletPage/ui/WalletPage.vue +72 -0
- package/src/pages/User/WalletPage/ui/index.ts +1 -0
- package/src/processes/init-app/index.ts +28 -0
- package/src/processes/init-installed-extensions/index.ts +25 -0
- package/src/processes/init-wallet/index.ts +40 -0
- package/src/processes/navigation-guard-setup/index.ts +45 -0
- package/src/processes/process-decisions/index.ts +275 -0
- package/src/processes/select-branch/index.ts +80 -0
- package/src/processes/watch-branch-overlay/index.ts +38 -0
- package/src/processes/watch-desktop-health/index.ts +33 -0
- package/src/shared/api/alerts.ts +2 -6
- package/src/shared/api/axios.ts +4 -5
- package/src/shared/api/client.ts +3 -4
- package/src/shared/api/eosio.ts +1 -2
- package/src/shared/api/utils.ts +1 -3
- package/src/shared/config/index.ts +0 -1
- package/src/shared/hooks/index.ts +2 -0
- package/src/shared/hooks/useAgendaPoints.ts +24 -0
- package/src/shared/hooks/useWindowSize.ts +13 -0
- package/src/shared/lib/composables/useDisplayName.ts +34 -0
- package/src/shared/lib/navigation/index.ts +2 -0
- package/src/shared/lib/navigation/routeUtils.ts +51 -0
- package/src/shared/lib/navigation/useBackButton.ts +63 -0
- package/src/shared/lib/utils/dates/validateDateWithinRange.ts +23 -0
- package/src/shared/ui/BaseDocument/BaseDocument.vue +120 -90
- package/src/{components/menu/blockchainStatus.vue → shared/ui/BlockchainStatusBar/BlockchainStatusBar.vue} +1 -0
- package/src/shared/ui/BlockchainStatusBar/index.ts +1 -0
- package/src/shared/ui/CardStyles/index.scss +61 -0
- package/src/shared/ui/ComplexDocument/ComplexDocument.vue +31 -8
- package/src/shared/ui/CopyableInput/index.ts +1 -0
- package/src/shared/ui/CopyableInput/ui/CopyableInput.vue +62 -0
- package/src/shared/ui/EditableEntrepreneurCard/EditableEntrepreneurCard.vue +9 -8
- package/src/shared/ui/EditableIndividualCard/EditableIndividualCard.vue +10 -10
- package/src/shared/ui/EditableOrganizationCard/EditableOrganizationCard.vue +57 -47
- package/src/shared/ui/Form/Form.vue +3 -1
- package/src/shared/ui/InputStyles/index.scss +29 -0
- package/src/shared/ui/TabStyles/index.scss +53 -0
- package/src/shared/ui/index.ts +1 -0
- package/src/{components/history/AccountEvents.vue → widgets/AccountActions/AccountActionsPage.vue} +2 -2
- package/src/widgets/AccountActions/index.ts +1 -0
- package/src/widgets/BankDetailsCard/ui/BankDetailsCard.vue +2 -2
- package/src/widgets/BranchCard/ui/BranchCard.vue +2 -2
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/DocumentCard.vue +48 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/DocumentsTable.vue +162 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/ListOfDocumentsWidget.vue +77 -120
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/index.ts +3 -1
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/ListOfOrdersWidget.vue +135 -128
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/OrderCard.vue +74 -0
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/index.ts +2 -1
- package/src/widgets/Cooperative/Payments/ListOfPayments/ui/ListOfPaymentsWidget.vue +216 -0
- package/src/widgets/Cooperative/Payments/ListOfPayments/ui/PaymentCard.vue +73 -0
- package/src/widgets/Cooperative/Payments/ListOfPayments/ui/index.ts +2 -0
- package/src/widgets/Cooperative/Payments/index.ts +1 -0
- package/src/widgets/Desktop/LeftDrawerMenu/LeftDrawerMenu.vue +3 -2
- package/src/widgets/Desktop/SecondLevelMenuList/SecondLevelMenuList.vue +58 -91
- package/src/widgets/Desktop/WorkspaceMenu/WorkspaceMenu.vue +114 -59
- package/src/widgets/{ExtStore/ExtensionCard → ExtensionCard}/ExtensionCard.vue +12 -7
- package/src/widgets/Header/BackButton/BackButton.vue +25 -0
- package/src/widgets/Header/BackButton/index.ts +1 -0
- package/src/widgets/Header/CommonHeader/CooperativeSettingsHeader.vue +34 -0
- package/src/widgets/Header/CommonHeader/ExtstoreHeader.vue +41 -0
- package/src/widgets/Header/CommonHeader/Header.vue +33 -198
- package/src/widgets/Header/CommonHeader/HeaderStyles.scss +22 -0
- package/src/widgets/Header/CommonHeader/MainHeader.vue +87 -0
- package/src/widgets/Header/CommonHeader/UserSettingsHeader.vue +29 -0
- package/src/widgets/Header/CommonHeader/index.ts +1 -1
- package/src/widgets/Header/SettingsDropdown/SettingsDropdown.vue +0 -6
- package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Base/Base.vue +1 -2
- package/src/widgets/Meets/MeetDetailsActions/MeetDetailsActions.vue +51 -0
- package/src/widgets/Meets/MeetDetailsActions/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsActions/model.ts +46 -0
- package/src/widgets/Meets/MeetDetailsAgenda/MeetDetailsAgenda.vue +29 -0
- package/src/widgets/Meets/MeetDetailsAgenda/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsHeader/MeetDetailsHeader.vue +40 -0
- package/src/widgets/Meets/MeetDetailsHeader/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsVoting/MeetDetailsVoting.vue +77 -0
- package/src/widgets/Meets/MeetDetailsVoting/index.ts +1 -0
- package/src/widgets/Meets/MeetDetailsVoting/model.ts +117 -0
- package/src/widgets/Meets/MeetInfoCard/ui/MeetInfoCard.vue +38 -0
- package/src/widgets/Meets/MeetInfoCard/ui/index.ts +1 -0
- package/src/widgets/Meets/MeetsTable/ui/MeetsTable.vue +118 -0
- package/src/widgets/Meets/MeetsTable/ui/index.ts +1 -0
- package/src/widgets/Participants/index.ts +1 -0
- package/src/widgets/Participants/ui/ParticipantCard.vue +89 -0
- package/src/widgets/Participants/ui/ParticipantDetails.vue +79 -0
- package/src/widgets/Participants/ui/ParticipantsTable.vue +129 -0
- package/src/widgets/Participants/ui/index.ts +4 -0
- package/src/widgets/Questions/index.ts +3 -0
- package/src/widgets/Questions/ui/QuestionCard/QuestionCard.vue +109 -0
- package/src/widgets/Questions/ui/QuestionCard/index.ts +1 -0
- package/src/widgets/Questions/ui/QuestionsTable/QuestionsTable.vue +177 -0
- package/src/widgets/Questions/ui/QuestionsTable/index.ts +1 -0
- package/src/widgets/Questions/ui/VotingButtons/VotingButtons.vue +75 -0
- package/src/widgets/Questions/ui/VotingButtons/index.ts +1 -0
- package/src/widgets/Questions/ui/index.ts +3 -0
- package/src/widgets/RequireAgreements/index.ts +1 -0
- package/src/widgets/User/PaymentMethods/ui/PaymentMethods.vue +81 -85
- package/tsconfig.json +1 -1
- package/extensions/powerup/boot.ts +0 -17
- package/src/app/providers/card/store.ts +0 -42
- package/src/boot/branch-selector.ts +0 -40
- package/src/boot/init-stores.ts +0 -51
- package/src/boot/navigation-guards.ts +0 -46
- package/src/components/menu/footerMobileMenu.vue +0 -79
- package/src/components/soviet/index.vue +0 -76
- package/src/components/soviet/staff.vue +0 -274
- package/src/desktops/User/index.ts +0 -1
- package/src/desktops/User/model/index.ts +0 -329
- package/src/entities/Menu/model/store.ts +0 -69
- package/src/entities/Menu/model/types.ts +0 -11
- package/src/entities/Menu/ui/index.ts +0 -1
- package/src/entities/Order/api/index.ts +0 -14
- package/src/entities/Order/model/store.ts +0 -87
- package/src/features/Order/SetStatus/api/index.ts +0 -7
- package/src/features/Order/SetStatus/model/index.ts +0 -23
- package/src/pages/Cooperative/Contacts/ui/ContactsPage.vue +0 -7
- package/src/pages/Cooperative/ListOfBranches/ui/index.ts +0 -1
- package/src/pages/Documentor/ListOfDocuments/ListOfDocumentsPage.vue +0 -12
- package/src/pages/Union/Connection/index.ts +0 -1
- package/src/pages/_layouts/blank.vue +0 -24
- package/src/pages/_layouts/default.vue +0 -79
- package/src/types/index.ts +0 -3
- package/src/widgets/Commutator/Commutator.vue +0 -7
- package/src/widgets/Commutator/index.ts +0 -1
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/ListOfQuestions.vue +0 -273
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/index.ts +0 -1
- package/src/widgets/Cooperative/Contacts/ui/Contacts.vue +0 -52
- package/src/widgets/Cooperative/Contributions/ui/index.ts +0 -1
- package/src/widgets/Cooperative/Description/ui/SetDescription.vue +0 -4
- package/src/widgets/Cooperative/Description/ui/index.ts +0 -1
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/ListOfParticipantsWidget.vue +0 -186
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/index.ts +0 -1
- package/src/widgets/Desktop/SecondLevelMenu/SecondLevelMenu.vue +0 -59
- package/src/widgets/Desktop/SecondLevelMenu/index.ts +0 -1
- package/src/widgets/IndividualCard/ui/IndividualCard.vue +0 -170
- package/src/widgets/IndividualCard/ui/index.ts +0 -1
- package/src/widgets/OrganizationCard/ui/OrganizationCard.vue +0 -44
- package/src/widgets/OrganizationCard/ui/index.ts +0 -1
- package/src/widgets/Union/ListOfCooperatives/ui/UnionListOfCooperatives.vue +0 -136
- package/src/widgets/Union/ListOfCooperatives/ui/index.ts +0 -1
- package/src/entities/{Menu → Document}/model/index.ts +0 -0
- package/src/entities/{Order → Meet}/model/index.ts +0 -0
- package/src/entities/{Order → Payment}/index.ts +0 -0
- package/src/features/{Order/SetStatus → Decision/ParticipantApplication}/index.ts +0 -0
- package/src/{widgets/Request/SupplyOrderRequestCard → features/FreeDecision/CreateProject}/index.ts +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderCompletedStatusButton/SetOrderCompletedStatusButton.vue +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderCompletedStatusButton/index.ts +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderPaidStatusButton/index.ts +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderRefundedStatusButton/SetOrderRefundedStatusButton.vue +0 -0
- package/src/features/{Order → Payment}/SetStatus/ui/SetOrderRefundedStatusButton/index.ts +0 -0
- package/src/pages/{blank/blank.vue → Blank/BlankPage.vue} +0 -0
- package/src/pages/{Cooperative/Contacts/ui → Contacts}/index.ts +0 -0
- package/src/pages/Cooperative/{Contacts → ChangeContacts}/index.ts +0 -0
- package/src/{widgets/Cooperative/Contacts → pages/Cooperative/ChangeContacts}/ui/ChangeContacts.vue +0 -0
- package/src/pages/Cooperative/{ListOfBranches → ChangeRegisterPayments}/index.ts +0 -0
- package/src/pages/{Documentor → Cooperative}/ListOfDocuments/index.ts +0 -0
- package/src/pages/{Installer → Cooperative/ListOfMeets}/index.ts +0 -0
- package/src/{widgets/Cooperative/Agenda/ListOfQuestions → pages/Cooperative/MeetDetails}/index.ts +0 -0
- package/src/{widgets/Cooperative/Contacts → pages/Cooperative/MemberBranchList}/index.ts +0 -0
- package/src/pages/Cooperative/{ListOfBranches/ui/ListOfBranchesPage.vue → MemberBranchList/ui/MemberBranchListPage.vue} +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/BaseRoute/ExtensionStoreBase.vue +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/BaseRoute/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionPage/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/ExtensionsShowcase/index.ts +0 -0
- package/src/pages/{ExtStore → ExtensionStore}/InstalledExtensions/index.ts +0 -0
- package/src/pages/{_layouts/permissionDenied.vue → PermissionDenied/PermissionDenied.vue} +0 -0
- package/src/pages/Union/{Connection/ConnectionPage.vue → ConnectionAgreement/ConnectionAgreementPage.vue} +0 -0
- package/src/{widgets/Cooperative/Contributions → pages/Union/InstallCooperative}/index.ts +0 -0
- package/src/pages/{Installer → Union/InstallCooperative}/ui/InstallCooperativePage.vue +0 -0
- package/src/pages/{Installer → Union/InstallCooperative}/ui/index.ts +0 -0
- package/src/{widgets/Cooperative/Participants/ListOfParticipants → pages/User/PaymentsPage}/index.ts +0 -0
- package/src/{components/history → widgets/AccountActions}/AccountLink.vue +0 -0
- package/src/{components/history → widgets/AccountActions}/ActionCell.vue +0 -0
- package/src/{components/history → widgets/AccountActions}/DataCell.vue +0 -0
- package/src/widgets/{IndividualCard → Cooperative/Payments/ListOfPayments}/index.ts +0 -0
- package/src/widgets/{ExtStore/ExtensionCard → ExtensionCard}/index.ts +0 -0
- package/src/widgets/{Request → Marketplace}/CreateChildOrderCard/CreateChildOrderCard.vue +0 -0
- package/src/widgets/{Request → Marketplace}/CreateChildOrderCard/index.ts +0 -0
- package/src/widgets/{Request → Marketplace}/RequestCard/RequestCard.vue +0 -0
- package/src/widgets/{Request → Marketplace}/RequestCard/index.ts +0 -0
- package/src/{entities/Menu → widgets/Marketplace/SupplyOrderRequestCard}/index.ts +1 -1
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/model/index.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/model/types.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Base/index.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/EightStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/FifthStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/FirstStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/FourthStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/SecondStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/SeventhStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/SixthStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/ThirdStep.vue +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/Steps/index.ts +0 -0
- /package/src/widgets/{Request → Marketplace}/SupplyOrderRequestCard/ui/index.ts +0 -0
- /package/src/widgets/{OrganizationCard → Meets/MeetInfoCard}/index.ts +0 -0
- /package/src/widgets/{Union/ListOfCooperatives → Meets/MeetsTable}/index.ts +0 -0
- /package/src/widgets/{Agreementer/RequireAgreements → RequireAgreements}/ui/RequireAgreements.vue +0 -0
- /package/src/widgets/{Agreementer/RequireAgreements → RequireAgreements}/ui/index.ts +0 -0
@@ -0,0 +1,118 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
q-card(flat)
|
3
|
+
QuestionsTable(
|
4
|
+
:decisions="decisions"
|
5
|
+
:loading="loading"
|
6
|
+
:isChairman="currentUser.isChairman"
|
7
|
+
:format-decision-title="formatDecisionTitle"
|
8
|
+
:is-voted-for="isVotedFor"
|
9
|
+
:is-voted-against="isVotedAgainst"
|
10
|
+
:is-voted-any="isVotedAny"
|
11
|
+
:processing-decisions="processingDecisions"
|
12
|
+
@authorize="onAuthorizeDecision"
|
13
|
+
@vote-for="onVoteFor"
|
14
|
+
@vote-against="onVoteAgainst"
|
15
|
+
)
|
16
|
+
template(#top)
|
17
|
+
CreateProjectFreeDecisionButton
|
18
|
+
</template>
|
19
|
+
|
20
|
+
<script setup lang="ts">
|
21
|
+
import { onBeforeUnmount, computed, ref } from 'vue'
|
22
|
+
import { useRoute } from 'vue-router'
|
23
|
+
import { useCurrentUserStore } from 'src/entities/User'
|
24
|
+
import { CreateProjectFreeDecisionButton } from 'src/features/Decision/CreateProject'
|
25
|
+
import { useDecisionProcessor } from 'src/processes/process-decisions'
|
26
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api'
|
27
|
+
import { QuestionsTable } from 'src/widgets/Questions'
|
28
|
+
|
29
|
+
const route = useRoute()
|
30
|
+
const currentUser = useCurrentUserStore()
|
31
|
+
const processingDecisions = ref<Record<number, boolean>>({})
|
32
|
+
|
33
|
+
// Получаем процесс обработки решений
|
34
|
+
const decisionProcessor = useDecisionProcessor()
|
35
|
+
const {
|
36
|
+
loading,
|
37
|
+
loadDecisions,
|
38
|
+
authorizeAndExecuteDecision,
|
39
|
+
voteForDecision,
|
40
|
+
voteAgainstDecision,
|
41
|
+
isVotedFor,
|
42
|
+
isVotedAgainst,
|
43
|
+
isVotedAny,
|
44
|
+
formatDecisionTitle
|
45
|
+
} = decisionProcessor
|
46
|
+
|
47
|
+
// Данные
|
48
|
+
const decisions = computed(() => decisionProcessor.decisions.value)
|
49
|
+
|
50
|
+
// Обработчики событий
|
51
|
+
const onAuthorizeDecision = async (row) => {
|
52
|
+
const decision_id = Number(row.table.id)
|
53
|
+
processingDecisions.value[decision_id] = true
|
54
|
+
|
55
|
+
try {
|
56
|
+
await authorizeAndExecuteDecision(row)
|
57
|
+
SuccessAlert('Решение принято и исполнено')
|
58
|
+
await loadDecisions(route.params.coopname as string)
|
59
|
+
} catch (e) {
|
60
|
+
FailAlert(e)
|
61
|
+
} finally {
|
62
|
+
// Гарантированно сбрасываем состояние загрузки
|
63
|
+
processingDecisions.value[decision_id] = false
|
64
|
+
|
65
|
+
// Добавляем таймаут для гарантии обновления UI
|
66
|
+
setTimeout(() => {
|
67
|
+
processingDecisions.value = { ...processingDecisions.value }
|
68
|
+
}, 100)
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
const onVoteFor = async (decision_id) => {
|
73
|
+
processingDecisions.value[decision_id] = true
|
74
|
+
|
75
|
+
try {
|
76
|
+
await voteForDecision(decision_id)
|
77
|
+
SuccessAlert('Голос принят')
|
78
|
+
await loadDecisions(route.params.coopname as string)
|
79
|
+
} catch (e) {
|
80
|
+
FailAlert(e)
|
81
|
+
} finally {
|
82
|
+
// Гарантированно сбрасываем состояние загрузки
|
83
|
+
processingDecisions.value[decision_id] = false
|
84
|
+
|
85
|
+
// Добавляем таймаут для гарантии обновления UI
|
86
|
+
setTimeout(() => {
|
87
|
+
processingDecisions.value = { ...processingDecisions.value }
|
88
|
+
}, 100)
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
const onVoteAgainst = async (decision_id) => {
|
93
|
+
processingDecisions.value[decision_id] = true
|
94
|
+
|
95
|
+
try {
|
96
|
+
await voteAgainstDecision(decision_id)
|
97
|
+
SuccessAlert('Голос принят')
|
98
|
+
await loadDecisions(route.params.coopname as string)
|
99
|
+
} catch (e) {
|
100
|
+
FailAlert(e)
|
101
|
+
} finally {
|
102
|
+
// Гарантированно сбрасываем состояние загрузки
|
103
|
+
processingDecisions.value[decision_id] = false
|
104
|
+
|
105
|
+
// Добавляем таймаут для гарантии обновления UI
|
106
|
+
setTimeout(() => {
|
107
|
+
processingDecisions.value = { ...processingDecisions.value }
|
108
|
+
}, 100)
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
// Инициализация
|
113
|
+
loadDecisions(route.params.coopname as string)
|
114
|
+
|
115
|
+
// Периодическое обновление данных
|
116
|
+
const interval = setInterval(() => loadDecisions(route.params.coopname as string, true), 10000)
|
117
|
+
onBeforeUnmount(() => clearInterval(interval))
|
118
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as ListOfQuestionsPage} from './ListOfQuestions.vue'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
q-page.padding
|
3
|
+
ListOfDocumentsWidget(
|
4
|
+
:username="coopname"
|
5
|
+
:filter="{}"
|
6
|
+
:showFilter="true"
|
7
|
+
:initialDocumentType="typeForToggle"
|
8
|
+
)
|
9
|
+
</template>
|
10
|
+
|
11
|
+
<script setup lang="ts">
|
12
|
+
import { ref, computed } from 'vue'
|
13
|
+
import { useSystemStore } from 'src/entities/System/model'
|
14
|
+
import { ListOfDocumentsWidget } from 'src/widgets/Cooperative/Documents/ListOfDocuments/ui'
|
15
|
+
import type { DocumentType } from 'src/entities/Document/model/types'
|
16
|
+
|
17
|
+
// Получаем системную информацию
|
18
|
+
const { info } = useSystemStore()
|
19
|
+
const coopname = computed(() => info.coopname)
|
20
|
+
|
21
|
+
// Переменная для отслеживания типа в интерфейсе
|
22
|
+
const typeForToggle = ref<DocumentType>('newsubmitted')
|
23
|
+
|
24
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './model'
|
@@ -0,0 +1,117 @@
|
|
1
|
+
import { computed } from 'vue'
|
2
|
+
import { Notify } from 'quasar'
|
3
|
+
import { useMeetStore } from 'src/entities/Meet/model/store'
|
4
|
+
import { createMeetWithAgenda } from 'src/features/Meet/CreateMeet/model'
|
5
|
+
import { signByPresiderOnAnnualGeneralMeetWithDecision } from 'src/features/Meet/CloseMeetWithDecision/model'
|
6
|
+
import { restartMeetWithProposal } from 'src/features/Meet/RestartMeet/model'
|
7
|
+
import { useSessionStore } from 'src/entities/Session'
|
8
|
+
import type { IMeet } from 'src/entities/Meet'
|
9
|
+
import { FailAlert } from 'src/shared/api'
|
10
|
+
|
11
|
+
export function useMeetManagement(coopname: string) {
|
12
|
+
const meetStore = useMeetStore()
|
13
|
+
const sessionStore = useSessionStore()
|
14
|
+
|
15
|
+
const meets = computed(() => meetStore.meets)
|
16
|
+
const loading = computed(() => meetStore.loading)
|
17
|
+
|
18
|
+
const loadMeets = async () => {
|
19
|
+
try {
|
20
|
+
await meetStore.loadMeets({ coopname })
|
21
|
+
} catch (e: any) {
|
22
|
+
FailAlert(e)
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
const handleCreateMeet = async (formData: any) => {
|
27
|
+
try {
|
28
|
+
await createMeetWithAgenda({
|
29
|
+
coopname,
|
30
|
+
initiator: formData.initiator,
|
31
|
+
presider: formData.presider,
|
32
|
+
secretary: formData.secretary,
|
33
|
+
open_at: formData.open_at,
|
34
|
+
close_at: formData.close_at,
|
35
|
+
username: sessionStore.username,
|
36
|
+
agenda_points: formData.agenda_points
|
37
|
+
})
|
38
|
+
|
39
|
+
await loadMeets()
|
40
|
+
|
41
|
+
Notify.create({
|
42
|
+
message: 'Собрание успешно создано',
|
43
|
+
type: 'positive',
|
44
|
+
})
|
45
|
+
|
46
|
+
return true
|
47
|
+
} catch (e: any) {
|
48
|
+
FailAlert(e)
|
49
|
+
return false
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
const handleCloseMeet = async (meet: IMeet) => {
|
54
|
+
try {
|
55
|
+
await signByPresiderOnAnnualGeneralMeetWithDecision({
|
56
|
+
coopname,
|
57
|
+
hash: meet.hash,
|
58
|
+
username: sessionStore.username,
|
59
|
+
})
|
60
|
+
|
61
|
+
await loadMeets()
|
62
|
+
|
63
|
+
Notify.create({
|
64
|
+
message: 'Собрание успешно закрыто',
|
65
|
+
type: 'positive',
|
66
|
+
})
|
67
|
+
|
68
|
+
return true
|
69
|
+
} catch (e: any) {
|
70
|
+
FailAlert(e)
|
71
|
+
return false
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
const handleRestartMeet = async (data: any) => {
|
76
|
+
try {
|
77
|
+
await restartMeetWithProposal({
|
78
|
+
coopname,
|
79
|
+
hash: data.hash,
|
80
|
+
username: sessionStore.username,
|
81
|
+
new_open_at: data.new_open_at,
|
82
|
+
new_close_at: data.new_close_at,
|
83
|
+
agenda_points: data.agenda_points
|
84
|
+
})
|
85
|
+
|
86
|
+
await loadMeets()
|
87
|
+
|
88
|
+
Notify.create({
|
89
|
+
message: 'Собрание успешно перезапущено',
|
90
|
+
type: 'positive',
|
91
|
+
})
|
92
|
+
|
93
|
+
return true
|
94
|
+
} catch (e: any) {
|
95
|
+
FailAlert(e)
|
96
|
+
return false
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
101
|
+
const handleVote = (meet: IMeet) => {
|
102
|
+
Notify.create({
|
103
|
+
message: 'Голосование в разработке',
|
104
|
+
type: 'info',
|
105
|
+
})
|
106
|
+
}
|
107
|
+
|
108
|
+
return {
|
109
|
+
meets,
|
110
|
+
loading,
|
111
|
+
loadMeets,
|
112
|
+
handleCreateMeet,
|
113
|
+
handleCloseMeet,
|
114
|
+
handleRestartMeet,
|
115
|
+
handleVote
|
116
|
+
}
|
117
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div.q-pa-md
|
3
|
+
router-view(v-if="$route.name !== 'user-meets' && $route.name !== 'meets'")
|
4
|
+
template(v-else)
|
5
|
+
div.row.justify-center
|
6
|
+
div.col-12
|
7
|
+
div.row.q-mb-md(v-if="canCreateMeet")
|
8
|
+
CreateMeet(@create="handleCreate")
|
9
|
+
|
10
|
+
MeetsTable(
|
11
|
+
:meets="meets"
|
12
|
+
:loading="loading"
|
13
|
+
@vote="handleVote"
|
14
|
+
@close="handleCloseMeet"
|
15
|
+
@restart="showRestartMeetDialog"
|
16
|
+
@view="navigateToMeetDetails"
|
17
|
+
)
|
18
|
+
|
19
|
+
</template>
|
20
|
+
|
21
|
+
<script setup lang="ts">
|
22
|
+
import { onMounted, ref, computed, watch } from 'vue'
|
23
|
+
import { useRoute, useRouter } from 'vue-router'
|
24
|
+
import { MeetsTable } from 'src/widgets/Meets/MeetsTable'
|
25
|
+
import { CreateMeet } from 'src/features/Meet/CreateMeet'
|
26
|
+
import { useMeetManagement } from '../model'
|
27
|
+
import type { IMeet } from 'src/entities/Meet'
|
28
|
+
import { useCurrentUserStore } from 'src/entities/User'
|
29
|
+
|
30
|
+
const route = useRoute()
|
31
|
+
const router = useRouter()
|
32
|
+
const coopname = computed(() => route.params.coopname as string)
|
33
|
+
|
34
|
+
const {isChairman, isMember} = useCurrentUserStore()
|
35
|
+
|
36
|
+
const {
|
37
|
+
meets,
|
38
|
+
loading,
|
39
|
+
loadMeets,
|
40
|
+
handleCreateMeet,
|
41
|
+
handleCloseMeet,
|
42
|
+
handleVote
|
43
|
+
} = useMeetManagement(coopname.value)
|
44
|
+
|
45
|
+
// Диалоги
|
46
|
+
const currentMeetToRestart = ref<IMeet | null>(null)
|
47
|
+
|
48
|
+
// Обработчики
|
49
|
+
const handleCreate = async (formData: any) => {
|
50
|
+
const success = await handleCreateMeet(formData)
|
51
|
+
return success
|
52
|
+
}
|
53
|
+
|
54
|
+
const showRestartMeetDialog = (meet: IMeet) => {
|
55
|
+
currentMeetToRestart.value = meet
|
56
|
+
}
|
57
|
+
|
58
|
+
// Навигация на детальную страницу собрания
|
59
|
+
const navigateToMeetDetails = (meet: IMeet) => {
|
60
|
+
router.push({
|
61
|
+
name: route.name === 'meets' ? 'meet-details' : 'user-meet-details',
|
62
|
+
params: {
|
63
|
+
coopname: coopname.value,
|
64
|
+
hash: meet.hash
|
65
|
+
}
|
66
|
+
})
|
67
|
+
}
|
68
|
+
|
69
|
+
// Проверка разрешений
|
70
|
+
const canCreateMeet = computed(() => {
|
71
|
+
return isMember || isChairman
|
72
|
+
})
|
73
|
+
|
74
|
+
// Загрузка данных при монтировании компонента
|
75
|
+
onMounted(() => {
|
76
|
+
if (route.name === 'user-meets' || route.name === 'meets') {
|
77
|
+
loadMeets()
|
78
|
+
}
|
79
|
+
})
|
80
|
+
|
81
|
+
// Следим за изменениями маршрута
|
82
|
+
watch(
|
83
|
+
() => route.name,
|
84
|
+
(newRouteName) => {
|
85
|
+
if (newRouteName === 'user-meets' || newRouteName === 'meets') {
|
86
|
+
loadMeets()
|
87
|
+
}
|
88
|
+
}
|
89
|
+
)
|
90
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as ListOfMeetsPage} from './ListOfMeetsPage.vue'
|
@@ -1 +1 @@
|
|
1
|
-
export * from './ui'
|
1
|
+
export * from './ui'
|
@@ -1,12 +1,8 @@
|
|
1
1
|
<template lang="pug">
|
2
2
|
ListOfOrdersWidget
|
3
|
-
//- template(#top)
|
4
|
-
//- template(#default="{ expand, receiver }")
|
5
|
-
//- ListOfOrdersWidget(v-if="expand" :receiver="receiver")
|
6
3
|
</template>
|
7
4
|
|
8
5
|
<script lang="ts" setup>
|
9
6
|
import { ListOfOrdersWidget } from 'src/widgets/Cooperative/Orders/ListOfOrders';
|
10
|
-
// import { ListOfOrdersWidget } from 'src/widgets/Cooperative/Orders/ListOfOrders';
|
11
7
|
|
12
8
|
</script>
|
@@ -1,14 +1,65 @@
|
|
1
1
|
<template lang="pug">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
q-page.padding
|
3
|
+
ParticipantsTable(
|
4
|
+
:accounts="accountStore.accounts.items"
|
5
|
+
:loading="onLoading"
|
6
|
+
@toggle-expand="toggleExpand"
|
7
|
+
@update="update"
|
8
|
+
)
|
9
|
+
template(#top)
|
10
|
+
AddUserDialog
|
8
11
|
</template>
|
9
12
|
|
10
|
-
<script lang="ts"
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
13
|
+
<script setup lang="ts">
|
14
|
+
import { ref, reactive } from 'vue'
|
15
|
+
import { Notify } from 'quasar'
|
16
|
+
import { useAccountStore } from 'src/entities/Account/model'
|
17
|
+
import { AddUserDialog } from 'src/features/User/AddUser/ui/AddUserDialog'
|
18
|
+
import { ParticipantsTable } from 'src/widgets/Participants'
|
19
|
+
import {
|
20
|
+
AccountTypes,
|
21
|
+
type IAccount,
|
22
|
+
type IIndividualData,
|
23
|
+
type IOrganizationData,
|
24
|
+
type IEntrepreneurData
|
25
|
+
} from 'src/entities/Account/types'
|
26
|
+
|
27
|
+
const accountStore = useAccountStore()
|
28
|
+
const onLoading = ref(false)
|
29
|
+
const expanded = reactive(new Map<string, boolean>())
|
30
|
+
const currentTab = reactive<Record<string, string>>({})
|
31
|
+
|
32
|
+
const toggleExpand = (id: string) => {
|
33
|
+
expanded.set(id, !expanded.get(id))
|
34
|
+
if (!currentTab[id]) currentTab[id] = 'info'
|
35
|
+
}
|
36
|
+
|
37
|
+
const loadParticipants = async () => {
|
38
|
+
try {
|
39
|
+
onLoading.value = true
|
40
|
+
await accountStore.getAccounts({ options: { page: 1, limit: 1000, sortOrder: 'DESC' } })
|
41
|
+
} catch (e: any) {
|
42
|
+
Notify.create({ message: e.message, type: 'negative' })
|
43
|
+
} finally {
|
44
|
+
onLoading.value = false
|
45
|
+
}
|
46
|
+
}
|
47
|
+
loadParticipants()
|
48
|
+
|
49
|
+
const update = (account: IAccount, newData: IIndividualData | IOrganizationData | IEntrepreneurData) => {
|
50
|
+
switch (account.private_account?.type) {
|
51
|
+
case AccountTypes.Individual:
|
52
|
+
account.private_account.individual_data = {
|
53
|
+
...newData as IIndividualData,
|
54
|
+
passport: (newData as IIndividualData).passport ?? undefined
|
55
|
+
}
|
56
|
+
break
|
57
|
+
case AccountTypes.Entrepreneur:
|
58
|
+
account.private_account.entrepreneur_data = newData as IEntrepreneurData
|
59
|
+
break
|
60
|
+
case AccountTypes.Organization:
|
61
|
+
account.private_account.organization_data = newData as IOrganizationData
|
62
|
+
break
|
63
|
+
}
|
64
|
+
}
|
14
65
|
</script>
|
@@ -1 +1 @@
|
|
1
|
-
export {default as ListOfParticipantsPage} from './ListOfParticipantsPage.vue'
|
1
|
+
export { default as ListOfParticipantsPage } from './ListOfParticipantsPage.vue'
|
@@ -0,0 +1,88 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div.q-pa-md
|
3
|
+
div(v-if="loading")
|
4
|
+
q-skeleton(type="rect" height="200px" class="q-mb-md")
|
5
|
+
q-skeleton(type="rect" height="100px" v-for="i in 3" :key="i" class="q-mb-md")
|
6
|
+
|
7
|
+
div(v-else-if="!meet")
|
8
|
+
div.text-h5.text-center Собрание не найдено
|
9
|
+
|
10
|
+
div(v-else)
|
11
|
+
MeetDetailsHeader(:meet="meet")
|
12
|
+
|
13
|
+
MeetDetailsActions(
|
14
|
+
:meet="meet"
|
15
|
+
:coopname="coopname"
|
16
|
+
:meet-hash="meetHash"
|
17
|
+
class="q-mt-md"
|
18
|
+
)
|
19
|
+
|
20
|
+
MeetDetailsAgenda(
|
21
|
+
:meet="meet"
|
22
|
+
class="q-mt-md"
|
23
|
+
)
|
24
|
+
|
25
|
+
MeetDetailsVoting(
|
26
|
+
:meet="meet"
|
27
|
+
:coopname="coopname"
|
28
|
+
:meet-hash="meetHash"
|
29
|
+
class="q-mt-md"
|
30
|
+
)
|
31
|
+
</template>
|
32
|
+
|
33
|
+
<script setup lang="ts">
|
34
|
+
import { onMounted, ref, computed } from 'vue'
|
35
|
+
import { useRoute } from 'vue-router'
|
36
|
+
import { MeetDetailsHeader } from 'src/widgets/Meets/MeetDetailsHeader'
|
37
|
+
import { MeetDetailsActions } from 'src/widgets/Meets/MeetDetailsActions'
|
38
|
+
import { MeetDetailsAgenda } from 'src/widgets/Meets/MeetDetailsAgenda'
|
39
|
+
import { MeetDetailsVoting } from 'src/widgets/Meets/MeetDetailsVoting'
|
40
|
+
import { useMeetStore } from 'src/entities/Meet'
|
41
|
+
import { FailAlert } from 'src/shared/api'
|
42
|
+
import type { IMeet } from 'src/entities/Meet'
|
43
|
+
import { useDesktopStore } from 'src/entities/Desktop/model'
|
44
|
+
import { useBackButton } from 'src/shared/lib/navigation'
|
45
|
+
|
46
|
+
const route = useRoute()
|
47
|
+
const meetStore = useMeetStore()
|
48
|
+
const desktopStore = useDesktopStore()
|
49
|
+
|
50
|
+
const coopname = computed(() => route.params.coopname as string)
|
51
|
+
const meetHash = computed(() => route.params.hash as string)
|
52
|
+
|
53
|
+
const meet = ref<IMeet | null>(null)
|
54
|
+
const loading = ref(true)
|
55
|
+
|
56
|
+
const loadMeetDetails = async () => {
|
57
|
+
loading.value = true
|
58
|
+
try {
|
59
|
+
const result = await meetStore.loadMeet({
|
60
|
+
coopname: coopname.value,
|
61
|
+
hash: meetHash.value
|
62
|
+
})
|
63
|
+
meet.value = result
|
64
|
+
} catch (error: any) {
|
65
|
+
FailAlert(error)
|
66
|
+
} finally {
|
67
|
+
loading.value = false
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
// Настройка кнопки навигации
|
72
|
+
const workspace = computed(() => desktopStore.activeWorkspaceName)
|
73
|
+
const buttonText = computed(() => workspace.value === 'soviet' ? 'Собрания' : 'Мои Собрания')
|
74
|
+
const targetRouteName = computed(() => workspace.value === 'soviet' ? 'meets' : 'user-meets')
|
75
|
+
|
76
|
+
// Используем хук для управления кнопкой
|
77
|
+
useBackButton({
|
78
|
+
text: buttonText.value,
|
79
|
+
routeName: targetRouteName.value,
|
80
|
+
params: { coopname: coopname.value },
|
81
|
+
componentId: 'meet-details-' + meetHash.value
|
82
|
+
})
|
83
|
+
|
84
|
+
// Загрузка деталей собрания
|
85
|
+
onMounted(() => {
|
86
|
+
loadMeetDetails()
|
87
|
+
})
|
88
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as MeetDetailsPage } from './MeetDetailsPage.vue'
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as MemberBranchList} from './MemberBranchListPage.vue'
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as PaymentsPage } from './ui/PaymentsPage.vue'
|