@ozdao/prometheus-framework 0.2.29 → 0.2.31
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/addMembersQuantity-3505b6f3.mjs +98 -0
- package/dist/addMembersQuantity-fb552ca0.js +97 -0
- package/dist/auth.server.js +6 -9
- package/dist/auth.server.mjs +6 -9
- package/dist/community.server.js +28 -21
- package/dist/community.server.mjs +28 -21
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +114 -111
- package/dist/files.server.mjs +114 -111
- package/dist/gallery.server.js +3 -3
- package/dist/gallery.server.mjs +3 -3
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/index-a8dffc0c.js +213 -0
- package/dist/index-d769324d.mjs +214 -0
- package/dist/mailing-37c2ba41.mjs +68 -0
- package/dist/mailing-fe16a26a.js +67 -0
- package/dist/main.css +1 -1
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/organizations.server.js +125 -25
- package/dist/organizations.server.mjs +125 -25
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +49 -2
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +2 -49
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +62 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -62
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +30 -29
- package/dist/prometheus-framework.es.js +2478 -2282
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +4 -2
- package/src/assets/images/logo.svg +7 -7
- package/src/components/Block/Block.vue +77 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +2 -2
- package/src/components/Button/Button.vue +32 -227
- package/src/components/Checkbox/Checkbox.vue +1 -1
- package/src/components/Chips/Chips.vue +8 -8
- package/src/components/DatePicker/DatePicker.vue +3 -4
- package/src/components/EditImages/EditImages.vue +32 -14
- package/src/{modules/globals/components/sections → components/Feed}/Feed.vue +60 -45
- package/src/components/FieldBig/FieldBig.vue +16 -5
- package/src/components/FieldPhone/FieldPhone.vue +2 -1
- package/src/components/Footer/Footer.vue +36 -27
- package/src/components/Header/Header.vue +161 -166
- package/src/components/Loader/Loader.vue +9 -2
- package/src/components/LocationMarker/LocationMarker.vue +38 -12
- package/src/components/LocationSelection/LocationSelection.vue +67 -75
- package/src/components/Magnifier/Magnifier.vue +3 -3
- package/src/components/Navigation/Navigation.vue +16 -16
- package/src/components/Popup/Popup.vue +8 -6
- package/src/components/Select/Select.vue +35 -6
- package/src/components/SelectMulti/SelectMulti.vue +5 -13
- package/src/components/Shader/Shader.vue +128 -0
- package/src/components/Sidebar/Sidebar.vue +71 -35
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Tab/Tab.vue +1 -1
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/UploadImage/UploadImage.vue +4 -4
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +54 -10
- package/src/modules/applications/controllers/applications.controller.js +0 -1
- package/src/modules/auth/components/pages/EnterCode.vue +1 -1
- package/src/modules/auth/components/pages/EnterPassword.vue +3 -3
- package/src/modules/auth/components/pages/ResetPassword.vue +1 -2
- package/src/modules/auth/components/pages/SignIn.vue +26 -10
- package/src/modules/auth/components/pages/SignUp.vue +1 -2
- package/src/modules/auth/controllers/twofa.controller.js +4 -4
- package/src/modules/auth/localization/EnterCode.json +2 -2
- package/src/modules/auth/localization/EnterPassword.json +2 -2
- package/src/modules/auth/localization/ResetPassword.json +2 -2
- package/src/modules/auth/localization/SignIn.json +3 -3
- package/src/modules/auth/localization/SignUp.json +3 -3
- package/src/modules/auth/utils/server/verifyAppleIdToken.js +0 -1
- package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +171 -120
- package/src/modules/backoffice/router/backoffice.js +119 -129
- package/src/modules/chats/components/blocks/ChatMessage.vue +25 -0
- package/src/modules/chats/components/pages/ChatPage.vue +50 -0
- package/src/modules/chats/components/sections/ChatWindow.vue +38 -0
- package/src/modules/chats/controllers/chats.controller.js +32 -0
- package/src/modules/chats/models/chat.model.js +26 -0
- package/src/modules/chats/routes/chats.routes.js +53 -0
- package/src/modules/chats/store/chat.store.js +61 -0
- package/src/modules/community/components/blocks/CardBlogpost.vue +19 -4
- package/src/modules/community/components/layouts/Community.vue +96 -39
- package/src/modules/community/components/pages/Blog.vue +4 -3
- package/src/modules/community/components/pages/BlogPost.vue +10 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +36 -17
- package/src/modules/community/components/sections/HotPosts.vue +3 -3
- package/src/modules/community/components/sections/JoinUs.vue +19 -13
- package/src/modules/community/controllers/blog.controller.js +3 -4
- package/src/modules/community/controllers/utils/queryProcessor.js +16 -17
- package/src/modules/community/models/blogpost.model.js +6 -3
- package/src/modules/community/store/blogposts.js +1 -0
- package/src/modules/constructor/components/elements/Embed.vue +12 -1
- package/src/modules/constructor/components/elements/ImageUpload.vue +2 -2
- package/src/modules/constructor/components/elements/Textarea.vue +6 -1
- package/src/modules/constructor/components/elements/Video.vue +79 -0
- package/src/modules/constructor/components/elements/VideoPlayer.vue +59 -0
- package/src/modules/constructor/components/elements/Youtube.vue +52 -0
- package/src/modules/constructor/components/sections/Constructor.vue +27 -3
- package/src/modules/events/components/layouts/layoutEvents.vue +7 -28
- package/src/modules/files/controllers/files.controller.js +9 -22
- package/src/modules/files/middlewares/server/index.js +2 -2
- package/src/modules/files/middlewares/server/middlewareBusboy.js +137 -0
- package/src/modules/files/routes/files.routes.js +9 -9
- package/src/modules/globals/localization/vue-i18n.js +8 -1
- package/src/modules/globals/mixins/mixins.js +23 -13
- package/src/modules/globals/router/routerGuards.js +2 -2
- package/src/modules/globals/store/globals.js +86 -9
- package/src/modules/globals/utils/mailing.js +24 -3
- package/src/modules/icons/entities/IconCommunity.vue +4 -4
- package/src/modules/icons/entities/IconEvents.vue +1 -1
- package/src/modules/icons/entities/IconGroups.vue +1 -1
- package/src/modules/icons/entities/IconPrice.vue +5 -0
- package/src/modules/icons/entities/IconProfile.vue +5 -0
- package/src/modules/icons/entities/IconShopcart.vue +5 -0
- package/src/modules/icons/entities/IconTime.vue +5 -0
- package/src/modules/icons/icons.client.js +4 -0
- package/src/modules/icons/labels/LabelAppStore.vue +24 -24
- package/src/modules/icons/labels/LabelGooglePlay.vue +9 -9
- package/src/modules/icons/logos/Logotype.vue +20 -0
- package/src/modules/icons/navigation/IconAdd.vue +17 -0
- package/src/modules/icons/navigation/IconChevronBottom.vue +18 -0
- package/src/modules/icons/navigation/IconChevronRight.vue +3 -3
- package/src/modules/icons/navigation/IconDelete.vue +19 -0
- package/src/modules/icons/navigation/IconMinus.vue +15 -0
- package/src/modules/icons/navigation/IconSearch.vue +17 -0
- package/src/modules/icons/navigation/IconUpload.vue +16 -0
- package/src/modules/icons/placeholders/PlaceholderImage.vue +5 -0
- package/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue +20 -0
- package/src/modules/icons/placeholders/PlaceholderUserpic.vue +4 -18
- package/src/modules/icons/socials/instagram.vue +1 -1
- package/src/modules/icons/socials/line.vue +1 -1
- package/src/modules/icons/socials/reddit.vue +1 -1
- package/src/modules/icons/socials/telegram.vue +1 -1
- package/src/modules/icons/socials/twitter.vue +1 -1
- package/src/modules/icons/socials/youtube.vue +1 -1
- package/src/modules/landing/components/sections/Guide.vue +92 -0
- package/src/modules/landing/components/sections/MobileApp.vue +23 -12
- package/src/modules/marketplace/components/layouts/Marketplace.vue +76 -188
- package/src/modules/marketplace/components/pages/Catalog.vue +65 -119
- package/src/modules/marketplace/components/sections/Filters.vue +195 -0
- package/src/modules/marketplace/store/marketplace.js +2 -2
- package/src/modules/middlewares/client/auth.validation.js +0 -6
- package/src/modules/middlewares/client/states.validation.js +2 -8
- package/src/modules/middlewares/server/authJwt.js +1 -1
- package/src/modules/mobile/components/Menu/MenuItem.vue +3 -6
- package/src/modules/openai/controllers/openai.controller.js +0 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +166 -0
- package/src/modules/orders/components/blocks/CardOrderItem.vue +59 -66
- package/src/modules/orders/components/blocks/Positions.vue +4 -4
- package/src/modules/orders/components/pages/EditOrder.vue +78 -142
- package/src/modules/orders/components/pages/FormOrder.vue +192 -0
- package/src/modules/orders/components/pages/Order.vue +326 -120
- package/src/modules/orders/components/pages/Orders.vue +13 -9
- package/src/modules/orders/components/pages/{ViewOrder.vue → Orders_refact.vue} +13 -10
- package/src/modules/orders/components/partials/ShopCart.vue +22 -13
- package/src/modules/orders/components/sections/EmptyState.vue +1 -1
- package/src/modules/orders/components/sections/{Form.vue → FormOrderDetails.vue} +38 -106
- package/src/modules/orders/controllers/orders.controller.js +37 -28
- package/src/modules/orders/models/order.model.js +39 -9
- package/src/modules/orders/router/orders.router.js +23 -2
- package/src/modules/orders/routes/orders.routes.js +14 -17
- package/src/modules/orders/store/orders.js +24 -9
- package/src/modules/orders/store/shopcart.js +20 -19
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +98 -46
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/blocks/Socials.vue +11 -3
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +4 -4
- package/src/modules/organizations/components/pages/Members.vue +6 -4
- package/src/modules/organizations/components/pages/Organization.vue +120 -49
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +8 -1
- package/src/modules/organizations/components/pages/Organizations.vue +27 -6
- package/src/modules/organizations/components/sections/DetailsTab.vue +11 -9
- package/src/modules/organizations/components/sections/Feed.vue +0 -3
- package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
- package/src/modules/organizations/controllers/organizations.controller.js +126 -15
- package/src/modules/organizations/controllers/utils/addMembersQuantity.js +19 -9
- package/src/modules/organizations/models/organization.model.js +5 -2
- package/src/modules/organizations/router/members.router.js +1 -3
- package/src/modules/organizations/router/organizations.js +8 -6
- package/src/modules/organizations/router/products.router.js +36 -2
- package/src/modules/organizations/store/organizations.js +38 -84
- package/src/modules/pages/controllers/pages.controller.js +0 -4
- package/src/modules/payments/controller/payments.controller.js +1 -1
- package/src/modules/products/components/blocks/CardLeftover.vue +17 -22
- package/src/modules/products/components/blocks/CardPosition.vue +96 -49
- package/src/modules/products/components/blocks/CardProduct.vue +24 -53
- package/src/modules/products/components/blocks/Images360.vue +4 -4
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +2 -7
- package/src/modules/products/components/blocks/ListPositions.vue +74 -0
- package/src/modules/products/components/elements/Price.vue +11 -5
- package/src/modules/products/components/elements/THC.vue +6 -6
- package/src/modules/products/components/pages/{LeftoverAdd.vue → EditLeftover.vue} +93 -79
- package/src/modules/products/components/pages/Leftovers.vue +74 -70
- package/src/modules/products/components/pages/Product.vue +4 -7
- package/src/modules/products/components/pages/ProductEdit.vue +230 -88
- package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +6 -3
- package/src/modules/products/components/pages/ProductsBackoffice.vue +3 -5
- package/src/modules/products/components/sections/EditModifications.vue +3 -3
- package/src/modules/products/components/sections/EditProductInfo.vue +40 -50
- package/src/modules/products/components/sections/FilterProducts.vue +57 -18
- package/src/modules/products/components/sections/HeroRecommendation.vue +233 -99
- package/src/modules/products/components/sections/MenuSection.vue +127 -0
- package/src/modules/products/components/sections/PopularProducts.vue +81 -37
- package/src/modules/products/components/sections/SectionProduct.vue +21 -23
- package/src/modules/products/controllers/leftovers.controller.js +11 -1
- package/src/modules/products/controllers/products.controller.js +100 -97
- package/src/modules/products/models/leftover.model.js +6 -4
- package/src/modules/products/models/product.model.js +13 -1
- package/src/modules/products/routes/products.routes.js +4 -4
- package/src/modules/products/store/leftovers.js +4 -24
- package/src/modules/products/store/products.js +44 -30
- package/src/modules/spots/components/blocks/CardSpot.vue +43 -72
- package/src/modules/spots/components/layouts/Spots.vue +9 -91
- package/src/modules/spots/components/pages/Map.vue +171 -62
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/spots/components/pages/SpotEdit.vue +131 -174
- package/src/modules/spots/controllers/spots.controller.js +1 -0
- package/src/modules/spots/models/spot.model.js +6 -3
- package/src/modules/spots/store/spots.js +42 -48
- package/src/modules/users/components/pages/Profile.vue +6 -28
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +1 -1
- package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +1 -1
- package/src/modules/users/router/users.js +1 -1
- package/src/modules/wallet/components/pages/Wallet.vue +105 -109
- package/src/modules/wallet/controllers/crypto.controller.js +129 -0
- package/src/modules/wallet/models/reward.model.js +53 -0
- package/src/modules/wallet/routes/crypto.routes.js +36 -0
- package/src/modules/wallet/store/wallet.js +52 -49
- package/src/styles/base/all.scss +144 -12
- package/src/styles/base/backgrounds.scss +2 -34
- package/src/styles/base/borders.scss +18 -23
- package/src/styles/base/scrolling.scss +97 -29
- package/src/styles/base/{shadows.scss → shadow_transitions_hover_refactor.scss} +55 -2
- package/src/styles/config.scss +69 -17
- package/src/styles/layout.scss +12 -182
- package/src/styles/reset.scss +20 -21
- package/src/styles/responsive.scss +4 -67
- package/src/styles/theme.scss +3 -4
- package/src/styles/typography.scss +15 -17
- package/src/assets/fonts/AvenirNext-Bold.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-DemiBold.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-Heavy.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-Medium.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-Regular.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-UltraLight.woff2 +0 -0
- package/src/modules/files/middlewares/server/md.js +0 -152
- package/src/modules/files/middlewares/server/middlewareMulter.js +0 -121
- package/src/modules/organizations/controllers/organizations.new.controller.js +0 -372
- package/src/modules/products/components/blocks/EditCategories.vue +0 -68
- package/src/modules/products/components/sections/EditParameters.vue +0 -58
- package/src/modules/products/components/sections/EditProductImages.vue +0 -67
- package/src/modules/spots/components/sections/Feed.vue +0 -64
- package/src/styles/base/border-radius.scss +0 -47
- package/src/styles/base/cursors.scss +0 -23
- package/src/styles/base/height.scss +0 -60
- package/src/styles/base/hovers.scss +0 -110
- package/src/styles/base/positions.scss +0 -192
- package/src/styles/base/transitions.scss +0 -137
- package/src/styles/base/width.scss +0 -2
- package/src/styles/components/block.scss +0 -18
- package/src/styles/components/breadcrumbs.scss +0 -0
- package/src/styles/components/input.scss +0 -319
@@ -1,14 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<header class="mn-b-medium flex-v-center flex-nowrap flex">
|
3
3
|
<h2 class="mn-r-medium">Edit Order</h2>
|
4
|
-
|
5
|
-
<!-- <button
|
6
|
-
@click="$router.push({
|
7
|
-
name: 'AdminOrder'
|
8
|
-
})"
|
9
|
-
class="radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second">
|
10
|
-
+
|
11
|
-
</button> -->
|
12
4
|
</header>
|
13
5
|
|
14
6
|
<section class="gap-thin flex-nowrap flex mn-b-semi">
|
@@ -28,109 +20,44 @@
|
|
28
20
|
|
29
21
|
</section>
|
30
22
|
|
23
|
+
<Block
|
24
|
+
title="Add Position"
|
25
|
+
class="mn-b-semi"
|
26
|
+
>
|
27
|
+
<CardPosition
|
28
|
+
@add="addProduct"
|
29
|
+
:products="Products"
|
30
|
+
/>
|
31
|
+
</Block>
|
32
|
+
|
33
|
+
<Block
|
34
|
+
title="Invetory Sheet"
|
35
|
+
class="mn-b-semi"
|
36
|
+
>
|
37
|
+
<span
|
38
|
+
v-if="orders.state.current.positions.length === 0"
|
39
|
+
class="w-100"
|
40
|
+
>
|
41
|
+
No positions added yet
|
42
|
+
</span>
|
43
|
+
|
44
|
+
<CardPosition
|
45
|
+
v-for="(product, index) in orders.state.current.positions"
|
46
|
+
:key="product._id"
|
47
|
+
:product="product"
|
48
|
+
:products="Products"
|
49
|
+
@add="addProduct"
|
50
|
+
@delete="deleteProduct"
|
51
|
+
@update="updateProduct"
|
52
|
+
/>
|
53
|
+
</Block>
|
54
|
+
|
55
|
+
<FormOrderDetails
|
56
|
+
:order="orders.state.current"
|
57
|
+
@create="handleCreate"
|
58
|
+
class="bg-grey pd-medium radius-big mn-b-semi"
|
59
|
+
/>
|
31
60
|
|
32
|
-
<div class="mn-b-thin cols-2">
|
33
|
-
<section class="">
|
34
|
-
|
35
|
-
<h5 class="w-100 mn-b-small">Информация о заказе
|
36
|
-
|
37
|
-
<a v-if="showAddNew === false" class="mn-l-small t-main h5" @click="reserOrderList()">Редактировать</a>
|
38
|
-
|
39
|
-
</h5>
|
40
|
-
|
41
|
-
<div class="cols-2 mn-b-medium ">
|
42
|
-
<!-- <p class="w-100">Время создания: {{DateToFormattedString(order.createdAt)}}</p> -->
|
43
|
-
<div class="col flex block">
|
44
|
-
<p class="mn-b-small w-100">
|
45
|
-
Номер клиента: {{order.info?.phone}}<br>
|
46
|
-
</p>
|
47
|
-
<p class="mn-b-small w-100">
|
48
|
-
Имя клиента: {{order.info?.name}} {{order.info?.surname}}
|
49
|
-
</p>
|
50
|
-
<p class="mn-b-small w-100">
|
51
|
-
Контактный email: {{order.info?.email}}
|
52
|
-
</p>
|
53
|
-
</div>
|
54
|
-
<div class="col flex block">
|
55
|
-
<p class="mn-b-small w-100">
|
56
|
-
Тип доставки: {{order.info?.delivery}}
|
57
|
-
</p>
|
58
|
-
<p class="mn-b-small w-100">
|
59
|
-
Город: {{order.info?.city}}
|
60
|
-
</p>
|
61
|
-
<p class="mn-b-small w-100">
|
62
|
-
Адресс: {{order.info?.adress}}
|
63
|
-
</p>
|
64
|
-
</div>
|
65
|
-
|
66
|
-
</div>
|
67
|
-
<div class="block">
|
68
|
-
<p class="w-100">
|
69
|
-
Комментарий: {{order.info?.comment}}
|
70
|
-
</p>
|
71
|
-
</div>
|
72
|
-
|
73
|
-
</section>
|
74
|
-
|
75
|
-
<section class="">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div class="order-list">
|
80
|
-
<div class="flex">
|
81
|
-
<h5 class="mn-b-small">
|
82
|
-
Состав заказа
|
83
|
-
</h5>
|
84
|
-
<div>
|
85
|
-
<a v-if="showAddNew === false" class="t-main h5" @click="changeAdd()">Добавить</a>
|
86
|
-
<a v-else class="t-main h5" @click="changeAdd()">Закрыть</a>
|
87
|
-
<a v-if="showAddNew === false" class="mn-l-small t-main h5" @click="reserOrderList()">Сбросить</a>
|
88
|
-
<a v-if="showAddNew === false" class="mn-l-small t-main h5" @click="saveItemList()">Сохранить</a>
|
89
|
-
</div>
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<div v-if="showAddNew !== false" class="mn-b-small w-100 block">
|
93
|
-
<vue-select :options="Products" v-model="techStack" :label-by="'name'" searchable clear-on-close :close-on-select="true"> </vue-select>
|
94
|
-
<button @click="addProductToOrder()" class="w-25 button">Добавить в заказ</button>
|
95
|
-
</div>
|
96
|
-
|
97
|
-
<ul class="mn-b-semi">
|
98
|
-
<li v-for="(product, index) in orderProducts" :key="product.id" class="shop-cart-item mn-b-small block">
|
99
|
-
<!-- <img :src="require( `@/assets/images/products/${product.images}`)"> -->
|
100
|
-
<div class="text-left">
|
101
|
-
<p class="name">{{ product.name }}</p>
|
102
|
-
|
103
|
-
<div class="mn-b-small flex">
|
104
|
-
<div class="small-underline variant">
|
105
|
-
<span v-if="!product.size && !product.color" class="">One-size</span>
|
106
|
-
<span v-if="product.size" class="">{{ product.size}}</span>
|
107
|
-
<span v-if="product.color && product.size" class="">, </span>
|
108
|
-
<span v-if="product.color" class="">{{ product.color}}</span>
|
109
|
-
<div v-if="product.edit">{{product.edit}}</div>
|
110
|
-
</div>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<p class="t-demi">{{product.quantity}} x {{product.price / 100}} ₽ </p>
|
115
|
-
</div>
|
116
|
-
<div v-if="data[index]" class="flex-nowrap flex w-100">
|
117
|
-
|
118
|
-
<input
|
119
|
-
@input="updateInputText('orders', 'current.items[' + index + '].quantity', $event)"
|
120
|
-
:value="product.quantity"
|
121
|
-
placeholder="Маргарита"
|
122
|
-
class="mn-b-small input-text input"
|
123
|
-
/>
|
124
|
-
</div>
|
125
|
-
<a v-if="!data[index]" @click="changeEdit(index)">Редактировать</a>
|
126
|
-
<a v-if="data[index]" @click="deleteItem(product)">Удалить</a>
|
127
|
-
<a v-if="data[index]" @click="changeEdit(index)">Закрыть</a>
|
128
|
-
</div>
|
129
|
-
</li>
|
130
|
-
</ul>
|
131
|
-
</div>
|
132
|
-
</section>
|
133
|
-
</div>
|
134
61
|
|
135
62
|
<div class="mn-thinw-100 flex-v-center flex block">
|
136
63
|
<p class="p-big">Сумма к оплате:
|
@@ -156,8 +83,16 @@
|
|
156
83
|
import { computed, ref, defineProps, onMounted, reactive, toRefs, watch } from 'vue'
|
157
84
|
import { useRoute } from 'vue-router'
|
158
85
|
|
86
|
+
import Block from '@pf/src/components/Block/Block.vue';
|
87
|
+
|
88
|
+
import ListPositions from '@pf/src/modules/products/components/blocks/ListPositions.vue'
|
89
|
+
import CardPosition from '@pf/src/modules/products/components/blocks/CardPosition.vue';
|
90
|
+
|
91
|
+
import FormOrderDetails from '@pf/src/modules/orders/components/sections/FormOrderDetails.vue'
|
92
|
+
|
159
93
|
// Import your store
|
160
|
-
import
|
94
|
+
import * as orders from '@pf/src/modules/orders/store/orders';
|
95
|
+
import * as products from '@pf/src/modules/products/store/products';
|
161
96
|
|
162
97
|
// Accessing router
|
163
98
|
const route = useRoute()
|
@@ -166,44 +101,45 @@
|
|
166
101
|
const props = defineProps(['showProduct'])
|
167
102
|
props.showProduct = [];
|
168
103
|
|
104
|
+
function addProduct(product) {
|
105
|
+
orders.actions.addProduct(product);
|
106
|
+
}
|
107
|
+
|
108
|
+
function deleteProduct(product) {
|
109
|
+
orders.actions.deleteProduct(product)
|
110
|
+
}
|
111
|
+
|
169
112
|
// Reactive data
|
170
113
|
let data = reactive([])
|
171
114
|
let reactiveData = toRefs(data)
|
172
115
|
var showAddNew = ref(false)
|
116
|
+
const Products = ref([])
|
173
117
|
|
174
118
|
// Initialize order and products
|
175
119
|
let order = ref({})
|
176
|
-
|
177
|
-
|
178
|
-
// Function declarations
|
179
|
-
function test() {
|
180
|
-
console.log('Test Function')
|
181
|
-
}
|
182
|
-
|
183
|
-
function addProductToOrder() {
|
184
|
-
// Update your order state
|
185
|
-
actions.addProductToOrder() // Add your parameters here
|
186
|
-
showAddNew.value = !showAddNew.value
|
187
|
-
}
|
188
|
-
|
189
|
-
// ... [Continue with other function definitions]
|
190
|
-
|
191
|
-
// Replace store actions with your actions
|
120
|
+
// Replace store orders.actions with your orders.actions
|
192
121
|
onMounted(async () => {
|
193
|
-
|
194
|
-
|
195
|
-
await actions.fetchOrder(route.params.
|
196
|
-
|
197
|
-
order.value = state.current
|
198
|
-
|
122
|
+
|
123
|
+
|
124
|
+
await orders.actions.fetchOrder(route.params.order) // Implement this action in your store
|
125
|
+
|
126
|
+
order.value = orders.state.current
|
127
|
+
|
128
|
+
// Replace Vuex orders.actions with your orders.actions
|
129
|
+
try {
|
130
|
+
const productsResponse = await products.actions.read({
|
131
|
+
organization: orders.state.current.organization
|
132
|
+
});
|
133
|
+
console.log(productsResponse)
|
134
|
+
Products.value = productsResponse;
|
135
|
+
} catch (error) {
|
136
|
+
console.error('error');
|
137
|
+
}
|
199
138
|
})
|
200
139
|
|
201
|
-
function deleteItem(item) {
|
202
|
-
actions.deleteItemFromOrder(item) // Replace Vuex mutation with your action
|
203
|
-
}
|
204
140
|
|
205
141
|
function saveItemList() {
|
206
|
-
actions.
|
142
|
+
orders.actions.updateOrderpositions(route.params.order) // Replace Vuex action with your action
|
207
143
|
}
|
208
144
|
|
209
145
|
function changeEdit(index) {
|
@@ -211,17 +147,17 @@
|
|
211
147
|
}
|
212
148
|
|
213
149
|
function resetOrderList() {
|
214
|
-
actions.fetchOrder(route.params.
|
150
|
+
orders.actions.fetchOrder(route.params.order) // Replace Vuex action with your action
|
215
151
|
}
|
216
152
|
|
217
153
|
function changeAdd() {
|
218
154
|
showAddNew.value = !showAddNew.value
|
219
155
|
}
|
220
156
|
|
221
|
-
// Replace computed properties with reactive state
|
222
|
-
|
223
|
-
const orderTotalPrice = computed(() => 100) // Implement this getter in your actions
|
224
|
-
const orderProducts = computed(() => []) // Implement this getter in your actions
|
157
|
+
// Replace computed properties with reactive orders.state
|
158
|
+
// Update this line to match your orders.state structure
|
159
|
+
const orderTotalPrice = computed(() => 100) // Implement this getter in your orders.actions
|
160
|
+
const orderProducts = computed(() => []) // Implement this getter in your orders.actions
|
225
161
|
</script>
|
226
162
|
|
227
163
|
|
@@ -0,0 +1,192 @@
|
|
1
|
+
<template>
|
2
|
+
|
3
|
+
<section class="pd-thin">
|
4
|
+
|
5
|
+
<!-- Ask to login -->
|
6
|
+
<AskToLogin class="mn-b-big" v-if="auth.state.access.status === false" />
|
7
|
+
|
8
|
+
<!-- Order form -->
|
9
|
+
<div class="gap-small mn-b-thin cols-2">
|
10
|
+
<!-- Empty State -->
|
11
|
+
<EmptyState
|
12
|
+
v-if="shopcart.state.positions < 1"
|
13
|
+
/>
|
14
|
+
<Succes
|
15
|
+
v-if="order.status === true && shopcart.state.positions.length > 0"
|
16
|
+
:order="order"
|
17
|
+
/>
|
18
|
+
<FormOrderDetails
|
19
|
+
v-if="orders.state.current.status !== true && shopcart.state.positions.length > 0"
|
20
|
+
:order="orders.state.current"
|
21
|
+
/>
|
22
|
+
|
23
|
+
<!-- Order positions -->
|
24
|
+
<div
|
25
|
+
v-if="shopcart.state.positions.length > 0"
|
26
|
+
>
|
27
|
+
<p class="p-big mn-b-small">Your Order</p>
|
28
|
+
|
29
|
+
<ul class="mn-b-semi">
|
30
|
+
<CardOrderItem v-for="product in shopcart.state.positions" :key="product._id" editable="true" :product="product"
|
31
|
+
:increase="product => shopcart.actions.incrementItemQuantity(product._id)"
|
32
|
+
:decrease="product => shopcart.actions.decrementItemQuantity(product._id)"
|
33
|
+
:remove="product => shopcart.actions.removeProduct(product._id)"
|
34
|
+
/>
|
35
|
+
</ul>
|
36
|
+
|
37
|
+
<div
|
38
|
+
style="border-bottom: 1px solid #f7f7f7; border-top: 1px solid #f7f7f7;" class="pd-b-medium pd-t-medium mn-b-medium"
|
39
|
+
>
|
40
|
+
<p class="mn-b-thin">Subtotal: {{returnCurrency()}} {{ cartTotalPrice }} </p>
|
41
|
+
<p class="mn-b-thin">Delivery: {{ order.delivery.type === 'pickup' ? 'Free' : '30'}} </p>
|
42
|
+
<p class="h3">Total: {{returnCurrency()}} {{ cartTotalPrice }} </p>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<p class='mn-b-thin'>By making this purchase you agree to our terms and conditions.</p>
|
46
|
+
<p class='mn-b-small'>I agree that placing the order places me under an obligation to make a payment in accordance with the General Terms and Conditions.</p>
|
47
|
+
<!-- Send order -->
|
48
|
+
<button
|
49
|
+
v-if="orders.state.current.status !== true && shopcart.state.positions.length > 0"
|
50
|
+
:disabled="
|
51
|
+
errorName
|
52
|
+
|| errorPhoneOrMessenger
|
53
|
+
|| errorCity
|
54
|
+
|| errorAdress
|
55
|
+
|| errorDelivery
|
56
|
+
|| errorPayment
|
57
|
+
"
|
58
|
+
@click="handleCreate()"
|
59
|
+
class="bg-main pd-small radius-big w-100 button"
|
60
|
+
>
|
61
|
+
Place an Order
|
62
|
+
</button>
|
63
|
+
</div>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
</section>
|
70
|
+
|
71
|
+
</template>
|
72
|
+
|
73
|
+
|
74
|
+
<script setup>
|
75
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////
|
76
|
+
// Import components
|
77
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////
|
78
|
+
// Block
|
79
|
+
import CardOrderItem from '@pf/src/modules/orders/components/blocks/CardOrderItem.vue'
|
80
|
+
// Sections
|
81
|
+
import AskToLogin from '@pf/src/modules/orders/components/sections/AskToLogin.vue'
|
82
|
+
import Succes from '@pf/src/modules/orders/components/sections/Succes.vue'
|
83
|
+
import EmptyState from '@pf/src/modules/orders/components/sections/EmptyState.vue'
|
84
|
+
import FormOrderDetails from '@pf/src/modules/orders/components/sections/FormOrderDetails.vue'
|
85
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////
|
86
|
+
// Import libs
|
87
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////
|
88
|
+
import { computed, onMounted } from 'vue'
|
89
|
+
import { useRoute,useRouter } from 'vue-router'
|
90
|
+
|
91
|
+
import * as auth from '@pf/src/modules/auth/store/auth';
|
92
|
+
import * as shopcart from '@pf/src/modules/orders/store/shopcart';
|
93
|
+
import * as orders from '@pf/src/modules/orders/store/orders';
|
94
|
+
import * as users from '@pf/src/modules/users/store/users';
|
95
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////
|
96
|
+
// Variables and computed
|
97
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////
|
98
|
+
// Accessing router and store
|
99
|
+
|
100
|
+
const route = useRoute()
|
101
|
+
const router = useRouter()
|
102
|
+
const cartTotalPrice = computed(() => shopcart.getters.cartTotalPrice)
|
103
|
+
|
104
|
+
const order = computed(() => orders.state.current)
|
105
|
+
const user = computed(() => users.state.current)
|
106
|
+
|
107
|
+
/////////////////////////////
|
108
|
+
// Store Verification
|
109
|
+
/////////////////////////////
|
110
|
+
const errorName = computed(() => {
|
111
|
+
return orders.state.current.user.name.length < 2 ? "Fill the name field" : false
|
112
|
+
})
|
113
|
+
|
114
|
+
const errorPhoneOrMessenger = computed(() => {
|
115
|
+
const phoneError = orders.state.current.user.phone.number;
|
116
|
+
const messengerError = (orders.state.current.user.messenger.type && orders.state.current.user.messenger.value); // Пример
|
117
|
+
|
118
|
+
if (!phoneError && messengerError) {
|
119
|
+
return true;
|
120
|
+
} else {
|
121
|
+
return false ;
|
122
|
+
}
|
123
|
+
});
|
124
|
+
|
125
|
+
const errorAdress = computed(() => {
|
126
|
+
if (orders.state.current.delivery !== "Pickup") {
|
127
|
+
return orders.state.current.delivery.address < 2 ? "Заполните поле адреса" : false
|
128
|
+
} else {
|
129
|
+
return false
|
130
|
+
}
|
131
|
+
})
|
132
|
+
|
133
|
+
const errorDelivery = computed(() => {
|
134
|
+
if (orders.state.current.delivery.type) {
|
135
|
+
return false
|
136
|
+
} else {
|
137
|
+
return true
|
138
|
+
}
|
139
|
+
})
|
140
|
+
|
141
|
+
const errorPayment = computed(() => {
|
142
|
+
if (orders.state.current.payment.type) {
|
143
|
+
return false
|
144
|
+
} else {
|
145
|
+
return true
|
146
|
+
}
|
147
|
+
})
|
148
|
+
|
149
|
+
|
150
|
+
async function handleCreate() {
|
151
|
+
let order = await orders.actions.create(shopcart.state.positions, shopcart.state.organization);
|
152
|
+
|
153
|
+
if (order) {
|
154
|
+
router.push({
|
155
|
+
name: 'Order Status',
|
156
|
+
params: {
|
157
|
+
order: order._id
|
158
|
+
}
|
159
|
+
})
|
160
|
+
} else {
|
161
|
+
alert('something wrong')
|
162
|
+
}
|
163
|
+
}
|
164
|
+
</script>
|
165
|
+
|
166
|
+
<style lang="scss">
|
167
|
+
|
168
|
+
.round-wrapper {
|
169
|
+
position: relative;
|
170
|
+
|
171
|
+
.round {
|
172
|
+
margin: 0;
|
173
|
+
margin-right: 1rem;
|
174
|
+
}
|
175
|
+
|
176
|
+
input:checked {
|
177
|
+
background: #00ff88;
|
178
|
+
}
|
179
|
+
|
180
|
+
.round-checkmark {
|
181
|
+
position: absolute;
|
182
|
+
width: 0.5rem;
|
183
|
+
height: 0.5rem;
|
184
|
+
background: white;
|
185
|
+
|
186
|
+
left: 0.5rem;
|
187
|
+
top: 0.5rem;
|
188
|
+
|
189
|
+
opacity: 1;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
</style>
|