@feedmepos/mf-inventory-portal 1.2.30-dev.1 → 1.2.30
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/dist/{App-kX4bqoEe.js → App-CZJre5y8.js} +57 -55
- package/dist/{ApprovalView-DCNKqVE2.js → ApprovalView-CnxHxojY.js} +34 -28
- package/dist/{BindingsDialog-d7f1f8gf.js → BindingsDialog-C6lCOPNs.js} +2 -2
- package/dist/{BindingsPicker-2HJOx0QW.js → BindingsPicker-DZtFKLQ5.js} +6 -5
- package/dist/{BindingsTable-CPAjxOZG.js → BindingsTable-BmQGLuJ4.js} +28 -24
- package/dist/{ClosingDraftView-CUng41eo.js → ClosingDraftView-KLtlh31f.js} +183 -175
- package/dist/{ClosingHistoryView-CcGc2NwU.js → ClosingHistoryView-Rf1yMhMj.js} +43 -41
- package/dist/ClosingTemplateView-C_IiKnGx.js +2019 -0
- package/dist/{DeliveryOrderPrintPreview-BsM-CCc5.js → DeliveryOrderPrintPreview-UF7V005U.js} +15 -14
- package/dist/FmDroppableField-J0xUsOTV.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-cuggJ5Xd.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcMvEdc0.js} +74 -72
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js +279 -0
- package/dist/{FmMultiselectDialog-BGbrqXUF.js → FmMultiselectDialog-B0aKuf2o.js} +1 -1
- package/dist/FmMultiselectDialog-BasrjBFA.js +597 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-isogcN1O.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js} +51 -49
- package/dist/{ImportView-wAVrMEwL.js → ImportView-DRSoz0uM.js} +81 -74
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVUF4I2Q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DA8SlWPy.js} +5 -5
- package/dist/{IngredientGroupView-BZczeXdL.js → IngredientGroupView-D5Laak2-.js} +73 -65
- package/dist/{IngredientsView-D5N5Y1ZY.js → IngredientsView-TG3fPQhR.js} +358 -345
- package/dist/{IntegrationView-Hrslmuc1.js → IntegrationView-CElpjyo7.js} +219 -209
- package/dist/{InventoryBindingForm-DH6wgxOG.js → InventoryBindingForm-CBgxRYBd.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Drr5vD6f.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js} +41 -40
- package/dist/{InventoryBindingSummary-BU1ehpQZ.js → InventoryBindingSummary-OK3vNWhi.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1ueC4GfZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-9QRntUlk.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-FHcU1zZt.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bc01NoOn.js} +22 -21
- package/dist/{PublishView-CQtj0f31.js → PublishView-CLMfiLjP.js} +26 -23
- package/dist/{PurchaseOrderPrintPreview-BQyXtHST.js → PurchaseOrderPrintPreview-Dy77yWDC.js} +10 -9
- package/dist/{ReceiveRequestView-Dm-h_SrY.js → ReceiveRequestView-BhD-NaHE.js} +478 -462
- package/dist/{RecipeView-DNNRvr1w.js → RecipeView-RWaO94w_.js} +73 -64
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js +251 -0
- package/dist/{StockView-CaOm5BCx.js → StockView-D5t8OxaG.js} +292 -282
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Z91XRszD.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3Asf1TGd.js} +1 -1
- package/dist/{SupplierView-JSII9qwL.js → SupplierView-DiospFKq.js} +92 -80
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfCHteOF.js +177 -0
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CNtvx-LA.js +123 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Mehd4lGs.js → TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js} +318 -305
- package/dist/{TransferTemplateView-DyCpNKJd.js → TransferTemplateView-ePZFdZ0p.js} +228 -216
- package/dist/{UnitView-CqN7mlJ2.js → UnitView-Banlxw7y.js} +70 -63
- package/dist/{WarehouseView-gFWD-m8e.js → WarehouseView-BL-p5hbi.js} +123 -114
- package/dist/WastageTemplateView-B1pmSuW0.js +2288 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-EpEEb8EO.js +64040 -0
- package/dist/app-rgirz_52.js +8024 -0
- package/dist/app.d.ts +0 -21
- package/dist/app.js +6 -6
- package/dist/closing-template-zIjwO1_E.js +117 -0
- package/dist/date2-Dnc8Y81g.js +116 -0
- package/dist/dayjs.min-TdUgzmww.js +282 -0
- package/dist/{decimal-DfF_g5rc.js → decimal-C6s3GvGb.js} +4 -3
- package/dist/defineDeepModel-BSaaXVBF.js +19 -0
- package/dist/duplicate-template-Bw0H416G.js +34 -0
- package/dist/feature-C95Hao53.js +20162 -0
- package/dist/form-mode.enum-BKiNVH6A.js +4 -0
- package/dist/format-time-from-id-DlbHo6kY.js +15 -0
- package/dist/{format-unit-display-ivAljvlo.js → format-unit-display-QBS54q0R.js} +308 -297
- package/dist/{import-export.helper-B2MWv9v7.js → import-export.helper-CUKCKtP7.js} +56 -52
- package/dist/index-CFn_9RMm.js +45 -0
- package/dist/{index-DZaT0ZaL.js → index-S9Ak__QC.js} +1 -1
- package/dist/{index-BbhuWHyh.js → index-goD-WGVb.js} +16 -14
- package/dist/lodash-gq8IrP4j.js +3678 -0
- package/dist/netsuite-CnhAKyAO.js +4316 -0
- package/dist/{purchase-order-template-DdybMC_P.js → purchase-order-template-CBIpWdEW.js} +1 -1
- package/dist/router/shared.spec.d.ts +1 -0
- package/dist/row-action.enum-BcW_L_nE.js +67 -0
- package/dist/rules-DKklsaS1.js +201 -0
- package/dist/{stock-BYagIdsj.js → stock-3K93Mif9.js} +1 -1
- package/dist/{stock-V4ciPiBe.js → stock-BW8fen3H.js} +11 -10
- package/dist/style.css +1 -1
- package/dist/{supplier-CgtB1I9I.js → supplier-CObCSfot.js} +27 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BIQovyZX.js → use-ingredient-select-dialog-DwvQiaVW.js} +4 -3
- package/dist/{use-inventory-binding-dialog-DyjicXgc.js → use-inventory-binding-dialog-CuLEHLDM.js} +4 -3
- package/dist/use-template-enabled-locations-2-DkUJeppb.js +111 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1 -1
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +0 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -13
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +0 -12
- package/dist/vue-i18n-CUznvVzc.js +2365 -0
- package/dist/xlsx-bT1p3YVR.js +24004 -0
- package/dist/xlsx.util-Cr9DpDFb.js +78 -0
- package/package.json +5 -5
- package/dist/ClosingTemplateView-D8IAdhDb.js +0 -2041
- package/dist/app-CnQ49Lyb.js +0 -131483
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { ref as B, onUnmounted as D, defineComponent as w, watch as L, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as g, createElementVNode as
|
|
2
|
-
import { u as K, a as $,
|
|
3
|
-
import { useCoreStore as U, useI18n as
|
|
4
|
-
import { useRouter as O, useRoute as
|
|
1
|
+
import { ref as B, onUnmounted as D, defineComponent as w, watch as L, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as g, createElementVNode as f, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
|
|
2
|
+
import { u as K, a as $, R as e, m as _, g as a, b as V } from "./app-EpEEb8EO.js";
|
|
3
|
+
import { useCoreStore as U, useI18n as k } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as O, useRoute as j } from "vue-router";
|
|
5
|
+
import { u as H } from "./feature-C95Hao53.js";
|
|
6
|
+
import { u as z } from "./netsuite-CnhAKyAO.js";
|
|
5
7
|
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
6
8
|
import { u as Y } from "./googlemap-Dm8ERVai.js";
|
|
7
9
|
function q() {
|
|
@@ -15,13 +17,13 @@ function J() {
|
|
|
15
17
|
const c = O();
|
|
16
18
|
if (!I.value.loadingHookInstalled) {
|
|
17
19
|
I.value.loadingHookInstalled = !0;
|
|
18
|
-
const
|
|
20
|
+
const r = c.beforeEach(() => {
|
|
19
21
|
I.value.isLoading = !0;
|
|
20
22
|
}), d = c.afterEach(() => {
|
|
21
23
|
I.value.isLoading = !1;
|
|
22
24
|
});
|
|
23
25
|
D(() => {
|
|
24
|
-
I.value.loadingHookInstalled = !1,
|
|
26
|
+
I.value.loadingHookInstalled = !1, r(), d();
|
|
25
27
|
});
|
|
26
28
|
}
|
|
27
29
|
return {
|
|
@@ -36,10 +38,10 @@ const X = {
|
|
|
36
38
|
}, Z = {
|
|
37
39
|
key: 1,
|
|
38
40
|
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
39
|
-
}, ee = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, te = { class: "fm-typo-en-title-lg-600" }, oe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "flex gap-16" },
|
|
41
|
+
}, ee = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, te = { class: "fm-typo-en-title-lg-600" }, oe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "flex gap-16" }, re = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ae = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ w({
|
|
40
42
|
__name: "InventoryView",
|
|
41
43
|
setup(c) {
|
|
42
|
-
const
|
|
44
|
+
const r = K(), d = $(), p = z(), l = U(), s = O(), m = J(), t = H(), { t: E } = k();
|
|
43
45
|
L(
|
|
44
46
|
[() => l.sessionUser.value, () => l.currentBusiness.value],
|
|
45
47
|
([u, i]) => {
|
|
@@ -54,7 +56,7 @@ const X = {
|
|
|
54
56
|
!u || !i || N();
|
|
55
57
|
}
|
|
56
58
|
async function N() {
|
|
57
|
-
return await
|
|
59
|
+
return await r.init(), await p.readSetting().catch((u) => {
|
|
58
60
|
console.error("[all] error on reading netsuite store", u);
|
|
59
61
|
}), await d.init();
|
|
60
62
|
}
|
|
@@ -64,24 +66,24 @@ const X = {
|
|
|
64
66
|
return R(), A("div", null, [
|
|
65
67
|
T(m).isLoading ? (R(), A("div", X, [
|
|
66
68
|
g(S),
|
|
67
|
-
|
|
69
|
+
f("div", null, [
|
|
68
70
|
g(G, { size: "xl" })
|
|
69
71
|
]),
|
|
70
|
-
i[0] || (i[0] =
|
|
72
|
+
i[0] || (i[0] = f("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
71
73
|
g(S)
|
|
72
74
|
])) : C.value ? T(l).sessionUser.value ? (R(), F(n, { key: 2 })) : W("", !0) : (R(), A("div", Z, [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
f("div", ee, [
|
|
76
|
+
f("div", te, x(T(E)("inventory.common.proPlan.title")), 1),
|
|
77
|
+
f("div", oe, x(T(E)("inventory.common.proPlan.subtitle")), 1)
|
|
76
78
|
]),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
f("div", ne, [
|
|
80
|
+
f("a", re, [
|
|
79
81
|
g(o, {
|
|
80
82
|
label: T(E)("inventory.common.proPlan.comparePlans"),
|
|
81
83
|
variant: "secondary"
|
|
82
84
|
}, null, 8, ["label"])
|
|
83
85
|
]),
|
|
84
|
-
|
|
86
|
+
f("a", ae, [
|
|
85
87
|
g(o, {
|
|
86
88
|
label: T(E)("inventory.common.proPlan.callUs"),
|
|
87
89
|
"prepend-icon": "call"
|
|
@@ -95,22 +97,22 @@ const X = {
|
|
|
95
97
|
}), se = { class: "h-full flex flex-col overflow-auto py-16" }, ie = /* @__PURE__ */ w({
|
|
96
98
|
__name: "NavigationTab",
|
|
97
99
|
setup(c) {
|
|
98
|
-
const
|
|
100
|
+
const r = _.object({
|
|
99
101
|
label: _.string(),
|
|
100
102
|
value: _.string().optional(),
|
|
101
103
|
icon: _.string().optional(),
|
|
102
104
|
hide: _.boolean().optional(),
|
|
103
|
-
children: _.array(_.lazy(() =>
|
|
104
|
-
}), d =
|
|
105
|
+
children: _.array(_.lazy(() => r)).optional()
|
|
106
|
+
}), d = j(), p = O(), l = U(), s = H(), m = Q(), { t } = k(), { isDev: E } = V();
|
|
105
107
|
L([() => l.currentBusiness.value, () => d.name], ([o, n]) => {
|
|
106
108
|
(o == null ? void 0 : o.menuVersion) === "v3" && (n === e.INGREDIENTS || n === e.RECIPE || n === e.UNIT) && p.push({ name: e.STOCK });
|
|
107
109
|
});
|
|
108
110
|
const h = (o) => o.filter((n) => !n.hide).map((n) => n.children ? { ...n, children: h(n.children) } : n), N = (o) => o.map((n) => {
|
|
109
111
|
delete n.hide;
|
|
110
|
-
const
|
|
111
|
-
return n.children && (
|
|
112
|
+
const v = n;
|
|
113
|
+
return n.children && (v.children = N(n.children)), v;
|
|
112
114
|
}), C = P(() => {
|
|
113
|
-
var
|
|
115
|
+
var v;
|
|
114
116
|
const o = [
|
|
115
117
|
{
|
|
116
118
|
label: "Non-Production Environment",
|
|
@@ -119,7 +121,7 @@ const X = {
|
|
|
119
121
|
hide: !E
|
|
120
122
|
},
|
|
121
123
|
{
|
|
122
|
-
label:
|
|
124
|
+
label: a(e.STOCK, t),
|
|
123
125
|
// icon: 'inventory_2',
|
|
124
126
|
children: [
|
|
125
127
|
{
|
|
@@ -127,49 +129,49 @@ const X = {
|
|
|
127
129
|
value: e.STOCK
|
|
128
130
|
},
|
|
129
131
|
{
|
|
130
|
-
label:
|
|
132
|
+
label: a(e.WASTAGE_TEMPLATE, t),
|
|
131
133
|
value: e.WASTAGE_TEMPLATE,
|
|
132
134
|
hide: !s.enableWastageTemplate
|
|
133
135
|
}
|
|
134
136
|
]
|
|
135
137
|
},
|
|
136
138
|
{
|
|
137
|
-
label:
|
|
139
|
+
label: "Closing",
|
|
138
140
|
children: [
|
|
139
141
|
{
|
|
140
|
-
label:
|
|
142
|
+
label: a(e.CLOSING_HISTORY, t),
|
|
141
143
|
value: e.CLOSING_HISTORY
|
|
142
144
|
},
|
|
143
145
|
{
|
|
144
|
-
label:
|
|
146
|
+
label: a(e.CLOSING_TEMPLATE, t),
|
|
145
147
|
value: e.CLOSING_TEMPLATE,
|
|
146
148
|
hide: !s.enableClosingTemplate
|
|
147
149
|
},
|
|
148
150
|
{
|
|
149
|
-
label:
|
|
151
|
+
label: a(e.CLOSING_DRAFT, t),
|
|
150
152
|
value: e.CLOSING_DRAFT,
|
|
151
153
|
hide: !s.enableClosingTemplate
|
|
152
154
|
}
|
|
153
155
|
]
|
|
154
156
|
},
|
|
155
157
|
{
|
|
156
|
-
label:
|
|
158
|
+
label: a(e.INGREDIENTS, t),
|
|
157
159
|
// icon: 'grocery',
|
|
158
160
|
value: e.INGREDIENTS
|
|
159
161
|
},
|
|
160
162
|
{
|
|
161
|
-
label:
|
|
163
|
+
label: a(e.INGREDIENT_GROUP, t),
|
|
162
164
|
// icon: 'grocery',
|
|
163
165
|
value: e.INGREDIENT_GROUP,
|
|
164
166
|
hide: !s.enableIngredientGroup
|
|
165
167
|
},
|
|
166
168
|
{
|
|
167
|
-
label:
|
|
169
|
+
label: a(e.RECIPE, t),
|
|
168
170
|
// icon: 'weight',
|
|
169
171
|
value: e.RECIPE
|
|
170
172
|
},
|
|
171
173
|
{
|
|
172
|
-
label:
|
|
174
|
+
label: a(e.UNIT, t),
|
|
173
175
|
// icon: 'fastfood',
|
|
174
176
|
value: e.UNIT
|
|
175
177
|
},
|
|
@@ -178,46 +180,46 @@ const X = {
|
|
|
178
180
|
// icon: 'swap_horiz',
|
|
179
181
|
children: [
|
|
180
182
|
{
|
|
181
|
-
label:
|
|
183
|
+
label: a(e.RECEIVE_REQUEST, t),
|
|
182
184
|
value: e.RECEIVE_REQUEST
|
|
183
185
|
},
|
|
184
186
|
{
|
|
185
|
-
label:
|
|
187
|
+
label: a(e.APPROVAL, t),
|
|
186
188
|
value: e.APPROVAL
|
|
187
189
|
},
|
|
188
190
|
{
|
|
189
|
-
label:
|
|
191
|
+
label: a(e.TRANSFER_TEMPLATE, t),
|
|
190
192
|
value: e.TRANSFER_TEMPLATE,
|
|
191
193
|
hide: !s.enablePoTemplate
|
|
192
194
|
}
|
|
193
195
|
]
|
|
194
196
|
},
|
|
195
197
|
{
|
|
196
|
-
label:
|
|
198
|
+
label: a(e.SUPPLIER, t),
|
|
197
199
|
// icon: 'group',
|
|
198
200
|
value: e.SUPPLIER
|
|
199
201
|
},
|
|
200
202
|
{
|
|
201
|
-
label:
|
|
203
|
+
label: a(e.WAREHOUSE, t),
|
|
202
204
|
// icon: 'warehouse',
|
|
203
205
|
value: e.WAREHOUSE
|
|
204
206
|
},
|
|
205
207
|
{
|
|
206
|
-
label:
|
|
208
|
+
label: a(e.PUBLISH, t),
|
|
207
209
|
value: e.PUBLISH
|
|
208
210
|
},
|
|
209
211
|
{
|
|
210
|
-
label:
|
|
212
|
+
label: a(e.IMPORT, t),
|
|
211
213
|
value: e.IMPORT,
|
|
212
214
|
hide: !s.enableBulkImport
|
|
213
215
|
},
|
|
214
216
|
{
|
|
215
|
-
label:
|
|
217
|
+
label: a(e.INTEGRATION, t),
|
|
216
218
|
// icon: 'integration_instructions',
|
|
217
219
|
value: e.INTEGRATION
|
|
218
220
|
}
|
|
219
221
|
], n = N(h(o));
|
|
220
|
-
return ((
|
|
222
|
+
return ((v = l.currentBusiness.value) == null ? void 0 : v.menuVersion) === "v3" ? n.filter(
|
|
221
223
|
(b) => b.value !== e.INGREDIENTS && b.value !== e.RECIPE && b.value !== e.UNIT && b.value !== e.PUBLISH
|
|
222
224
|
) : n;
|
|
223
225
|
}), u = P({
|
|
@@ -246,9 +248,9 @@ const X = {
|
|
|
246
248
|
G.value = !m.getItem(i.value);
|
|
247
249
|
}, 2e3);
|
|
248
250
|
}), (o, n) => {
|
|
249
|
-
const
|
|
251
|
+
const v = y("FmCollapsibleTabs");
|
|
250
252
|
return R(), A("div", se, [
|
|
251
|
-
g(
|
|
253
|
+
g(v, {
|
|
252
254
|
modelValue: u.value,
|
|
253
255
|
"onUpdate:modelValue": n[0] || (n[0] = (b) => u.value = b),
|
|
254
256
|
items: C.value
|
|
@@ -258,33 +260,33 @@ const X = {
|
|
|
258
260
|
}
|
|
259
261
|
});
|
|
260
262
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
261
|
-
let c,
|
|
263
|
+
let c, r;
|
|
262
264
|
return { promise: new Promise((p, l) => {
|
|
263
|
-
c = p,
|
|
264
|
-
}), resolve: c, reject:
|
|
265
|
+
c = p, r = l;
|
|
266
|
+
}), resolve: c, reject: r };
|
|
265
267
|
});
|
|
266
268
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(c) {
|
|
267
|
-
return await new Promise((
|
|
269
|
+
return await new Promise((r) => setTimeout(r, c)), Promise.resolve(this);
|
|
268
270
|
});
|
|
269
|
-
const
|
|
271
|
+
const Ee = /* @__PURE__ */ w({
|
|
270
272
|
__name: "App",
|
|
271
273
|
setup(c) {
|
|
272
|
-
const
|
|
274
|
+
const r = U(), d = Y(), p = V();
|
|
273
275
|
M(() => {
|
|
274
276
|
if (window.location.href.includes("print-preview")) {
|
|
275
|
-
|
|
277
|
+
r.setEmbedded(!0), document.body.classList.add("print-mode");
|
|
276
278
|
return;
|
|
277
279
|
}
|
|
278
|
-
|
|
280
|
+
r.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
|
|
279
281
|
console.error("Google map cannot be loaded");
|
|
280
282
|
});
|
|
281
|
-
}), L([() =>
|
|
283
|
+
}), L([() => r.currentCountry.value], () => {
|
|
282
284
|
l();
|
|
283
285
|
});
|
|
284
286
|
async function l() {
|
|
285
287
|
var s;
|
|
286
288
|
try {
|
|
287
|
-
await
|
|
289
|
+
await r.readBusinesses(), r.currentBusiness.value = (s = r.businesses.value) == null ? void 0 : s.find((m) => m);
|
|
288
290
|
} catch (m) {
|
|
289
291
|
console.error("error when trying to reset businesses:", m);
|
|
290
292
|
}
|
|
@@ -293,5 +295,5 @@ const fe = /* @__PURE__ */ w({
|
|
|
293
295
|
}
|
|
294
296
|
});
|
|
295
297
|
export {
|
|
296
|
-
|
|
298
|
+
Ee as default
|
|
297
299
|
};
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as
|
|
2
|
-
import { u as De,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as k, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
|
|
2
|
+
import { u as De, m as b } from "./app-EpEEb8EO.js";
|
|
3
|
+
import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js";
|
|
4
|
+
import { u as be, P as q, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js";
|
|
5
|
+
import { d as Z } from "./date2-Dnc8Y81g.js";
|
|
6
|
+
import { u as Se, _ as xe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js";
|
|
7
|
+
import { _ as ke, F as O } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
8
|
+
import { useBreakpoints as qe } from "@feedmepos/ui-library";
|
|
9
|
+
import { useI18n as we } from "@feedmepos/mf-common";
|
|
10
|
+
import { N as Pe, H as Ne } from "./app-rgirz_52.js";
|
|
11
|
+
import { u as Te } from "./netsuite-CnhAKyAO.js";
|
|
12
|
+
const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Fe = {
|
|
7
13
|
key: 0,
|
|
8
14
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
|
-
},
|
|
15
|
+
}, Le = { class: "pt-8" }, Xe = /* @__PURE__ */ ue({
|
|
10
16
|
__name: "ApprovalView",
|
|
11
|
-
setup(
|
|
12
|
-
const a =
|
|
17
|
+
setup(ze) {
|
|
18
|
+
const a = be(q.APPROVAL), { columnDefs: I } = Oe(q.APPROVAL, a, a.shipments), B = De(), ee = Te();
|
|
13
19
|
b.object({
|
|
14
20
|
name: b.string().optional().nullable(),
|
|
15
21
|
start: b.date().optional().nullable(),
|
|
@@ -17,10 +23,10 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
17
23
|
});
|
|
18
24
|
const w = y({
|
|
19
25
|
name: "",
|
|
20
|
-
...
|
|
26
|
+
...ge()
|
|
21
27
|
}), l = y({
|
|
22
|
-
startDate:
|
|
23
|
-
endDate:
|
|
28
|
+
startDate: Z(w.value.start ?? /* @__PURE__ */ new Date()),
|
|
29
|
+
endDate: Z(w.value.end ?? /* @__PURE__ */ new Date())
|
|
24
30
|
});
|
|
25
31
|
ie([() => l.value.startDate], () => {
|
|
26
32
|
if (!l.value.startDate)
|
|
@@ -36,7 +42,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
36
42
|
}
|
|
37
43
|
a.updateDateRange(l.value.startDate, l.value.endDate);
|
|
38
44
|
});
|
|
39
|
-
const R = y(""), { breakpoints: P } =
|
|
45
|
+
const R = y(""), { breakpoints: P } = qe(), S = d(() => P.value.xs || P.value.sm), te = d(() => S.value ? 10 : 20), ae = Se(), { t: N } = we(), re = d(() => [
|
|
40
46
|
{
|
|
41
47
|
label: N("inventory.common.refresh"),
|
|
42
48
|
value: "refresh"
|
|
@@ -96,10 +102,10 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
96
102
|
}), m = y(null), oe = d(() => {
|
|
97
103
|
if (!m.value)
|
|
98
104
|
return a.purchaseRequests.value;
|
|
99
|
-
const u =
|
|
105
|
+
const u = Pe.build(m.value);
|
|
100
106
|
return a.purchaseRequests.value.filter((s) => {
|
|
101
107
|
var e, r, t, o, p;
|
|
102
|
-
return
|
|
108
|
+
return Ne(
|
|
103
109
|
{
|
|
104
110
|
netsuiteTransactionNumber: (r = (e = s.netSuite) == null ? void 0 : e.additionalInfo) == null ? void 0 : r.transactionnumber,
|
|
105
111
|
netsuiteOrderNo: (t = s.netSuite) == null ? void 0 : t.refNo,
|
|
@@ -112,7 +118,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
112
118
|
});
|
|
113
119
|
return (u, s) => {
|
|
114
120
|
const e = ce("FmTable");
|
|
115
|
-
return x(),
|
|
121
|
+
return x(), X(xe, {
|
|
116
122
|
title: n(N)("inventory.transfer.approval.title"),
|
|
117
123
|
actions: re.value,
|
|
118
124
|
"onClick:action": se
|
|
@@ -129,7 +135,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
129
135
|
}
|
|
130
136
|
])
|
|
131
137
|
}, [
|
|
132
|
-
i(
|
|
138
|
+
i(ye, {
|
|
133
139
|
"date-range-query": "",
|
|
134
140
|
"date-range": l.value,
|
|
135
141
|
"onUpdate:dateRange": s[0] || (s[0] = (t) => l.value = t),
|
|
@@ -160,7 +166,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
160
166
|
onRowClick: (o) => n(a).promptShowTransferDetails(o.purchaseOrder, o)
|
|
161
167
|
}, {
|
|
162
168
|
default: k((o) => {
|
|
163
|
-
var p, T, A, f, C, M,
|
|
169
|
+
var p, T, A, f, C, M, V, F, v, L, z, h, $, _, E, H, Y, U, j, D, G, J, K, Q, g, W;
|
|
164
170
|
return [
|
|
165
171
|
c("div", Ae, [
|
|
166
172
|
c("div", Ce, [
|
|
@@ -171,21 +177,21 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
171
177
|
]),
|
|
172
178
|
c("div", Me, [
|
|
173
179
|
i(n(O), {
|
|
174
|
-
render: (
|
|
175
|
-
props: (
|
|
180
|
+
render: (F = (V = (M = o.to_name) == null ? void 0 : M.column) == null ? void 0 : V.columnDef) == null ? void 0 : F.cell,
|
|
181
|
+
props: (L = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : L.call(v)
|
|
176
182
|
}, null, 8, ["render", "props"])
|
|
177
183
|
]),
|
|
178
|
-
c("div",
|
|
179
|
-
(H = t.original.purchaseOrder) != null && H.ref ? (x(), fe("div",
|
|
184
|
+
c("div", Ve, me((E = (_ = ($ = (h = (z = t.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : $.call(h, (le) => `${le.name}`)) == null ? void 0 : _.join) == null ? void 0 : E.call(_, ", ")), 1),
|
|
185
|
+
(H = t.original.purchaseOrder) != null && H.ref ? (x(), fe("div", Fe, [
|
|
180
186
|
i(n(O), {
|
|
181
187
|
render: (j = (U = (Y = o.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : U.columnDef) == null ? void 0 : j.cell,
|
|
182
188
|
props: (G = (D = o.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
|
|
183
189
|
}, null, 8, ["render", "props"])
|
|
184
190
|
])) : ve("", !0),
|
|
185
|
-
c("div",
|
|
191
|
+
c("div", Le, [
|
|
186
192
|
i(n(O), {
|
|
187
|
-
render: (
|
|
188
|
-
props: (
|
|
193
|
+
render: (Q = (K = (J = o.purchaseOrder_status) == null ? void 0 : J.column) == null ? void 0 : K.columnDef) == null ? void 0 : Q.cell,
|
|
194
|
+
props: (W = (g = o.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : W.call(g)
|
|
189
195
|
}, null, 8, ["render", "props"])
|
|
190
196
|
])
|
|
191
197
|
])
|
|
@@ -197,8 +203,8 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
197
203
|
_: 1
|
|
198
204
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
199
205
|
], 2),
|
|
200
|
-
(x(),
|
|
201
|
-
i(
|
|
206
|
+
(x(), X(he, { to: "body" }, [
|
|
207
|
+
i(Re, _e({
|
|
202
208
|
scope: n(q).APPROVAL
|
|
203
209
|
}, {
|
|
204
210
|
...n(a).transferDetailsProps.value,
|
|
@@ -216,5 +222,5 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
216
222
|
}
|
|
217
223
|
});
|
|
218
224
|
export {
|
|
219
|
-
|
|
225
|
+
Xe as default
|
|
220
226
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L,
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js";
|
|
3
|
+
import { a as L, a9 as S } from "./app-EpEEb8EO.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as M } from "./FmMultiselectDialog-BasrjBFA.js";
|
|
3
|
+
import { a as x, a9 as z } from "./app-EpEEb8EO.js";
|
|
3
4
|
const F = {
|
|
4
5
|
key: 0,
|
|
5
6
|
class: "flex flex-col gap-16"
|
|
6
7
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
7
8
|
key: 1,
|
|
8
9
|
class: "p-24 flex items-center justify-center gap-16"
|
|
9
|
-
},
|
|
10
|
+
}, A = /* @__PURE__ */ S({
|
|
10
11
|
__name: "BindingsPicker",
|
|
11
12
|
setup(L) {
|
|
12
13
|
const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
|
|
@@ -62,7 +63,7 @@ const F = {
|
|
|
62
63
|
];
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
|
-
}), _ = l(), o =
|
|
66
|
+
}), _ = l(), o = z(B);
|
|
66
67
|
async function B() {
|
|
67
68
|
await d.readInventory(), _.value = o.onMessage(
|
|
68
69
|
"props:binding-items",
|
|
@@ -97,7 +98,7 @@ const F = {
|
|
|
97
98
|
u(t, { size: "md" }),
|
|
98
99
|
s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
|
|
99
100
|
])) : (p(), f("div", F, [
|
|
100
|
-
u(
|
|
101
|
+
u(M, {
|
|
101
102
|
"model-value": b.value,
|
|
102
103
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
|
|
103
104
|
items: c.value
|
|
@@ -119,5 +120,5 @@ const F = {
|
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
export {
|
|
122
|
-
|
|
123
|
+
A as default
|
|
123
124
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { F as b, a as P,
|
|
2
|
+
import { F as b, a as P, a9 as R } from "./app-EpEEb8EO.js";
|
|
3
|
+
import "./dayjs.min-TdUgzmww.js";
|
|
3
4
|
import "@feedmepos/ui-library";
|
|
5
|
+
/* empty css */
|
|
4
6
|
import "@feedmepos/mf-common";
|
|
7
|
+
import "./app-rgirz_52.js";
|
|
8
|
+
import "./lodash-gq8IrP4j.js";
|
|
5
9
|
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|
|
6
10
|
__name: "binding-ui",
|
|
7
11
|
props: {
|
|
@@ -22,24 +26,24 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
|
|
|
22
26
|
C("closeDialog", () => {
|
|
23
27
|
d.value.isOpen = !d.value.isOpen;
|
|
24
28
|
});
|
|
25
|
-
const
|
|
29
|
+
const n = _, m = a, f = g(() => n.items.map((s) => ({
|
|
26
30
|
key: s.key,
|
|
27
31
|
name: s.name,
|
|
28
32
|
_skuLinked: s.bindings.filter(
|
|
29
|
-
({ type: t, id: e }) => t === b.enum.SKU &&
|
|
33
|
+
({ type: t, id: e }) => t === b.enum.SKU && n.skus.some((c) => c._id === e)
|
|
30
34
|
).length,
|
|
31
35
|
_recipeLinked: s.bindings.filter(
|
|
32
|
-
({ type: t, id: e }) => t === b.enum.RECIPE &&
|
|
36
|
+
({ type: t, id: e }) => t === b.enum.RECIPE && n.recipes.some((c) => c._id === e)
|
|
33
37
|
).length,
|
|
34
38
|
onUpdate: async () => {
|
|
35
|
-
|
|
39
|
+
n.editable && m("click:open-binding-dialog", n.type, s);
|
|
36
40
|
}
|
|
37
41
|
})));
|
|
38
42
|
return (k, s) => {
|
|
39
43
|
const t = h("FmButton");
|
|
40
44
|
return l(), u("div", U, [
|
|
41
45
|
s[0] || (s[0] = F('<div class="flex font-bold bg-[#F7F8FA]"><div class="flex-grow-0 flex-shrink-0 basis-5/12 py-8"></div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Ingredient</div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Recipe</div><div class="flex-grow-0 flex-shrink-0 basis-1/12 py-8"></div></div>', 1)),
|
|
42
|
-
(l(!0), u(L, null, I(
|
|
46
|
+
(l(!0), u(L, null, I(f.value, (e) => (l(), u("div", {
|
|
43
47
|
key: e.key,
|
|
44
48
|
class: "cursor-pointer flex border-t border-[rgba(17,32,47,0.15] items-center",
|
|
45
49
|
onClick: e.onUpdate
|
|
@@ -53,7 +57,7 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
|
|
|
53
57
|
icon: "edit",
|
|
54
58
|
"icon-color": "#000",
|
|
55
59
|
size: "md",
|
|
56
|
-
disabled: !
|
|
60
|
+
disabled: !n.editable,
|
|
57
61
|
type: "button",
|
|
58
62
|
onClick: N(e.onUpdate, ["stop"])
|
|
59
63
|
}, null, 8, ["disabled", "onClick"])
|
|
@@ -65,34 +69,34 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
|
|
|
65
69
|
}), A = {
|
|
66
70
|
key: 1,
|
|
67
71
|
class: "p-24 flex items-center justify-center gap-16"
|
|
68
|
-
},
|
|
72
|
+
}, W = /* @__PURE__ */ x({
|
|
69
73
|
__name: "BindingsTable",
|
|
70
74
|
setup(_) {
|
|
71
|
-
const a = P(), d = r(!0),
|
|
75
|
+
const a = P(), d = r(!0), n = r(new Array()), m = g(() => a.recipes), f = g(() => a.skus), k = r(""), s = R(e), t = r();
|
|
72
76
|
async function e() {
|
|
73
77
|
await a.readInventory(), t.value = s.onMessage(
|
|
74
78
|
"props:grouped-bindings",
|
|
75
|
-
(
|
|
76
|
-
d.value = !1,
|
|
79
|
+
(i) => {
|
|
80
|
+
d.value = !1, n.value = i;
|
|
77
81
|
}
|
|
78
82
|
), s.sendMessage("props:grouped-bindings");
|
|
79
83
|
}
|
|
80
|
-
async function c(
|
|
84
|
+
async function c(i, o) {
|
|
81
85
|
s.sendMessage("@click:open-binding-dialog", {
|
|
82
|
-
key:
|
|
86
|
+
key: i,
|
|
83
87
|
binding: o
|
|
84
88
|
});
|
|
85
89
|
}
|
|
86
90
|
const y = r();
|
|
87
91
|
return E(() => {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
s.sendMessage("resize",
|
|
91
|
-
}).observe(
|
|
92
|
+
const i = y.value;
|
|
93
|
+
i && new ResizeObserver(() => {
|
|
94
|
+
s.sendMessage("resize", i.scrollHeight);
|
|
95
|
+
}).observe(i);
|
|
92
96
|
}), z(() => {
|
|
93
|
-
var
|
|
94
|
-
(o = (
|
|
95
|
-
}), (
|
|
97
|
+
var i, o;
|
|
98
|
+
(o = (i = t.value) == null ? void 0 : i.removeEventListener) == null || o.call(i);
|
|
99
|
+
}), (i, o) => {
|
|
96
100
|
const B = h("FmCircularProgress");
|
|
97
101
|
return l(), u("div", {
|
|
98
102
|
class: "bg-white",
|
|
@@ -104,9 +108,9 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
|
|
|
104
108
|
o[0] || (o[0] = p("div", null, "Loading bindings table...", -1))
|
|
105
109
|
])) : (l(), M(T, {
|
|
106
110
|
key: 0,
|
|
107
|
-
items:
|
|
108
|
-
recipes:
|
|
109
|
-
skus:
|
|
111
|
+
items: n.value,
|
|
112
|
+
recipes: m.value,
|
|
113
|
+
skus: f.value,
|
|
110
114
|
type: k.value,
|
|
111
115
|
editable: "",
|
|
112
116
|
"onClick:openBindingDialog": c
|
|
@@ -116,5 +120,5 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
|
|
|
116
120
|
}
|
|
117
121
|
});
|
|
118
122
|
export {
|
|
119
|
-
|
|
123
|
+
W as default
|
|
120
124
|
};
|