@ozdao/prometheus-framework 0.1.67 → 0.1.69
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-59a591ab.js +1 -0
- package/dist/BackofficeGallery-be6f69a9.mjs +307 -0
- package/dist/BackofficeReports-06166952.js +1 -0
- package/dist/BackofficeReports-50fd799c.mjs +44 -0
- package/dist/BlockTags-00325fa0.mjs +853 -0
- package/dist/BlockTags-58f95c8a.js +1 -0
- package/dist/ButtonToggleMembership-84d0e018.mjs +90 -0
- package/dist/ButtonToggleMembership-b905812f.js +1 -0
- package/dist/CardBlogpost-1b81b54e.mjs +246 -0
- package/dist/CardBlogpost-7107e04a.js +1 -0
- package/dist/CardOrganization-49ab5190.mjs +234 -0
- package/dist/CardOrganization-e6ac27f1.js +1 -0
- package/dist/CardProduct-4c0cb9a1.js +1 -0
- package/dist/CardProduct-ea0e1f84.mjs +192 -0
- package/dist/Chips-817cf959.js +1 -0
- package/dist/Chips-8c836ba6.mjs +213 -0
- package/dist/Community-8c4e011b.js +1 -0
- package/dist/Community-bd6f0cbb.mjs +131 -0
- package/dist/Dashboard-73b50724.js +1 -0
- package/dist/Dashboard-bc81b5f6.mjs +151 -0
- package/dist/Dropdown-60e3dc6c.js +1 -0
- package/dist/Dropdown-d1c81d45.mjs +169 -0
- package/dist/EditOrder-2b746caf.mjs +221 -0
- package/dist/EditOrder-e632f0cc.js +1 -0
- package/dist/Events-999cc8ed.js +1 -0
- package/dist/Events-ad8bbf27.mjs +134 -0
- package/dist/Feed-35e13c22.mjs +156 -0
- package/dist/Feed-53d96b18.mjs +361 -0
- package/dist/Feed-694a2fad.js +1 -0
- package/dist/Feed-ac4bb6ea.js +1 -0
- package/dist/Feed-d1d01771.js +1 -0
- package/dist/Feed-f7c04014.mjs +124 -0
- package/dist/Image-61cfd52d.js +9 -0
- package/dist/Image-e8be4acc.mjs +480 -0
- package/dist/LeftoverAdd-a268a95c.js +1 -0
- package/dist/LeftoverAdd-e4d93760.mjs +229 -0
- package/dist/Leftovers-6976802d.mjs +135 -0
- package/dist/Leftovers-d8f1d152.js +1 -0
- package/dist/Members-aeb2bca1.mjs +109 -0
- package/dist/Members-b9664e83.js +1 -0
- package/dist/Menu-93d34d9f.js +1 -0
- package/dist/Menu-eaf6b44c.mjs +13 -0
- package/dist/MenuItem-4a5881bd.mjs +85 -0
- package/dist/MenuItem-f35cad93.js +1 -0
- package/dist/Orders-8bc8963c.js +1 -0
- package/dist/Orders-eb262d8c.mjs +75 -0
- package/dist/Organizations-9926aa51.mjs +72 -0
- package/dist/Organizations-c653d814.js +1 -0
- package/dist/Payments-98328000.js +1 -0
- package/dist/Payments-a9066cdf.mjs +11 -0
- package/dist/Popup-0d8e1392.mjs +96 -0
- package/dist/Popup-eb11fa82.js +1 -0
- package/dist/Product-15043af7.mjs +651 -0
- package/dist/Product-82c022a4.js +7 -0
- package/dist/ProductEdit-05da9866.mjs +258 -0
- package/dist/ProductEdit-2f075296.js +1 -0
- package/dist/ProductsBackoffice-8462f626.js +1 -0
- package/dist/ProductsBackoffice-8d0f0ee8.mjs +85 -0
- package/dist/ProfileBlogposts-43855cb9.js +1 -0
- package/dist/ProfileBlogposts-f32170a3.mjs +78 -0
- package/dist/ProfileEvents-54be2d43.mjs +69 -0
- package/dist/ProfileEvents-ab69e27e.js +1 -0
- package/dist/ProfileOrganizations-0787cf34.mjs +72 -0
- package/dist/ProfileOrganizations-eb62dde4.js +1 -0
- package/dist/Publics-8e726d20.mjs +45 -0
- package/dist/Publics-ae589bf1.js +1 -0
- package/dist/Select-95f4701a.js +1 -0
- package/dist/Select-dab17282.mjs +80 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-0ea8fbf8.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-4ed993c7.mjs +1 -0
- package/dist/Socials-43293869.js +1 -0
- package/dist/Socials-8193477c.mjs +189 -0
- package/dist/UploadImage-0e8e4278.mjs +83 -0
- package/dist/UploadImage-8c71bda6.js +1 -0
- package/dist/UploadImageMultiple-c34a6c6f.mjs +58 -0
- package/dist/UploadImageMultiple-d1316df5.js +1 -0
- package/dist/Wallet-727195d9.mjs +21700 -0
- package/dist/Wallet-f4dda407.js +10 -0
- package/dist/auth-04684a60.js +7 -0
- package/dist/auth-7e39361f.mjs +633 -0
- package/dist/auth.client.cjs +1 -1
- package/dist/auth.client.js +5 -5
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/auth.validation-d614130d.js +1 -0
- package/dist/auth.validation-f4bf1deb.mjs +24 -0
- package/dist/axios-33aeb810.mjs +1435 -0
- package/dist/axios-ceccf20e.js +5 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +20 -20
- package/dist/categories-7e17a7eb.js +1 -0
- package/dist/categories-b7f9e8c0.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +209 -202
- package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +24 -27
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +64 -40
- package/dist/leftovers-86e7d438.mjs +67 -0
- package/dist/leftovers-c9f70579.js +1 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +6 -7
- package/dist/main.css +1 -1
- package/dist/memberships-559590ad.mjs +68 -0
- package/dist/memberships-58af22e0.js +1 -0
- package/dist/modules/constructor/components/elements/H2.vue.d.ts +1 -1
- package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +1 -1
- package/dist/modules/products/components/sections/EditProductInfo.vue.d.ts +1 -5
- package/dist/orders-1325c51b.js +1 -0
- package/dist/orders-c7cbe706.mjs +85 -0
- package/dist/organizations-71777b32.js +1 -0
- package/dist/organizations-93f7b610.mjs +122 -0
- package/dist/organizations.client-6ca27fb3.js +3 -0
- package/dist/organizations.client-bd63a7b2.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +56 -61
- package/dist/products-61d83d74.js +1 -0
- package/dist/products-7f1e5a75.mjs +108 -0
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +67 -65
- package/dist/prometheus-framework.cjs.js +21 -21
- package/dist/prometheus-framework.es.js +682 -690
- package/dist/reports-a67b4fb4.js +1 -0
- package/dist/reports-c579b02a.mjs +91 -0
- package/dist/reports.client.cjs +1 -1
- package/dist/reports.client.js +2 -2
- package/dist/states.validation-3b4604bc.mjs +13 -0
- package/dist/states.validation-9b43a097.js +1 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +279 -208
- package/package.json +30 -35
- package/src/components/Button/Button.vue +1 -1
- package/src/components/Sidebar/Sidebar.vue +10 -8
- package/src/components/Upload/Upload.vue +8 -28
- package/src/modules/auth/components/pages/SignIn.vue +2 -2
- package/src/modules/auth/controllers/auth.controller.js +1 -1
- package/src/modules/auth/store/auth.js +21 -24
- package/src/modules/backoffice/components/admin/ProductEdit.vue +2 -0
- package/src/modules/constructor/components/sections/Constructor.vue +7 -54
- package/src/modules/gallery/components/pages/Gallery.vue +7 -1
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +24 -8
- package/src/modules/gallery/gallery.client.js +5 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -0
- package/src/modules/organizations/components/pages/Organization.vue +2 -2
- package/src/modules/payments/components/pages/Payments.vue +4 -3
- package/src/modules/products/components/blocks/CardLeftover.vue +0 -1
- package/src/modules/products/components/blocks/CardProduct.vue +15 -1
- package/src/modules/products/components/sections/EditProductInfo.vue +16 -14
- package/src/modules/products/components/sections/FilterProducts.vue +0 -2
- package/src/modules/products/components/sections/SectionProduct.vue +1 -0
- package/src/modules/products/components/sections/SortProducts.vue +2 -0
- package/src/modules/products/store/categories.js +9 -9
- package/src/modules/products/store/leftovers.js +6 -9
- package/src/modules/products/store/products.js +2 -0
- package/src/modules/users/components/pages/Profile.vue +3 -5
- package/src/modules/wallet/components/pages/Wallet.vue +1 -1
- package/src/styles/components/button.scss +253 -0
- package/src/styles/theme.scss +1 -0
- package/src/modules/constructor/components/elements/Audio.vue +0 -82
- package/src/modules/constructor/components/elements/Embed.vue +0 -85
- package/src/modules/globals/mixins/mixins.js +0 -52
- package/src/modules/globals/router/routerGuards.js +0 -28
@@ -0,0 +1,229 @@
|
|
1
|
+
import { openBlock as c, createElementBlock as m, createElementVNode as o, createCommentVNode as k, Fragment as x, renderList as L, toDisplayString as P, createVNode as a, ref as _, computed as w, withCtx as U, unref as h, onMounted as V, createTextVNode as N } from "vue";
|
2
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
3
|
+
import { S } from "./Select-dab17282.mjs";
|
4
|
+
import { S as A } from "./SelectMulti-58704d69.mjs";
|
5
|
+
import { useRouter as $, useRoute as C } from "vue-router";
|
6
|
+
import { F as v } from "./Field-e5ad88d3.mjs";
|
7
|
+
import { a as d, s as u } from "./leftovers-86e7d438.mjs";
|
8
|
+
import { s as q, a as B } from "./products-7f1e5a75.mjs";
|
9
|
+
import "./Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-4ed993c7.mjs";
|
10
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
11
|
+
import "./axios-33aeb810.mjs";
|
12
|
+
import "./globals-96ba60e4.mjs";
|
13
|
+
import "vue-i18n";
|
14
|
+
import "./auth-7e39361f.mjs";
|
15
|
+
const D = { class: "flex-column flex-wrap block" }, F = {
|
16
|
+
key: 0,
|
17
|
+
class: "w-100"
|
18
|
+
}, I = { class: "mn-r-regular w-100" }, Q = ["onClick"], R = {
|
19
|
+
__name: "LeftoverPositions",
|
20
|
+
props: {
|
21
|
+
order: Object
|
22
|
+
},
|
23
|
+
setup(p) {
|
24
|
+
const l = p;
|
25
|
+
$(), C();
|
26
|
+
function n(s) {
|
27
|
+
d.deleteItemFromLeftover(l.order.positions[s]);
|
28
|
+
}
|
29
|
+
return (s, f) => (c(), m("div", null, [
|
30
|
+
o("ul", D, [
|
31
|
+
p.order.positions.length === 0 ? (c(), m("span", F, " No positions added yet ")) : k("", !0),
|
32
|
+
(c(!0), m(x, null, L(p.order.positions, (r, y) => (c(), m("li", {
|
33
|
+
key: r._id,
|
34
|
+
class: "w-100 flex-center flex-nowrap flex"
|
35
|
+
}, [
|
36
|
+
o("span", I, P(r.name), 1),
|
37
|
+
a(v, {
|
38
|
+
field: r.price,
|
39
|
+
"onUpdate:field": (i) => r.price = i,
|
40
|
+
type: "number",
|
41
|
+
label: "Price",
|
42
|
+
symbol: s.returnCurrency(),
|
43
|
+
class: "bg-grey pd-medium radius-small"
|
44
|
+
}, null, 8, ["field", "onUpdate:field", "symbol"]),
|
45
|
+
a(v, {
|
46
|
+
field: r.quantity,
|
47
|
+
"onUpdate:field": (i) => r.quantity = i,
|
48
|
+
type: "number",
|
49
|
+
label: "Quantity",
|
50
|
+
class: "bg-grey pd-medium radius-small",
|
51
|
+
symbol: r.type
|
52
|
+
}, null, 8, ["field", "onUpdate:field", "symbol"]),
|
53
|
+
o("a", {
|
54
|
+
class: "button",
|
55
|
+
onClick: (i) => n(y)
|
56
|
+
}, " Delete ", 8, Q)
|
57
|
+
]))), 128))
|
58
|
+
])
|
59
|
+
]));
|
60
|
+
}
|
61
|
+
}, T = ["disabled"], j = {
|
62
|
+
__name: "CardPosition",
|
63
|
+
props: {
|
64
|
+
product: Object,
|
65
|
+
products: Array,
|
66
|
+
quantity: Number,
|
67
|
+
type: String,
|
68
|
+
price: Number
|
69
|
+
},
|
70
|
+
emits: [
|
71
|
+
"add",
|
72
|
+
"remove"
|
73
|
+
],
|
74
|
+
setup(p, { emit: l }) {
|
75
|
+
const n = _(null), s = _(null), f = _("pcs"), r = _(null), y = w(
|
76
|
+
() => n.value && s.value > 0 && r.value > 0
|
77
|
+
);
|
78
|
+
function i() {
|
79
|
+
l("add", {
|
80
|
+
product: n.value,
|
81
|
+
price: r.value,
|
82
|
+
quantity: s.value,
|
83
|
+
type: f.value
|
84
|
+
});
|
85
|
+
}
|
86
|
+
return (b, e) => (c(), m(x, null, [
|
87
|
+
a(A, {
|
88
|
+
modelValue: n.value,
|
89
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => n.value = t),
|
90
|
+
options: p.products,
|
91
|
+
label: "name",
|
92
|
+
multiple: !1,
|
93
|
+
taggable: !1,
|
94
|
+
placeholder: "Select a product",
|
95
|
+
class: "bg-grey pd-medium radius-small"
|
96
|
+
}, null, 8, ["modelValue", "options"]),
|
97
|
+
a(v, {
|
98
|
+
field: r.value,
|
99
|
+
"onUpdate:field": e[1] || (e[1] = (t) => r.value = t),
|
100
|
+
type: "number",
|
101
|
+
label: "Price",
|
102
|
+
symbol: b.returnCurrency(),
|
103
|
+
class: "bg-grey pd-medium radius-small"
|
104
|
+
}, null, 8, ["field", "symbol"]),
|
105
|
+
a(v, {
|
106
|
+
field: s.value,
|
107
|
+
"onUpdate:field": e[3] || (e[3] = (t) => s.value = t),
|
108
|
+
type: "number",
|
109
|
+
label: "Quantity",
|
110
|
+
class: "bg-grey pd-medium radius-small"
|
111
|
+
}, {
|
112
|
+
default: U(() => [
|
113
|
+
a(S, {
|
114
|
+
select: f.value,
|
115
|
+
"onUpdate:select": e[2] || (e[2] = (t) => f.value = t),
|
116
|
+
options: [
|
117
|
+
"pcs",
|
118
|
+
"g",
|
119
|
+
"ml"
|
120
|
+
],
|
121
|
+
class: "bg-white pd-thin radius-thin"
|
122
|
+
}, null, 8, ["select"])
|
123
|
+
]),
|
124
|
+
_: 1
|
125
|
+
}, 8, ["field"]),
|
126
|
+
o("button", {
|
127
|
+
disabled: !h(y),
|
128
|
+
onClick: i,
|
129
|
+
class: "bg-main button"
|
130
|
+
}, " Add ", 8, T)
|
131
|
+
], 64));
|
132
|
+
}
|
133
|
+
};
|
134
|
+
const O = /* @__PURE__ */ o("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
|
135
|
+
/* @__PURE__ */ o("h2", { class: "mn-r-medium" }, "Inventory")
|
136
|
+
], -1), E = /* @__PURE__ */ o("h5", { class: "mn-small" }, "Select Type", -1), M = /* @__PURE__ */ o("h5", { class: "mn-small" }, "Add Position", -1), z = { class: "mn-semi gap-thin flex-nowrap flex" }, G = { class: "gap-thin flex-v-center flex-nojustify flex" }, H = { class: "mn-r-auto" }, ie = {
|
137
|
+
__name: "LeftoverAdd",
|
138
|
+
setup(p) {
|
139
|
+
const l = C(), n = $(), s = _(q.all), f = w(() => u.current.positions.reduce((e, t) => e + t.price * (t.quantity || 1), 0));
|
140
|
+
V(async () => {
|
141
|
+
if (l.params._id)
|
142
|
+
try {
|
143
|
+
await d.fetch(l.params._id);
|
144
|
+
} catch {
|
145
|
+
console.error("error");
|
146
|
+
}
|
147
|
+
else
|
148
|
+
u.current = { type: "", order: "", positions: [] };
|
149
|
+
try {
|
150
|
+
const e = await B.read({
|
151
|
+
organization: "65141c476cf9860013b49f6d"
|
152
|
+
});
|
153
|
+
s.value = e;
|
154
|
+
} catch {
|
155
|
+
console.error("error");
|
156
|
+
}
|
157
|
+
});
|
158
|
+
function r() {
|
159
|
+
l.params._id ? d.fetch(l.params._id) : u.current = { type: "", order: "", positions: [] };
|
160
|
+
}
|
161
|
+
function y(e) {
|
162
|
+
d.addProductToLeftover(e);
|
163
|
+
}
|
164
|
+
function i() {
|
165
|
+
l.params._id ? d.update(u.current).then(
|
166
|
+
() => n.push({ name: "Backoffice Leftovers" }),
|
167
|
+
(e) => console.error("error")
|
168
|
+
) : d.create(u.current).then(
|
169
|
+
() => n.push({ name: "Backoffice Leftovers" }),
|
170
|
+
(e) => console.error("error")
|
171
|
+
);
|
172
|
+
}
|
173
|
+
function b() {
|
174
|
+
d.delete(l.params._id).then(
|
175
|
+
() => n.push({ name: "Backoffice Leftovers" }),
|
176
|
+
(e) => console.error("error")
|
177
|
+
);
|
178
|
+
}
|
179
|
+
return (e, t) => (c(), m(x, null, [
|
180
|
+
O,
|
181
|
+
E,
|
182
|
+
a(S, {
|
183
|
+
select: u.current.type,
|
184
|
+
"onUpdate:select": t[0] || (t[0] = (g) => u.current.type = g),
|
185
|
+
options: [
|
186
|
+
"stock-in",
|
187
|
+
"stock-out",
|
188
|
+
"write-off"
|
189
|
+
],
|
190
|
+
placeholder: "Select type",
|
191
|
+
class: "mn-semi bg-grey pd-medium radius-small"
|
192
|
+
}, null, 8, ["select"]),
|
193
|
+
M,
|
194
|
+
o("div", z, [
|
195
|
+
a(j, {
|
196
|
+
onAdd: y,
|
197
|
+
products: s.value
|
198
|
+
}, null, 8, ["products"])
|
199
|
+
]),
|
200
|
+
o("h5", { class: "mn-small" }, [
|
201
|
+
N(" Invetory Sheet "),
|
202
|
+
o("a", {
|
203
|
+
class: "mn-l-thin t-main",
|
204
|
+
onClick: r
|
205
|
+
}, " Reset ")
|
206
|
+
]),
|
207
|
+
a(R, {
|
208
|
+
order: u.current,
|
209
|
+
products: s.value,
|
210
|
+
class: "mn-semi"
|
211
|
+
}, null, 8, ["order", "products"]),
|
212
|
+
o("section", G, [
|
213
|
+
o("h3", H, " In total: " + P(e.formatPrice(h(f))), 1),
|
214
|
+
o("a", {
|
215
|
+
onClick: t[1] || (t[1] = (g) => i()),
|
216
|
+
class: "bg-main button"
|
217
|
+
}, " Save "),
|
218
|
+
h(l).params._id ? (c(), m("a", {
|
219
|
+
key: 0,
|
220
|
+
onClick: t[2] || (t[2] = (g) => b()),
|
221
|
+
class: "t-white bg-red button"
|
222
|
+
}, " Delete ")) : k("", !0)
|
223
|
+
])
|
224
|
+
], 64));
|
225
|
+
}
|
226
|
+
};
|
227
|
+
export {
|
228
|
+
ie as default
|
229
|
+
};
|
@@ -0,0 +1,135 @@
|
|
1
|
+
import { ref as f, openBlock as a, createElementBlock as c, createElementVNode as e, toDisplayString as n, createVNode as u, Transition as b, withCtx as v, Fragment as _, renderList as h, createTextVNode as x, createCommentVNode as k, pushScopeId as w, popScopeId as $, computed as C, unref as L, createBlock as I } from "vue";
|
2
|
+
import { useRouter as g, useRoute as S } from "vue-router";
|
3
|
+
import { _ as N } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ as q } from "./Feed-d114330c.mjs";
|
5
|
+
import { I as E } from "./IconEdit-9edfd74d.mjs";
|
6
|
+
import { _ as O } from "./_plugin-vue_export-helper-dad06003.mjs";
|
7
|
+
import { s as V, a as B } from "./leftovers-86e7d438.mjs";
|
8
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
9
|
+
import "./SkeletonEvent-8690422d.mjs";
|
10
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
11
|
+
import "./EmptyState-e404b05d.mjs";
|
12
|
+
import "vue-i18n";
|
13
|
+
import "./axios-33aeb810.mjs";
|
14
|
+
import "./globals-96ba60e4.mjs";
|
15
|
+
const y = (o) => (w("data-v-93756eb8"), o = o(), $(), o), T = { class: "flex-column flex-wrap block" }, A = { class: "w-100 mn-thin flex" }, F = { class: "p-big" }, P = /* @__PURE__ */ y(() => /* @__PURE__ */ e("p", { class: "p-small" }, null, -1)), R = /* @__PURE__ */ y(() => /* @__PURE__ */ e("hr", { class: "mn-t-small mn-thin" }, null, -1)), j = { class: "w-100 spoiler" }, D = { key: 0 }, U = { class: "w-100 mn-thin flex" }, W = { class: "w-50 flex" }, z = { class: "t-right w-50 flex" }, G = { class: "w-100" }, H = { class: "t-transp" }, J = {
|
16
|
+
__name: "CardLeftover",
|
17
|
+
props: {
|
18
|
+
leftover: Object
|
19
|
+
},
|
20
|
+
setup(o) {
|
21
|
+
g();
|
22
|
+
const i = f(!1);
|
23
|
+
function d(r, s) {
|
24
|
+
return s[r % 100 > 4 && r % 100 < 20 ? 2 : [2, 0, 1, 1, 1, 2][r % 10 < 5 ? r % 10 : 5]];
|
25
|
+
}
|
26
|
+
return (r, s) => (a(), c("div", T, [
|
27
|
+
e("div", A, [
|
28
|
+
e("div", null, [
|
29
|
+
e("p", F, n(o.leftover.type) + " #" + n(o.leftover._id), 1),
|
30
|
+
P
|
31
|
+
]),
|
32
|
+
e("div", null, [
|
33
|
+
u(E, {
|
34
|
+
onClick: s[0] || (s[0] = (t) => r.$router.push({
|
35
|
+
name: "LeftoverEdit",
|
36
|
+
params: {
|
37
|
+
_id: o.leftover._id
|
38
|
+
}
|
39
|
+
})),
|
40
|
+
class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
41
|
+
})
|
42
|
+
]),
|
43
|
+
R
|
44
|
+
]),
|
45
|
+
e("div", j, [
|
46
|
+
e("div", {
|
47
|
+
onClick: s[1] || (s[1] = (t) => i.value = !i.value),
|
48
|
+
class: "mn-small flex"
|
49
|
+
}, [
|
50
|
+
e("span", null, "Всего товаров " + n(o.leftover.positions.length), 1)
|
51
|
+
]),
|
52
|
+
u(b, { name: "fade" }, {
|
53
|
+
default: v(() => [
|
54
|
+
i.value ? (a(), c("div", D, [
|
55
|
+
(a(!0), c(_, null, h(o.leftover.positions, (t) => (a(), c("div", U, [
|
56
|
+
e("div", W, [
|
57
|
+
e("span", null, n(t.name), 1)
|
58
|
+
]),
|
59
|
+
e("div", z, [
|
60
|
+
e("span", G, [
|
61
|
+
x(n(t.quantity) + " ", 1),
|
62
|
+
e("span", H, n(d(t.quantity, ["единица", " единицы", " единиц"])), 1)
|
63
|
+
])
|
64
|
+
])
|
65
|
+
]))), 256))
|
66
|
+
])) : k("", !0)
|
67
|
+
]),
|
68
|
+
_: 1
|
69
|
+
})
|
70
|
+
])
|
71
|
+
]));
|
72
|
+
}
|
73
|
+
}, K = /* @__PURE__ */ O(J, [["__scopeId", "data-v-93756eb8"]]);
|
74
|
+
const M = { class: "mn-medium flex-v-center flex-nowrap flex" }, Q = /* @__PURE__ */ e("h2", { class: "mn-r-medium" }, "Inventory", -1), X = { class: "mn-semi pd-medium bg-grey radius-big" }, Y = /* @__PURE__ */ e("p", { class: "mn-thin" }, "Spended:", -1), _e = {
|
75
|
+
__name: "Leftovers",
|
76
|
+
setup(o) {
|
77
|
+
const i = S();
|
78
|
+
g();
|
79
|
+
const d = f(i.query.tab ? i.query.tab : "all"), r = C(() => V.all.reduce((s, t) => {
|
80
|
+
const l = t.positions.reduce((m, p) => m + p.price * (p.quantity || 1), 0);
|
81
|
+
return s + l;
|
82
|
+
}, 0));
|
83
|
+
return (s, t) => (a(), c(_, null, [
|
84
|
+
e("header", M, [
|
85
|
+
Q,
|
86
|
+
e("button", {
|
87
|
+
onClick: t[0] || (t[0] = (l) => s.$router.push({
|
88
|
+
name: "LeftoverAdd"
|
89
|
+
})),
|
90
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
91
|
+
}, " + ")
|
92
|
+
]),
|
93
|
+
e("section", X, [
|
94
|
+
Y,
|
95
|
+
e("h3", null, n(s.formatPrice(L(r))), 1)
|
96
|
+
]),
|
97
|
+
u(N, {
|
98
|
+
selected: d.value,
|
99
|
+
"onUpdate:selected": t[1] || (t[1] = (l) => d.value = l),
|
100
|
+
tabs: [
|
101
|
+
{ name: "All", value: "all" },
|
102
|
+
{ name: "Stock-In", value: "stock-in" },
|
103
|
+
{ name: "Stock-Out", value: "stock-out" },
|
104
|
+
{ name: "Write-Off", value: "write-off" }
|
105
|
+
],
|
106
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
107
|
+
}, null, 8, ["selected"]),
|
108
|
+
u(q, {
|
109
|
+
states: {
|
110
|
+
empty: {
|
111
|
+
title: "No Leftovers Found",
|
112
|
+
description: "Currently, there are no leftovers available."
|
113
|
+
}
|
114
|
+
},
|
115
|
+
store: {
|
116
|
+
read: (l) => B.read(l)
|
117
|
+
},
|
118
|
+
options: {
|
119
|
+
limit: 15
|
120
|
+
// user: user
|
121
|
+
}
|
122
|
+
}, {
|
123
|
+
default: v(({
|
124
|
+
items: l
|
125
|
+
}) => [
|
126
|
+
(a(!0), c(_, null, h(l, (m) => (a(), I(K, { leftover: m }, null, 8, ["leftover"]))), 256))
|
127
|
+
]),
|
128
|
+
_: 1
|
129
|
+
}, 8, ["states", "store"])
|
130
|
+
], 64));
|
131
|
+
}
|
132
|
+
};
|
133
|
+
export {
|
134
|
+
_e as default
|
135
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),p=require("./Tab-2c1e4224.js"),_=require("./Feed-98b47c6f.js"),v=require("./IconEdit-c0469b45.js"),f=require("./_plugin-vue_export-helper-f246444f.js"),u=require("./leftovers-c9f70579.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./SkeletonEvent-eb284de8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("vue-i18n");require("./axios-ceccf20e.js");require("./globals-928eb13c.js");const m=r=>(e.pushScopeId("data-v-93756eb8"),r=r(),e.popScopeId(),r),h={class:"flex-column flex-wrap block"},g={class:"w-100 mn-thin flex"},E={class:"p-big"},N=m(()=>e.createElementVNode("p",{class:"p-small"},null,-1)),V=m(()=>e.createElementVNode("hr",{class:"mn-t-small mn-thin"},null,-1)),y={class:"w-100 spoiler"},k={key:0},q={class:"w-100 mn-thin flex"},b={class:"w-50 flex"},x={class:"t-right w-50 flex"},S={class:"w-100"},B={class:"t-transp"},w={__name:"CardLeftover",props:{leftover:Object},setup(r){i.useRouter();const s=e.ref(!1);function a(n,o){return o[n%100>4&&n%100<20?2:[2,0,1,1,1,2][n%10<5?n%10:5]]}return(n,o)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",g,[e.createElementVNode("div",null,[e.createElementVNode("p",E,e.toDisplayString(r.leftover.type)+" #"+e.toDisplayString(r.leftover._id),1),N]),e.createElementVNode("div",null,[e.createVNode(v.IconEdit,{onClick:o[0]||(o[0]=t=>n.$router.push({name:"LeftoverEdit",params:{_id:r.leftover._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})]),V]),e.createElementVNode("div",y,[e.createElementVNode("div",{onClick:o[1]||(o[1]=t=>s.value=!s.value),class:"mn-small flex"},[e.createElementVNode("span",null,"Всего товаров "+e.toDisplayString(r.leftover.positions.length),1)]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.leftover.positions,t=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",b,[e.createElementVNode("span",null,e.toDisplayString(t.name),1)]),e.createElementVNode("div",x,[e.createElementVNode("span",S,[e.createTextVNode(e.toDisplayString(t.quantity)+" ",1),e.createElementVNode("span",B,e.toDisplayString(a(t.quantity,["единица"," единицы"," единиц"])),1)])])]))),256))])):e.createCommentVNode("",!0)]),_:1})])]))}},$=f._export_sfc(w,[["__scopeId","data-v-93756eb8"]]);const C={class:"mn-medium flex-v-center flex-nowrap flex"},L=e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory",-1),I={class:"mn-semi pd-medium bg-grey radius-big"},D=e.createElementVNode("p",{class:"mn-thin"},"Spended:",-1),F={__name:"Leftovers",setup(r){const s=i.useRoute();i.useRouter();const a=e.ref(s.query.tab?s.query.tab:"all"),n=e.computed(()=>u.state.all.reduce((o,t)=>{const l=t.positions.reduce((c,d)=>c+d.price*(d.quantity||1),0);return o+l},0));return(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",C,[L,e.createElementVNode("button",{onClick:t[0]||(t[0]=l=>o.$router.push({name:"LeftoverAdd"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createElementVNode("section",I,[D,e.createElementVNode("h3",null,e.toDisplayString(o.formatPrice(e.unref(n))),1)]),e.createVNode(p._sfc_main,{selected:a.value,"onUpdate:selected":t[1]||(t[1]=l=>a.value=l),tabs:[{name:"All",value:"all"},{name:"Stock-In",value:"stock-in"},{name:"Stock-Out",value:"stock-out"},{name:"Write-Off",value:"write-off"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(_._sfc_main,{states:{empty:{title:"No Leftovers Found",description:"Currently, there are no leftovers available."}},store:{read:l=>u.actions.read(l)},options:{limit:15}},{default:e.withCtx(({items:l})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,c=>(e.openBlock(),e.createBlock($,{leftover:c},null,8,["leftover"]))),256))]),_:1},8,["states","store"])],64))}};exports.default=F;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import { ref as l, onMounted as _, resolveComponent as v, openBlock as f, createBlock as b, Transition as h, withCtx as n, createElementVNode as i, createVNode as r, unref as g } from "vue";
|
2
|
+
import { useRoute as w } from "vue-router";
|
3
|
+
import { a as m, _ as $, b as I, s as z } from "./organizations.client-bd63a7b2.mjs";
|
4
|
+
import { _ as y } from "./MenuItem-4a5881bd.mjs";
|
5
|
+
import { s as E } from "./auth-7e39361f.mjs";
|
6
|
+
import { a as s } from "./memberships-559590ad.mjs";
|
7
|
+
import { a as M, o as k } from "./organizations-93f7b610.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./globals-96ba60e4.mjs";
|
10
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
11
|
+
import "./Tab-054b61f7.mjs";
|
12
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
13
|
+
import "./Feed-53d96b18.mjs";
|
14
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import "./EmptyState-e404b05d.mjs";
|
16
|
+
import "./Chips-8c836ba6.mjs";
|
17
|
+
import "./Dropdown-d1c81d45.mjs";
|
18
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
19
|
+
import "./Popup-0d8e1392.mjs";
|
20
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
21
|
+
import "./Button-9e1a9284.mjs";
|
22
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
23
|
+
import "./Select-dab17282.mjs";
|
24
|
+
import "./Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-4ed993c7.mjs";
|
25
|
+
import "./reports-c579b02a.mjs";
|
26
|
+
import "./axios-33aeb810.mjs";
|
27
|
+
import "./click-outside-6101836c.mjs";
|
28
|
+
import "./IconEdit-9edfd74d.mjs";
|
29
|
+
import "./SkeletonEvent-8690422d.mjs";
|
30
|
+
import "./Feed-f7c04014.mjs";
|
31
|
+
import "./Loader-cd422786.mjs";
|
32
|
+
import "./CardBlogpost-1b81b54e.mjs";
|
33
|
+
import "./CardOrganization-49ab5190.mjs";
|
34
|
+
import "./ButtonToggleMembership-84d0e018.mjs";
|
35
|
+
import "./Socials-8193477c.mjs";
|
36
|
+
import "./Checkbox-5dbe7b23.mjs";
|
37
|
+
import "./categories-b7f9e8c0.mjs";
|
38
|
+
import "./Feed-d114330c.mjs";
|
39
|
+
import "./CardProduct-ea0e1f84.mjs";
|
40
|
+
import "./products-7f1e5a75.mjs";
|
41
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
42
|
+
import "./inputs.validation-db65277a.mjs";
|
43
|
+
import "./BlockTags-00325fa0.mjs";
|
44
|
+
import "./Field-e5ad88d3.mjs";
|
45
|
+
import "./SelectMulti-58704d69.mjs";
|
46
|
+
import "./UploadImage-0e8e4278.mjs";
|
47
|
+
import "./Organizations-9926aa51.mjs";
|
48
|
+
import "./Feed-35e13c22.mjs";
|
49
|
+
import "./Publics-8e726d20.mjs";
|
50
|
+
import "./auth.validation-f4bf1deb.mjs";
|
51
|
+
const C = /* @__PURE__ */ i("section", { class: "mn-medium radius-medium pd-semi bg-white" }, [
|
52
|
+
/* @__PURE__ */ i("h2", { class: "mn-regular" }, "Участники"),
|
53
|
+
/* @__PURE__ */ i("p", { class: "t-transp p-big" }, "Добавляйте новых участников организации и настраивайте права доступа.")
|
54
|
+
], -1), R = /* @__PURE__ */ i("span", null, "Departments", -1), Ct = {
|
55
|
+
__name: "Members",
|
56
|
+
setup(B) {
|
57
|
+
const e = w(), o = l(null);
|
58
|
+
_(async () => {
|
59
|
+
o.value = (await M.read({ _id: e.params._id, user: E.user._id }))[0], await s.read(e.params._id), await m.read(o.value._id);
|
60
|
+
});
|
61
|
+
async function p(t) {
|
62
|
+
await m.create(o.value._id, t);
|
63
|
+
}
|
64
|
+
async function c(t) {
|
65
|
+
await s.delete(t._id);
|
66
|
+
}
|
67
|
+
async function d(t) {
|
68
|
+
await m.delete(t._id);
|
69
|
+
}
|
70
|
+
return (t, a) => {
|
71
|
+
const u = v("IconEvents");
|
72
|
+
return f(), b(h, { name: "slide-fade" }, {
|
73
|
+
default: n(() => [
|
74
|
+
i("div", null, [
|
75
|
+
C,
|
76
|
+
r(y, {
|
77
|
+
onClick: a[0] || (a[0] = (D) => t.router.push({ name: "User Events", params: { _id: g(e).params._id } })),
|
78
|
+
class: "cursor-pointer"
|
79
|
+
}, {
|
80
|
+
default: n(() => [
|
81
|
+
r(u, {
|
82
|
+
class: "i-semi",
|
83
|
+
icon: !0
|
84
|
+
}),
|
85
|
+
R
|
86
|
+
]),
|
87
|
+
_: 1
|
88
|
+
}),
|
89
|
+
r($, {
|
90
|
+
organization: o.value,
|
91
|
+
onSendInvite: p
|
92
|
+
}, null, 8, ["organization"]),
|
93
|
+
r(I, {
|
94
|
+
organization: k,
|
95
|
+
memberships: t.memberships,
|
96
|
+
invites: z.invites,
|
97
|
+
onRemoveInvite: d,
|
98
|
+
onRemoveMember: c
|
99
|
+
}, null, 8, ["memberships", "invites"])
|
100
|
+
])
|
101
|
+
]),
|
102
|
+
_: 1
|
103
|
+
});
|
104
|
+
};
|
105
|
+
}
|
106
|
+
};
|
107
|
+
export {
|
108
|
+
Ct as default
|
109
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("vue-router"),i=require("./organizations.client-6ca27fb3.js"),l=require("./MenuItem-f35cad93.js"),_=require("./auth-04684a60.js"),u=require("./memberships-58af22e0.js"),s=require("./organizations-71777b32.js");require("vue-i18n");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Tab-2c1e4224.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Feed-694a2fad.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./Chips-817cf959.js");require("./Dropdown-60e3dc6c.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Popup-eb11fa82.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-95f4701a.js");require("./Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-0ea8fbf8.js");require("./reports-a67b4fb4.js");require("./axios-ceccf20e.js");require("./click-outside-0b0727d1.js");require("./IconEdit-c0469b45.js");require("./SkeletonEvent-eb284de8.js");require("./Feed-ac4bb6ea.js");require("./Loader-21f016da.js");require("./CardBlogpost-7107e04a.js");require("./CardOrganization-e6ac27f1.js");require("./ButtonToggleMembership-b905812f.js");require("./Socials-43293869.js");require("./Checkbox-76f09248.js");require("./categories-7e17a7eb.js");require("./Feed-98b47c6f.js");require("./CardProduct-4c0cb9a1.js");require("./products-61d83d74.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");require("./inputs.validation-d7cef32b.js");require("./BlockTags-58f95c8a.js");require("./Field-e2a43424.js");require("./SelectMulti-c25765cf.js");require("./UploadImage-8c71bda6.js");require("./Organizations-c653d814.js");require("./Feed-d1d01771.js");require("./Publics-ae589bf1.js");require("./auth.validation-d614130d.js");const p=e.createElementVNode("section",{class:"mn-medium radius-medium pd-semi bg-white"},[e.createElementVNode("h2",{class:"mn-regular"},"Участники"),e.createElementVNode("p",{class:"t-transp p-big"},"Добавляйте новых участников организации и настраивайте права доступа.")],-1),v=e.createElementVNode("span",null,"Departments",-1),f={__name:"Members",setup(g){const n=d.useRoute(),t=e.ref(null);e.onMounted(async()=>{t.value=(await s.actions.read({_id:n.params._id,user:_.state.user._id}))[0],await u.actions.read(n.params._id),await i.actions.read(t.value._id)});async function o(r){await i.actions.create(t.value._id,r)}async function c(r){await u.actions.delete(r._id)}async function q(r){await i.actions.delete(r._id)}return(r,a)=>{const m=e.resolveComponent("IconEvents");return e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[p,e.createVNode(l._sfc_main,{onClick:a[0]||(a[0]=h=>r.router.push({name:"User Events",params:{_id:e.unref(n).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m,{class:"i-semi",icon:!0}),v]),_:1}),e.createVNode(i._sfc_main,{organization:t.value,onSendInvite:o},null,8,["organization"]),e.createVNode(i._sfc_main$1,{organization:s.organization,memberships:r.memberships,invites:i.state.invites,onRemoveInvite:q,onRemoveMember:c},null,8,["memberships","invites"])])]),_:1})}}};exports.default=f;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue");require("./MenuItem-f35cad93.js");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},n={__name:"Menu",setup(s){return(t,i)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports._sfc_main=n;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
|
2
|
+
import "./MenuItem-4a5881bd.mjs";
|
3
|
+
const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, p = {
|
4
|
+
__name: "Menu",
|
5
|
+
setup(s) {
|
6
|
+
return (e, i) => (t(), o("section", r, [
|
7
|
+
n(e.$slots, "default")
|
8
|
+
]));
|
9
|
+
}
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
p as _
|
13
|
+
};
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { openBlock as o, createElementBlock as c, createElementVNode as a, defineComponent as m, h as t } from "vue";
|
2
|
+
import { _ as h } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
const p = {
|
4
|
+
props: {
|
5
|
+
theme: {
|
6
|
+
type: String,
|
7
|
+
default: "black"
|
8
|
+
}
|
9
|
+
}
|
10
|
+
}, f = {
|
11
|
+
width: "80",
|
12
|
+
height: "80",
|
13
|
+
viewBox: "0 0 80 80",
|
14
|
+
fill: "none",
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
16
|
+
}, u = ["fill"];
|
17
|
+
function _(r, l, i, n, s, e) {
|
18
|
+
return o(), c("svg", f, [
|
19
|
+
a("path", {
|
20
|
+
fill: i.theme,
|
21
|
+
d: "M16.25 9.375L20 5.9375C21.5625 4.53125 23.9062 4.6875 25.3125 6.25L54.2188 37.8125C55.3125 39.0625 55.3125 40.9375 54.2188 42.1875L25.3125 73.75C23.9062 75.3125 21.5625 75.4688 20 74.0625L16.25 70.625C14.6875 69.375 14.5312 66.875 15.9375 65.4688L39.375 40L15.9375 14.5312C14.5312 13.125 14.6875 10.625 16.25 9.375Z"
|
22
|
+
}, null, 8, u)
|
23
|
+
]);
|
24
|
+
}
|
25
|
+
const d = /* @__PURE__ */ h(p, [["render", _]]), b = m({
|
26
|
+
props: {
|
27
|
+
theme: {
|
28
|
+
type: String,
|
29
|
+
default: "black"
|
30
|
+
// Значение по умолчанию
|
31
|
+
}
|
32
|
+
},
|
33
|
+
setup(r, { slots: l }) {
|
34
|
+
return () => {
|
35
|
+
const i = l.default ? l.default() : [], n = [], s = [];
|
36
|
+
return i.forEach((e) => {
|
37
|
+
e.toString(), e.props && e.props.icon ? n.push(e) : s.push(e);
|
38
|
+
}), t(
|
39
|
+
"div",
|
40
|
+
{
|
41
|
+
class: [
|
42
|
+
"w-100",
|
43
|
+
"t-left",
|
44
|
+
"flex-nowrap",
|
45
|
+
"flex-v-center",
|
46
|
+
"flex",
|
47
|
+
// here we need add logic
|
48
|
+
{ "br-b br-black-transp-10 br-solid": !0 }
|
49
|
+
]
|
50
|
+
},
|
51
|
+
[
|
52
|
+
// Conditionally include the div for iconSlot
|
53
|
+
...n.length ? [
|
54
|
+
t(
|
55
|
+
"div",
|
56
|
+
{
|
57
|
+
class: ["mn-thin", "mn-t-thin", "flex-center", "flex", "mn-r-small", "flex-child", "flex-child-shrink-0", "i-big", "bg-main", "radius-thin"]
|
58
|
+
},
|
59
|
+
n
|
60
|
+
)
|
61
|
+
] : [],
|
62
|
+
t(
|
63
|
+
"div",
|
64
|
+
{
|
65
|
+
class: ["w-100", "mn-thin", "mn-t-thin", "mn-r-small", "i-big", "flex-v-center", "flex"]
|
66
|
+
},
|
67
|
+
[
|
68
|
+
t(
|
69
|
+
"span",
|
70
|
+
{
|
71
|
+
class: ["p-big", "t-medium", "mn-r-auto"]
|
72
|
+
},
|
73
|
+
s
|
74
|
+
)
|
75
|
+
]
|
76
|
+
),
|
77
|
+
t(d, { class: "i-medium mn-r-medium", type: "chevron", theme: r.theme })
|
78
|
+
]
|
79
|
+
);
|
80
|
+
};
|
81
|
+
}
|
82
|
+
});
|
83
|
+
export {
|
84
|
+
b as _
|
85
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),c=require("./_plugin-vue_export-helper-f246444f.js");const o={props:{theme:{type:String,default:"black"}}},h={width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a=["fill"];function m(r,l,i,n,s,t){return e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("path",{fill:i.theme,d:"M16.25 9.375L20 5.9375C21.5625 4.53125 23.9062 4.6875 25.3125 6.25L54.2188 37.8125C55.3125 39.0625 55.3125 40.9375 54.2188 42.1875L25.3125 73.75C23.9062 75.3125 21.5625 75.4688 20 74.0625L16.25 70.625C14.6875 69.375 14.5312 66.875 15.9375 65.4688L39.375 40L15.9375 14.5312C14.5312 13.125 14.6875 10.625 16.25 9.375Z"},null,8,a)])}const p=c._export_sfc(o,[["render",m]]),u=e.defineComponent({props:{theme:{type:String,default:"black"}},setup(r,{slots:l}){return()=>{const i=l.default?l.default():[],n=[],s=[];return i.forEach(t=>{t.toString(),t.props&&t.props.icon?n.push(t):s.push(t)}),e.h("div",{class:["w-100","t-left","flex-nowrap","flex-v-center","flex",{"br-b br-black-transp-10 br-solid":!0}]},[...n.length?[e.h("div",{class:["mn-thin","mn-t-thin","flex-center","flex","mn-r-small","flex-child","flex-child-shrink-0","i-big","bg-main","radius-thin"]},n)]:[],e.h("div",{class:["w-100","mn-thin","mn-t-thin","mn-r-small","i-big","flex-v-center","flex"]},[e.h("span",{class:["p-big","t-medium","mn-r-auto"]},s)]),e.h(p,{class:"i-medium mn-r-medium",type:"chevron",theme:r.theme})])}}});exports._sfc_main=u;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("vue-router"),c=require("./Tab-2c1e4224.js"),l=require("./orders-1325c51b.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./axios-ceccf20e.js");require("./globals-928eb13c.js");require("vue-i18n");const d={class:"mn-medium flex-v-center flex-nowrap flex"},u=e.createElementVNode("h2",{class:"mn-r-medium"},"Orders",-1),m={class:"cols-3 gap-thin"},p={class:"flex block"},_={class:"w-100 mn-thin p-big"},h={class:"mn-small t-transp w-100"},b=e.createElementVNode("br",null,null,-1),g={__name:"Orders",setup(N){const s=a.useRoute();a.useRouter();const r=e.ref(s.query.tab?s.query.tab:"posts");return e.onMounted(async()=>{await l.actions.read()}),(o,n)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",d,[u,e.createElementVNode("button",{onClick:n[0]||(n[0]=t=>o.$router.push({name:"AdminOrder"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(c._sfc_main,{selected:r.value,"onUpdate:selected":n[1]||(n[1]=t=>r.value=t),tabs:[{name:"All",value:"all"},{name:"New",value:"new"},{name:"Confirmed",value:"confirmed"},{name:"Finished",value:"finished"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("section",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.all,t=>(e.openBlock(),e.createElementBlock("div",p,[e.createTextVNode(e.toDisplayString(t.status)+" ",1),e.createElementVNode("p",_," Заказ #"+e.toDisplayString(t._id.slice(0,8)),1),e.createElementVNode("p",h,[e.createTextVNode(" Номер клиента: +7"+e.toDisplayString(t.phone),1),b]),e.createElementVNode("p",{class:e.normalizeClass([{new:t.status==="Создан"},"mn-small"])},[e.createTextVNode(e.toDisplayString(o.formatDate(t.createdAt))+" ",1),e.createVNode(i,{to:{name:"AdminOrderEdit",params:{_id:t._id}},class:"i-small"},{default:e.withCtx(()=>[e.createTextVNode(" EDIT ")]),_:2},1032,["to"])],2)]))),256))])],64)}}};exports.default=g;
|