@coopenomics/desktop 2.2.10 → 2025.5.2
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/alias-resolver.js +35 -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 +14 -7
- package/quasar.config.cjs +28 -15
- 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/router.ts +4 -3
- 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 +14 -14
- 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 +4 -4
- 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/env.d.ts +2 -0
- 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 +4 -5
- package/src/features/Request/CreateParentOffer/ui/ImageUploaderWithPreview/ImageUploaderWithPreview.vue +5 -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 +5 -5
- package/src/features/Union/AddCooperative/ui/AddCooperativeForm.vue +6 -9
- package/src/features/User/AddUser/ui/AddUserDialog/AddUserDialog.vue +4 -4
- package/src/features/User/LoginUser/model/index.ts +3 -7
- package/src/features/User/LoginUser/ui/LoginForm/LoginForm.vue +0 -6
- package/src/features/User/Logout/model/index.ts +2 -1
- package/src/features/Wallet/DepositToWallet/ui/DepositButton/DepositButton.vue +10 -7
- package/src/features/Wallet/WithdrawFromWallet/ui/withdrawButton.vue +7 -6
- 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} +12 -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 +51 -24
- 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 +4 -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 +6 -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 +5 -5
- package/src/shared/api/client.ts +4 -4
- package/src/shared/api/eosio.ts +2 -2
- package/src/shared/api/indexDB.ts +3 -0
- package/src/shared/api/utils.ts +2 -2
- package/src/shared/config/Environment.ts +68 -0
- package/src/shared/config/index.ts +2 -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/proxy/dicebear-collection.cjs +21 -0
- package/src/shared/lib/proxy/dicebear-core.cjs +20 -0
- package/src/shared/lib/proxy/email-regex.cjs +19 -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/ClientOnly/ClientOnly.vue +15 -0
- package/src/shared/ui/ClientOnly/index.ts +1 -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 +88 -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 +2 -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/src-ssr/middlewares/injectEnv.ts +49 -0
- 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
@@ -1,25 +1,48 @@
|
|
1
1
|
<template lang="pug">
|
2
2
|
.row.justify-center
|
3
|
-
div.documents-gap.col-md-
|
4
|
-
|
5
|
-
BaseDocument(
|
3
|
+
div.documents-gap.col-md-7.col-xs-12
|
4
|
+
// Отображение основного документа с агрегатом
|
5
|
+
BaseDocument(
|
6
|
+
v-if="documentData.statement && documentData.statement.documentAggregate"
|
7
|
+
:documentAggregate="documentData.statement.documentAggregate"
|
8
|
+
)
|
6
9
|
|
7
|
-
|
10
|
+
// Отображение связанных документов из агрегата
|
11
|
+
div(v-if="documentData.links.length > 0 && documentData.statement")
|
12
|
+
div(
|
13
|
+
v-for="linkedDoc, index in documentData.links"
|
14
|
+
v-bind:key="index"
|
15
|
+
).documents-gap
|
16
|
+
BaseDocument(
|
17
|
+
:documentAggregate="linkedDoc"
|
18
|
+
)
|
8
19
|
|
20
|
+
// Отображение документа решения с агрегатом
|
21
|
+
BaseDocument(
|
22
|
+
v-if="documentData.decision && documentData.decision.documentAggregate"
|
23
|
+
:documentAggregate="documentData.decision.documentAggregate"
|
24
|
+
)
|
9
25
|
</template>
|
10
26
|
|
11
27
|
<script setup lang="ts">
|
12
28
|
import { computed } from 'vue'
|
13
29
|
import { BaseDocument } from '../BaseDocument';
|
14
|
-
import {
|
30
|
+
import type { IDocumentPackageAggregate } from 'src/entities/Document/model/types'
|
15
31
|
|
16
32
|
const props = defineProps({
|
17
33
|
documents: {
|
18
|
-
type: Object as () =>
|
34
|
+
type: Object as () => IDocumentPackageAggregate,
|
19
35
|
required: true
|
20
36
|
},
|
21
37
|
})
|
22
38
|
|
23
|
-
|
24
|
-
|
39
|
+
// Просто используем документы как есть
|
40
|
+
const documentData = computed(() => props.documents)
|
25
41
|
</script>
|
42
|
+
|
43
|
+
<style lang="scss" scoped>
|
44
|
+
.documents-gap {
|
45
|
+
padding-top: 1rem;
|
46
|
+
padding-bottom: 1rem;
|
47
|
+
}
|
48
|
+
</style>
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as CopyableInput } from './ui/CopyableInput.vue';
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
q-input(
|
3
|
+
:label="label"
|
4
|
+
:model-value="modelValue"
|
5
|
+
:readonly="readonly"
|
6
|
+
:standout="standout"
|
7
|
+
:dense="dense"
|
8
|
+
:class="inputClass"
|
9
|
+
)
|
10
|
+
template(v-slot:append)
|
11
|
+
q-btn(
|
12
|
+
flat
|
13
|
+
round
|
14
|
+
dense
|
15
|
+
icon="fa fa-copy"
|
16
|
+
@click="copyToClipboard"
|
17
|
+
)
|
18
|
+
q-tooltip Копировать
|
19
|
+
</template>
|
20
|
+
|
21
|
+
<script lang="ts" setup>
|
22
|
+
import { copyToClipboard as copy } from 'quasar'
|
23
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api'
|
24
|
+
|
25
|
+
const props = defineProps({
|
26
|
+
modelValue: {
|
27
|
+
type: [String, Number],
|
28
|
+
required: true
|
29
|
+
},
|
30
|
+
label: {
|
31
|
+
type: String,
|
32
|
+
default: ''
|
33
|
+
},
|
34
|
+
readonly: {
|
35
|
+
type: Boolean,
|
36
|
+
default: true
|
37
|
+
},
|
38
|
+
standout: {
|
39
|
+
type: [Boolean, String],
|
40
|
+
default: false
|
41
|
+
},
|
42
|
+
dense: {
|
43
|
+
type: Boolean,
|
44
|
+
default: false
|
45
|
+
},
|
46
|
+
inputClass: {
|
47
|
+
type: String,
|
48
|
+
default: ''
|
49
|
+
}
|
50
|
+
})
|
51
|
+
|
52
|
+
const copyToClipboard = () => {
|
53
|
+
copy(String(props.modelValue))
|
54
|
+
.then(() => {
|
55
|
+
SuccessAlert('Скопировано в буфер обмена')
|
56
|
+
})
|
57
|
+
.catch((e) => {
|
58
|
+
console.error(e)
|
59
|
+
FailAlert('Не удалось скопировать')
|
60
|
+
})
|
61
|
+
}
|
62
|
+
</script>
|
@@ -125,14 +125,15 @@ q-form(ref="form")
|
|
125
125
|
import { ref } from 'vue';
|
126
126
|
import { useEditableData } from 'src/shared/lib/composables/useEditableData';
|
127
127
|
import { notEmpty, notEmptyPhone, validatePersonalName } from 'src/shared/lib/utils';
|
128
|
-
import {
|
128
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api';
|
129
129
|
import { EditableActions } from 'src/shared/ui/EditableActions';
|
130
130
|
import { type IUpdateAccountInput, useUpdateAccount } from 'src/features/Account/UpdateAccount/model';
|
131
131
|
import { type IEntrepreneurData } from 'src/entities/Account/types';
|
132
|
-
|
132
|
+
import 'src/shared/ui/InputStyles/index.scss';
|
133
|
+
|
133
134
|
const emit = defineEmits(['update']);
|
134
135
|
const { updateAccount } = useUpdateAccount();
|
135
|
-
|
136
|
+
|
136
137
|
const props = defineProps({
|
137
138
|
participantData: {
|
138
139
|
type: Object as () => IEntrepreneurData,
|
@@ -143,10 +144,10 @@ q-form(ref="form")
|
|
143
144
|
default: false
|
144
145
|
}
|
145
146
|
});
|
146
|
-
|
147
|
+
|
147
148
|
const localEntrepreneurData = ref(props.participantData);
|
148
149
|
const form = ref();
|
149
|
-
|
150
|
+
|
150
151
|
const handleSave = async () => {
|
151
152
|
try {
|
152
153
|
const account_data: IUpdateAccountInput = {
|
@@ -158,13 +159,13 @@ q-form(ref="form")
|
|
158
159
|
SuccessAlert('Данные аккаунта обновлены');
|
159
160
|
} catch (e) {
|
160
161
|
console.log(e);
|
161
|
-
|
162
|
+
FailAlert(e);
|
162
163
|
}
|
163
164
|
};
|
164
|
-
|
165
|
+
|
165
166
|
const { editableData: data, isEditing, isDisabled, saveChanges, cancelChanges } = useEditableData(
|
166
167
|
localEntrepreneurData.value,
|
167
168
|
handleSave,
|
168
169
|
form
|
169
170
|
);
|
170
|
-
</script>
|
171
|
+
</script>
|
@@ -8,7 +8,7 @@ q-form(ref="form" v-if="data")
|
|
8
8
|
:readonly="readonly"
|
9
9
|
:rules="[val => validEmail(val)]"
|
10
10
|
autocomplete="off"
|
11
|
-
)
|
11
|
+
)
|
12
12
|
q-input(
|
13
13
|
dense
|
14
14
|
v-model="data.first_name"
|
@@ -152,19 +152,20 @@ q-form(ref="form" v-if="data")
|
|
152
152
|
@cancel="cancelChanges"
|
153
153
|
)
|
154
154
|
</template>
|
155
|
-
|
155
|
+
|
156
156
|
<script lang="ts" setup>
|
157
157
|
import { ref } from 'vue';
|
158
158
|
import { useEditableData } from 'src/shared/lib/composables/useEditableData';
|
159
159
|
import { validEmail } from 'src/shared/lib/utils/validEmailRule';
|
160
160
|
import { validatePersonalName, notEmpty } from 'src/shared/lib/utils';
|
161
|
-
import {
|
161
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api';
|
162
162
|
import { type IUpdateAccountInput, useUpdateAccount } from 'src/features/Account/UpdateAccount/model';
|
163
163
|
import { EditableActions } from 'src/shared/ui/EditableActions';
|
164
164
|
import { type IIndividualData } from 'src/entities/Account/types';
|
165
|
-
|
165
|
+
import 'src/shared/ui/InputStyles/index.scss';
|
166
|
+
|
166
167
|
const { updateAccount } = useUpdateAccount()
|
167
|
-
|
168
|
+
|
168
169
|
const props = defineProps({
|
169
170
|
participantData: {
|
170
171
|
type: Object as () => IIndividualData,
|
@@ -175,11 +176,11 @@ q-form(ref="form" v-if="data")
|
|
175
176
|
default: false
|
176
177
|
}
|
177
178
|
});
|
178
|
-
|
179
|
+
|
179
180
|
const localParticipantData = ref(props.participantData);
|
180
181
|
const form = ref();
|
181
182
|
const emit = defineEmits(['update']);
|
182
|
-
|
183
|
+
|
183
184
|
const handleSave = async () => {
|
184
185
|
try {
|
185
186
|
const account_data: IUpdateAccountInput = {
|
@@ -190,14 +191,13 @@ q-form(ref="form" v-if="data")
|
|
190
191
|
emit('update', JSON.parse(JSON.stringify(data.value)))
|
191
192
|
SuccessAlert('Данные аккаунта обновлены')
|
192
193
|
} catch (e: any) {
|
193
|
-
|
194
|
+
FailAlert(e);
|
194
195
|
}
|
195
196
|
};
|
196
|
-
|
197
|
+
|
197
198
|
const { editableData: data, isEditing, isDisabled, saveChanges, cancelChanges } = useEditableData(
|
198
199
|
localParticipantData.value,
|
199
200
|
handleSave,
|
200
201
|
form
|
201
202
|
);
|
202
203
|
</script>
|
203
|
-
|
@@ -1,5 +1,14 @@
|
|
1
1
|
<template lang="pug">
|
2
2
|
q-form(ref="form" v-if="data")
|
3
|
+
q-input(
|
4
|
+
dense
|
5
|
+
v-model="data.email"
|
6
|
+
standout="bg-teal text-white"
|
7
|
+
label="Email"
|
8
|
+
:readonly="readonly"
|
9
|
+
:rules="[val => validEmail(val)]"
|
10
|
+
autocomplete="off"
|
11
|
+
)
|
3
12
|
q-select(
|
4
13
|
dense
|
5
14
|
v-model="data.type"
|
@@ -165,51 +174,52 @@ q-form(ref="form" v-if="data")
|
|
165
174
|
@cancel="cancelChanges"
|
166
175
|
)
|
167
176
|
</template>
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
177
|
+
|
178
|
+
<script lang="ts" setup>
|
179
|
+
import { ref } from 'vue';
|
180
|
+
import { useEditableData } from 'src/shared/lib/composables/useEditableData';
|
181
|
+
import { notEmpty, notEmptyPhone, validatePersonalName } from 'src/shared/lib/utils';
|
182
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api';
|
183
|
+
import { EditableActions } from 'src/shared/ui/EditableActions';
|
184
|
+
import { type IUpdateAccountInput, useUpdateAccount } from 'src/features/Account/UpdateAccount/model';
|
185
|
+
import { type IOrganizationData } from 'src/entities/Account/types';
|
186
|
+
import { validEmail } from 'src/shared/lib/utils/validEmailRule';
|
187
|
+
import 'src/shared/ui/InputStyles/index.scss';
|
188
|
+
|
189
|
+
const emit = defineEmits(['update']);
|
190
|
+
const { updateAccount } = useUpdateAccount();
|
191
|
+
|
192
|
+
const props = defineProps({
|
193
|
+
participantData: {
|
194
|
+
type: Object as () => IOrganizationData,
|
195
|
+
required: true
|
196
|
+
},
|
197
|
+
readonly: {
|
198
|
+
type: Boolean,
|
199
|
+
default: false
|
200
|
+
}
|
201
|
+
});
|
202
|
+
|
203
|
+
const localOrganizationData = ref(props.participantData);
|
204
|
+
const form = ref();
|
205
|
+
|
206
|
+
const handleSave = async () => {
|
207
|
+
try {
|
208
|
+
const account_data: IUpdateAccountInput = {
|
209
|
+
username: props.participantData.username,
|
210
|
+
organization_data: data.value,
|
211
|
+
};
|
212
|
+
await updateAccount(account_data);
|
213
|
+
emit('update', JSON.parse(JSON.stringify(data.value)));
|
214
|
+
SuccessAlert('Данные аккаунта обновлены');
|
215
|
+
} catch (e) {
|
216
|
+
console.log(e);
|
217
|
+
FailAlert(e);
|
218
|
+
}
|
219
|
+
};
|
220
|
+
const { editableData: data, isEditing, isDisabled, saveChanges, cancelChanges } = useEditableData(
|
221
|
+
localOrganizationData.value,
|
222
|
+
handleSave,
|
223
|
+
form
|
224
|
+
);
|
214
225
|
</script>
|
215
|
-
|
@@ -7,6 +7,7 @@ interface IFormProps {
|
|
7
7
|
showCancel?: boolean
|
8
8
|
buttonSubmitTxt?: string
|
9
9
|
buttonCancelTxt?: string
|
10
|
+
disabled?: boolean
|
10
11
|
}
|
11
12
|
|
12
13
|
withDefaults(defineProps<IFormProps>(), {
|
@@ -15,6 +16,7 @@ withDefaults(defineProps<IFormProps>(), {
|
|
15
16
|
showSubmit: true,
|
16
17
|
buttonSubmitTxt: 'Продолжить',
|
17
18
|
buttonCancelTxt: 'Отменить',
|
19
|
+
disabled: false,
|
18
20
|
})
|
19
21
|
|
20
22
|
const cancel = (): void => {
|
@@ -28,6 +30,6 @@ q-form(@submit.prevent="handlerSubmit")
|
|
28
30
|
slot
|
29
31
|
div.flex
|
30
32
|
q-btn(v-if="showCancel" flat @click="cancel" size="sm") {{ buttonCancelTxt }}
|
31
|
-
q-btn(v-if="showSubmit" size="sm" type="submit" :loading="isSubmitting" color="primary") {{ buttonSubmitTxt }}
|
33
|
+
q-btn(v-if="showSubmit" size="sm" type="submit" :loading="isSubmitting" color="primary" :disabled="disabled") {{ buttonSubmitTxt }}
|
32
34
|
|
33
35
|
</template>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// Стили для инпутов и валидации
|
2
|
+
|
3
|
+
// Стили для изменения цвета ошибки валидации
|
4
|
+
// .q-field__bottom--animated {
|
5
|
+
// .q-field__messages {
|
6
|
+
// color: red !important;
|
7
|
+
// font-weight: 500 !important;
|
8
|
+
// }
|
9
|
+
// }
|
10
|
+
|
11
|
+
// .q-field--error {
|
12
|
+
// .q-field__bottom {
|
13
|
+
// color: red !important;
|
14
|
+
// }
|
15
|
+
|
16
|
+
// .q-field__label {
|
17
|
+
// color: red !important;
|
18
|
+
// }
|
19
|
+
|
20
|
+
// &.q-field--highlighted {
|
21
|
+
// .q-field__control {
|
22
|
+
// color: red !important;
|
23
|
+
// }
|
24
|
+
// }
|
25
|
+
|
26
|
+
// .q-field__control {
|
27
|
+
// border-color: red !important;
|
28
|
+
// }
|
29
|
+
// }
|
@@ -0,0 +1,53 @@
|
|
1
|
+
// Стили для компактных табов
|
2
|
+
.compact-tabs {
|
3
|
+
border-radius: 8px 8px 0 0;
|
4
|
+
overflow: hidden;
|
5
|
+
background-color: rgba(0, 0, 0, 0.03);
|
6
|
+
border: 1px solid rgba(0, 0, 0, 0.05);
|
7
|
+
border-bottom: none;
|
8
|
+
|
9
|
+
.q-dark & {
|
10
|
+
background-color: rgba(255, 255, 255, 0.05);
|
11
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
12
|
+
border-bottom: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
:deep(.q-tab) {
|
16
|
+
font-size: 11px !important;
|
17
|
+
font-weight: 400;
|
18
|
+
transition: all 0.2s ease;
|
19
|
+
letter-spacing: -0.2px;
|
20
|
+
}
|
21
|
+
|
22
|
+
:deep(.q-tab__label) {
|
23
|
+
font-size: 11px !important;
|
24
|
+
transition: transform 0.2s ease;
|
25
|
+
}
|
26
|
+
|
27
|
+
:deep(.q-tab__indicator) {
|
28
|
+
height: 3px;
|
29
|
+
opacity: 0.8;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.q-tab__label {
|
34
|
+
font-size: 12px !important;
|
35
|
+
}
|
36
|
+
.q-tab {
|
37
|
+
min-height: 32px !important;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Стили для панелей табов
|
41
|
+
.tab-panels-card {
|
42
|
+
font-size: 10px !important;
|
43
|
+
border-radius: 0 0 8px 8px;
|
44
|
+
background-color: rgba(0, 0, 0, 0.02);
|
45
|
+
border: 1px solid rgba(0, 0, 0, 0.05);
|
46
|
+
border-top: none;
|
47
|
+
|
48
|
+
.q-dark & {
|
49
|
+
background-color: rgba(255, 255, 255, 0.03);
|
50
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
51
|
+
border-top: none;
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './CopyableInput';
|
package/src/{components/history/AccountEvents.vue → widgets/AccountActions/AccountActionsPage.vue}
RENAMED
@@ -25,8 +25,8 @@
|
|
25
25
|
import { ref, watch, onMounted } from 'vue'
|
26
26
|
import moment from 'moment-with-locales-es6'
|
27
27
|
import { QTableProps } from 'quasar'
|
28
|
-
import ActionCell from '
|
29
|
-
import DataCell from '
|
28
|
+
import ActionCell from './ActionCell.vue'
|
29
|
+
import DataCell from './DataCell.vue'
|
30
30
|
|
31
31
|
const props = defineProps<{
|
32
32
|
username: string
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as AccountActionsPage } from './AccountActionsPage.vue'
|
@@ -75,7 +75,7 @@ import type { Zeus } from '@coopenomics/sdk';
|
|
75
75
|
import { EditableActions } from 'src/shared/ui/EditableActions';
|
76
76
|
import { notEmpty } from 'src/shared/lib/utils';
|
77
77
|
import { useUpdateBranchBankAccount } from 'src/features/PaymentMethod/UpdateBankAccount/model';
|
78
|
-
import {
|
78
|
+
import { FailAlert } from 'src/shared/api';
|
79
79
|
|
80
80
|
const props = defineProps({
|
81
81
|
bankDetails: {
|
@@ -93,7 +93,7 @@ const handleSave = async (data: Zeus.ModelTypes['BankPaymentMethod']) => {
|
|
93
93
|
const { updateBankAccount } = useUpdateBranchBankAccount();
|
94
94
|
await updateBankAccount(data);
|
95
95
|
} catch(e){
|
96
|
-
|
96
|
+
FailAlert(e)
|
97
97
|
}
|
98
98
|
};
|
99
99
|
|
@@ -6,7 +6,7 @@ import type { IBranch } from 'src/entities/Branch/model';
|
|
6
6
|
import { EditableActions } from 'src/shared/ui/EditableActions';
|
7
7
|
import { ref } from 'vue';
|
8
8
|
import { useEditBranch } from 'src/features/Branch/EditBranch';
|
9
|
-
import {
|
9
|
+
import { FailAlert } from 'src/shared/api';
|
10
10
|
|
11
11
|
const props = defineProps({
|
12
12
|
branch: {
|
@@ -22,7 +22,7 @@ const handleSave = async (updatedBranch: IBranch) => {
|
|
22
22
|
try {
|
23
23
|
await editBranch(updatedBranch)
|
24
24
|
} catch(e){
|
25
|
-
|
25
|
+
FailAlert(e)
|
26
26
|
}
|
27
27
|
|
28
28
|
};
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div.q-pa-xs.col-xs-12.col-sm-12.col-md-12.q-mt-md
|
3
|
+
q-card(bordered flat)
|
4
|
+
q-card-section.q-py-xs
|
5
|
+
div.text-subtitle2 {{ document.statement?.documentAggregate?.rawDocument?.full_title || '' }}
|
6
|
+
div.text-caption ID: {{ getDocumentHash(document).substring(0, 10) || '' }}
|
7
|
+
|
8
|
+
q-separator
|
9
|
+
|
10
|
+
q-card-actions(align="right")
|
11
|
+
q-btn(size="sm" flat icon="expand_more" @click="$emit('toggle-expand')")
|
12
|
+
| {{ expanded ? 'Скрыть' : 'Подробнее' }}
|
13
|
+
|
14
|
+
q-slide-transition
|
15
|
+
div(v-show="expanded")
|
16
|
+
q-separator
|
17
|
+
q-card-section
|
18
|
+
ComplexDocument(:documents="document")
|
19
|
+
</template>
|
20
|
+
|
21
|
+
<script setup lang="ts">
|
22
|
+
import { ComplexDocument } from 'src/shared/ui/ComplexDocument'
|
23
|
+
import type { IDocumentPackageAggregate } from 'src/entities/Document/model'
|
24
|
+
|
25
|
+
withDefaults(defineProps<{
|
26
|
+
document: IDocumentPackageAggregate
|
27
|
+
expanded?: boolean
|
28
|
+
}>(), {
|
29
|
+
expanded: false
|
30
|
+
})
|
31
|
+
|
32
|
+
defineEmits<{
|
33
|
+
(e: 'toggle-expand'): void
|
34
|
+
}>()
|
35
|
+
|
36
|
+
// Получение хеша документа из агрегата
|
37
|
+
function getDocumentHash(doc: IDocumentPackageAggregate) {
|
38
|
+
if (doc.statement?.documentAggregate?.rawDocument?.hash) {
|
39
|
+
return doc.statement.documentAggregate.rawDocument.hash
|
40
|
+
}
|
41
|
+
|
42
|
+
if (doc.decision?.documentAggregate?.rawDocument?.hash) {
|
43
|
+
return doc.decision.documentAggregate.rawDocument.hash
|
44
|
+
}
|
45
|
+
|
46
|
+
return 'нет хеша'
|
47
|
+
}
|
48
|
+
</script>
|