@feedmepos/mf-inventory-portal 1.2.29 → 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-BcetoQcK.js → App-CZJre5y8.js} +56 -54
- package/dist/{ApprovalView-CyRCctkZ.js → ApprovalView-CnxHxojY.js} +34 -28
- package/dist/{BindingsDialog-DLN2RPYo.js → BindingsDialog-C6lCOPNs.js} +2 -2
- package/dist/{BindingsPicker-CDtYeSVh.js → BindingsPicker-DZtFKLQ5.js} +6 -5
- package/dist/{BindingsTable-C19Bm8d6.js → BindingsTable-BmQGLuJ4.js} +28 -24
- package/dist/{ClosingDraftView-DBFIR6Xv.js → ClosingDraftView-KLtlh31f.js} +184 -176
- package/dist/{ClosingHistoryView-BEZOwsPz.js → ClosingHistoryView-Rf1yMhMj.js} +43 -41
- package/dist/{ClosingTemplateView-COifu0I6.js → ClosingTemplateView-C_IiKnGx.js} +116 -98
- package/dist/{DeliveryOrderPrintPreview-lBFtH_Rm.js → DeliveryOrderPrintPreview-UF7V005U.js} +15 -14
- package/dist/FmDroppableField-J0xUsOTV.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BhhmWaOl.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-CBYvYJnE.js → FmMultiselectDialog-B0aKuf2o.js} +1 -1
- package/dist/FmMultiselectDialog-BasrjBFA.js +597 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CLuceimk.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js} +51 -49
- package/dist/{ImportView-DYNjmjys.js → ImportView-DRSoz0uM.js} +81 -74
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BXefPowE.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DA8SlWPy.js} +5 -5
- package/dist/{IngredientGroupView-CNzK_dDv.js → IngredientGroupView-D5Laak2-.js} +73 -65
- package/dist/{IngredientsView-BnrA0ijB.js → IngredientsView-TG3fPQhR.js} +358 -345
- package/dist/{IntegrationView-DwcP5MgB.js → IntegrationView-CElpjyo7.js} +219 -209
- package/dist/{InventoryBindingForm-DeqdcXzm.js → InventoryBindingForm-CBgxRYBd.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-FuPTxo7z.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js} +41 -40
- package/dist/{InventoryBindingSummary-Dp0bshzL.js → InventoryBindingSummary-OK3vNWhi.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DLvWaFvA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-9QRntUlk.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-tLW9bojI.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bc01NoOn.js} +22 -21
- package/dist/{PublishView-CxIU1aI4.js → PublishView-CLMfiLjP.js} +26 -23
- package/dist/{PurchaseOrderPrintPreview-DWxp3cFM.js → PurchaseOrderPrintPreview-Dy77yWDC.js} +10 -9
- package/dist/{ReceiveRequestView-CF9ingct.js → ReceiveRequestView-BhD-NaHE.js} +324 -308
- package/dist/{RecipeView-B87vakmu.js → RecipeView-RWaO94w_.js} +73 -64
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js +251 -0
- package/dist/{StockView-XJY3690u.js → StockView-D5t8OxaG.js} +292 -282
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DY1iRl1F.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3Asf1TGd.js} +1 -1
- package/dist/{SupplierView-Y2NqnJ6-.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-l0qRNa0W.js → TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js} +318 -305
- package/dist/{TransferTemplateView-DBlasHGY.js → TransferTemplateView-ePZFdZ0p.js} +228 -216
- package/dist/{UnitView-C8z90hHr.js → UnitView-Banlxw7y.js} +70 -63
- package/dist/{WarehouseView-egtnCnzo.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.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-CLM3HUsc.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-BWoznxQp.js → format-unit-display-QBS54q0R.js} +308 -297
- package/dist/{import-export.helper-DgKnsYRB.js → import-export.helper-CUKCKtP7.js} +56 -52
- package/dist/index-CFn_9RMm.js +45 -0
- package/dist/{index-CK61uHgW.js → index-S9Ak__QC.js} +1 -1
- package/dist/{index-tMZSFG5r.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-D7dkJMqf.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-B3EEUmkF.js → stock-3K93Mif9.js} +1 -1
- package/dist/{stock-DYBHa0KN.js → stock-BW8fen3H.js} +11 -10
- package/dist/style.css +1 -1
- package/dist/{supplier-CY7Hj_a2.js → supplier-CObCSfot.js} +27 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Dlv7Eowu.js → use-ingredient-select-dialog-DwvQiaVW.js} +4 -3
- package/dist/{use-inventory-binding-dialog-DOSfDQte.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/composables/use-closing-template-actions.d.ts +1 -1
- 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 +6 -6
- package/dist/app-B5p73NM9.js +0 -130949
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ee, computed as _, reactive as ne, resolveComponent as k, openBlock as
|
|
2
|
-
import { a as te,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as ee, computed as _, reactive as ne, resolveComponent as k, openBlock as d, createElementBlock as p, createVNode as y, withCtx as U, createElementVNode as n, toDisplayString as m, unref as i, createBlock as B, createCommentVNode as v, Fragment as E, renderList as C, nextTick as oe } from "vue";
|
|
2
|
+
import { a as te, D as le, aa as ie, F as se } from "./app-EpEEb8EO.js";
|
|
3
|
+
import { a as h, q as T, h as G, d as re } from "./rules-DKklsaS1.js";
|
|
4
|
+
import { u as de } from "./use-inventory-binding-dialog-CuLEHLDM.js";
|
|
5
|
+
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js";
|
|
5
6
|
import { useI18n as ce } from "@feedmepos/mf-common";
|
|
6
7
|
const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-16" }, fe = { class: "flex items-center" }, ve = { class: "flex-1 fm-typo-en-title-sm-600" }, be = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, _e = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, he = {
|
|
7
8
|
class: "flex items-center",
|
|
@@ -24,13 +25,13 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
24
25
|
}, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, De = {
|
|
25
26
|
key: 0,
|
|
26
27
|
class: "w-[52px]"
|
|
27
|
-
}, Ke = { class: "flex flex-col gap-16" }, $e = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, ze = { class: "flex flex-col" }, Le = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Oe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" },
|
|
28
|
+
}, Ke = { class: "flex flex-col gap-16" }, $e = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, ze = { class: "flex flex-col" }, Le = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Oe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, qe = {
|
|
28
29
|
class: "flex items-center w-full",
|
|
29
30
|
style: { "min-height": "48px" }
|
|
30
|
-
},
|
|
31
|
+
}, We = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, He = { class: "line-clamp-1" }, Je = { class: "w-[150px]" }, Qe = {
|
|
31
32
|
key: 0,
|
|
32
33
|
class: "w-[52px]"
|
|
33
|
-
}, Xe = { class: "flex flex-col px-12 pb-4" },
|
|
34
|
+
}, Xe = { class: "flex flex-col px-12 pb-4" }, sn = /* @__PURE__ */ ee({
|
|
34
35
|
__name: "InventoryBindingForm",
|
|
35
36
|
props: {
|
|
36
37
|
id: {},
|
|
@@ -63,7 +64,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
63
64
|
var t;
|
|
64
65
|
return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
|
|
65
66
|
}))
|
|
66
|
-
), j = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: z, promptRecipesBinding: L, promptIngredientGroupsBinding: O } =
|
|
67
|
+
), j = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: z, promptRecipesBinding: L, promptIngredientGroupsBinding: O } = de();
|
|
67
68
|
async function Y() {
|
|
68
69
|
if (s.iframeMode) {
|
|
69
70
|
b("click:pick-inventory-bindings", "RECIPE");
|
|
@@ -75,8 +76,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
75
76
|
s.id ? [s.id] : []
|
|
76
77
|
);
|
|
77
78
|
}
|
|
78
|
-
const
|
|
79
|
-
async function
|
|
79
|
+
const q = _(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
|
|
80
|
+
async function W() {
|
|
80
81
|
O(
|
|
81
82
|
s.modelValue,
|
|
82
83
|
(e) => b("update:modelValue", e),
|
|
@@ -97,32 +98,32 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
97
98
|
);
|
|
98
99
|
}
|
|
99
100
|
function S(e, t, o) {
|
|
100
|
-
const
|
|
101
|
+
const r = +t;
|
|
101
102
|
let f = o;
|
|
102
|
-
t.length > 0 && isFinite(
|
|
103
|
+
t.length > 0 && isFinite(r) ? f = o.map((u) => (u.id !== e || (u.amount = re(r)), u)) : f = o.map((u) => (u.id !== e || (u.amount = { amount: 0, precision: 0 }), u)), b("update:modelValue", f);
|
|
103
104
|
}
|
|
104
105
|
function F(e, t) {
|
|
105
|
-
const o = t.filter((
|
|
106
|
+
const o = t.filter((r) => r.id !== e);
|
|
106
107
|
b("update:modelValue", o);
|
|
107
108
|
}
|
|
108
109
|
function P(e) {
|
|
109
|
-
var o,
|
|
110
|
-
if (e.type !==
|
|
110
|
+
var o, r;
|
|
111
|
+
if (e.type !== se.enum.SKU)
|
|
111
112
|
throw new Error("Non-SKU binding does not have unit");
|
|
112
113
|
if (!((o = I.value[e.id]) == null ? void 0 : o.unit))
|
|
113
114
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
114
|
-
return (
|
|
115
|
+
return (r = I.value[e.id]) == null ? void 0 : r.unit;
|
|
115
116
|
}
|
|
116
117
|
function J(e) {
|
|
117
118
|
return { amount: e.amount, measurement: e.measurement };
|
|
118
119
|
}
|
|
119
120
|
function Q(e, t, o) {
|
|
120
|
-
const
|
|
121
|
+
const r = o.map((f) => f.id !== e ? f : {
|
|
121
122
|
...f,
|
|
122
123
|
amount: t.amount,
|
|
123
124
|
measurement: t.measurement
|
|
124
125
|
});
|
|
125
|
-
b("update:modelValue",
|
|
126
|
+
b("update:modelValue", r);
|
|
126
127
|
}
|
|
127
128
|
const N = ne({});
|
|
128
129
|
function X(e) {
|
|
@@ -146,8 +147,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
146
147
|
});
|
|
147
148
|
}
|
|
148
149
|
return (e, t) => {
|
|
149
|
-
const o = k("FmFormGroup"),
|
|
150
|
-
return
|
|
150
|
+
const o = k("FmFormGroup"), r = k("FmButton"), f = k("FmTextField"), u = k("FmIcon");
|
|
151
|
+
return d(), p("div", pe, [
|
|
151
152
|
y(o, {
|
|
152
153
|
disabled: e.disabled,
|
|
153
154
|
"model-value": e.modelValue,
|
|
@@ -164,7 +165,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
164
165
|
n("div", ye, [
|
|
165
166
|
n("div", fe, [
|
|
166
167
|
n("div", ve, m(i(a)("inventory.inventoryBindings.recipe")), 1),
|
|
167
|
-
e.readonly ? v("", !0) : (
|
|
168
|
+
e.readonly ? v("", !0) : (d(), B(r, {
|
|
168
169
|
key: 0,
|
|
169
170
|
variant: "secondary",
|
|
170
171
|
"text-color": "primary",
|
|
@@ -180,7 +181,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
180
181
|
t[1] || (t[1] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
181
182
|
t[2] || (t[2] = n("div", { class: "w-[52px]" }, null, -1))
|
|
182
183
|
]),
|
|
183
|
-
(
|
|
184
|
+
(d(!0), p(E, null, C(j.value, (l) => (d(), B(o, {
|
|
184
185
|
key: l.id,
|
|
185
186
|
disabled: e.disabled,
|
|
186
187
|
modelValue: +i(h)(l.amount ?? { amount: 1, precision: 0 }),
|
|
@@ -203,8 +204,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
203
204
|
invalid: V
|
|
204
205
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
205
206
|
]),
|
|
206
|
-
e.readonly ? v("", !0) : (
|
|
207
|
-
y(
|
|
207
|
+
e.readonly ? v("", !0) : (d(), p("div", Ie, [
|
|
208
|
+
y(r, {
|
|
208
209
|
disabled: e.disabled,
|
|
209
210
|
type: "button",
|
|
210
211
|
variant: "plain",
|
|
@@ -214,7 +215,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
214
215
|
}, null, 8, ["disabled", "onClick"])
|
|
215
216
|
]))
|
|
216
217
|
]),
|
|
217
|
-
w.value.has(l.id) ? (
|
|
218
|
+
w.value.has(l.id) ? (d(), p("div", we, [
|
|
218
219
|
y(u, {
|
|
219
220
|
name: "error",
|
|
220
221
|
color: "system-error-300",
|
|
@@ -229,17 +230,17 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
229
230
|
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
230
231
|
])
|
|
231
232
|
]),
|
|
232
|
-
e.enableIngredientGroup ? (
|
|
233
|
+
e.enableIngredientGroup ? (d(), p("div", Fe, [
|
|
233
234
|
n("div", Ue, [
|
|
234
235
|
n("div", Ee, m(i(a)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
235
|
-
e.readonly ? v("", !0) : (
|
|
236
|
+
e.readonly ? v("", !0) : (d(), B(r, {
|
|
236
237
|
key: 0,
|
|
237
238
|
variant: "secondary",
|
|
238
239
|
"text-color": "primary",
|
|
239
240
|
"border-color": "primary",
|
|
240
241
|
label: i(a)("inventory.inventoryBindings.linkIngredientGroup"),
|
|
241
242
|
"prepend-icon": "link",
|
|
242
|
-
onClick:
|
|
243
|
+
onClick: W
|
|
243
244
|
}, null, 8, ["label"]))
|
|
244
245
|
]),
|
|
245
246
|
n("div", Ce, [
|
|
@@ -248,7 +249,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
248
249
|
t[3] || (t[3] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
249
250
|
t[4] || (t[4] = n("div", { class: "w-[52px]" }, null, -1))
|
|
250
251
|
]),
|
|
251
|
-
(
|
|
252
|
+
(d(!0), p(E, null, C(q.value, (l) => (d(), B(o, {
|
|
252
253
|
key: l.id,
|
|
253
254
|
disabled: e.disabled,
|
|
254
255
|
modelValue: +i(h)(l.amount ?? { amount: 1, precision: 0 }),
|
|
@@ -258,7 +259,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
258
259
|
var g;
|
|
259
260
|
return [
|
|
260
261
|
n("div", Re, [
|
|
261
|
-
w.value.has(l.id) ? (
|
|
262
|
+
w.value.has(l.id) ? (d(), p("div", Se, [
|
|
262
263
|
y(u, {
|
|
263
264
|
name: "error",
|
|
264
265
|
color: "system-error-300",
|
|
@@ -279,8 +280,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
279
280
|
invalid: V
|
|
280
281
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
281
282
|
]),
|
|
282
|
-
e.readonly ? v("", !0) : (
|
|
283
|
-
y(
|
|
283
|
+
e.readonly ? v("", !0) : (d(), p("div", De, [
|
|
284
|
+
y(r, {
|
|
284
285
|
disabled: e.disabled,
|
|
285
286
|
type: "button",
|
|
286
287
|
variant: "plain",
|
|
@@ -300,7 +301,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
300
301
|
n("div", Ke, [
|
|
301
302
|
n("div", $e, [
|
|
302
303
|
n("div", je, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
|
|
303
|
-
e.readonly ? v("", !0) : (
|
|
304
|
+
e.readonly ? v("", !0) : (d(), B(r, {
|
|
304
305
|
key: 0,
|
|
305
306
|
variant: "secondary",
|
|
306
307
|
"text-color": "primary",
|
|
@@ -316,14 +317,14 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
316
317
|
n("div", Ye, m(i(a)("inventory.inventoryBindings.amount")), 1),
|
|
317
318
|
t[5] || (t[5] = n("div", { class: "w-[52px]" }, null, -1))
|
|
318
319
|
]),
|
|
319
|
-
(
|
|
320
|
+
(d(!0), p(E, null, C(R.value, (l, V) => {
|
|
320
321
|
var g;
|
|
321
|
-
return
|
|
322
|
+
return d(), p("div", {
|
|
322
323
|
key: l.id,
|
|
323
324
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
324
325
|
}, [
|
|
325
|
-
n("div",
|
|
326
|
-
n("div",
|
|
326
|
+
n("div", qe, [
|
|
327
|
+
n("div", We, [
|
|
327
328
|
n("span", He, m((g = I.value[l.id]) == null ? void 0 : g.name), 1)
|
|
328
329
|
]),
|
|
329
330
|
n("div", Je, [
|
|
@@ -337,8 +338,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
337
338
|
disabled: e.readonly
|
|
338
339
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
339
340
|
]),
|
|
340
|
-
e.readonly ? v("", !0) : (
|
|
341
|
-
y(
|
|
341
|
+
e.readonly ? v("", !0) : (d(), p("div", Qe, [
|
|
342
|
+
y(r, {
|
|
342
343
|
disabled: e.disabled,
|
|
343
344
|
type: "button",
|
|
344
345
|
variant: "tertiary",
|
|
@@ -370,5 +371,5 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
370
371
|
}
|
|
371
372
|
});
|
|
372
373
|
export {
|
|
373
|
-
|
|
374
|
+
sn as _
|
|
374
375
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-EpEEb8EO.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as d, openBlock as F, createBlock as g, withCtx as i, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
+
import { d as s } from "./rules-DKklsaS1.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -35,7 +35,7 @@ const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
|
35
35
|
t.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
|
|
36
36
|
};
|
|
37
37
|
return (e, t) => {
|
|
38
|
-
const o =
|
|
38
|
+
const o = d("FmField"), a = d("FmFormGroup");
|
|
39
39
|
return F(), g(a, {
|
|
40
40
|
disabled: e.disabled,
|
|
41
41
|
modelValue: e.modelValue,
|
|
@@ -43,9 +43,9 @@ const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
|
43
43
|
"helper-text": e.helperText,
|
|
44
44
|
label: e.label
|
|
45
45
|
}, {
|
|
46
|
-
default:
|
|
46
|
+
default: i(({ invalid: b }) => [
|
|
47
47
|
A(o, { invalid: b }, {
|
|
48
|
-
default:
|
|
48
|
+
default: i(() => [
|
|
49
49
|
k("input", {
|
|
50
50
|
value: l.value,
|
|
51
51
|
onInput: t[0] || (t[0] = (y) => l.value = y.target.value),
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u, w as _ } from "./xlsx-bT1p3YVR.js";
|
|
2
|
+
import { o as h, u as F } from "./app-EpEEb8EO.js";
|
|
2
3
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
3
|
-
import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as
|
|
4
|
-
function
|
|
4
|
+
import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as w } from "vue";
|
|
5
|
+
function O(e, t) {
|
|
5
6
|
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
|
|
6
7
|
}
|
|
7
8
|
function I(e, t) {
|
|
8
|
-
const r = t.map((o) => o.name), n = e.map((o) =>
|
|
9
|
+
const r = t.map((o) => o.name), n = e.map((o) => O(o, t));
|
|
9
10
|
return u.aoa_to_sheet([r, ...n]);
|
|
10
11
|
}
|
|
11
|
-
async function
|
|
12
|
+
async function D(e, t) {
|
|
12
13
|
const r = u.book_new();
|
|
13
14
|
for (const n of e) {
|
|
14
15
|
const o = I(
|
|
15
16
|
n.data,
|
|
16
|
-
n.columns.map((
|
|
17
|
-
name:
|
|
18
|
-
selector:
|
|
19
|
-
} :
|
|
17
|
+
n.columns.map((s) => typeof s == "string" ? {
|
|
18
|
+
name: s,
|
|
19
|
+
selector: s
|
|
20
|
+
} : s)
|
|
20
21
|
);
|
|
21
22
|
u.book_append_sheet(r, o, n.name);
|
|
22
23
|
}
|
|
@@ -26,17 +27,17 @@ const f = h((e, t) => {
|
|
|
26
27
|
const r = F(), n = y();
|
|
27
28
|
return {
|
|
28
29
|
async getInventoryForecast() {
|
|
29
|
-
var
|
|
30
|
-
const o = ((
|
|
30
|
+
var a;
|
|
31
|
+
const o = ((a = n.currentBusiness.value) == null ? void 0 : a._id) ?? "", s = r.currentLocationId ?? "", i = `${e.dataBackendUrl}/${o}/${s}/inventory-forecast`;
|
|
31
32
|
try {
|
|
32
33
|
return await t.get(i);
|
|
33
34
|
} catch {
|
|
34
35
|
return { skus: [] };
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
|
-
async getPurchaseOrderForecast(o,
|
|
38
|
+
async getPurchaseOrderForecast(o, s) {
|
|
38
39
|
var p;
|
|
39
|
-
const i = ((p = n.currentBusiness.value) == null ? void 0 : p._id) ?? "",
|
|
40
|
+
const i = ((p = n.currentBusiness.value) == null ? void 0 : p._id) ?? "", a = r.currentLocationId ?? "", d = `${e.dataBackendUrl}/${i}/${a}/purchase-order-forecast?days=${o}${s ? `&template_id=${s}` : ""}`;
|
|
40
41
|
try {
|
|
41
42
|
return await t.get(d);
|
|
42
43
|
} catch {
|
|
@@ -52,7 +53,7 @@ function $() {
|
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
const c = v($());
|
|
55
|
-
function
|
|
56
|
+
function N() {
|
|
56
57
|
return {
|
|
57
58
|
// state
|
|
58
59
|
get inventoryForecast() {
|
|
@@ -78,11 +79,11 @@ function D() {
|
|
|
78
79
|
}
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function L(e) {
|
|
82
83
|
let t = e.substring(e.indexOf("_") + 1);
|
|
83
84
|
return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
|
|
84
85
|
}
|
|
85
|
-
const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.",
|
|
86
|
+
const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.", T = /* @__PURE__ */ k({
|
|
86
87
|
__name: "PremiumBadge",
|
|
87
88
|
props: {
|
|
88
89
|
zIndex: {}
|
|
@@ -98,7 +99,7 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
98
99
|
content: B,
|
|
99
100
|
"z-index": t.zIndex
|
|
100
101
|
}, {
|
|
101
|
-
default:
|
|
102
|
+
default: w(() => [
|
|
102
103
|
m(n, { variant: "premium" })
|
|
103
104
|
]),
|
|
104
105
|
_: 1
|
|
@@ -108,8 +109,8 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
T as _,
|
|
113
|
+
D as e,
|
|
114
|
+
L as i,
|
|
115
|
+
N as u
|
|
115
116
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as D, computed as c, watch as X, resolveComponent as l, openBlock as W, createBlock as z, unref as h, createSlots as Z, withCtx as u, createElementVNode as f, normalizeClass as ee, createVNode as a, normalizeStyle as te, Teleport as oe, h as g } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { u as ne, a as ae, v as se } from "./app-EpEEb8EO.js";
|
|
3
|
+
import { u as le, _ as ie } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js";
|
|
4
|
+
import { useBreakpoints as re, useDialog as ce, useSnackbar as ue, components as B } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as me } from "./vue-i18n-CUznvVzc.js";
|
|
6
|
+
import { a as H } from "./date2-Dnc8Y81g.js";
|
|
7
|
+
const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, xe = /* @__PURE__ */ Q({
|
|
5
8
|
__name: "PublishView",
|
|
6
|
-
setup(
|
|
7
|
-
const { t } =
|
|
9
|
+
setup(ve) {
|
|
10
|
+
const { t } = me(), { breakpoints: x } = re(), n = ne(), A = ae(), S = se(), i = D(!1), m = c(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), R = le(), C = ce(), Y = ue(), N = c(() => n.locationsWithInventory), _ = c(() => x.value.xs || x.value.sm), $ = c(() => _.value ? 10 : 20);
|
|
8
11
|
X(
|
|
9
12
|
() => n._locations,
|
|
10
13
|
async () => {
|
|
@@ -25,7 +28,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
25
28
|
async function q(e) {
|
|
26
29
|
switch (e) {
|
|
27
30
|
case "publish":
|
|
28
|
-
|
|
31
|
+
C.open({
|
|
29
32
|
title: t("inventory.common.publish"),
|
|
30
33
|
message: "Are you sure you want to publish to all locations?",
|
|
31
34
|
primaryActions: { text: t("inventory.common.publish"), close: !0 },
|
|
@@ -45,19 +48,19 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
45
48
|
label: t("inventory.publish.actions.publishAll")
|
|
46
49
|
}
|
|
47
50
|
];
|
|
48
|
-
function
|
|
51
|
+
function K(e) {
|
|
49
52
|
switch (w.value = !1, e) {
|
|
50
53
|
case "publish":
|
|
51
54
|
console.log("publish all");
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
|
-
const
|
|
57
|
+
const j = [
|
|
55
58
|
{
|
|
56
59
|
id: "type",
|
|
57
60
|
header: () => t("inventory.publish.columns.type"),
|
|
58
61
|
enableSorting: !0,
|
|
59
62
|
cell(e) {
|
|
60
|
-
return g(
|
|
63
|
+
return g(B.FmChip, {
|
|
61
64
|
color: "primary",
|
|
62
65
|
label: e.row.original.type
|
|
63
66
|
});
|
|
@@ -75,7 +78,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
75
78
|
enableSorting: !0,
|
|
76
79
|
cell(e) {
|
|
77
80
|
var o, s;
|
|
78
|
-
return (o = e.row.original.inventory) != null && o.updatedAt ?
|
|
81
|
+
return (o = e.row.original.inventory) != null && o.updatedAt ? H((s = e.row.original.inventory) == null ? void 0 : s.updatedAt) : "";
|
|
79
82
|
}
|
|
80
83
|
},
|
|
81
84
|
{
|
|
@@ -103,12 +106,12 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
103
106
|
},
|
|
104
107
|
t(o ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
105
108
|
),
|
|
106
|
-
!o && !p ? g(
|
|
109
|
+
!o && !p ? g(B.FmButton, {
|
|
107
110
|
class: "tertiary",
|
|
108
111
|
variant: "secondary",
|
|
109
112
|
icon: "sync",
|
|
110
113
|
onClick: () => {
|
|
111
|
-
|
|
114
|
+
C.open({
|
|
112
115
|
title: t("inventory.common.publish"),
|
|
113
116
|
message: `Are you sure you want to publish this location "${e.row.original.name}"?`,
|
|
114
117
|
primaryActions: { text: t("inventory.common.publish"), close: !0 },
|
|
@@ -142,8 +145,8 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
142
145
|
// }
|
|
143
146
|
];
|
|
144
147
|
return (e, o) => {
|
|
145
|
-
const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"),
|
|
146
|
-
return W(), z(
|
|
148
|
+
const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"), G = l("FmTable"), J = l("FmCollapsibleTabs"), O = l("FmBottomSheet");
|
|
149
|
+
return W(), z(ie, {
|
|
147
150
|
title: h(t)("inventory.publish.title"),
|
|
148
151
|
actions: U.value,
|
|
149
152
|
"onClick:action": q
|
|
@@ -158,9 +161,9 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
158
161
|
}
|
|
159
162
|
])
|
|
160
163
|
}, [
|
|
161
|
-
a(
|
|
164
|
+
a(G, {
|
|
162
165
|
style: te(h(R).tableHeight),
|
|
163
|
-
"column-defs":
|
|
166
|
+
"column-defs": j,
|
|
164
167
|
"row-data": N.value,
|
|
165
168
|
loading: !h(n)._currentLocation || i.value,
|
|
166
169
|
"loading-text": "Loading",
|
|
@@ -169,19 +172,19 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
169
172
|
"list-row": u((r) => [
|
|
170
173
|
a(d, { row: r }, {
|
|
171
174
|
default: u((y) => {
|
|
172
|
-
var
|
|
175
|
+
var F, I, k, v, M, L, P, T, b, V;
|
|
173
176
|
return [
|
|
174
177
|
f("div", pe, [
|
|
175
178
|
f("div", de, [
|
|
176
179
|
a(p, {
|
|
177
|
-
render: (k = (
|
|
178
|
-
props: (M = (
|
|
180
|
+
render: (k = (I = (F = y.code) == null ? void 0 : F.column) == null ? void 0 : I.columnDef) == null ? void 0 : k.cell,
|
|
181
|
+
props: (M = (v = y.code) == null ? void 0 : v.getContext) == null ? void 0 : M.call(v)
|
|
179
182
|
}, null, 8, ["render", "props"])
|
|
180
183
|
]),
|
|
181
184
|
f("div", ye, [
|
|
182
185
|
a(p, {
|
|
183
186
|
render: (T = (P = (L = y.name) == null ? void 0 : L.column) == null ? void 0 : P.columnDef) == null ? void 0 : T.cell,
|
|
184
|
-
props: (V = (
|
|
187
|
+
props: (V = (b = y.name) == null ? void 0 : b.getContext) == null ? void 0 : V.call(b)
|
|
185
188
|
}, null, 8, ["render", "props"])
|
|
186
189
|
])
|
|
187
190
|
])
|
|
@@ -203,7 +206,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
203
206
|
a(J, {
|
|
204
207
|
class: "pb-8",
|
|
205
208
|
items: E,
|
|
206
|
-
"onUpdate:modelValue": o[0] || (o[0] = (r) =>
|
|
209
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => K(r))
|
|
207
210
|
})
|
|
208
211
|
]),
|
|
209
212
|
_: 1
|
|
@@ -217,7 +220,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
217
220
|
fn: u(() => [
|
|
218
221
|
a(s, {
|
|
219
222
|
variant: "info",
|
|
220
|
-
label: `Latest: ${h(
|
|
223
|
+
label: `Latest: ${h(H)(m.value)}`
|
|
221
224
|
}, null, 8, ["label"])
|
|
222
225
|
]),
|
|
223
226
|
key: "0"
|
|
@@ -227,5 +230,5 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
227
230
|
}
|
|
228
231
|
});
|
|
229
232
|
export {
|
|
230
|
-
|
|
233
|
+
xe as default
|
|
231
234
|
};
|
package/dist/{PurchaseOrderPrintPreview-DWxp3cFM.js → PurchaseOrderPrintPreview-Dy77yWDC.js}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineComponent as b, computed as m, ref as x, onMounted as f, openBlock as u, createElementBlock as n, createElementVNode as t, toDisplayString as e, normalizeStyle as g, createTextVNode as i, Fragment as o, createCommentVNode as p, renderList as v } from "vue";
|
|
2
2
|
import { useRoute as w } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { J as y } from "./app-EpEEb8EO.js";
|
|
4
|
+
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" }, N = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, B = { class: "text-right" }, H = { class: "text-right" }, I = { style: { "padding-top": "30px" } }, J = { valign: "bottom" }, M = { class: "header" }, z = { class: "caption" }, Q = {
|
|
5
6
|
class: "text-left",
|
|
6
7
|
style: { width: "20%" }
|
|
7
8
|
}, j = { class: "text-left" }, G = {
|
|
@@ -79,7 +80,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
79
80
|
])
|
|
80
81
|
])
|
|
81
82
|
]),
|
|
82
|
-
t("div",
|
|
83
|
+
t("div", q, [
|
|
83
84
|
t("table", null, [
|
|
84
85
|
l[10] || (l[10] = t("thead", { class: "item-header" }, [
|
|
85
86
|
t("tr", null, [
|
|
@@ -104,7 +105,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
104
105
|
], -1)),
|
|
105
106
|
t("tbody", null, [
|
|
106
107
|
(u(!0), n(o, null, v(s.value.items, (r, a) => (u(), n("tr", { key: a }, [
|
|
107
|
-
t("td",
|
|
108
|
+
t("td", L, e(r.code), 1),
|
|
108
109
|
t("td", U, e(r.description), 1),
|
|
109
110
|
t("td", V, e(r.quantity), 1),
|
|
110
111
|
t("td", B, e(r.unit), 1),
|
|
@@ -123,10 +124,10 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
123
124
|
style: { padding: "10px 30px" }
|
|
124
125
|
}, [
|
|
125
126
|
t("table", null, [
|
|
126
|
-
t("tr",
|
|
127
|
+
t("tr", J, [
|
|
127
128
|
t("td", null, [
|
|
128
|
-
t("div",
|
|
129
|
-
t("div",
|
|
129
|
+
t("div", M, "Ref: " + e(r.ref), 1),
|
|
130
|
+
t("div", z, e(r.createdAt), 1),
|
|
130
131
|
t("div", null, "Remark: " + e(r.remark), 1)
|
|
131
132
|
])
|
|
132
133
|
])
|
|
@@ -147,7 +148,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
147
148
|
])
|
|
148
149
|
]));
|
|
149
150
|
}
|
|
150
|
-
}),
|
|
151
|
+
}), lt = /* @__PURE__ */ k(W, [["__scopeId", "data-v-3cb85541"]]);
|
|
151
152
|
export {
|
|
152
|
-
|
|
153
|
+
lt as default
|
|
153
154
|
};
|