@coopenomics/desktop 2.2.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/.editorconfig +9 -0
- package/.env-example +3 -0
- package/.eslintignore +8 -0
- package/.eslintrc.cjs +91 -0
- package/.prettierrc +7 -0
- package/.vscode/extensions.json +15 -0
- package/.vscode/settings.json +14 -0
- package/CHANGELOG.md +495 -0
- package/Env-example.ts +12 -0
- package/README.md +38 -0
- package/extensions/powerup/boot.ts +17 -0
- package/extensions/powerup/src/Powerup.vue +3 -0
- package/index.html +78 -0
- package/package.json +98 -0
- package/postcss.config.cjs +27 -0
- package/public/documents/privacy_policy.pdf +0 -0
- package/public/documents/regulation_on_the_cpp_wallet.pdf +0 -0
- package/public/documents/regulation_on_the_procedure_and_rules_for_using_a_simple_electronic_signature.pdf +0 -0
- package/public/documents/user_agreement.pdf +0 -0
- package/public/documents/ustav.pdf +0 -0
- package/public/icons/favicon-128x128.png +0 -0
- package/public/icons/favicon-16x16.png +0 -0
- package/public/icons/favicon-32x32.png +0 -0
- package/public/icons/favicon-96x96.png +0 -0
- package/public/logo.svg +1 -0
- package/public/open.ttf +0 -0
- package/public/pwa/pwa_icon_128x128.png +0 -0
- package/public/pwa/pwa_icon_144x144.png +0 -0
- package/public/pwa/pwa_icon_152x152.png +0 -0
- package/public/pwa/pwa_icon_192x192.png +0 -0
- package/public/pwa/pwa_icon_256x256.png +0 -0
- package/public/pwa/pwa_icon_384x384.png +0 -0
- package/public/pwa/pwa_icon_48x48.png +0 -0
- package/public/pwa/pwa_icon_512x512.png +0 -0
- package/public/pwa/pwa_icon_72x72.png +0 -0
- package/public/pwa/pwa_icon_96x96.png +0 -0
- package/public/roboto.ttf +0 -0
- package/public/service-worker.js +17 -0
- package/public/ubuntu.ttf +0 -0
- package/quasar.config.cjs +256 -0
- package/src/app/App.vue +85 -0
- package/src/app/config/index.ts +188 -0
- package/src/app/providers/card/store.ts +39 -0
- package/src/app/providers/router.ts +28 -0
- package/src/app/providers/routes/index.ts +288 -0
- package/src/app/service-worker.js +12 -0
- package/src/app/styles/app.scss +29 -0
- package/src/app/styles/quasar-variables.sass +556 -0
- package/src/app/styles/style.css +388 -0
- package/src/assets/anime.svg +187 -0
- package/src/assets/bizsystem.svg +1 -0
- package/src/assets/blockchain.svg +1 -0
- package/src/assets/buycheaper.svg +1 -0
- package/src/assets/cart.svg +3 -0
- package/src/assets/club1.svg +1 -0
- package/src/assets/club2.svg +1 -0
- package/src/assets/clubs.png +0 -0
- package/src/assets/clubs.svg +1 -0
- package/src/assets/crown.svg +3 -0
- package/src/assets/dacom.png +0 -0
- package/src/assets/dacom2.png +0 -0
- package/src/assets/dacom_night.svg +1 -0
- package/src/assets/dacom_night2.png +0 -0
- package/src/assets/dao_free.svg +1 -0
- package/src/assets/flow1.svg +1 -0
- package/src/assets/flow2.svg +1 -0
- package/src/assets/flow3.svg +1 -0
- package/src/assets/flow4.svg +1 -0
- package/src/assets/header-logo.svg +25 -0
- package/src/assets/history.svg +4 -0
- package/src/assets/logo-white.png +0 -0
- package/src/assets/logo.png +0 -0
- package/src/assets/main.svg +1 -0
- package/src/assets/menu.svg +3 -0
- package/src/assets/order.svg +5 -0
- package/src/assets/pin.svg +4 -0
- package/src/assets/quasar-logo-vertical.svg +15 -0
- package/src/assets/sellmore.svg +1 -0
- package/src/assets/star.svg +4 -0
- package/src/assets/systemadmin.svg +1 -0
- package/src/assets/systemfunds.svg +1 -0
- package/src/assets/systemgoals.svg +1 -0
- package/src/assets/systemgov.svg +1 -0
- package/src/assets/systemprojects.svg +1 -0
- package/src/assets/systemtasks.svg +1 -0
- package/src/assets/ticket.svg +1 -0
- package/src/assets/union.svg +3 -0
- package/src/assets/user.png +0 -0
- package/src/assets/wallet.svg +4 -0
- package/src/assets/welcome.jpeg +0 -0
- package/src/boot/.gitkeep +0 -0
- package/src/boot/axios.ts +31 -0
- package/src/boot/branch-selector.ts +42 -0
- package/src/boot/i18n.ts +33 -0
- package/src/boot/init-stores.ts +43 -0
- package/src/boot/map.ts +7 -0
- package/src/boot/navigation-guards.ts +48 -0
- package/src/boot/sentry.ts +26 -0
- package/src/chainsMain.ts +8 -0
- package/src/components/history/AccountEvents.vue +137 -0
- package/src/components/history/AccountLink.vue +11 -0
- package/src/components/history/ActionCell.vue +96 -0
- package/src/components/history/DataCell.vue +84 -0
- package/src/components/menu/blockchainStatus.vue +84 -0
- package/src/components/menu/footerMobileMenu.vue +77 -0
- package/src/components/soviet/index.vue +76 -0
- package/src/components/soviet/staff.vue +272 -0
- package/src/css/quasar.variables.scss +50 -0
- package/src/desktops/Chairman/index.ts +1 -0
- package/src/desktops/Chairman/model/index.ts +63 -0
- package/src/desktops/Member/index.ts +1 -0
- package/src/desktops/Member/model/index.ts +63 -0
- package/src/desktops/Setup/index.ts +1 -0
- package/src/desktops/Setup/model/index.ts +63 -0
- package/src/desktops/User/index.ts +1 -0
- package/src/desktops/User/model/index.ts +325 -0
- package/src/desktops/index.ts +9 -0
- package/src/entities/Account/api/index.ts +17 -0
- package/src/entities/Account/index.ts +2 -0
- package/src/entities/Account/model/index.ts +1 -0
- package/src/entities/Account/model/store.ts +25 -0
- package/src/entities/Account/types/index.ts +3 -0
- package/src/entities/Agreement/api/index.ts +46 -0
- package/src/entities/Agreement/index.ts +2 -0
- package/src/entities/Agreement/model/index.ts +1 -0
- package/src/entities/Agreement/model/store.ts +49 -0
- package/src/entities/Branch/api/index.ts +34 -0
- package/src/entities/Branch/index.ts +2 -0
- package/src/entities/Branch/model/index.ts +2 -0
- package/src/entities/Branch/model/store.ts +36 -0
- package/src/entities/Branch/model/types.ts +7 -0
- package/src/entities/Cooperative/api/index.ts +106 -0
- package/src/entities/Cooperative/index.ts +2 -0
- package/src/entities/Cooperative/model/index.ts +2 -0
- package/src/entities/Cooperative/model/stores.ts +123 -0
- package/src/entities/Cooperative/model/types.ts +19 -0
- package/src/entities/Decision/index.ts +1 -0
- package/src/entities/Decision/model/index.ts +1 -0
- package/src/entities/Decision/model/types.ts +4 -0
- package/src/entities/Desktop/api/index.ts +10 -0
- package/src/entities/Desktop/index.ts +2 -0
- package/src/entities/Desktop/model/index.ts +1 -0
- package/src/entities/Desktop/model/store.ts +135 -0
- package/src/entities/Desktop/model/types.ts +29 -0
- package/src/entities/Extension/api/index.ts +19 -0
- package/src/entities/Extension/index.ts +2 -0
- package/src/entities/Extension/model/index.ts +2 -0
- package/src/entities/Extension/model/store.ts +71 -0
- package/src/entities/Extension/model/types.ts +28 -0
- package/src/entities/Installer/index.ts +1 -0
- package/src/entities/Installer/model/index.ts +1 -0
- package/src/entities/Installer/model/store.ts +36 -0
- package/src/entities/Menu/index.ts +2 -0
- package/src/entities/Menu/model/index.ts +2 -0
- package/src/entities/Menu/model/store.ts +69 -0
- package/src/entities/Menu/model/types.ts +11 -0
- package/src/entities/Menu/ui/index.ts +1 -0
- package/src/entities/Order/api/index.ts +14 -0
- package/src/entities/Order/index.ts +1 -0
- package/src/entities/Order/model/index.ts +1 -0
- package/src/entities/Order/model/store.ts +87 -0
- package/src/entities/Registrator/index.ts +2 -0
- package/src/entities/Registrator/model/index.ts +1 -0
- package/src/entities/Registrator/model/store.ts +237 -0
- package/src/entities/Registrator/ui/index.ts +1 -0
- package/src/entities/Request/api/index.ts +192 -0
- package/src/entities/Request/index.ts +3 -0
- package/src/entities/Request/model/index.ts +1 -0
- package/src/entities/Request/model/stores.ts +123 -0
- package/src/entities/Request/model/types.ts +57 -0
- package/src/entities/Request/ui/index.ts +1 -0
- package/src/entities/Session/api/index.ts +21 -0
- package/src/entities/Session/index.ts +2 -0
- package/src/entities/Session/model/index.ts +2 -0
- package/src/entities/Session/model/store.ts +100 -0
- package/src/entities/Session/model/types.ts +1 -0
- package/src/entities/Settings/api/index.ts +8 -0
- package/src/entities/Settings/index.ts +2 -0
- package/src/entities/Settings/model/index.ts +1 -0
- package/src/entities/Settings/model/store.ts +24 -0
- package/src/entities/System/api/index.ts +12 -0
- package/src/entities/System/index.ts +2 -0
- package/src/entities/System/model/index.ts +1 -0
- package/src/entities/System/model/store.ts +24 -0
- package/src/entities/System/types/index.ts +3 -0
- package/src/entities/Union/model/index.ts +1 -0
- package/src/entities/Union/model/store.ts +19 -0
- package/src/entities/User/api/index.ts +75 -0
- package/src/entities/User/index.ts +3 -0
- package/src/entities/User/model/entity.ts +47 -0
- package/src/entities/User/model/index.ts +2 -0
- package/src/entities/User/model/stores.ts +49 -0
- package/src/entities/User/model/types.ts +36 -0
- package/src/entities/User/ui/index.ts +1 -0
- package/src/entities/Wallet/api/index.ts +192 -0
- package/src/entities/Wallet/index.ts +3 -0
- package/src/entities/Wallet/model/index.ts +2 -0
- package/src/entities/Wallet/model/stores.ts +108 -0
- package/src/entities/Wallet/model/types.ts +77 -0
- package/src/entities/Wallet/ui/WalletBalance/WalletBalance.vue +35 -0
- package/src/entities/Wallet/ui/WalletBalance/index.ts +1 -0
- package/src/entities/Wallet/ui/WalletProgramsList/WalletProgramsList.vue +15 -0
- package/src/entities/Wallet/ui/WalletProgramsList/index.ts +1 -0
- package/src/entities/Wallet/ui/index.ts +2 -0
- package/src/env.d.ts +28 -0
- package/src/features/Agreementer/GenerateAgreement/index.ts +1 -0
- package/src/features/Agreementer/GenerateAgreement/model/index.ts +24 -0
- package/src/features/Agreementer/GenerateAgreement/ui/AgreementReader.vue +37 -0
- package/src/features/Agreementer/GenerateAgreement/ui/index.ts +1 -0
- package/src/features/Agreementer/ReadAgreementDialog/index.ts +1 -0
- package/src/features/Agreementer/ReadAgreementDialog/ui/ReadAgreementDialog.vue +58 -0
- package/src/features/Agreementer/ReadAgreementDialog/ui/index.ts +1 -0
- package/src/features/Agreementer/SignAgreementDialog/api/index.ts +26 -0
- package/src/features/Agreementer/SignAgreementDialog/index.ts +3 -0
- package/src/features/Agreementer/SignAgreementDialog/model/index.ts +27 -0
- package/src/features/Agreementer/SignAgreementDialog/ui/SignAgreementDialog.vue +73 -0
- package/src/features/Agreementer/SignAgreementDialog/ui/index.ts +1 -0
- package/src/features/Branch/CreateBranch/api/index.ts +16 -0
- package/src/features/Branch/CreateBranch/index.ts +2 -0
- package/src/features/Branch/CreateBranch/model/index.ts +49 -0
- package/src/features/Branch/CreateBranch/ui/CreateBranchButton.vue +61 -0
- package/src/features/Branch/CreateBranch/ui/index.ts +1 -0
- package/src/features/Branch/EditBranch/api/index.ts +16 -0
- package/src/features/Branch/EditBranch/index.ts +2 -0
- package/src/features/Branch/EditBranch/model/index.ts +34 -0
- package/src/features/Branch/SelectBranch/api/index.ts +15 -0
- package/src/features/Branch/SelectBranch/index.ts +1 -0
- package/src/features/Branch/SelectBranch/model/index.ts +18 -0
- package/src/features/Branch/SelectBranch/ui/SelectBranchOverlay.vue +109 -0
- package/src/features/Branch/SelectBranch/ui/index.ts +1 -0
- package/src/features/Cooperative/AddAdmin/index.ts +1 -0
- package/src/features/Cooperative/AddAdmin/model/index.ts +27 -0
- package/src/features/Cooperative/CreateBoard/index.ts +1 -0
- package/src/features/Cooperative/CreateBoard/model/index.ts +27 -0
- package/src/features/Cooperative/DeleteAdmin/index.ts +1 -0
- package/src/features/Cooperative/DeleteAdmin/model/index.ts +27 -0
- package/src/features/Cooperative/SetRights/index.ts +1 -0
- package/src/features/Cooperative/SetRights/model/index.ts +27 -0
- package/src/features/Cooperative/UpdateBoard/index.ts +1 -0
- package/src/features/Cooperative/UpdateBoard/model/index.ts +27 -0
- package/src/features/Cooperative/UpdateCoop/index.ts +1 -0
- package/src/features/Cooperative/UpdateCoop/model/index.ts +27 -0
- package/src/features/Decision/AuthorizeAndExecDecision/index.ts +1 -0
- package/src/features/Decision/AuthorizeAndExecDecision/model/index.ts +83 -0
- package/src/features/Decision/AutomateDecision/index.ts +1 -0
- package/src/features/Decision/AutomateDecision/model/index.ts +27 -0
- package/src/features/Decision/CreateProject/index.ts +1 -0
- package/src/features/Decision/CreateProject/model/index.ts +84 -0
- package/src/features/Decision/CreateProject/ui/CreateProjectFreeDecisionButton.vue +51 -0
- package/src/features/Decision/CreateProject/ui/index.ts +1 -0
- package/src/features/Decision/DisautomateDecision/index.ts +1 -0
- package/src/features/Decision/DisautomateDecision/model/index.ts +27 -0
- package/src/features/Decision/GenerateProjectDocument/index.ts +1 -0
- package/src/features/Decision/GenerateProjectDocument/model/index.ts +22 -0
- package/src/features/Decision/PublishProject/index.ts +1 -0
- package/src/features/Decision/PublishProject/model/index.ts +22 -0
- package/src/features/Decision/ValidateDecision/index.ts +1 -0
- package/src/features/Decision/ValidateDecision/model/index.ts +27 -0
- package/src/features/Decision/VoteAgainstDecision/index.ts +1 -0
- package/src/features/Decision/VoteAgainstDecision/model/index.ts +27 -0
- package/src/features/Decision/VoteForDecision/index.ts +1 -0
- package/src/features/Decision/VoteForDecision/model/index.ts +32 -0
- package/src/features/Extension/InstallExtension/index.ts +1 -0
- package/src/features/Extension/InstallExtension/model/index.ts +25 -0
- package/src/features/Extension/UninstallExtension/index.ts +1 -0
- package/src/features/Extension/UninstallExtension/model/index.ts +23 -0
- package/src/features/Extension/UpdateExtension/index.ts +1 -0
- package/src/features/Extension/UpdateExtension/model/index.ts +25 -0
- package/src/features/Fund/CreateFund/index.ts +1 -0
- package/src/features/Fund/CreateFund/model/index.ts +27 -0
- package/src/features/Fund/DeleteFund/index.ts +1 -0
- package/src/features/Fund/DeleteFund/model/index.ts +27 -0
- package/src/features/Fund/EditFund/index.ts +1 -0
- package/src/features/Fund/EditFund/model/index.ts +27 -0
- package/src/features/Installer/api/index.ts +13 -0
- package/src/features/Installer/index.ts +2 -0
- package/src/features/Installer/model/index.ts +20 -0
- package/src/features/Installer/ui/RequestKeyForm/RequestKeyForm.vue +57 -0
- package/src/features/Installer/ui/RequestKeyForm/index.ts +1 -0
- package/src/features/Installer/ui/SetSovietForm/SetSovietForm.vue +71 -0
- package/src/features/Installer/ui/SetSovietForm/index.ts +1 -0
- package/src/features/Installer/ui/index.ts +2 -0
- package/src/features/Order/SetStatus/api/index.ts +7 -0
- package/src/features/Order/SetStatus/index.ts +1 -0
- package/src/features/Order/SetStatus/model/index.ts +23 -0
- package/src/features/Order/SetStatus/ui/SetOrderCompletedStatusButton/SetOrderCompletedStatusButton.vue +48 -0
- package/src/features/Order/SetStatus/ui/SetOrderCompletedStatusButton/index.ts +1 -0
- package/src/features/Order/SetStatus/ui/SetOrderPaidStatusButton/SetOrderPaidStatusButton.vue +49 -0
- package/src/features/Order/SetStatus/ui/SetOrderPaidStatusButton/index.ts +1 -0
- package/src/features/Order/SetStatus/ui/SetOrderRefundedStatusButton/SetOrderRefundedStatusButton.vue +49 -0
- package/src/features/Order/SetStatus/ui/SetOrderRefundedStatusButton/index.ts +1 -0
- package/src/features/PaymentMethod/AddPaymentMethod/index.ts +2 -0
- package/src/features/PaymentMethod/AddPaymentMethod/model/index.ts +56 -0
- package/src/features/PaymentMethod/AddPaymentMethod/ui/AddPaymentButton.vue +166 -0
- package/src/features/PaymentMethod/AddPaymentMethod/ui/index.ts +1 -0
- package/src/features/PaymentMethod/DeletePaymentMethod/index.ts +1 -0
- package/src/features/PaymentMethod/DeletePaymentMethod/model/index.ts +29 -0
- package/src/features/PaymentMethod/DeletePaymentMethod/ui/DeletePaymentMethodButton.vue +67 -0
- package/src/features/PaymentMethod/DeletePaymentMethod/ui/index.ts +1 -0
- package/src/features/PaymentMethod/UpdateBankAccount/api/index.ts +14 -0
- package/src/features/PaymentMethod/UpdateBankAccount/index.ts +1 -0
- package/src/features/PaymentMethod/UpdateBankAccount/model/index.ts +34 -0
- package/src/features/Request/AcceptRequest/api/index.ts +53 -0
- package/src/features/Request/AcceptRequest/index.ts +3 -0
- package/src/features/Request/AcceptRequest/model/index.ts +1 -0
- package/src/features/Request/AcceptRequest/model/types.ts +5 -0
- package/src/features/Request/AcceptRequest/ui/AcceptButton.vue +37 -0
- package/src/features/Request/AcceptRequest/ui/index.ts +1 -0
- package/src/features/Request/CancelRequest/api/index.ts +44 -0
- package/src/features/Request/CancelRequest/index.ts +3 -0
- package/src/features/Request/CancelRequest/model/index.ts +1 -0
- package/src/features/Request/CancelRequest/model/types.ts +5 -0
- package/src/features/Request/CancelRequest/ui/CancelButton.vue +36 -0
- package/src/features/Request/CancelRequest/ui/index.ts +1 -0
- package/src/features/Request/CompleteOnRequest/api/index.ts +43 -0
- package/src/features/Request/CompleteOnRequest/index.ts +3 -0
- package/src/features/Request/CompleteOnRequest/model/index.ts +1 -0
- package/src/features/Request/CompleteOnRequest/model/types.ts +5 -0
- package/src/features/Request/CompleteOnRequest/ui/CompleteOnRequestButton.vue +37 -0
- package/src/features/Request/CompleteOnRequest/ui/index.ts +1 -0
- package/src/features/Request/ConfirmRecieveOnRequest/api/index.ts +53 -0
- package/src/features/Request/ConfirmRecieveOnRequest/index.ts +3 -0
- package/src/features/Request/ConfirmRecieveOnRequest/model/index.ts +1 -0
- package/src/features/Request/ConfirmRecieveOnRequest/model/types.ts +5 -0
- package/src/features/Request/ConfirmRecieveOnRequest/ui/ConfirmRecieveOnRequest.vue +37 -0
- package/src/features/Request/ConfirmRecieveOnRequest/ui/index.ts +1 -0
- package/src/features/Request/ConfirmSupplyOnRequest/api/index.ts +53 -0
- package/src/features/Request/ConfirmSupplyOnRequest/index.ts +3 -0
- package/src/features/Request/ConfirmSupplyOnRequest/model/index.ts +1 -0
- package/src/features/Request/ConfirmSupplyOnRequest/model/types.ts +5 -0
- package/src/features/Request/ConfirmSupplyOnRequest/ui/ConfirmSupplyOnRequestButton.vue +38 -0
- package/src/features/Request/ConfirmSupplyOnRequest/ui/index.ts +1 -0
- package/src/features/Request/CreateChildOrder/api/index.ts +60 -0
- package/src/features/Request/CreateChildOrder/index.ts +3 -0
- package/src/features/Request/CreateChildOrder/model/index.ts +1 -0
- package/src/features/Request/CreateChildOrder/model/types.ts +17 -0
- package/src/features/Request/CreateChildOrder/ui/CreateChildOrderButton/CreateChildOrderButton.vue +30 -0
- package/src/features/Request/CreateChildOrder/ui/CreateChildOrderButton/index.ts +1 -0
- package/src/features/Request/CreateChildOrder/ui/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/api/index.ts +61 -0
- package/src/features/Request/CreateParentOffer/index.ts +3 -0
- package/src/features/Request/CreateParentOffer/model/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/model/types.ts +22 -0
- package/src/features/Request/CreateParentOffer/ui/CreateParentOfferForm/CreateParentOfferForm.vue +78 -0
- package/src/features/Request/CreateParentOffer/ui/CreateParentOfferForm/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/ui/ImageUploaderWithPreview/ImageUploaderWithPreview.vue +48 -0
- package/src/features/Request/CreateParentOffer/ui/ImageUploaderWithPreview/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/ui/ImagesPreview/ImagesPreview.vue +104 -0
- package/src/features/Request/CreateParentOffer/ui/ImagesPreview/index.ts +1 -0
- package/src/features/Request/CreateParentOffer/ui/index.ts +3 -0
- package/src/features/Request/DeclineRequest/api/index.ts +45 -0
- package/src/features/Request/DeclineRequest/index.ts +3 -0
- package/src/features/Request/DeclineRequest/model/index.ts +1 -0
- package/src/features/Request/DeclineRequest/model/types.ts +5 -0
- package/src/features/Request/DeclineRequest/ui/DeclineButton.vue +37 -0
- package/src/features/Request/DeclineRequest/ui/index.ts +1 -0
- package/src/features/Request/DeliverOnRequest/api/index.ts +43 -0
- package/src/features/Request/DeliverOnRequest/index.ts +3 -0
- package/src/features/Request/DeliverOnRequest/model/index.ts +1 -0
- package/src/features/Request/DeliverOnRequest/model/types.ts +5 -0
- package/src/features/Request/DeliverOnRequest/ui/DeliverOnRequestButton.vue +38 -0
- package/src/features/Request/DeliverOnRequest/ui/index.ts +1 -0
- package/src/features/Request/DisputeOnRequest/api/index.ts +53 -0
- package/src/features/Request/DisputeOnRequest/index.ts +3 -0
- package/src/features/Request/DisputeOnRequest/model/index.ts +1 -0
- package/src/features/Request/DisputeOnRequest/model/types.ts +5 -0
- package/src/features/Request/DisputeOnRequest/ui/DisputeOnRequestButton.vue +37 -0
- package/src/features/Request/DisputeOnRequest/ui/index.ts +1 -0
- package/src/features/Request/ModerateRequest/api/index.ts +43 -0
- package/src/features/Request/ModerateRequest/index.ts +3 -0
- package/src/features/Request/ModerateRequest/model/index.ts +1 -0
- package/src/features/Request/ModerateRequest/model/types.ts +6 -0
- package/src/features/Request/ModerateRequest/ui/ModerateRequestButton.vue +40 -0
- package/src/features/Request/ModerateRequest/ui/index.ts +1 -0
- package/src/features/Request/ProhibitRequest/api/index.ts +43 -0
- package/src/features/Request/ProhibitRequest/index.ts +3 -0
- package/src/features/Request/ProhibitRequest/model/index.ts +1 -0
- package/src/features/Request/ProhibitRequest/model/types.ts +5 -0
- package/src/features/Request/ProhibitRequest/ui/ProhibitRequestButton.vue +36 -0
- package/src/features/Request/ProhibitRequest/ui/index.ts +1 -0
- package/src/features/Request/PublishRequest/api/index.ts +44 -0
- package/src/features/Request/PublishRequest/index.ts +3 -0
- package/src/features/Request/PublishRequest/model/index.ts +1 -0
- package/src/features/Request/PublishRequest/model/types.ts +5 -0
- package/src/features/Request/PublishRequest/ui/PublishRequestButton.vue +36 -0
- package/src/features/Request/PublishRequest/ui/index.ts +1 -0
- package/src/features/Request/RecieveOnRequest/api/index.ts +53 -0
- package/src/features/Request/RecieveOnRequest/index.ts +3 -0
- package/src/features/Request/RecieveOnRequest/model/index.ts +1 -0
- package/src/features/Request/RecieveOnRequest/model/types.ts +5 -0
- package/src/features/Request/RecieveOnRequest/ui/RecieveOnRequestButton.vue +37 -0
- package/src/features/Request/RecieveOnRequest/ui/index.ts +1 -0
- package/src/features/Request/SupplyOnRequest/api/index.ts +53 -0
- package/src/features/Request/SupplyOnRequest/index.ts +3 -0
- package/src/features/Request/SupplyOnRequest/model/index.ts +1 -0
- package/src/features/Request/SupplyOnRequest/model/types.ts +5 -0
- package/src/features/Request/SupplyOnRequest/ui/SupplyOnRequestButton.vue +37 -0
- package/src/features/Request/SupplyOnRequest/ui/index.ts +1 -0
- package/src/features/Request/UnpublishRequest/api/index.ts +44 -0
- package/src/features/Request/UnpublishRequest/index.ts +3 -0
- package/src/features/Request/UnpublishRequest/model/index.ts +1 -0
- package/src/features/Request/UnpublishRequest/model/types.ts +5 -0
- package/src/features/Request/UnpublishRequest/ui/UnpublishRequestButton.vue +36 -0
- package/src/features/Request/UnpublishRequest/ui/index.ts +1 -0
- package/src/features/Request/UpdateRequest/api/index.ts +47 -0
- package/src/features/Request/UpdateRequest/index.ts +3 -0
- package/src/features/Request/UpdateRequest/model/index.ts +1 -0
- package/src/features/Request/UpdateRequest/model/types.ts +10 -0
- package/src/features/Request/UpdateRequest/ui/UpdateRequestButton.vue +28 -0
- package/src/features/Request/UpdateRequest/ui/index.ts +1 -0
- package/src/features/Settings/UpdateSettings/api/index.ts +11 -0
- package/src/features/Settings/UpdateSettings/index.ts +2 -0
- package/src/features/Settings/UpdateSettings/model/index.ts +16 -0
- package/src/features/Settings/index.ts +2 -0
- package/src/features/Union/ActivateCooperative/index.ts +1 -0
- package/src/features/Union/ActivateCooperative/model/index.ts +33 -0
- package/src/features/Union/AddCooperative/index.ts +2 -0
- package/src/features/Union/AddCooperative/model/index.ts +33 -0
- package/src/features/Union/AddCooperative/ui/AddCooperativeForm.vue +91 -0
- package/src/features/Union/AddCooperative/ui/index.ts +1 -0
- package/src/features/Union/BlockCooperative/index.ts +1 -0
- package/src/features/Union/BlockCooperative/model/index.ts +33 -0
- package/src/features/Union/DeleteCooperative/index.ts +1 -0
- package/src/features/Union/DeleteCooperative/model/index.ts +32 -0
- package/src/features/Union/LoadCooperatives/api/index.ts +33 -0
- package/src/features/Union/LoadCooperatives/index.ts +2 -0
- package/src/features/Union/LoadCooperatives/model/index.ts +16 -0
- package/src/features/User/AddUser/api/index.ts +11 -0
- package/src/features/User/AddUser/index.ts +3 -0
- package/src/features/User/AddUser/model/index.ts +59 -0
- package/src/features/User/AddUser/ui/AddUserDialog/AddUserDialog.vue +232 -0
- package/src/features/User/AddUser/ui/AddUserDialog/index.ts +1 -0
- package/src/features/User/AddUser/ui/index.ts +1 -0
- package/src/features/User/CreateUser/api/index.ts +65 -0
- package/src/features/User/CreateUser/index.ts +2 -0
- package/src/features/User/CreateUser/model/index.ts +237 -0
- package/src/features/User/LoginUser/api/index.ts +20 -0
- package/src/features/User/LoginUser/index.ts +2 -0
- package/src/features/User/LoginUser/model/index.ts +69 -0
- package/src/features/User/LoginUser/ui/LoginForm/LoginForm.vue +78 -0
- package/src/features/User/LoginUser/ui/LoginForm/index.ts +1 -0
- package/src/features/User/Logout/api/index.ts +16 -0
- package/src/features/User/Logout/index.ts +2 -0
- package/src/features/User/Logout/model/index.ts +21 -0
- package/src/features/User/LostKey/api/index.ts +9 -0
- package/src/features/User/LostKey/index.ts +2 -0
- package/src/features/User/LostKey/model/index.ts +11 -0
- package/src/features/User/ResetKey/api/index.ts +9 -0
- package/src/features/User/ResetKey/index.ts +2 -0
- package/src/features/User/ResetKey/model/index.ts +11 -0
- package/src/features/User/UpdateMeta/index.ts +1 -0
- package/src/features/User/UpdateMeta/model/index.ts +34 -0
- package/src/features/Wallet/DepositToWallet/index.ts +1 -0
- package/src/features/Wallet/DepositToWallet/ui/DepositButton/DepositButton.vue +79 -0
- package/src/features/Wallet/DepositToWallet/ui/DepositButton/index.ts +1 -0
- package/src/features/Wallet/DepositToWallet/ui/index.ts +1 -0
- package/src/features/Wallet/WithdrawFromWallet/index.ts +1 -0
- package/src/features/Wallet/WithdrawFromWallet/ui/index.ts +1 -0
- package/src/features/Wallet/WithdrawFromWallet/ui/withdrawButton.vue +54 -0
- package/src/i18n/index.ts +5 -0
- package/src/i18n/ru-RU/index.ts +7 -0
- package/src/index.ts +1 -0
- package/src/pages/Cooperative/Contacts/index.ts +1 -0
- package/src/pages/Cooperative/Contacts/ui/ContactsPage.vue +7 -0
- package/src/pages/Cooperative/Contacts/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfBranches/index.ts +1 -0
- package/src/pages/Cooperative/ListOfBranches/ui/ListOfBranchesPage.vue +101 -0
- package/src/pages/Cooperative/ListOfBranches/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfOrders/index.ts +1 -0
- package/src/pages/Cooperative/ListOfOrders/ui/ListOfOrdersPage.vue +12 -0
- package/src/pages/Cooperative/ListOfOrders/ui/index.ts +1 -0
- package/src/pages/Cooperative/ListOfParticipants/index.ts +1 -0
- package/src/pages/Cooperative/ListOfParticipants/ui/ListOfParticipantsPage.vue +14 -0
- package/src/pages/Cooperative/ListOfParticipants/ui/index.ts +1 -0
- package/src/pages/Cooperative/MembersPage/MembersPage.vue +10 -0
- package/src/pages/Cooperative/MembersPage/index.ts +1 -0
- package/src/pages/Cooperative/SettingsPage/CooperativeSettingsPage.vue +5 -0
- package/src/pages/Cooperative/SettingsPage/index.ts +1 -0
- package/src/pages/Documentor/ListOfDocuments/ListOfDocumentsPage.vue +10 -0
- package/src/pages/Documentor/ListOfDocuments/index.ts +1 -0
- package/src/pages/ExtStore/BaseRoute/ExtensionStoreBase.vue +5 -0
- package/src/pages/ExtStore/BaseRoute/index.ts +1 -0
- package/src/pages/ExtStore/ExtensionPage/ExtensionPage.vue +205 -0
- package/src/pages/ExtStore/ExtensionPage/index.ts +1 -0
- package/src/pages/ExtStore/ExtensionsShowcase/ExtensionsShowcase.vue +18 -0
- package/src/pages/ExtStore/ExtensionsShowcase/index.ts +1 -0
- package/src/pages/ExtStore/InstalledExtensions/InstalledExtensions.vue +18 -0
- package/src/pages/ExtStore/InstalledExtensions/index.ts +1 -0
- package/src/pages/Installer/index.ts +1 -0
- package/src/pages/Installer/ui/InstallCooperativePage.vue +9 -0
- package/src/pages/Installer/ui/index.ts +1 -0
- package/src/pages/Marketplace/CreateParentOffer/index.ts +1 -0
- package/src/pages/Marketplace/CreateParentOffer/ui/CreateParentOfferPage.vue +13 -0
- package/src/pages/Marketplace/CreateParentOffer/ui/index.ts +1 -0
- package/src/pages/Marketplace/MainPage/index.ts +1 -0
- package/src/pages/Marketplace/MainPage/ui/MainPage.vue +36 -0
- package/src/pages/Marketplace/MainPage/ui/index.ts +1 -0
- package/src/pages/Marketplace/Moderation/index.ts +1 -0
- package/src/pages/Marketplace/Moderation/ui/ModerationPage.vue +59 -0
- package/src/pages/Marketplace/Moderation/ui/index.ts +1 -0
- package/src/pages/Marketplace/OfferPage/index.ts +1 -0
- package/src/pages/Marketplace/OfferPage/ui/OfferPage.vue +162 -0
- package/src/pages/Marketplace/OfferPage/ui/index.ts +1 -0
- package/src/pages/Marketplace/Showcase/index.ts +1 -0
- package/src/pages/Marketplace/Showcase/ui/ShowcasePage.vue +42 -0
- package/src/pages/Marketplace/Showcase/ui/index.ts +1 -0
- package/src/pages/Marketplace/SuppliesList/index.ts +1 -0
- package/src/pages/Marketplace/SuppliesList/ui/SuppliesListPage.vue +18 -0
- package/src/pages/Marketplace/SuppliesList/ui/index.ts +1 -0
- package/src/pages/Marketplace/UserParentOffers/index.ts +1 -0
- package/src/pages/Marketplace/UserParentOffers/ui/UserParentOffersPage.vue +44 -0
- package/src/pages/Marketplace/UserParentOffers/ui/index.ts +1 -0
- package/src/pages/Marketplace/UserSuppliesList/index.ts +1 -0
- package/src/pages/Marketplace/UserSuppliesList/ui/UserSuppliesListPage.vue +29 -0
- package/src/pages/Marketplace/UserSuppliesList/ui/index.ts +1 -0
- package/src/pages/Registrator/LostKey/index.ts +1 -0
- package/src/pages/Registrator/LostKey/ui/LostKeyPage.vue +13 -0
- package/src/pages/Registrator/LostKey/ui/index.ts +1 -0
- package/src/pages/Registrator/ResetKey/index.ts +1 -0
- package/src/pages/Registrator/ResetKey/ui/ResetKeyPage.vue +9 -0
- package/src/pages/Registrator/ResetKey/ui/index.ts +1 -0
- package/src/pages/Registrator/SignIn/index.ts +1 -0
- package/src/pages/Registrator/SignIn/ui/SignInPage.vue +26 -0
- package/src/pages/Registrator/SignIn/ui/index.ts +1 -0
- package/src/pages/Registrator/SignUp/EmailInput.vue +74 -0
- package/src/pages/Registrator/SignUp/GenerateAccount.vue +82 -0
- package/src/pages/Registrator/SignUp/PayInitial.vue +70 -0
- package/src/pages/Registrator/SignUp/ReadStatement.vue +103 -0
- package/src/pages/Registrator/SignUp/SelectBranch.vue +50 -0
- package/src/pages/Registrator/SignUp/SetUserData.vue +64 -0
- package/src/pages/Registrator/SignUp/SignStatement.vue +189 -0
- package/src/pages/Registrator/SignUp/SignUp.vue +119 -0
- package/src/pages/Registrator/SignUp/WaitingRegistration.vue +69 -0
- package/src/pages/Registrator/SignUp/Welcome.vue +30 -0
- package/src/pages/Registrator/SignUp/index.ts +1 -0
- package/src/pages/Support/SupportPage.vue +38 -0
- package/src/pages/Support/index.ts +1 -0
- package/src/pages/Union/Connection/ConnectionPage.vue +107 -0
- package/src/pages/Union/Connection/index.ts +1 -0
- package/src/pages/Union/ListOfCooperatives/index.ts +1 -0
- package/src/pages/Union/ListOfCooperatives/ui/UnionPageListOfCooperatives.vue +8 -0
- package/src/pages/Union/ListOfCooperatives/ui/index.ts +1 -0
- package/src/pages/User/CardPage/index.ts +1 -0
- package/src/pages/User/CardPage/ui/CoopCardPage.vue +8 -0
- package/src/pages/User/CardPage/ui/index.ts +1 -0
- package/src/pages/User/IdentityPage/index.ts +1 -0
- package/src/pages/User/IdentityPage/ui/IdentityPage.vue +15 -0
- package/src/pages/User/IdentityPage/ui/index.ts +1 -0
- package/src/pages/User/PaymentMethodsPage/index.ts +1 -0
- package/src/pages/User/PaymentMethodsPage/ui/PaymentMethods.vue +15 -0
- package/src/pages/User/PaymentMethodsPage/ui/index.ts +1 -0
- package/src/pages/User/SettingsPage/index.ts +1 -0
- package/src/pages/User/SettingsPage/ui/UserSettingsPage.vue +5 -0
- package/src/pages/User/SettingsPage/ui/index.ts +1 -0
- package/src/pages/User/WalletPage/index.ts +1 -0
- package/src/pages/User/WalletPage/ui/WalletPage.vue +14 -0
- package/src/pages/User/WalletPage/ui/index.ts +1 -0
- package/src/pages/_layouts/blank.vue +24 -0
- package/src/pages/_layouts/default.vue +78 -0
- package/src/pages/_layouts/permissionDenied.vue +20 -0
- package/src/pages/blank/blank.vue +9 -0
- package/src/pages/index.vue +5 -0
- package/src/quasar.d.ts +9 -0
- package/src/shared/api/alerts.ts +27 -0
- package/src/shared/api/axios.ts +72 -0
- package/src/shared/api/client.ts +13 -0
- package/src/shared/api/crypto.ts +86 -0
- package/src/shared/api/eosio.ts +122 -0
- package/src/shared/api/errors.ts +40 -0
- package/src/shared/api/index.ts +5 -0
- package/src/shared/api/indexDB.ts +39 -0
- package/src/shared/api/sleep.ts +1 -0
- package/src/shared/api/utils.ts +9 -0
- package/src/shared/api/wif.ts +9 -0
- package/src/shared/config/ActionsList.ts +23 -0
- package/src/shared/config/ContractsList.ts +32 -0
- package/src/shared/config/LimitsList.ts +7 -0
- package/src/shared/config/SecondaryIndexesNumbersList.ts +15 -0
- package/src/shared/config/SecondaryIndexesTypesList.ts +7 -0
- package/src/shared/config/TablesList.ts +12 -0
- package/src/shared/config/index.ts +6 -0
- package/src/shared/lib/composables/useEditableData.ts +58 -0
- package/src/shared/lib/composables/useEditableTableRows.ts +89 -0
- package/src/shared/lib/consts/workspaces/index.ts +1 -0
- package/src/shared/lib/document/api/index.ts +12 -0
- package/src/shared/lib/document/index.ts +2 -0
- package/src/shared/lib/document/model/entity.ts +64 -0
- package/src/shared/lib/document/model/index.ts +2 -0
- package/src/shared/lib/document/model/types.ts +9 -0
- package/src/shared/lib/types/crypto/index.ts +5 -0
- package/src/shared/lib/types/document/index.ts +15 -0
- package/src/shared/lib/types/errors/base.ts +5 -0
- package/src/shared/lib/types/errors/index.ts +1 -0
- package/src/shared/lib/types/graphql/index.ts +14 -0
- package/src/shared/lib/types/payments/index.ts +23 -0
- package/src/shared/lib/types/user/IUserData.ts +28 -0
- package/src/shared/lib/types/user/index.ts +53 -0
- package/src/shared/lib/utils/dates/formatToFromNow.ts +6 -0
- package/src/shared/lib/utils/dates/formatToHumanDate.ts +6 -0
- package/src/shared/lib/utils/dates/moment.ts +6 -0
- package/src/shared/lib/utils/formatAssetToReadable.ts +10 -0
- package/src/shared/lib/utils/formatDateForEos.ts +6 -0
- package/src/shared/lib/utils/formatToAsset.ts +4 -0
- package/src/shared/lib/utils/generateUsername.ts +9 -0
- package/src/shared/lib/utils/getNameFromUserData.ts +9 -0
- package/src/shared/lib/utils/index.ts +6 -0
- package/src/shared/lib/utils/isDomainRule.ts +4 -0
- package/src/shared/lib/utils/notEmptyPhoneRule.ts +3 -0
- package/src/shared/lib/utils/notEmptyRule.ts +3 -0
- package/src/shared/lib/utils/validEmailRule.ts +6 -0
- package/src/shared/lib/utils/validatePersonalNameRule.ts +3 -0
- package/src/shared/locales/ru/base.yml +12 -0
- package/src/shared/locales/ru.ts +12 -0
- package/src/shared/store/index.ts +202 -0
- package/src/shared/ui/AutoAvatar/AutoAvatar.vue +37 -0
- package/src/shared/ui/AutoAvatar/index.ts +1 -0
- package/src/shared/ui/BaseDocument/BaseDocument.vue +202 -0
- package/src/shared/ui/BaseDocument/index.ts +1 -0
- package/src/shared/ui/BranchSelector/BranchSelector.vue +47 -0
- package/src/shared/ui/BranchSelector/index.ts +1 -0
- package/src/shared/ui/ComplexDocument/ComplexDocument.vue +25 -0
- package/src/shared/ui/ComplexDocument/index.ts +1 -0
- package/src/shared/ui/DocumentHtmlReader/DocumentHtmlReader.vue +57 -0
- package/src/shared/ui/DocumentHtmlReader/index.ts +1 -0
- package/src/shared/ui/EditableActions/EditableActions.vue +34 -0
- package/src/shared/ui/EditableActions/index.ts +1 -0
- package/src/shared/ui/Footer/Contacts.vue +24 -0
- package/src/shared/ui/Footer/index.ts +1 -0
- package/src/shared/ui/Form/Form.vue +33 -0
- package/src/shared/ui/Form/index.ts +1 -0
- package/src/shared/ui/ImageCarousel/ImageCarousel.vue +68 -0
- package/src/shared/ui/ImageCarousel/index.ts +1 -0
- package/src/shared/ui/Loader/Loader.vue +19 -0
- package/src/shared/ui/Loader/index.ts +1 -0
- package/src/shared/ui/Map/Map.vue +52 -0
- package/src/shared/ui/Map/index.ts +1 -0
- package/src/shared/ui/ModalBase/ModalBase.vue +26 -0
- package/src/shared/ui/ModalBase/index.ts +1 -0
- package/src/shared/ui/PayWithProvider/PayWithProvider.vue +19 -0
- package/src/shared/ui/PayWithProvider/index.ts +1 -0
- package/src/shared/ui/Providers/Bank/Bank.vue +105 -0
- package/src/shared/ui/Providers/Bank/index.ts +1 -0
- package/src/shared/ui/Providers/Yookassa/Yookassa.vue +57 -0
- package/src/shared/ui/Providers/Yookassa/index.ts +1 -0
- package/src/shared/ui/ToogleDarkLight/ToogleDarkLight.vue +34 -0
- package/src/shared/ui/ToogleDarkLight/index.ts +1 -0
- package/src/shared/ui/UserDataForm/EntrepreneurDataForm/EntrepreneurDataForm.vue +115 -0
- package/src/shared/ui/UserDataForm/EntrepreneurDataForm/index.ts +1 -0
- package/src/shared/ui/UserDataForm/IndividualDataForm/IndividualDataForm.vue +40 -0
- package/src/shared/ui/UserDataForm/IndividualDataForm/index.ts +1 -0
- package/src/shared/ui/UserDataForm/OrganizationDataForm/OrganizationDataForm.vue +129 -0
- package/src/shared/ui/UserDataForm/OrganizationDataForm/index.ts +1 -0
- package/src/shared/ui/UserDataForm/UserDataForm/UserDataForm.vue +47 -0
- package/src/shared/ui/UserDataForm/UserDataForm/index.ts +1 -0
- package/src/shared/ui/ZodForm/ZodForm.vue +169 -0
- package/src/shared/ui/ZodForm/index.ts +1 -0
- package/src/shims-vue.d.ts +10 -0
- package/src/stores/index.ts +34 -0
- package/src/stores/store-flag.d.ts +10 -0
- package/src/types/index.ts +3 -0
- package/src/widgets/Agreementer/RequireAgreements/ui/RequireAgreements.vue +71 -0
- package/src/widgets/Agreementer/RequireAgreements/ui/index.ts +1 -0
- package/src/widgets/BankDetailsCard/index.ts +1 -0
- package/src/widgets/BankDetailsCard/ui/BankDetailsCard.vue +107 -0
- package/src/widgets/BankDetailsCard/ui/index.ts +1 -0
- package/src/widgets/BranchCard/index.ts +1 -0
- package/src/widgets/BranchCard/ui/BranchCard.vue +100 -0
- package/src/widgets/BranchCard/ui/index.ts +1 -0
- package/src/widgets/Commutator/Commutator.vue +7 -0
- package/src/widgets/Commutator/index.ts +1 -0
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/index.ts +1 -0
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/ListOfQuestions.vue +265 -0
- package/src/widgets/Cooperative/Agenda/ListOfQuestions/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Contacts/index.ts +1 -0
- package/src/widgets/Cooperative/Contacts/ui/ChangeContacts.vue +56 -0
- package/src/widgets/Cooperative/Contacts/ui/Contacts.vue +52 -0
- package/src/widgets/Cooperative/Contacts/ui/index.ts +2 -0
- package/src/widgets/Cooperative/Contributions/index.ts +1 -0
- package/src/widgets/Cooperative/Contributions/ui/ChangeContributions.vue +88 -0
- package/src/widgets/Cooperative/Contributions/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Description/ui/SetDescription.vue +4 -0
- package/src/widgets/Cooperative/Description/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Details/index.ts +1 -0
- package/src/widgets/Cooperative/Details/ui/Details.vue +32 -0
- package/src/widgets/Cooperative/Details/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/index.ts +1 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/ListOfDocumentsWidget.vue +156 -0
- package/src/widgets/Cooperative/Documents/ListOfDocuments/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Funds/index.ts +1 -0
- package/src/widgets/Cooperative/Funds/ui/AccumulationFunds.vue +121 -0
- package/src/widgets/Cooperative/Funds/ui/AddAccumulationFund.vue +79 -0
- package/src/widgets/Cooperative/Funds/ui/AddExpenseFund.vue +76 -0
- package/src/widgets/Cooperative/Funds/ui/ChangeFunds.vue +11 -0
- package/src/widgets/Cooperative/Funds/ui/ExpenseFunds.vue +113 -0
- package/src/widgets/Cooperative/Funds/ui/index.ts +3 -0
- package/src/widgets/Cooperative/Install/InstallWidgetBase/index.ts +1 -0
- package/src/widgets/Cooperative/Install/InstallWidgetBase/ui/InstallWidgetBase.vue +29 -0
- package/src/widgets/Cooperative/Install/InstallWidgetBase/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Members/index.ts +1 -0
- package/src/widgets/Cooperative/Members/ui/Members.vue +220 -0
- package/src/widgets/Cooperative/Members/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Orders/ListOfOrders/index.ts +1 -0
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/ListOfOrdersWidget.vue +209 -0
- package/src/widgets/Cooperative/Orders/ListOfOrders/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Participants/ExitCard/index.ts +1 -0
- package/src/widgets/Cooperative/Participants/ExitCard/ui/ExitCard.vue +15 -0
- package/src/widgets/Cooperative/Participants/ExitCard/ui/index.ts +1 -0
- package/src/widgets/Cooperative/Participants/ListOfParticipants/index.ts +1 -0
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/ListOfParticipantsWidget.vue +103 -0
- package/src/widgets/Cooperative/Participants/ListOfParticipants/ui/index.ts +1 -0
- package/src/widgets/Desktop/LeftDrawerMenu/LeftDrawerMenu.vue +10 -0
- package/src/widgets/Desktop/LeftDrawerMenu/index.ts +1 -0
- package/src/widgets/Desktop/SecondLevelMenu/SecondLevelMenu.vue +57 -0
- package/src/widgets/Desktop/SecondLevelMenu/index.ts +1 -0
- package/src/widgets/Desktop/SecondLevelMenuList/SecondLevelMenuList.vue +86 -0
- package/src/widgets/Desktop/SecondLevelMenuList/index.ts +1 -0
- package/src/widgets/Desktop/WorkspaceMenu/WorkspaceMenu.vue +94 -0
- package/src/widgets/Desktop/WorkspaceMenu/index.ts +1 -0
- package/src/widgets/ExtStore/ExtensionCard/ExtensionCard.vue +38 -0
- package/src/widgets/ExtStore/ExtensionCard/index.ts +1 -0
- package/src/widgets/Header/CommonHeader/Header.vue +203 -0
- package/src/widgets/Header/CommonHeader/index.ts +1 -0
- package/src/widgets/Header/SettingsDropdown/SettingsDropdown.vue +86 -0
- package/src/widgets/Header/SettingsDropdown/index.ts +1 -0
- package/src/widgets/IndividualCard/index.ts +1 -0
- package/src/widgets/IndividualCard/ui/IndividualCard.vue +170 -0
- package/src/widgets/IndividualCard/ui/index.ts +1 -0
- package/src/widgets/OrganizationCard/index.ts +1 -0
- package/src/widgets/OrganizationCard/ui/OrganizationCard.vue +44 -0
- package/src/widgets/OrganizationCard/ui/index.ts +1 -0
- package/src/widgets/Registrator/AlreadyRegistered/AlreadyRegistered.vue +19 -0
- package/src/widgets/Registrator/AlreadyRegistered/index.ts +1 -0
- package/src/widgets/Registrator/LostKey/index.ts +1 -0
- package/src/widgets/Registrator/LostKey/ui/LostKey.vue +63 -0
- package/src/widgets/Registrator/LostKey/ui/index.ts +1 -0
- package/src/widgets/Registrator/ResetKey/index.ts +1 -0
- package/src/widgets/Registrator/ResetKey/ui/ResetKey.vue +89 -0
- package/src/widgets/Registrator/ResetKey/ui/index.ts +1 -0
- package/src/widgets/Registrator/SignIn/SignIn.vue +12 -0
- package/src/widgets/Registrator/SignIn/index.ts +1 -0
- package/src/widgets/Request/CreateChildOrderCard/CreateChildOrderCard.vue +57 -0
- package/src/widgets/Request/CreateChildOrderCard/index.ts +1 -0
- package/src/widgets/Request/RequestCard/RequestCard.vue +37 -0
- package/src/widgets/Request/RequestCard/index.ts +1 -0
- package/src/widgets/Request/SupplyOrderRequestCard/index.ts +2 -0
- package/src/widgets/Request/SupplyOrderRequestCard/model/index.ts +1 -0
- package/src/widgets/Request/SupplyOrderRequestCard/model/types.ts +10 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Base/Base.vue +93 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Base/index.ts +1 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/EightStep.vue +28 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/FifthStep.vue +34 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/FirstStep.vue +39 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/FourthStep.vue +37 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/SecondStep.vue +18 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/SeventhStep.vue +37 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/SixthStep.vue +37 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/ThirdStep.vue +51 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/Steps/index.ts +8 -0
- package/src/widgets/Request/SupplyOrderRequestCard/ui/index.ts +1 -0
- package/src/widgets/Union/ListOfCooperatives/index.ts +1 -0
- package/src/widgets/Union/ListOfCooperatives/ui/UnionListOfCooperatives.vue +136 -0
- package/src/widgets/Union/ListOfCooperatives/ui/index.ts +1 -0
- package/src/widgets/User/CoopCard/index.ts +1 -0
- package/src/widgets/User/CoopCard/ui/CoopCard.vue +111 -0
- package/src/widgets/User/CoopCard/ui/index.ts +1 -0
- package/src/widgets/User/LogoutCard/index.ts +1 -0
- package/src/widgets/User/LogoutCard/ui/LogoutCard.vue +31 -0
- package/src/widgets/User/LogoutCard/ui/index.ts +1 -0
- package/src/widgets/User/PaymentMethods/index.ts +1 -0
- package/src/widgets/User/PaymentMethods/ui/PaymentMethods.vue +116 -0
- package/src/widgets/User/PaymentMethods/ui/index.ts +1 -0
- package/src/widgets/User/PersonalCard/index.ts +1 -0
- package/src/widgets/User/PersonalCard/ui/PersonalCard.vue +109 -0
- package/src/widgets/User/PersonalCard/ui/UserQR.vue +5 -0
- package/src/widgets/User/PersonalCard/ui/index.ts +2 -0
- package/src/widgets/User/WalletCard/index.ts +1 -0
- package/src/widgets/User/WalletCard/ui/WalletCard.vue +26 -0
- package/src/widgets/User/WalletCard/ui/index.ts +1 -0
- package/src-ssr/middlewares/render.ts +59 -0
- package/src-ssr/server.ts +134 -0
- package/src-ssr/ssr-flag.d.ts +10 -0
- package/tsconfig.json +25 -0
- package/tsconfig.vue-tsc.json +9 -0
- package/vite.111config.js +37 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
form(@submit.prevent="submit").full-width
|
3
|
+
q-input(
|
4
|
+
v-model="privateKey"
|
5
|
+
label="Введите ключ доступа"
|
6
|
+
color="primary"
|
7
|
+
hint=""
|
8
|
+
standout="bg-teal text-white"
|
9
|
+
class="full-width"
|
10
|
+
type="password"
|
11
|
+
autocorrect="off"
|
12
|
+
autocapitalize="off"
|
13
|
+
autocomplete="off"
|
14
|
+
spellcheck="false")
|
15
|
+
|
16
|
+
q-btn(
|
17
|
+
type="submit"
|
18
|
+
label="Войти"
|
19
|
+
class="full-width"
|
20
|
+
color="primary"
|
21
|
+
:loading="loading"
|
22
|
+
:disable="!privateKey")
|
23
|
+
|
24
|
+
</template>
|
25
|
+
<script lang="ts" setup>
|
26
|
+
import { useInstallCooperativeStore } from 'src/entities/Installer/model';
|
27
|
+
import { FailAlert, isValidWif } from 'src/shared/api';
|
28
|
+
import { ref } from 'vue';
|
29
|
+
import { COOPNAME } from 'src/shared/config';
|
30
|
+
|
31
|
+
const privateKey = ref('')
|
32
|
+
const loading = ref(false)
|
33
|
+
|
34
|
+
const installStore = useInstallCooperativeStore()
|
35
|
+
|
36
|
+
const submit = async () => {
|
37
|
+
loading.value = true
|
38
|
+
try {
|
39
|
+
const isValid = await isValidWif(COOPNAME, privateKey.value, 'active')
|
40
|
+
|
41
|
+
if (!isValid) {
|
42
|
+
loading.value = false
|
43
|
+
FailAlert('Неверный ключ доступа')
|
44
|
+
return
|
45
|
+
}
|
46
|
+
|
47
|
+
installStore.wif = privateKey.value
|
48
|
+
|
49
|
+
loading.value = false
|
50
|
+
|
51
|
+
} catch (e: any) {
|
52
|
+
loading.value = false
|
53
|
+
FailAlert(e.message)
|
54
|
+
}
|
55
|
+
|
56
|
+
}
|
57
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as RequestKeyForm} from './RequestKeyForm.vue'
|
@@ -0,0 +1,71 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div(v-if="installStore")
|
3
|
+
div(v-for="(member,index) in installStore.soviet" v-bind:key="member.id")
|
4
|
+
q-card(style="margin-bottom: 50px;" flat)
|
5
|
+
|
6
|
+
q-badge(v-if="member.role=='chairman'" style="position: absolute; top: -15px;" label="Председатель совета" color="black")
|
7
|
+
q-badge(v-if="member.role=='member'" style="position: absolute; top: -15px;" label="Член совета" color="black")
|
8
|
+
|
9
|
+
q-btn(style="position: absolute; top: -20px; right: 0px;" flat v-if="member.role != 'chairman'" @click="del(member.id)" icon="close" dense size="sm" round)
|
10
|
+
|
11
|
+
IndividualDataForm(v-model:userData="installStore.soviet[index]").q-mt-lg
|
12
|
+
template(#top)
|
13
|
+
q-input(standout="bg-teal text-white" v-model="installStore.soviet[index].individual_data.email" label="Электронная почта")
|
14
|
+
|
15
|
+
div.flex.justify-around
|
16
|
+
q-btn(@click="add" color="primary" icon="add") добавить члена
|
17
|
+
q-btn(@click="next" color="primary" icon="done" :loading="loading") завершить
|
18
|
+
|
19
|
+
|
20
|
+
</template>
|
21
|
+
<script lang="ts" setup>
|
22
|
+
|
23
|
+
import { useInstallCooperativeStore } from 'src/entities/Installer/model';
|
24
|
+
const installStore = useInstallCooperativeStore()
|
25
|
+
import { IndividualDataForm } from 'src/shared/ui/UserDataForm/IndividualDataForm';
|
26
|
+
import type { IIndividualData } from 'src/shared/lib/types/user/IUserData';
|
27
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api';
|
28
|
+
import { useDesktopStore } from 'src/entities/Desktop/model';
|
29
|
+
import { useInstallCooperative } from '../../model';
|
30
|
+
import { ref } from 'vue';
|
31
|
+
|
32
|
+
installStore.is_finish = false
|
33
|
+
|
34
|
+
const add = () => {
|
35
|
+
let role: 'chairman' | 'member' = 'chairman'
|
36
|
+
|
37
|
+
if (installStore.soviet.length > 0)
|
38
|
+
role = 'member'
|
39
|
+
|
40
|
+
installStore.soviet.push({id: Date.now(), type: 'individual', role, individual_data: {} as IIndividualData})
|
41
|
+
}
|
42
|
+
|
43
|
+
const del = (id: number) => {
|
44
|
+
installStore.soviet = installStore.soviet.filter(el => el.id !== id)
|
45
|
+
}
|
46
|
+
const loading = ref(false)
|
47
|
+
|
48
|
+
const next = async () => {
|
49
|
+
try {
|
50
|
+
const { install } = useInstallCooperative()
|
51
|
+
loading.value = true
|
52
|
+
await install()
|
53
|
+
await useDesktopStore().healthCheck()
|
54
|
+
|
55
|
+
loading.value = false
|
56
|
+
installStore.is_finish = true
|
57
|
+
installStore.wif=''
|
58
|
+
installStore.soviet = []
|
59
|
+
|
60
|
+
SuccessAlert('Установка произведена успешно')
|
61
|
+
} catch(e: any){
|
62
|
+
FailAlert(e.message)
|
63
|
+
loading.value = false
|
64
|
+
}
|
65
|
+
|
66
|
+
}
|
67
|
+
|
68
|
+
if (installStore.soviet.length == 0)
|
69
|
+
add()
|
70
|
+
|
71
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as SetSovietForm} from './SetSovietForm.vue'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './model'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { useOrderStore } from 'src/entities/Order'
|
2
|
+
import { api } from '../api'
|
3
|
+
|
4
|
+
export const useSetStatus = () => {
|
5
|
+
const orderStore = useOrderStore()
|
6
|
+
|
7
|
+
const setPaidStatus = async (id: string) => {
|
8
|
+
await api.setStatus(id, 'paid')
|
9
|
+
setTimeout(() => orderStore.updateCoopOrders({username: orderStore.username, id}), 2000)
|
10
|
+
}
|
11
|
+
|
12
|
+
const setRefundedStatus = async (id: string) => {
|
13
|
+
await api.setStatus(id, 'refunded')
|
14
|
+
setTimeout(() => orderStore.updateCoopOrders({username: orderStore.username, id}), 2000)
|
15
|
+
}
|
16
|
+
|
17
|
+
const setCompletedStatus = async (id: string) => {
|
18
|
+
await api.setStatus(id, 'completed')
|
19
|
+
setTimeout(() => orderStore.updateCoopOrders({username: orderStore.username, id}), 2000)
|
20
|
+
}
|
21
|
+
|
22
|
+
return {setPaidStatus, setRefundedStatus, setCompletedStatus}
|
23
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
q-item(clickable flat size="sm" @click="showDialog=true").full-width
|
3
|
+
div.q-pa-sm
|
4
|
+
q-icon(name="fa-solid fa-square-check").q-mr-xs
|
5
|
+
span обработан
|
6
|
+
|
7
|
+
q-dialog(v-model="showDialog" @hide="close")
|
8
|
+
ModalBase(title='отметить обработанным')
|
9
|
+
Form(:handler-submit="setCompleted" :is-submitting="isSubmitting" :button-cancel-txt="'Отменить'" :button-submit-txt="'Продолжить'" @cancel="close").q-pa-sm
|
10
|
+
div(style="max-width: 300px;")
|
11
|
+
p Вы уверены, что хотите отметить платеж обработанным? Отметка НЕ приводит к изменению лицевых счетов и не выполняет никаких действий по обработке платежа, а только заменяет статус платежа.
|
12
|
+
|
13
|
+
</template>
|
14
|
+
<script lang="ts" setup>
|
15
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api';
|
16
|
+
import { useSetStatus } from '../../model';
|
17
|
+
import { ref } from 'vue';
|
18
|
+
import { ModalBase } from 'src/shared/ui/ModalBase';
|
19
|
+
import { Form } from 'src/shared/ui/Form';
|
20
|
+
const {setCompletedStatus} = useSetStatus()
|
21
|
+
const isSubmitting = ref(false)
|
22
|
+
const showDialog = ref(false)
|
23
|
+
|
24
|
+
const emit = defineEmits(['close'])
|
25
|
+
|
26
|
+
const props = defineProps({
|
27
|
+
id: {
|
28
|
+
type: String,
|
29
|
+
required: true
|
30
|
+
},
|
31
|
+
})
|
32
|
+
|
33
|
+
const close = () => {
|
34
|
+
showDialog.value = false
|
35
|
+
emit('close')
|
36
|
+
}
|
37
|
+
|
38
|
+
const setCompleted = async() => {
|
39
|
+
try {
|
40
|
+
await setCompletedStatus(props.id)
|
41
|
+
SuccessAlert('Статус ордера обновлён')
|
42
|
+
close()
|
43
|
+
} catch(e: any) {
|
44
|
+
FailAlert(`Возникла ошибка: ${e.message}`)
|
45
|
+
close()
|
46
|
+
}
|
47
|
+
}
|
48
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as SetOrderCompletedStatusButton} from './SetOrderCompletedStatusButton.vue'
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
q-item(clickable flat size="sm" @click="showDialog=true").full-width
|
3
|
+
div.q-pa-sm
|
4
|
+
q-icon(name="fa-regular fa-square-check").q-mr-xs
|
5
|
+
span отметить оплаченным
|
6
|
+
|
7
|
+
q-dialog(v-model="showDialog" @hide="close")
|
8
|
+
ModalBase(title='отметить оплаченным')
|
9
|
+
Form(:handler-submit="setPaid" :is-submitting="isSubmitting" :button-cancel-txt="'Отменить'" :button-submit-txt="'Продолжить'" @cancel="close").q-pa-sm
|
10
|
+
div(style="max-width: 300px;")
|
11
|
+
p Вы уверены, что хотите отметить счёт оплаченным? Система обработает платеж сразу после получения отметки: совет кооператива получит пакет документов для голосования о приёме нового пайщика, или, паевый взнос будет зачислен в кошелёк.
|
12
|
+
|
13
|
+
|
14
|
+
</template>
|
15
|
+
<script lang="ts" setup>
|
16
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api';
|
17
|
+
import { useSetStatus } from '../../model';
|
18
|
+
import { ref } from 'vue';
|
19
|
+
import { ModalBase } from 'src/shared/ui/ModalBase';
|
20
|
+
import { Form } from 'src/shared/ui/Form';
|
21
|
+
const {setPaidStatus} = useSetStatus()
|
22
|
+
const isSubmitting = ref(false)
|
23
|
+
const showDialog = ref(false)
|
24
|
+
|
25
|
+
const emit = defineEmits(['close'])
|
26
|
+
|
27
|
+
const props = defineProps({
|
28
|
+
id: {
|
29
|
+
type: String,
|
30
|
+
required: true
|
31
|
+
},
|
32
|
+
})
|
33
|
+
|
34
|
+
const close = () => {
|
35
|
+
showDialog.value = false
|
36
|
+
emit('close')
|
37
|
+
}
|
38
|
+
|
39
|
+
const setPaid = async() => {
|
40
|
+
try {
|
41
|
+
await setPaidStatus(props.id)
|
42
|
+
SuccessAlert('Статус ордера обновлён')
|
43
|
+
close()
|
44
|
+
} catch(e: any) {
|
45
|
+
FailAlert(`Возникла ошибка: ${e.message}`)
|
46
|
+
close()
|
47
|
+
}
|
48
|
+
}
|
49
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as SetOrderPaidStatusButton} from './SetOrderPaidStatusButton.vue'
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
q-item(clickable flat size="sm" @click="showDialog=true").full-width
|
3
|
+
div.q-pa-sm
|
4
|
+
q-icon(name="cancel").q-mr-xs
|
5
|
+
span отметить отмененным
|
6
|
+
|
7
|
+
q-dialog(v-model="showDialog" @hide="close")
|
8
|
+
ModalBase(title='отметить отменённым')
|
9
|
+
Form(:handler-submit="setRefund" :is-submitting="isSubmitting" :button-cancel-txt="'Отменить'" :button-submit-txt="'Продолжить'" @cancel="close").q-pa-sm
|
10
|
+
div(style="max-width: 300px;")
|
11
|
+
p Вы уверены, что хотите отметить платеж отмененным? Система обработает возврат платежа по лицевому счёту пайщика сразу после получения отметки.
|
12
|
+
p При отмене уже зачисленного паевого взноса, баланс аккаунта будет уменьшен. В случае отмены вступительного взноса - действие аккаунта будет приостановлено.
|
13
|
+
|
14
|
+
</template>
|
15
|
+
<script lang="ts" setup>
|
16
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api';
|
17
|
+
import { useSetStatus } from '../../model';
|
18
|
+
import { ref } from 'vue';
|
19
|
+
import { ModalBase } from 'src/shared/ui/ModalBase';
|
20
|
+
import { Form } from 'src/shared/ui/Form';
|
21
|
+
const {setRefundedStatus} = useSetStatus()
|
22
|
+
const isSubmitting = ref(false)
|
23
|
+
const showDialog = ref(false)
|
24
|
+
|
25
|
+
const emit = defineEmits(['close'])
|
26
|
+
|
27
|
+
const props = defineProps({
|
28
|
+
id: {
|
29
|
+
type: String,
|
30
|
+
required: true
|
31
|
+
},
|
32
|
+
})
|
33
|
+
|
34
|
+
const close = () => {
|
35
|
+
showDialog.value = false
|
36
|
+
emit('close')
|
37
|
+
}
|
38
|
+
|
39
|
+
const setRefund = async() => {
|
40
|
+
try {
|
41
|
+
await setRefundedStatus(props.id)
|
42
|
+
SuccessAlert('Статус ордера обновлён')
|
43
|
+
close()
|
44
|
+
} catch(e: any) {
|
45
|
+
FailAlert(`Возникла ошибка: ${e.message}`)
|
46
|
+
close()
|
47
|
+
}
|
48
|
+
}
|
49
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as SetOrderRefundedStatusButton} from './SetOrderRefundedStatusButton.vue'
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { useSessionStore } from 'src/entities/Session'
|
2
|
+
import { useWalletStore } from 'src/entities/Wallet'
|
3
|
+
import { sendPOST } from 'src/shared/api';
|
4
|
+
import { COOPNAME } from 'src/shared/config'
|
5
|
+
|
6
|
+
export interface ISBPData {
|
7
|
+
phone: string;
|
8
|
+
}
|
9
|
+
|
10
|
+
export interface IBankTransferData {
|
11
|
+
account_number: string;
|
12
|
+
bank_name: string;
|
13
|
+
card_number?: string;
|
14
|
+
currency: string;
|
15
|
+
details: {
|
16
|
+
bik: string;
|
17
|
+
corr: string;
|
18
|
+
kpp: string;
|
19
|
+
};
|
20
|
+
}
|
21
|
+
|
22
|
+
export interface IAddPaymentMethod {
|
23
|
+
username: string;
|
24
|
+
method_id: string;
|
25
|
+
method_type: 'sbp' | 'bank_transfer';
|
26
|
+
data: ISBPData | IBankTransferData;
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
export function useAddPaymentMethod() {
|
31
|
+
const store = useWalletStore()
|
32
|
+
const session = useSessionStore()
|
33
|
+
|
34
|
+
async function addPaymentMethod(params: IAddPaymentMethod) {
|
35
|
+
|
36
|
+
await store.loadUserWalet({
|
37
|
+
coopname: COOPNAME,
|
38
|
+
username: params.username,
|
39
|
+
})
|
40
|
+
|
41
|
+
|
42
|
+
await sendPOST(`/v1/methods/${params.username}/add`, params)
|
43
|
+
|
44
|
+
await store.loadUserWalet({
|
45
|
+
coopname: COOPNAME,
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
username: session.username
|
50
|
+
})
|
51
|
+
}
|
52
|
+
|
53
|
+
return {
|
54
|
+
addPaymentMethod
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,166 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div
|
3
|
+
q-btn(@click="showDialog=true" color="primary" size="sm" icon="add") добавить реквизиты
|
4
|
+
|
5
|
+
//- q-badge(flat rounded color="grey").q-ml-sm
|
6
|
+
//- q-icon(name="far fa-question")
|
7
|
+
//- q-tooltip Используйте, чтобы добавить метод возврата паевого взноса. Каким именно методом вам вернуть паевый взнос вы сможете выбрать при создании заявления на возврат.
|
8
|
+
|
9
|
+
q-dialog(v-model="showDialog" @hide="clear")
|
10
|
+
ModalBase(:title='"Добавить метод платежа"' )
|
11
|
+
Form(:handler-submit="handlerSubmit" :is-submitting="isSubmitting" :button-cancel-txt="'Отменить'" :button-submit-txt="'Продолжить'" @cancel="clear").q-pa-sm
|
12
|
+
q-select(v-model="methodType" standout="bg-teal text-white" :options="methods" map-options emit-value option-label="title" option-value="value" label="Выберите способ получения платежа" :rules="[val => notEmpty(val)]")
|
13
|
+
|
14
|
+
div(v-if="methodType=='sbp'")
|
15
|
+
q-input(v-model="sbp.phone" standout="bg-teal text-white" mask="+7 (###) ###-##-##" fill-mask label="Номер телефона" hint="Имя и фамилия получателя должны совпадать с теми, которые указаны в Удостоверении." :rules="[val => notEmpty(val)]" autocomplete="off").q-mb-lg
|
16
|
+
|
17
|
+
div(v-if="methodType=='bank_transfer'")
|
18
|
+
q-select(
|
19
|
+
v-model="bank_transfer.currency"
|
20
|
+
label="Валюта счёта"
|
21
|
+
standout="bg-teal text-white"
|
22
|
+
:options="[{ label: 'RUB', value: 'RUB' }]"
|
23
|
+
emit-value
|
24
|
+
:rules="[val => notEmpty(val)]"
|
25
|
+
map-options
|
26
|
+
)
|
27
|
+
q-input(
|
28
|
+
v-model="bank_transfer.bank_name"
|
29
|
+
standout="bg-teal text-white"
|
30
|
+
label="Наименование банка"
|
31
|
+
:rules="[val => notEmpty(val)]"
|
32
|
+
autocomplete="off"
|
33
|
+
)
|
34
|
+
|
35
|
+
q-input(
|
36
|
+
v-model="bank_transfer.details.corr"
|
37
|
+
standout="bg-teal text-white"
|
38
|
+
mask="####################"
|
39
|
+
label="Корреспондентский счет"
|
40
|
+
:rules="[val => notEmpty(val), val => val.length === 20 || 'ожидаем 20 цифр']"
|
41
|
+
autocomplete="off"
|
42
|
+
)
|
43
|
+
|
44
|
+
q-input(
|
45
|
+
v-model="bank_transfer.details.bik"
|
46
|
+
standout="bg-teal text-white"
|
47
|
+
mask="#########"
|
48
|
+
label="БИК"
|
49
|
+
:rules="[val => notEmpty(val), val => val.length === 9 || 'ожидаем 9 цифр']"
|
50
|
+
autocomplete="off"
|
51
|
+
)
|
52
|
+
|
53
|
+
q-input(
|
54
|
+
v-model="bank_transfer.details.kpp"
|
55
|
+
standout="bg-teal text-white"
|
56
|
+
mask="#########"
|
57
|
+
label="КПП"
|
58
|
+
:rules="[val => notEmpty(val), val => val.length === 9 || 'ожидаем 9 цифр']"
|
59
|
+
autocomplete="off"
|
60
|
+
)
|
61
|
+
|
62
|
+
q-input(
|
63
|
+
v-model="bank_transfer.account_number"
|
64
|
+
standout="bg-teal text-white"
|
65
|
+
mask="####################"
|
66
|
+
label="Номер счета"
|
67
|
+
:rules="[val => notEmpty(val), val => val.length === 20 || 'ожидаем 20 цифр']"
|
68
|
+
autocomplete="off"
|
69
|
+
hint="Имя и фамилия получателя должны совпадать с теми, которые указаны в Удостоверении."
|
70
|
+
|
71
|
+
).q-mb-lg
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
</template>
|
76
|
+
<script lang="ts" setup>
|
77
|
+
import { computed, ref } from 'vue';
|
78
|
+
import { useAddPaymentMethod } from '../model';
|
79
|
+
import { FailAlert } from 'src/shared/api';
|
80
|
+
import { ModalBase } from 'src/shared/ui/ModalBase';
|
81
|
+
import { Form } from 'src/shared/ui/Form';
|
82
|
+
|
83
|
+
const props = defineProps({
|
84
|
+
username: {
|
85
|
+
type: String,
|
86
|
+
required: true,
|
87
|
+
},
|
88
|
+
})
|
89
|
+
|
90
|
+
const username = computed(() => props.username)
|
91
|
+
const methodType = ref()
|
92
|
+
|
93
|
+
const methods = ref([{
|
94
|
+
title: 'Система Быстрых Платежей (СБП)',
|
95
|
+
value: 'sbp'
|
96
|
+
}, {
|
97
|
+
title: 'Банковский перевод',
|
98
|
+
value: 'bank_transfer'
|
99
|
+
}])
|
100
|
+
|
101
|
+
const notEmpty = (val: any) => {
|
102
|
+
return !!val || 'Это поле обязательно для заполнения'
|
103
|
+
}
|
104
|
+
|
105
|
+
const showDialog = ref(false)
|
106
|
+
const isSubmitting = ref(false)
|
107
|
+
const sbp = ref({ phone: '' })
|
108
|
+
|
109
|
+
const bank_transfer = ref({
|
110
|
+
account_number: '',
|
111
|
+
bank_name: '',
|
112
|
+
currency: 'RUB',
|
113
|
+
details: {
|
114
|
+
bik: '',
|
115
|
+
corr: '',
|
116
|
+
kpp: '',
|
117
|
+
}
|
118
|
+
})
|
119
|
+
|
120
|
+
const clear = (): void => {
|
121
|
+
showDialog.value = false
|
122
|
+
sbp.value = { phone: '' }
|
123
|
+
bank_transfer.value = {
|
124
|
+
account_number: '',
|
125
|
+
bank_name: '',
|
126
|
+
currency: 'RUB',
|
127
|
+
details: {
|
128
|
+
bik: '',
|
129
|
+
corr: '',
|
130
|
+
kpp: '',
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
const { addPaymentMethod } = useAddPaymentMethod()
|
136
|
+
|
137
|
+
const handlerSubmit = async (): Promise<void> => {
|
138
|
+
|
139
|
+
isSubmitting.value = true
|
140
|
+
try {
|
141
|
+
let data = null as any
|
142
|
+
|
143
|
+
if (methodType.value === 'sbp')
|
144
|
+
data = sbp.value
|
145
|
+
else if (methodType.value === 'bank_transfer')
|
146
|
+
data = bank_transfer.value
|
147
|
+
|
148
|
+
|
149
|
+
await addPaymentMethod({
|
150
|
+
username: username.value,
|
151
|
+
method_id: crypto.randomUUID(), //autogenerate
|
152
|
+
method_type: methodType.value,
|
153
|
+
data
|
154
|
+
})
|
155
|
+
|
156
|
+
showDialog.value = false
|
157
|
+
isSubmitting.value = false
|
158
|
+
clear()
|
159
|
+
} catch (e: any) {
|
160
|
+
showDialog.value = false
|
161
|
+
isSubmitting.value = false
|
162
|
+
FailAlert(e.message)
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as AddPaymentMethodButton } from './AddPaymentButton.vue'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './model'
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { useSessionStore } from 'src/entities/Session'
|
2
|
+
import { useWalletStore } from 'src/entities/Wallet'
|
3
|
+
import { sendPOST } from 'src/shared/api';
|
4
|
+
import { COOPNAME } from 'src/shared/config'
|
5
|
+
|
6
|
+
export interface IDeletePaymentMethod {
|
7
|
+
username: string;
|
8
|
+
method_id: string;
|
9
|
+
}
|
10
|
+
|
11
|
+
export function useDeletePaymentMethod() {
|
12
|
+
const store = useWalletStore()
|
13
|
+
const session = useSessionStore()
|
14
|
+
|
15
|
+
async function deletePaymentMethod(params: IDeletePaymentMethod) {
|
16
|
+
const {username, method_id} = params
|
17
|
+
|
18
|
+
await sendPOST(`/v1/methods/${username}/delete`, {method_id})
|
19
|
+
|
20
|
+
await store.loadUserWalet({
|
21
|
+
coopname: COOPNAME,
|
22
|
+
username: session.username
|
23
|
+
})
|
24
|
+
}
|
25
|
+
|
26
|
+
return {
|
27
|
+
deletePaymentMethod
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<template lang="pug">
|
2
|
+
div
|
3
|
+
q-btn(@click="showDialog=true" :size="size" flat dense) удалить
|
4
|
+
q-icon(name="close")
|
5
|
+
q-dialog(v-model="showDialog" @hide="clear")
|
6
|
+
ModalBase(:title='"Удалить метод платежа"' )
|
7
|
+
Form(:handler-submit="handlerSubmit" :is-submitting="isSubmitting" :button-cancel-txt="'Отменить'" :button-submit-txt="'Продолжить'" @cancel="clear").q-pa-sm
|
8
|
+
p Вы уверены, что хотите удалить метод платежа?
|
9
|
+
|
10
|
+
|
11
|
+
</template>
|
12
|
+
<script lang="ts" setup>
|
13
|
+
import { computed, ref } from 'vue';
|
14
|
+
import { useDeletePaymentMethod } from '../model';
|
15
|
+
import { FailAlert, SuccessAlert } from 'src/shared/api';
|
16
|
+
import { ModalBase } from 'src/shared/ui/ModalBase';
|
17
|
+
import { Form } from 'src/shared/ui/Form';
|
18
|
+
|
19
|
+
const props = defineProps({
|
20
|
+
username: {
|
21
|
+
type: String,
|
22
|
+
required: true,
|
23
|
+
},
|
24
|
+
method_id: {
|
25
|
+
type: String,
|
26
|
+
required: true,
|
27
|
+
},
|
28
|
+
size: {
|
29
|
+
type: String,
|
30
|
+
required: false,
|
31
|
+
default: 'md'
|
32
|
+
}
|
33
|
+
})
|
34
|
+
|
35
|
+
const username = computed(() => props.username)
|
36
|
+
|
37
|
+
const showDialog = ref(false)
|
38
|
+
const isSubmitting = ref(false)
|
39
|
+
|
40
|
+
const clear = (): void => {
|
41
|
+
showDialog.value = false
|
42
|
+
}
|
43
|
+
|
44
|
+
const { deletePaymentMethod } = useDeletePaymentMethod()
|
45
|
+
|
46
|
+
const handlerSubmit = async (): Promise<void> => {
|
47
|
+
|
48
|
+
isSubmitting.value = true
|
49
|
+
try {
|
50
|
+
await deletePaymentMethod({
|
51
|
+
username: username.value,
|
52
|
+
method_id: props.method_id
|
53
|
+
})
|
54
|
+
|
55
|
+
showDialog.value = false
|
56
|
+
isSubmitting.value = false
|
57
|
+
SuccessAlert('Метод платежа успешно удалён')
|
58
|
+
|
59
|
+
} catch (e: any) {
|
60
|
+
showDialog.value = false
|
61
|
+
isSubmitting.value = false
|
62
|
+
FailAlert(e.message)
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
|
67
|
+
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as DeletePaymentButton} from './DeletePaymentMethodButton.vue'
|