@feedmepos/mf-inventory-portal 1.2.13 → 1.2.14-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App-BsAX8Df8.js +286 -0
- package/dist/{ApprovalView-BWX6xBQs.js → ApprovalView-BT-A6f4_.js} +26 -26
- package/dist/{BindingsDialog-CuwkcDKX.js → BindingsDialog-CNpvAGHr.js} +2 -2
- package/dist/{BindingsPicker-BibFsY0g.js → BindingsPicker-D-vmVplT.js} +10 -10
- package/dist/{BindingsTable-AdjKwSPH.js → BindingsTable-Z7PTxSy6.js} +1 -1
- package/dist/{ClosingDraftView-DWFHP9nE.js → ClosingDraftView-C_3P7kh0.js} +44 -44
- package/dist/{ClosingTemplateView-DOCF5f_u.js → ClosingTemplateView-CimxBGT-.js} +26 -26
- package/dist/{DeliveryOrderPrintPreview-DNDtL_Vo.js → DeliveryOrderPrintPreview-CMTO9y6R.js} +10 -10
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BWhINOE8.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMK3P4pu.js} +15 -15
- package/dist/{FmMultiselectDialog-Dfo04ak5.js → FmMultiselectDialog-D6f0A92U.js} +4 -4
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DGVs4zLl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CJvnR-aO.js} +54 -54
- package/dist/ImportView-CTYLH5Mz.js +1303 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BESx2u4Y.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BbmtJ6Ge.js} +1 -1
- package/dist/{IngredientGroupView-M9sXlnE0.js → IngredientGroupView-wygIXAKy.js} +19 -20
- package/dist/IngredientsView-Ct3eNIqS.js +2240 -0
- package/dist/{IntegrationView-BlUNz1yc.js → IntegrationView-CKA76Mi6.js} +3 -3
- package/dist/{InventoryBindingForm-CvQ5zh6v.js → InventoryBindingForm-CdK2Ujur.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BEAEmPsU.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-O0bjxU.js} +12 -12
- package/dist/{InventoryBindingSummary-CsJ-6G2P.js → InventoryBindingSummary-DN6sSW2u.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjN_ktl1.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BK65pQy4.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BN_e7k7U.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DrFtLYGt.js} +1 -1
- package/dist/{PublishView-DZgCyLK2.js → PublishView-LJA3-Xmq.js} +25 -25
- package/dist/{PurchaseOrderPrintPreview-CB2xvQ33.js → PurchaseOrderPrintPreview-CpnoNRcV.js} +12 -12
- package/dist/{ReceiveRequestView-DgDHOS-Y.js → ReceiveRequestView-d7KmB_XN.js} +131 -132
- package/dist/RecipeView-B7PtWfJ-.js +636 -0
- package/dist/{StockView-eJOngk08.js → StockView-DoataAnD.js} +165 -166
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BMFfegsk.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BZNMBDJ7.js} +1 -1
- package/dist/{SupplierView-BS8rBAKC.js → SupplierView-D9Kb7rAO.js} +4 -4
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CfnN-1oC.js +3385 -0
- package/dist/{TransferTemplateView-By5Ci4Yg.js → TransferTemplateView-D9mrfBH5.js} +166 -166
- package/dist/UnitView-BP5IzLw2.js +674 -0
- package/dist/{WarehouseView-4ZLSJXYc.js → WarehouseView-B-qnAHv5.js} +32 -32
- package/dist/api/inventory.d.ts +306 -0
- package/dist/api/purchase-order.d.ts +1 -0
- package/dist/{app-D2lun71R.js → app-DDKw9H3a.js} +11730 -11115
- package/dist/app.d.ts +421 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Cm1TtVzm.js → closing-template-BYCZ8etT.js} +1 -1
- package/dist/{decimal-eeicE4jp.js → decimal-DMb7zEqx.js} +1 -1
- package/dist/{format-unit-display-vHKazw0l.js → format-unit-display-BCTXGGeT.js} +24 -24
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-B4JVPOJK.js +243 -0
- package/dist/{index-DvX9cMJV.js → index-BZIogw8R.js} +1 -1
- package/dist/{index-C5s-1g7c.js → index-B__hxI_k.js} +1 -1
- package/dist/{purchase-order-template-uTs7bR89.js → purchase-order-template-Duc9oBWo.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-CL2LNdXp.js → stock-cFTv_nsm.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/inventory.d.ts +26 -199
- package/dist/{supplier-CuzoW2k4.js → supplier-CESqvbEF.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Cpg4lHHC.js → use-ingredient-select-dialog-DRJNoQTb.js} +4 -4
- package/dist/{use-inventory-binding-dialog-h4M4ICQK.js → use-inventory-binding-dialog-DTK5yRv9.js} +1 -1
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +3 -1
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +17 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/package.json +3 -3
- package/dist/App-ZoXow3DD.js +0 -276
- package/dist/IngredientsView-DUwhH3j1.js +0 -2475
- package/dist/RecipeView-DQDfwCJd.js +0 -621
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-w98ibfql.js +0 -3060
- package/dist/UnitView-DmuWMFlA.js +0 -667
- package/dist/array-Ca8T3f_G.js +0 -44
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { ref as B, onUnmounted as k, defineComponent as w, watch as L, onMounted as O, computed as h, resolveComponent as P, openBlock as I, createElementBlock as A, unref as T, createVNode as g, createElementVNode as v, toDisplayString as x, createBlock as M, createCommentVNode as H } from "vue";
|
|
2
|
+
import { u as D, a as W, b as K, R as e, c as F, m as _, g as a, d as $ } from "./app-DDKw9H3a.js";
|
|
3
|
+
import { useCoreStore as G, useI18n as V } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as U, useRoute as j } from "vue-router";
|
|
5
|
+
import { u as z } from "./useTabStorage-BkIVScW_.js";
|
|
6
|
+
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
7
|
+
function q() {
|
|
8
|
+
return {
|
|
9
|
+
loadingHookInstalled: !1,
|
|
10
|
+
isLoading: !1
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const b = B(q());
|
|
14
|
+
function J() {
|
|
15
|
+
const c = U();
|
|
16
|
+
if (!b.value.loadingHookInstalled) {
|
|
17
|
+
b.value.loadingHookInstalled = !0;
|
|
18
|
+
const r = c.beforeEach(() => {
|
|
19
|
+
b.value.isLoading = !0;
|
|
20
|
+
}), d = c.afterEach(() => {
|
|
21
|
+
b.value.isLoading = !1;
|
|
22
|
+
});
|
|
23
|
+
k(() => {
|
|
24
|
+
b.value.loadingHookInstalled = !1, r(), d();
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
get isLoading() {
|
|
29
|
+
return b.value.isLoading;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const X = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "flex flex-col items-center w-full h-full gap-24"
|
|
36
|
+
}, Y = {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
39
|
+
}, Z = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, ee = { class: "fm-typo-en-title-lg-600" }, te = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, oe = { class: "flex gap-16" }, ne = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, re = { href: "https://feedme.ai/form" }, ae = /* @__PURE__ */ w({
|
|
40
|
+
__name: "InventoryView",
|
|
41
|
+
setup(c) {
|
|
42
|
+
const r = D(), d = W(), f = K(), s = G(), l = U(), m = J(), o = F(), { t: E } = V();
|
|
43
|
+
L(
|
|
44
|
+
[() => s.sessionUser.value, () => s.currentBusiness.value],
|
|
45
|
+
([i, u]) => {
|
|
46
|
+
R(i, u);
|
|
47
|
+
}
|
|
48
|
+
), O(async () => {
|
|
49
|
+
await o.init(), await s.readBusinesses();
|
|
50
|
+
const i = s.sessionUser.value, u = s.currentBusiness.value;
|
|
51
|
+
R(i, u);
|
|
52
|
+
});
|
|
53
|
+
function R(i, u) {
|
|
54
|
+
!i || !u || C();
|
|
55
|
+
}
|
|
56
|
+
async function C() {
|
|
57
|
+
return await r.init(), await f.readSetting().catch((i) => {
|
|
58
|
+
console.error("[all] error on reading netsuite store", i);
|
|
59
|
+
}), await d.init();
|
|
60
|
+
}
|
|
61
|
+
const y = h(() => l.currentRoute.value.name === e.TRANSFER_TEMPLATE ? o.enablePoTemplate : l.currentRoute.value.name === e.INGREDIENT_GROUP ? o.enableIngredientGroup : !0);
|
|
62
|
+
return (i, u) => {
|
|
63
|
+
const N = P("FmSpacer"), n = P("FmCircularProgress"), t = P("FmButton"), p = P("RouterView");
|
|
64
|
+
return I(), A("div", null, [
|
|
65
|
+
T(m).isLoading ? (I(), A("div", X, [
|
|
66
|
+
g(N),
|
|
67
|
+
v("div", null, [
|
|
68
|
+
g(n, { size: "xl" })
|
|
69
|
+
]),
|
|
70
|
+
u[0] || (u[0] = v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
71
|
+
g(N)
|
|
72
|
+
])) : y.value ? T(s).sessionUser.value ? (I(), M(p, { key: 2 })) : H("", !0) : (I(), A("div", Y, [
|
|
73
|
+
v("div", Z, [
|
|
74
|
+
v("div", ee, x(T(E)("inventory.common.proPlan.title")), 1),
|
|
75
|
+
v("div", te, x(T(E)("inventory.common.proPlan.subtitle")), 1)
|
|
76
|
+
]),
|
|
77
|
+
v("div", oe, [
|
|
78
|
+
v("a", ne, [
|
|
79
|
+
g(t, {
|
|
80
|
+
label: T(E)("inventory.common.proPlan.comparePlans"),
|
|
81
|
+
variant: "secondary"
|
|
82
|
+
}, null, 8, ["label"])
|
|
83
|
+
]),
|
|
84
|
+
v("a", re, [
|
|
85
|
+
g(t, {
|
|
86
|
+
label: T(E)("inventory.common.proPlan.callUs"),
|
|
87
|
+
"prepend-icon": "call"
|
|
88
|
+
}, null, 8, ["label"])
|
|
89
|
+
])
|
|
90
|
+
])
|
|
91
|
+
]))
|
|
92
|
+
]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}), se = { class: "h-full flex flex-col overflow-auto py-16" }, le = /* @__PURE__ */ w({
|
|
96
|
+
__name: "NavigationTab",
|
|
97
|
+
setup(c) {
|
|
98
|
+
const r = _.object({
|
|
99
|
+
label: _.string(),
|
|
100
|
+
value: _.string().optional(),
|
|
101
|
+
icon: _.string().optional(),
|
|
102
|
+
hide: _.boolean().optional(),
|
|
103
|
+
children: _.array(_.lazy(() => r)).optional()
|
|
104
|
+
}), d = j(), f = U(), s = G(), l = F(), m = z(), { t: o } = V();
|
|
105
|
+
L([() => s.currentBusiness.value, () => d.name], ([n, t]) => {
|
|
106
|
+
(n == null ? void 0 : n.menuVersion) === "v3" && (t === e.INGREDIENTS || t === e.RECIPE || t === e.UNIT) && f.push({ name: e.STOCK });
|
|
107
|
+
});
|
|
108
|
+
const E = (n) => n.filter((t) => !t.hide).map((t) => t.children ? { ...t, children: E(t.children) } : t), R = (n) => n.map((t) => {
|
|
109
|
+
delete t.hide;
|
|
110
|
+
const p = t;
|
|
111
|
+
return t.children && (p.children = R(t.children)), p;
|
|
112
|
+
}), C = h(() => {
|
|
113
|
+
var p;
|
|
114
|
+
const n = [
|
|
115
|
+
{
|
|
116
|
+
label: a(e.STOCK, o),
|
|
117
|
+
// icon: 'inventory_2',
|
|
118
|
+
children: [
|
|
119
|
+
{
|
|
120
|
+
label: o("inventory.stock.stock_balance.title"),
|
|
121
|
+
value: e.STOCK
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: a(e.WASTAGE_TEMPLATE, o),
|
|
125
|
+
value: e.WASTAGE_TEMPLATE,
|
|
126
|
+
hide: !l.enableWastageTemplate
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
label: "Closing",
|
|
132
|
+
hide: !l.enableClosingTemplate,
|
|
133
|
+
children: [
|
|
134
|
+
{
|
|
135
|
+
label: a(e.CLOSING_TEMPLATE, o),
|
|
136
|
+
value: e.CLOSING_TEMPLATE
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
label: a(e.CLOSING_DRAFT, o),
|
|
140
|
+
value: e.CLOSING_DRAFT
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: a(e.INGREDIENTS, o),
|
|
146
|
+
// icon: 'grocery',
|
|
147
|
+
value: e.INGREDIENTS
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: a(e.INGREDIENT_GROUP, o),
|
|
151
|
+
// icon: 'grocery',
|
|
152
|
+
value: e.INGREDIENT_GROUP,
|
|
153
|
+
hide: !l.enableIngredientGroup
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
label: a(e.RECIPE, o),
|
|
157
|
+
// icon: 'weight',
|
|
158
|
+
value: e.RECIPE
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
label: a(e.UNIT, o),
|
|
162
|
+
// icon: 'fastfood',
|
|
163
|
+
value: e.UNIT
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
label: o("inventory.transfer.title"),
|
|
167
|
+
// icon: 'swap_horiz',
|
|
168
|
+
children: [
|
|
169
|
+
{
|
|
170
|
+
label: a(e.RECEIVE_REQUEST, o),
|
|
171
|
+
value: e.RECEIVE_REQUEST
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
label: a(e.APPROVAL, o),
|
|
175
|
+
value: e.APPROVAL
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
label: a(e.TRANSFER_TEMPLATE, o),
|
|
179
|
+
value: e.TRANSFER_TEMPLATE,
|
|
180
|
+
hide: !l.enablePoTemplate
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
label: a(e.SUPPLIER, o),
|
|
186
|
+
// icon: 'group',
|
|
187
|
+
value: e.SUPPLIER
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
label: a(e.WAREHOUSE, o),
|
|
191
|
+
// icon: 'warehouse',
|
|
192
|
+
value: e.WAREHOUSE
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
label: a(e.PUBLISH, o),
|
|
196
|
+
value: e.PUBLISH
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: a(e.IMPORT, o),
|
|
200
|
+
value: e.IMPORT,
|
|
201
|
+
hide: !l.enableBulkImport
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
label: a(e.INTEGRATION, o),
|
|
205
|
+
// icon: 'integration_instructions',
|
|
206
|
+
value: e.INTEGRATION
|
|
207
|
+
}
|
|
208
|
+
], t = R(E(n));
|
|
209
|
+
return ((p = s.currentBusiness.value) == null ? void 0 : p.menuVersion) === "v3" ? t.filter(
|
|
210
|
+
(S) => S.value !== e.INGREDIENTS && S.value !== e.RECIPE && S.value !== e.UNIT && S.value !== e.PUBLISH
|
|
211
|
+
) : t;
|
|
212
|
+
}), y = h({
|
|
213
|
+
get() {
|
|
214
|
+
if (d.name)
|
|
215
|
+
return String(d.name);
|
|
216
|
+
},
|
|
217
|
+
set(n) {
|
|
218
|
+
n && f.push({ name: n });
|
|
219
|
+
}
|
|
220
|
+
}), i = h(
|
|
221
|
+
() => {
|
|
222
|
+
var n;
|
|
223
|
+
return `NavigationTab.${(n = s.currentBusiness.value) == null ? void 0 : n._id}`;
|
|
224
|
+
}
|
|
225
|
+
), u = B(!1), N = h({
|
|
226
|
+
get() {
|
|
227
|
+
return u.value;
|
|
228
|
+
},
|
|
229
|
+
set(n) {
|
|
230
|
+
u.value = n, n || m.setItem(i.value, "true");
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
return L([() => i.value], () => {
|
|
234
|
+
u.value = !1, setTimeout(() => {
|
|
235
|
+
N.value = !m.getItem(i.value);
|
|
236
|
+
}, 2e3);
|
|
237
|
+
}), (n, t) => {
|
|
238
|
+
const p = P("FmCollapsibleTabs");
|
|
239
|
+
return I(), A("div", se, [
|
|
240
|
+
g(p, {
|
|
241
|
+
modelValue: y.value,
|
|
242
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => y.value = S),
|
|
243
|
+
items: C.value
|
|
244
|
+
}, null, 8, ["modelValue", "items"])
|
|
245
|
+
]);
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
250
|
+
let c, r;
|
|
251
|
+
return { promise: new Promise((f, s) => {
|
|
252
|
+
c = f, r = s;
|
|
253
|
+
}), resolve: c, reject: r };
|
|
254
|
+
});
|
|
255
|
+
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(c) {
|
|
256
|
+
return await new Promise((r) => setTimeout(r, c)), Promise.resolve(this);
|
|
257
|
+
});
|
|
258
|
+
const fe = /* @__PURE__ */ w({
|
|
259
|
+
__name: "App",
|
|
260
|
+
setup(c) {
|
|
261
|
+
const r = G(), d = Q(), f = $();
|
|
262
|
+
O(() => {
|
|
263
|
+
if (window.location.href.includes("print-preview")) {
|
|
264
|
+
r.setEmbedded(!0), document.body.classList.add("print-mode");
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
r.registerSidebarComponent(le), d.initGoogleMap(f.appApi.googleMap).catch(() => {
|
|
268
|
+
console.error("Google map cannot be loaded");
|
|
269
|
+
});
|
|
270
|
+
}), L([() => r.currentCountry.value], () => {
|
|
271
|
+
s();
|
|
272
|
+
});
|
|
273
|
+
async function s() {
|
|
274
|
+
var l;
|
|
275
|
+
try {
|
|
276
|
+
await r.readBusinesses(), r.currentBusiness.value = (l = r.businesses.value) == null ? void 0 : l.find((m) => m);
|
|
277
|
+
} catch (m) {
|
|
278
|
+
console.error("error when trying to reset businesses:", m);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return (l, m) => (I(), M(ae));
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
export {
|
|
285
|
+
fe as default
|
|
286
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
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
|
|
2
|
-
import { u as De, b as ge,
|
|
3
|
-
import { a as
|
|
4
|
-
import { useBreakpoints as
|
|
5
|
-
import { useI18n as
|
|
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, b as ge, m as b, aV as ye, al as Z, E as be, N as Oe, H as Re, G as Se, I as xe, J as ke, K as O } from "./app-DDKw9H3a.js";
|
|
3
|
+
import { a as qe, P as q, b as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CfnN-1oC.js";
|
|
4
|
+
import { useBreakpoints as Ne } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as Te } from "@feedmepos/mf-common";
|
|
6
6
|
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" }, Le = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
9
|
}, ze = { class: "pt-8" }, je = /* @__PURE__ */ ue({
|
|
10
10
|
__name: "ApprovalView",
|
|
11
|
-
setup(
|
|
12
|
-
const a =
|
|
11
|
+
setup(Ee) {
|
|
12
|
+
const a = qe(q.APPROVAL), { columnDefs: I } = we(q.APPROVAL, a, a.shipments), B = De(), ee = ge();
|
|
13
13
|
b.object({
|
|
14
14
|
name: b.string().optional().nullable(),
|
|
15
15
|
start: b.date().optional().nullable(),
|
|
16
16
|
end: b.date().optional().nullable()
|
|
17
17
|
});
|
|
18
|
-
const
|
|
18
|
+
const w = y({
|
|
19
19
|
name: "",
|
|
20
20
|
...ye()
|
|
21
21
|
}), l = y({
|
|
22
|
-
startDate: Z(
|
|
23
|
-
endDate: Z(
|
|
22
|
+
startDate: Z(w.value.start ?? /* @__PURE__ */ new Date()),
|
|
23
|
+
endDate: Z(w.value.end ?? /* @__PURE__ */ new Date())
|
|
24
24
|
});
|
|
25
25
|
ie([() => l.value.startDate], () => {
|
|
26
26
|
if (!l.value.startDate)
|
|
@@ -36,9 +36,9 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
36
36
|
}
|
|
37
37
|
a.updateDateRange(l.value.startDate, l.value.endDate);
|
|
38
38
|
});
|
|
39
|
-
const R = y(""), { breakpoints:
|
|
39
|
+
const R = y(""), { breakpoints: P } = Ne(), S = d(() => P.value.xs || P.value.sm), te = d(() => S.value ? 10 : 20), ae = be(), { t: N } = Te(), re = d(() => [
|
|
40
40
|
{
|
|
41
|
-
label:
|
|
41
|
+
label: N("inventory.common.refresh"),
|
|
42
42
|
value: "refresh"
|
|
43
43
|
}
|
|
44
44
|
]);
|
|
@@ -113,11 +113,11 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
113
113
|
return (u, s) => {
|
|
114
114
|
const e = ce("FmTable");
|
|
115
115
|
return x(), X(Se, {
|
|
116
|
-
title: n(
|
|
116
|
+
title: n(N)("inventory.transfer.approval.title"),
|
|
117
117
|
actions: re.value,
|
|
118
118
|
"onClick:action": se
|
|
119
119
|
}, {
|
|
120
|
-
default:
|
|
120
|
+
default: k(() => {
|
|
121
121
|
var r;
|
|
122
122
|
return [
|
|
123
123
|
c("div", {
|
|
@@ -154,18 +154,18 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
154
154
|
)),
|
|
155
155
|
"page-size": te.value
|
|
156
156
|
}, {
|
|
157
|
-
"list-row":
|
|
158
|
-
i(
|
|
157
|
+
"list-row": k((t) => [
|
|
158
|
+
i(ke, {
|
|
159
159
|
row: t,
|
|
160
160
|
onRowClick: (o) => n(a).promptShowTransferDetails(o.purchaseOrder, o)
|
|
161
161
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
var p,
|
|
162
|
+
default: k((o) => {
|
|
163
|
+
var p, T, A, f, C, M, V, L, v, z, E, h, F, _, $, H, Y, U, j, D, G, J, K, Q, g, W;
|
|
164
164
|
return [
|
|
165
165
|
c("div", Ae, [
|
|
166
166
|
c("div", Ce, [
|
|
167
167
|
i(n(O), {
|
|
168
|
-
render: (A = (
|
|
168
|
+
render: (A = (T = (p = o.purchaseOrder__id) == null ? void 0 : p.column) == null ? void 0 : T.columnDef) == null ? void 0 : A.cell,
|
|
169
169
|
props: (C = (f = o.purchaseOrder__id) == null ? void 0 : f.getContext) == null ? void 0 : C.call(f)
|
|
170
170
|
}, null, 8, ["render", "props"])
|
|
171
171
|
]),
|
|
@@ -175,16 +175,16 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
175
175
|
props: (z = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : z.call(v)
|
|
176
176
|
}, null, 8, ["render", "props"])
|
|
177
177
|
]),
|
|
178
|
-
c("div", Ve, me((
|
|
179
|
-
(
|
|
178
|
+
c("div", Ve, me(($ = (_ = (F = (h = (E = t.original.purchaseOrder) == null ? void 0 : E.items) == null ? void 0 : h.map) == null ? void 0 : F.call(h, (le) => `${le.name}`)) == null ? void 0 : _.join) == null ? void 0 : $.call(_, ", ")), 1),
|
|
179
|
+
(H = t.original.purchaseOrder) != null && H.ref ? (x(), fe("div", Le, [
|
|
180
180
|
i(n(O), {
|
|
181
|
-
render: (j = (U = (
|
|
182
|
-
props: (
|
|
181
|
+
render: (j = (U = (Y = o.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : U.columnDef) == null ? void 0 : j.cell,
|
|
182
|
+
props: (G = (D = o.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
|
|
183
183
|
}, null, 8, ["render", "props"])
|
|
184
184
|
])) : ve("", !0),
|
|
185
185
|
c("div", ze, [
|
|
186
186
|
i(n(O), {
|
|
187
|
-
render: (
|
|
187
|
+
render: (Q = (K = (J = o.purchaseOrder_status) == null ? void 0 : J.column) == null ? void 0 : K.columnDef) == null ? void 0 : Q.cell,
|
|
188
188
|
props: (W = (g = o.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : W.call(g)
|
|
189
189
|
}, null, 8, ["render", "props"])
|
|
190
190
|
])
|
|
@@ -198,8 +198,8 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
198
198
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
199
199
|
], 2),
|
|
200
200
|
(x(), X(he, { to: "body" }, [
|
|
201
|
-
i(
|
|
202
|
-
scope: n(
|
|
201
|
+
i(Pe, _e({
|
|
202
|
+
scope: n(q).APPROVAL
|
|
203
203
|
}, {
|
|
204
204
|
...n(a).transferDetailsProps.value,
|
|
205
205
|
receivedMap: ((r = n(a).transferDetailsProps.value) == null ? void 0 : r.receivedMap) ?? {},
|
|
@@ -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-B-O0bjxU.js";
|
|
3
|
+
import { a as L, ba as S } from "./app-DDKw9H3a.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,9 +1,9 @@
|
|
|
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 M,
|
|
3
|
-
const
|
|
2
|
+
import { a as M, ba as x, w } from "./app-DDKw9H3a.js";
|
|
3
|
+
const z = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
6
|
-
},
|
|
6
|
+
}, F = { class: "flex justify-end gap-8 items-center" }, K = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
9
9
|
}, N = /* @__PURE__ */ S({
|
|
@@ -31,7 +31,7 @@ const F = {
|
|
|
31
31
|
const s = i.value.filter((n) => n.type === "SKU");
|
|
32
32
|
e = e, i.value = [
|
|
33
33
|
...e.map((n) => {
|
|
34
|
-
const t = i.value.find((
|
|
34
|
+
const t = i.value.find((v) => v.id === n._id);
|
|
35
35
|
return t || {
|
|
36
36
|
type: "RECIPE",
|
|
37
37
|
id: n._id,
|
|
@@ -49,7 +49,7 @@ const F = {
|
|
|
49
49
|
i.value = [
|
|
50
50
|
...s,
|
|
51
51
|
...e.map((n) => {
|
|
52
|
-
const t = i.value.find((
|
|
52
|
+
const t = i.value.find((v) => v.id === n._id);
|
|
53
53
|
return t || {
|
|
54
54
|
type: "SKU",
|
|
55
55
|
id: n._id,
|
|
@@ -93,16 +93,16 @@ const F = {
|
|
|
93
93
|
ref_key: "resizeableRef",
|
|
94
94
|
ref: y
|
|
95
95
|
}, [
|
|
96
|
-
g.value ? (p(), f("div",
|
|
96
|
+
g.value ? (p(), f("div", K, [
|
|
97
97
|
u(t, { size: "md" }),
|
|
98
98
|
s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
|
|
99
|
-
])) : (p(), f("div",
|
|
100
|
-
u(
|
|
99
|
+
])) : (p(), f("div", z, [
|
|
100
|
+
u(w, {
|
|
101
101
|
"model-value": b.value,
|
|
102
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
102
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
|
|
103
103
|
items: c.value
|
|
104
104
|
}, null, 8, ["model-value", "items"]),
|
|
105
|
-
k("div",
|
|
105
|
+
k("div", F, [
|
|
106
106
|
u(n, {
|
|
107
107
|
variant: "tertiary",
|
|
108
108
|
label: "Close",
|
|
@@ -1,5 +1,5 @@
|
|
|
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, ba as R } from "./app-DDKw9H3a.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
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({
|