@feedmepos/mf-inventory-portal 1.0.37-dev.2 → 1.0.37
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-_SMozUEj.js → App-PCcAF8Xv.js} +1 -1
- package/dist/{ApprovalView-D55iBGg5.js → ApprovalView-CAF8rKoi.js} +19 -19
- package/dist/{BindingsDialog-Di_xTPkA.js → BindingsDialog-DwqG0Hsz.js} +4 -4
- package/dist/{BindingsPicker-BwIKt9Il.js → BindingsPicker-Q-I3VeNS.js} +1 -1
- package/dist/{BindingsTable-CMFvNSAH.js → BindingsTable-Dg9eIaTK.js} +4 -4
- package/dist/{ClosingDraftView-DXoi5cw9.js → ClosingDraftView-wGfktZWC.js} +26 -26
- package/dist/ClosingTemplateView-NRHvagkV.js +1804 -0
- package/dist/{DeliveryOrderPrintPreview-CkIPZo14.js → DeliveryOrderPrintPreview-B0XUNKJb.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BSzt53-l.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bgof7EWF.js} +11 -11
- package/dist/{FmMultiselectDialog-EpV0X6CI.js → FmMultiselectDialog-CzkgAIGY.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Cn3qOqJr.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CgU3fI7R.js} +21 -21
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BUQQL5kL.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BJ0tegHR.js} +1 -1
- package/dist/{IngredientGroupView-DvxOGAuo.js → IngredientGroupView-BcTQ0KqW.js} +2 -2
- package/dist/IngredientsView-Yj3W5zHy.js +1838 -0
- package/dist/{IntegrationView-B_EmS2-x.js → IntegrationView-JI6kjKNB.js} +69 -69
- package/dist/{InventoryBindingForm-B79lRAe6.js → InventoryBindingForm-DeEj_xzq.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DBsD7abQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BaNc5eeK.js} +24 -24
- package/dist/{InventoryBindingSummary-CmnSXYAW.js → InventoryBindingSummary-Bipyw3xO.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CDRN_Nrk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQBjpBNL.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BknocD4_.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DPwHQy_S.js} +10 -10
- package/dist/{PublishView-DNkUYpMh.js → PublishView-7XkvtNnX.js} +17 -17
- package/dist/{PurchaseOrderPrintPreview-D0UhIY8z.js → PurchaseOrderPrintPreview-eSOFS1g6.js} +12 -12
- package/dist/{ReceiveRequestView-DsBpjA9P.js → ReceiveRequestView-BuOj9nZG.js} +782 -797
- package/dist/{RecipeView-lpMLqWM8.js → RecipeView-Bmgrlys8.js} +3 -3
- package/dist/{StockView-CIgg_FTJ.js → StockView-By7lUolG.js} +6 -6
- package/dist/{SupplierView-fwzviqqM.js → SupplierView-BP4FxIE9.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-TYNgMCEs.js → TransferDetails.vue_vue_type_script_setup_true_lang-D7k3PiMo.js} +602 -604
- package/dist/{TransferTemplateView-CSy8pydr.js → TransferTemplateView-C6AXtV1p.js} +83 -83
- package/dist/{UnitView-CMOz7RLY.js → UnitView-CpJT9nbZ.js} +3 -3
- package/dist/{WarehouseView-B-1c6rRg.js → WarehouseView-bD9WOJAb.js} +1 -1
- package/dist/api/inventory.d.ts +0 -4
- package/dist/api/netsuite.d.ts +0 -7
- package/dist/{app-CFm28RQ_.js → app-8I_gNY_C.js} +61439 -61948
- package/dist/app.d.ts +0 -9
- package/dist/app.js +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +0 -1
- package/dist/components/row-action.enum.d.ts +1 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +0 -1
- package/dist/{decimal-UyI93Y1E.js → decimal-XS-oUZ58.js} +1 -1
- package/dist/format-unit-display-Bqbyy60P.js +1230 -0
- package/dist/{index-DliBh-3z.js → index-ByjAx-mG.js} +1 -1
- package/dist/{index-BWYshfa3.js → index-CxWZtTgh.js} +1 -1
- package/dist/{stock-A60nU_aj.js → stock-Di0sHyh2.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +1 -7
- package/dist/stores/inventory.d.ts +0 -9
- package/dist/{supplier-lcKFLaW5.js → supplier-BOti7LMg.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B17VDJ0o.js → use-ingredient-select-dialog-DHNa-mhW.js} +1 -1
- package/dist/{use-inventory-binding-dialog-sj5lERBj.js → use-inventory-binding-dialog-CvyHpZHX.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1 -4
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -24
- 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 -16
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +0 -12
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +0 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +0 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +0 -2
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +0 -4
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +0 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +0 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -4
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -24
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +0 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +0 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1 -16
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -12
- package/dist/{vue-i18n-CZSieSF0.js → vue-i18n-y6eJldrX.js} +552 -552
- package/package.json +3 -3
- package/dist/ClosingTemplateView-DaPOj50P.js +0 -1849
- package/dist/IngredientsView-BhFDYfnd.js +0 -1851
- package/dist/api/duplicate-template.d.ts +0 -5
- package/dist/format-unit-display-CNki_g8Q.js +0 -1275
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as ae, onMounted as Te, computed as E, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as
|
|
2
|
-
import { K as We,
|
|
1
|
+
import { defineComponent as ae, onMounted as Te, computed as E, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as P, renderSlot as xe, withDirectives as Ue, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as S, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
|
|
2
|
+
import { K as We, aE as he, t as Ne, I as it, aF as ut, aG as dt, j as se, aH as mt, b as Ge, a as Ke, Q as Ee, c as ge, m as ke, Y as be, T as ye, A as we, M as pt, G as ee, u as Ze, ai as ct, a0 as ft, E as Je, e as ue, aI as ve, af as yt, s as vt, a7 as bt, B as gt, i as Le, _ as ht, C as xt } from "./app-8I_gNY_C.js";
|
|
3
3
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-
|
|
4
|
+
import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-Bqbyy60P.js";
|
|
5
5
|
import { components as de, useSnackbar as Ct, useProxiedModel as Xe, useBreakpoints as Ft } from "@feedmepos/ui-library";
|
|
6
6
|
import { defineStore as It, storeToRefs as He } from "pinia";
|
|
7
|
-
import { _ as St, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as Rt } from "./supplier-
|
|
10
|
-
import { u as
|
|
11
|
-
const
|
|
7
|
+
import { _ as St, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CgU3fI7R.js";
|
|
8
|
+
import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bgof7EWF.js";
|
|
9
|
+
import { u as Rt } from "./supplier-BOti7LMg.js";
|
|
10
|
+
import { u as Pt } from "./use-ingredient-select-dialog-DHNa-mhW.js";
|
|
11
|
+
const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Et = { class: "flex-1" }, Lt = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
|
|
12
12
|
__name: "FmMinMaxInput",
|
|
13
13
|
props: {
|
|
14
14
|
rules: {},
|
|
@@ -79,7 +79,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
79
79
|
w.max = null;
|
|
80
80
|
v.min = w.min, v.max = w.max;
|
|
81
81
|
});
|
|
82
|
-
const F = Symbol.for("fm:form-state"), c = ot(F, null), o = E(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = E(() => k.value || T.value),
|
|
82
|
+
const F = Symbol.for("fm:form-state"), c = ot(F, null), o = E(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = E(() => k.value || T.value), U = E(() => [...[
|
|
83
83
|
function() {
|
|
84
84
|
return typeof a(u.value) == "string" || typeof a(x.value) == "string" ? "Must be a number" : !0;
|
|
85
85
|
},
|
|
@@ -89,7 +89,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
89
89
|
], ...h.rules ?? []]);
|
|
90
90
|
return (d, y) => {
|
|
91
91
|
const w = V("FmLabel"), i = V("FmField"), g = V("FmFormGroup");
|
|
92
|
-
return $(), N("div",
|
|
92
|
+
return $(), N("div", Ut, [
|
|
93
93
|
e("div", Bt, [
|
|
94
94
|
e("div", qt, [
|
|
95
95
|
m(w, {
|
|
@@ -100,12 +100,12 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
100
100
|
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
101
101
|
]),
|
|
102
102
|
m(i, { focused: R.value }, {
|
|
103
|
-
default:
|
|
103
|
+
default: P(() => [
|
|
104
104
|
e("div", Nt, [
|
|
105
105
|
xe(d.$slots, "prepend"),
|
|
106
106
|
y[6] || (y[6] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Min.", -1)),
|
|
107
107
|
e("div", Et, [
|
|
108
|
-
|
|
108
|
+
Ue(e("input", {
|
|
109
109
|
type: "text",
|
|
110
110
|
ref_key: "minInputRef",
|
|
111
111
|
ref: f,
|
|
@@ -124,7 +124,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
124
124
|
y[7] || (y[7] = e("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
125
125
|
y[8] || (y[8] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Max.", -1)),
|
|
126
126
|
e("div", Lt, [
|
|
127
|
-
|
|
127
|
+
Ue(e("input", {
|
|
128
128
|
type: "text",
|
|
129
129
|
ref_key: "maxInputRef",
|
|
130
130
|
ref: b,
|
|
@@ -150,7 +150,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
150
150
|
class: "flex-1",
|
|
151
151
|
"model-value": d.modelValue,
|
|
152
152
|
info: d.labelInfo,
|
|
153
|
-
rules:
|
|
153
|
+
rules: U.value,
|
|
154
154
|
"helper-text": d.helperText,
|
|
155
155
|
"helper-state": d.helperState
|
|
156
156
|
}, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"])
|
|
@@ -185,7 +185,7 @@ const et = It("netsuite-custom-field-helper", () => {
|
|
|
185
185
|
}
|
|
186
186
|
let x = v.code;
|
|
187
187
|
if (p.isEnabled) {
|
|
188
|
-
const c = p.
|
|
188
|
+
const c = p.getItemPKTCode(a, (F = r.measurement) == null ? void 0 : F.id);
|
|
189
189
|
c && (x = c);
|
|
190
190
|
}
|
|
191
191
|
s({
|
|
@@ -287,9 +287,9 @@ function Yt(p, h = {}) {
|
|
|
287
287
|
minSize: 200,
|
|
288
288
|
cell(c) {
|
|
289
289
|
var R;
|
|
290
|
-
const o = c.row.original, f = a.skuById[o.sku._id], b = a.unitById[(R = f.unit) == null ? void 0 : R._id], k = b.measurements.find((
|
|
290
|
+
const o = c.row.original, f = a.skuById[o.sku._id], b = a.unitById[(R = f.unit) == null ? void 0 : R._id], k = b.measurements.find((U) => {
|
|
291
291
|
var d;
|
|
292
|
-
return ((d = o.measurement) == null ? void 0 : d.id) ===
|
|
292
|
+
return ((d = o.measurement) == null ? void 0 : d.id) === U.id;
|
|
293
293
|
}), T = o.sku.unit._id !== f.unit._id || !b || o.measurement && !k;
|
|
294
294
|
return j(St, {
|
|
295
295
|
style: {
|
|
@@ -303,11 +303,11 @@ function Yt(p, h = {}) {
|
|
|
303
303
|
disabled: p.disabled,
|
|
304
304
|
key: o.sku._id,
|
|
305
305
|
unit: b,
|
|
306
|
-
"onUpdate:modelValue": (
|
|
306
|
+
"onUpdate:modelValue": (U) => {
|
|
307
307
|
u.validateUnitInput(
|
|
308
308
|
o,
|
|
309
309
|
f,
|
|
310
|
-
|
|
310
|
+
U,
|
|
311
311
|
(d) => {
|
|
312
312
|
p.updateItem({
|
|
313
313
|
...o,
|
|
@@ -492,7 +492,7 @@ function Yt(p, h = {}) {
|
|
|
492
492
|
})
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" },
|
|
495
|
+
const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" }, Zt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
|
|
496
496
|
key: 0,
|
|
497
497
|
class: "flex gap-8 w-full"
|
|
498
498
|
}, so = { class: "flex-1 flex flex-col gap-4" }, lo = { class: "flex-1 flex flex-col gap-4" }, no = { class: "flex gap-8 w-full" }, ao = { class: "flex-1 flex flex-col gap-4" }, ro = /* @__PURE__ */ ae({
|
|
@@ -507,13 +507,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
507
507
|
return a;
|
|
508
508
|
}
|
|
509
509
|
return (a, r) => {
|
|
510
|
-
var u, x, F, c, o, f, b, k, T, R,
|
|
510
|
+
var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, M, _, W, te, L, B, Z, l, n, C, q, z, G;
|
|
511
511
|
const s = V("FmLabel");
|
|
512
512
|
return $(), N("div", Wt, [
|
|
513
513
|
e("div", Gt, [
|
|
514
514
|
e("div", Kt, [
|
|
515
|
-
e("span",
|
|
516
|
-
e("span",
|
|
515
|
+
e("span", Zt, " (" + S(a.row.original.sku.code) + ") ", 1),
|
|
516
|
+
e("span", Jt, S(a.row.original.sku.name), 1)
|
|
517
517
|
]),
|
|
518
518
|
e("div", null, [
|
|
519
519
|
m(t(ee), {
|
|
@@ -538,7 +538,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
538
538
|
label: t(h)(`inventory.transfer.form.items.table.${t(Q).Name}`)
|
|
539
539
|
}, null, 8, ["label"]),
|
|
540
540
|
m(t(ee), {
|
|
541
|
-
render: (y = (d = (
|
|
541
|
+
render: (y = (d = (U = a.cellByColId[t(Q).Name]) == null ? void 0 : U.column) == null ? void 0 : d.columnDef) == null ? void 0 : y.cell,
|
|
542
542
|
props: (i = (w = a.cellByColId[t(Q).Name]) == null ? void 0 : w.getContext) == null ? void 0 : i.call(w)
|
|
543
543
|
}, null, 8, ["render", "props"]),
|
|
544
544
|
r[1] || (r[1] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -561,7 +561,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
561
561
|
}, null, 8, ["label"]),
|
|
562
562
|
m(t(ee), {
|
|
563
563
|
render: (B = (L = (te = a.cellByColId[t(Q).Step]) == null ? void 0 : te.column) == null ? void 0 : L.columnDef) == null ? void 0 : B.cell,
|
|
564
|
-
props: (l = (
|
|
564
|
+
props: (l = (Z = a.cellByColId[t(Q).Step]) == null ? void 0 : Z.getContext) == null ? void 0 : l.call(Z)
|
|
565
565
|
}, null, 8, ["render", "props"]),
|
|
566
566
|
r[3] || (r[3] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
567
567
|
])
|
|
@@ -637,7 +637,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
637
637
|
},
|
|
638
638
|
emits: ["update:disabled"],
|
|
639
639
|
setup(p, { expose: h, emit: v }) {
|
|
640
|
-
const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F =
|
|
640
|
+
const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Ze(), c = Ke(), o = Rt(), f = ge(), b = Ge(), k = et();
|
|
641
641
|
Ce(
|
|
642
642
|
() => s.purchaseOrder.items.length,
|
|
643
643
|
() => {
|
|
@@ -664,7 +664,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
664
664
|
const n = typeof ((q = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : q.internal) == "string" ? X.TRANSFER : X.PURCHASE;
|
|
665
665
|
l !== n && (s.purchaseOrder.supplier = l === X.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
|
|
666
666
|
}
|
|
667
|
-
}),
|
|
667
|
+
}), U = E(() => T.transferLocationOptions.value), d = E({
|
|
668
668
|
get() {
|
|
669
669
|
var l;
|
|
670
670
|
return (l = s.purchaseOrder.supplier) == null ? void 0 : l._id;
|
|
@@ -772,8 +772,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
})
|
|
775
|
-
), L = E(() => te.columnDefs.value), { promptSelectIngredients: B } =
|
|
776
|
-
async function
|
|
775
|
+
), L = E(() => te.columnDefs.value), { promptSelectIngredients: B } = Pt();
|
|
776
|
+
async function Z() {
|
|
777
777
|
const n = c.skus.map((D) => ({
|
|
778
778
|
label: D.name,
|
|
779
779
|
sublabel: D.code,
|
|
@@ -787,25 +787,25 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
787
787
|
const A = c.skuById[D], K = C.find((H) => H.sku._id === A._id);
|
|
788
788
|
if (K)
|
|
789
789
|
return K;
|
|
790
|
-
const
|
|
790
|
+
const J = { amount: 1, precision: be(A.unit) };
|
|
791
791
|
let I = {
|
|
792
792
|
id: f.usePurchaseOrderV2 ? crypto.randomUUID() : void 0,
|
|
793
793
|
sku: A,
|
|
794
794
|
code: A.code,
|
|
795
795
|
name: A.name,
|
|
796
|
-
quantity:
|
|
797
|
-
minimumQuantity:
|
|
796
|
+
quantity: J,
|
|
797
|
+
minimumQuantity: J,
|
|
798
798
|
// maximumQuantity: adjustmentAmountMultiplyDecimal(minimumQuantity, {
|
|
799
799
|
// amount: 100,
|
|
800
800
|
// precision: 0
|
|
801
801
|
// }),
|
|
802
|
-
quantityStep:
|
|
802
|
+
quantityStep: J
|
|
803
803
|
};
|
|
804
804
|
return k.validateUnitInput(
|
|
805
805
|
I,
|
|
806
806
|
A,
|
|
807
807
|
{
|
|
808
|
-
amount:
|
|
808
|
+
amount: J,
|
|
809
809
|
measurement: null
|
|
810
810
|
},
|
|
811
811
|
(H) => {
|
|
@@ -821,7 +821,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
821
821
|
if (A.length > 0)
|
|
822
822
|
G.push(...A);
|
|
823
823
|
else {
|
|
824
|
-
const K = q.find((
|
|
824
|
+
const K = q.find((J) => J.sku._id === D);
|
|
825
825
|
K && G.push(K);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
@@ -835,8 +835,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
835
835
|
class: "flex flex-col gap-32",
|
|
836
836
|
disabled: l.disabled
|
|
837
837
|
}, {
|
|
838
|
-
default:
|
|
839
|
-
var
|
|
838
|
+
default: P(() => {
|
|
839
|
+
var J;
|
|
840
840
|
return [
|
|
841
841
|
e("div", co, [
|
|
842
842
|
e("div", fo, [
|
|
@@ -865,9 +865,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
865
865
|
sublabel: t(T).locationOptionsTypeTransfer.value.length ? void 0 : t(u)("inventory.transfer.form.noLocationAvailable")
|
|
866
866
|
}
|
|
867
867
|
],
|
|
868
|
-
rules: [t(we)(1)(
|
|
868
|
+
rules: [t(we)(1)(U.value)]
|
|
869
869
|
}, {
|
|
870
|
-
default:
|
|
870
|
+
default: P(() => [
|
|
871
871
|
e("span", {
|
|
872
872
|
class: re([
|
|
873
873
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
@@ -881,18 +881,18 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
881
881
|
label: R.value === t(X).PURCHASE ? t(u)("inventory.transfer.form.purchaseFrom") : t(u)("inventory.transfer.form.transferFrom"),
|
|
882
882
|
modelValue: d.value,
|
|
883
883
|
"onUpdate:modelValue": n[2] || (n[2] = (I) => d.value = I),
|
|
884
|
-
items:
|
|
884
|
+
items: U.value
|
|
885
885
|
}, {
|
|
886
|
-
"menu-wrapper":
|
|
886
|
+
"menu-wrapper": P((I) => {
|
|
887
887
|
var H;
|
|
888
888
|
return [
|
|
889
889
|
m(At, Qe(I, {
|
|
890
|
-
items:
|
|
890
|
+
items: U.value,
|
|
891
891
|
"model-value": (H = l.modelValue.purchaseOrder.supplier) == null ? void 0 : H._id
|
|
892
892
|
}), null, 16, ["items", "model-value"])
|
|
893
893
|
];
|
|
894
894
|
}),
|
|
895
|
-
default:
|
|
895
|
+
default: P(() => {
|
|
896
896
|
var I;
|
|
897
897
|
return [
|
|
898
898
|
e("span", {
|
|
@@ -900,7 +900,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
900
900
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
901
901
|
l.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
902
902
|
])
|
|
903
|
-
}, S((I =
|
|
903
|
+
}, S((I = U.value.find((H) => H.value === d.value)) == null ? void 0 : I.label), 3)
|
|
904
904
|
];
|
|
905
905
|
}),
|
|
906
906
|
_: 1
|
|
@@ -943,7 +943,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
943
943
|
e("div", bo, [
|
|
944
944
|
m(A, {
|
|
945
945
|
"model-value": [
|
|
946
|
-
(
|
|
946
|
+
(J = a.modelValue.purchaseOrder.supplier) == null ? void 0 : J._id,
|
|
947
947
|
...a.modelValue.locations ?? []
|
|
948
948
|
].join(","),
|
|
949
949
|
rules: [O]
|
|
@@ -967,7 +967,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
967
967
|
"prepend-icon": "add",
|
|
968
968
|
variant: "plain",
|
|
969
969
|
class: "border-2 rounded-lg border-fm-color-primary",
|
|
970
|
-
onClick: n[5] || (n[5] = (I) =>
|
|
970
|
+
onClick: n[5] || (n[5] = (I) => Z()),
|
|
971
971
|
size: "md"
|
|
972
972
|
}, null, 8, ["disabled", "label"])
|
|
973
973
|
]),
|
|
@@ -997,7 +997,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
997
997
|
"hide-footer": "",
|
|
998
998
|
"page-size": t(s).purchaseOrder.items.length
|
|
999
999
|
}, {
|
|
1000
|
-
"table-row":
|
|
1000
|
+
"table-row": P((I) => [
|
|
1001
1001
|
m(po, {
|
|
1002
1002
|
row: I,
|
|
1003
1003
|
errorMessage: x.value[I.index],
|
|
@@ -1005,12 +1005,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1005
1005
|
disabled: l.disabled
|
|
1006
1006
|
}, null, 8, ["row", "errorMessage", "disabled"])
|
|
1007
1007
|
]),
|
|
1008
|
-
"list-row":
|
|
1009
|
-
($(), le(
|
|
1008
|
+
"list-row": P((I) => [
|
|
1009
|
+
($(), le(Je, {
|
|
1010
1010
|
row: I,
|
|
1011
1011
|
key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
|
|
1012
1012
|
}, {
|
|
1013
|
-
default:
|
|
1013
|
+
default: P((H) => [
|
|
1014
1014
|
m(ro, {
|
|
1015
1015
|
row: I,
|
|
1016
1016
|
"cell-by-col-id": H,
|
|
@@ -1061,10 +1061,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1061
1061
|
"onUpdate:modelValue": x[2] || (x[2] = (o) => r.value = o),
|
|
1062
1062
|
overlay: !0
|
|
1063
1063
|
}, {
|
|
1064
|
-
"dialog-header":
|
|
1064
|
+
"dialog-header": P(() => [
|
|
1065
1065
|
e("div", null, S(v.confirmTitle || "Confirm"), 1)
|
|
1066
1066
|
]),
|
|
1067
|
-
"dialog-footer":
|
|
1067
|
+
"dialog-footer": P(() => [
|
|
1068
1068
|
e("div", Co, [
|
|
1069
1069
|
m(F, {
|
|
1070
1070
|
label: "Cancel",
|
|
@@ -1079,7 +1079,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1079
1079
|
})
|
|
1080
1080
|
])
|
|
1081
1081
|
]),
|
|
1082
|
-
default:
|
|
1082
|
+
default: P(() => [
|
|
1083
1083
|
xe(u.$slots, "dialog-content", {}, () => [
|
|
1084
1084
|
ne(S(v.confirmMessage || "Are you sure you want to proceed?"), 1)
|
|
1085
1085
|
])
|
|
@@ -1190,7 +1190,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
async function
|
|
1193
|
+
async function U() {
|
|
1194
1194
|
var g, O;
|
|
1195
1195
|
const i = o.value;
|
|
1196
1196
|
if (i) {
|
|
@@ -1219,7 +1219,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1219
1219
|
case ue.CREATE:
|
|
1220
1220
|
return R();
|
|
1221
1221
|
case ue.UPDATE:
|
|
1222
|
-
return
|
|
1222
|
+
return U();
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
function y() {
|
|
@@ -1235,12 +1235,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1235
1235
|
"close-button": "",
|
|
1236
1236
|
"max-width": 1600
|
|
1237
1237
|
}, {
|
|
1238
|
-
"side-sheet-header":
|
|
1238
|
+
"side-sheet-header": P(() => [
|
|
1239
1239
|
e("div", Io, [
|
|
1240
1240
|
e("div", So, S(k.value), 1)
|
|
1241
1241
|
])
|
|
1242
1242
|
]),
|
|
1243
|
-
default:
|
|
1243
|
+
default: P(() => [
|
|
1244
1244
|
($(), le(To, {
|
|
1245
1245
|
class: "w-full",
|
|
1246
1246
|
ref_key: "formRef",
|
|
@@ -1253,7 +1253,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1253
1253
|
key: f.value
|
|
1254
1254
|
}, null, 8, ["model-value", "disabled"]))
|
|
1255
1255
|
]),
|
|
1256
|
-
"side-sheet-footer":
|
|
1256
|
+
"side-sheet-footer": P(() => [
|
|
1257
1257
|
e("div", Mo, [
|
|
1258
1258
|
m(Fo, {
|
|
1259
1259
|
loading: b.value,
|
|
@@ -1261,7 +1261,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1261
1261
|
"confirm-title": `Save ${a.mode === t(ue).CREATE ? "Template" : "Changes"}`,
|
|
1262
1262
|
onConfirm: y
|
|
1263
1263
|
}, {
|
|
1264
|
-
"dialog-content":
|
|
1264
|
+
"dialog-content": P(() => g[4] || (g[4] = [
|
|
1265
1265
|
e("div", { class: "fm-typo-en-body-md-400 bg-fm-color-primary-oats p-8 rounded" }, [
|
|
1266
1266
|
ne(" Warning: This action "),
|
|
1267
1267
|
e("span", { class: "text-fm-color-system-error-300" }, "will not"),
|
|
@@ -1282,7 +1282,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1282
1282
|
}, 8, ["modelValue"]);
|
|
1283
1283
|
};
|
|
1284
1284
|
}
|
|
1285
|
-
}), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" },
|
|
1285
|
+
}), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" }, Po = { class: "flex flex-col gap-4" }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bo = { class: "flex gap-1" }, qo = { class: "fm-typo-en-body-lg-600" }, No = {
|
|
1286
1286
|
key: 0,
|
|
1287
1287
|
class: "flex flex-col gap-4"
|
|
1288
1288
|
}, Eo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Lo = { class: "flex gap-1" }, zo = { class: "fm-typo-en-body-lg-600" }, Ho = {
|
|
@@ -1294,7 +1294,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1294
1294
|
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Go = { class: "fm-typo-en-body-lg-600" }, Ko = {
|
|
1295
1295
|
key: 3,
|
|
1296
1296
|
class: "flex flex-col gap-4"
|
|
1297
|
-
},
|
|
1297
|
+
}, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = { class: "fm-typo-en-body-lg-600" }, Xo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex w-full gap-4" }, ss = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, ls = { class: "fm-typo-en-body-lg-600 shrink-0" }, ns = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, as = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, rs = {
|
|
1298
1298
|
key: 0,
|
|
1299
1299
|
class: "shrink-0 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
1300
1300
|
}, is = {
|
|
@@ -1322,7 +1322,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1322
1322
|
), o = Y(!0), f = Xe(v, "show");
|
|
1323
1323
|
return (b, k) => {
|
|
1324
1324
|
var g;
|
|
1325
|
-
const T = V("FmMenuDivider"), R = V("FmCard"),
|
|
1325
|
+
const T = V("FmMenuDivider"), R = V("FmCard"), U = V("FmIcon"), d = V("FmTextField"), y = V("FmTable"), w = V("FmButton"), i = V("FmSideSheet");
|
|
1326
1326
|
return $(), le(i, {
|
|
1327
1327
|
header: t(s)("inventory.transfer.template.details.view", { template: (g = b.template) == null ? void 0 : g.name }),
|
|
1328
1328
|
modelValue: t(f),
|
|
@@ -1331,7 +1331,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1331
1331
|
"close-button": "",
|
|
1332
1332
|
"max-width": 1200
|
|
1333
1333
|
}, {
|
|
1334
|
-
default:
|
|
1334
|
+
default: P(() => {
|
|
1335
1335
|
var O, M;
|
|
1336
1336
|
return [
|
|
1337
1337
|
e("div", Oo, [
|
|
@@ -1340,8 +1340,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1340
1340
|
variant: "outlined",
|
|
1341
1341
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
1342
1342
|
}, {
|
|
1343
|
-
default:
|
|
1344
|
-
var _, W, te, L, B,
|
|
1343
|
+
default: P(() => {
|
|
1344
|
+
var _, W, te, L, B, Z, l, n, C;
|
|
1345
1345
|
return [
|
|
1346
1346
|
e("div", Do, [
|
|
1347
1347
|
e("div", Vo, S(t(s)("inventory.transfer.template.details.templateSummary")), 1),
|
|
@@ -1351,8 +1351,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1351
1351
|
]),
|
|
1352
1352
|
m(T),
|
|
1353
1353
|
e("div", Ro, [
|
|
1354
|
-
e("div",
|
|
1355
|
-
e("div",
|
|
1354
|
+
e("div", Po, [
|
|
1355
|
+
e("div", Uo, [
|
|
1356
1356
|
e("div", Bo, S(t(s)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
1357
1357
|
]),
|
|
1358
1358
|
e("div", qo, S(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
|
|
@@ -1370,15 +1370,15 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1370
1370
|
])) : oe("", !0),
|
|
1371
1371
|
(B = (L = u.value) == null ? void 0 : L.supplier) != null && B.name ? ($(), N("div", Ho, [
|
|
1372
1372
|
e("div", jo, S(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
1373
|
-
e("div", Qo, S((l = (
|
|
1373
|
+
e("div", Qo, S((l = (Z = u.value) == null ? void 0 : Z.supplier) == null ? void 0 : l.name), 1)
|
|
1374
1374
|
])) : oe("", !0),
|
|
1375
1375
|
(n = u.value) != null && n.ref ? ($(), N("div", Yo, [
|
|
1376
1376
|
e("div", Wo, S(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
1377
1377
|
e("div", Go, S(u.value.ref), 1)
|
|
1378
1378
|
])) : oe("", !0),
|
|
1379
1379
|
(C = u.value) != null && C.remark ? ($(), N("div", Ko, [
|
|
1380
|
-
e("div",
|
|
1381
|
-
e("div",
|
|
1380
|
+
e("div", Zo, S(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
1381
|
+
e("div", Jo, S(u.value.remark), 1)
|
|
1382
1382
|
])) : oe("", !0)
|
|
1383
1383
|
])
|
|
1384
1384
|
];
|
|
@@ -1403,7 +1403,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1403
1403
|
_.totalCost && t(r).enableTotalCost ? ($(), N("div", rs, " (" + S(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
|
|
1404
1404
|
]),
|
|
1405
1405
|
t(wt)(_) ? ($(), N("div", is, [
|
|
1406
|
-
m(
|
|
1406
|
+
m(U, {
|
|
1407
1407
|
name: "error",
|
|
1408
1408
|
color: "system-error-300",
|
|
1409
1409
|
size: "sm"
|
|
@@ -1439,7 +1439,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1439
1439
|
])
|
|
1440
1440
|
];
|
|
1441
1441
|
}),
|
|
1442
|
-
"side-sheet-footer":
|
|
1442
|
+
"side-sheet-footer": P(() => [
|
|
1443
1443
|
e("div", ms, [
|
|
1444
1444
|
m(w, {
|
|
1445
1445
|
label: t(s)("common.edit"),
|
|
@@ -1455,11 +1455,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1455
1455
|
}), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, $s = /* @__PURE__ */ ae({
|
|
1456
1456
|
__name: "TransferTemplateView",
|
|
1457
1457
|
setup(p) {
|
|
1458
|
-
const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = Tt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k =
|
|
1458
|
+
const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = Tt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Ze(), { breakpoints: T } = Ft();
|
|
1459
1459
|
Te(F.fetchTemplates);
|
|
1460
1460
|
const R = E(
|
|
1461
1461
|
() => f.value || c.value || !k._currentLocation
|
|
1462
|
-
),
|
|
1462
|
+
), U = E(() => o.value), d = Y(""), y = E(() => T.value.xs || T.value.sm), w = E(() => y.value ? 10 : 20);
|
|
1463
1463
|
function i(M) {
|
|
1464
1464
|
switch (M) {
|
|
1465
1465
|
case Le.Add:
|
|
@@ -1506,7 +1506,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1506
1506
|
actions: O.value,
|
|
1507
1507
|
"onClick:action": i
|
|
1508
1508
|
}, {
|
|
1509
|
-
default:
|
|
1509
|
+
default: P(() => {
|
|
1510
1510
|
var te;
|
|
1511
1511
|
return [
|
|
1512
1512
|
e("div", {
|
|
@@ -1526,26 +1526,26 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1526
1526
|
($(), le(W, {
|
|
1527
1527
|
style: _e(t(b).tableHeight),
|
|
1528
1528
|
"column-defs": t(F).columnDefs,
|
|
1529
|
-
"row-data":
|
|
1529
|
+
"row-data": U.value,
|
|
1530
1530
|
"search-value": d.value,
|
|
1531
1531
|
loading: R.value,
|
|
1532
1532
|
key: (te = t(k)._currentLocation) == null ? void 0 : te.dbName,
|
|
1533
1533
|
onRowClick: _[1] || (_[1] = (L) => t(a)(L.original)),
|
|
1534
1534
|
"page-size": w.value
|
|
1535
1535
|
}, {
|
|
1536
|
-
"list-row":
|
|
1537
|
-
m(
|
|
1536
|
+
"list-row": P((L) => [
|
|
1537
|
+
m(Je, {
|
|
1538
1538
|
row: L,
|
|
1539
1539
|
onRowClick: (B) => t(a)(B)
|
|
1540
1540
|
}, {
|
|
1541
|
-
default:
|
|
1542
|
-
var
|
|
1541
|
+
default: P((B) => {
|
|
1542
|
+
var Z, l, n, C, q, z, G, D, A, K, J, I, H, ie, Fe, Ie, Se, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Pe;
|
|
1543
1543
|
return [
|
|
1544
1544
|
e("div", cs, [
|
|
1545
1545
|
e("div", fs, [
|
|
1546
1546
|
e("div", ys, [
|
|
1547
1547
|
m(t(ee), {
|
|
1548
|
-
render: (n = (l = (
|
|
1548
|
+
render: (n = (l = (Z = B._id) == null ? void 0 : Z.column) == null ? void 0 : l.columnDef) == null ? void 0 : n.cell,
|
|
1549
1549
|
props: (q = (C = B._id) == null ? void 0 : C.getContext) == null ? void 0 : q.call(C)
|
|
1550
1550
|
}, null, 8, ["render", "props"])
|
|
1551
1551
|
]),
|
|
@@ -1557,7 +1557,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1557
1557
|
]),
|
|
1558
1558
|
e("div", bs, [
|
|
1559
1559
|
m(t(ee), {
|
|
1560
|
-
render: (H = (I = (
|
|
1560
|
+
render: (H = (I = (J = B.supplier) == null ? void 0 : J.column) == null ? void 0 : I.columnDef) == null ? void 0 : H.cell,
|
|
1561
1561
|
props: (Fe = (ie = B.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Fe.call(ie)
|
|
1562
1562
|
}, null, 8, ["render", "props"])
|
|
1563
1563
|
]),
|
|
@@ -1573,7 +1573,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1573
1573
|
e("div", null, [
|
|
1574
1574
|
m(t(ee), {
|
|
1575
1575
|
render: (Re = (Ae = (Ve = B.type) == null ? void 0 : Ve.column) == null ? void 0 : Ae.columnDef) == null ? void 0 : Re.cell,
|
|
1576
|
-
props: (
|
|
1576
|
+
props: (Pe = (fe = B.type) == null ? void 0 : fe.getContext) == null ? void 0 : Pe.call(fe)
|
|
1577
1577
|
}, null, 8, ["render", "props"])
|
|
1578
1578
|
])
|
|
1579
1579
|
])
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as G, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
|
|
2
|
-
import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, Q as fe, m as j, A as ye, j as J, T as be, V as ge, q as oe, u as xe, b as _e, B as he, _ as Ve, C as Ue, E as we, G as Ce } from "./app-
|
|
2
|
+
import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, Q as fe, m as j, A as ye, j as J, T as be, V as ge, q as oe, u as xe, b as _e, B as he, _ as Ve, C as Ue, E as we, G as Ce } from "./app-8I_gNY_C.js";
|
|
3
3
|
import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Fe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { defineStore as $e, storeToRefs as Ie } from "pinia";
|
|
6
6
|
import { useI18n as O } from "@feedmepos/mf-common";
|
|
7
|
-
import { F as De } from "./decimal-
|
|
8
|
-
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { F as De } from "./decimal-XS-oUZ58.js";
|
|
8
|
+
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQBjpBNL.js";
|
|
9
9
|
const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as R, createElementBlock as q, toRaw as ge, reactive as $e, createElementVNode as g, toDisplayString as T, unref as c, createVNode as _, resolveComponent as N, createSlots as Se, withCtx as B, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Pe, normalizeStyle as Re } from "vue";
|
|
2
|
-
import { a3 as Ue,
|
|
2
|
+
import { a3 as Ue, ar as Ee, as as Te, h as Le, D as Ve, i as Q, f as O, at as Ne, aj as Be, m as L, e as E, S as qe, u as ze, B as Ie, _ as je, C as Ge, E as Oe, G as X } from "./app-8I_gNY_C.js";
|
|
3
3
|
import { useCoreStore as Me, useI18n as j } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as Ke, useDialog as Ce, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as He } from "@feedmepos/ui-library";
|
|
5
5
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|
package/dist/api/inventory.d.ts
CHANGED
|
@@ -221,7 +221,6 @@ export declare const useInventoryApi: () => {
|
|
|
221
221
|
}[];
|
|
222
222
|
}[] | null | undefined;
|
|
223
223
|
sku?: {
|
|
224
|
-
isInactive?: boolean | null | undefined;
|
|
225
224
|
trackingMeasurement?: string | null | undefined;
|
|
226
225
|
convert?: {
|
|
227
226
|
measurement?: string | null | undefined;
|
|
@@ -349,7 +348,6 @@ export declare const useInventoryApi: () => {
|
|
|
349
348
|
}[];
|
|
350
349
|
}[] | null | undefined;
|
|
351
350
|
sku?: {
|
|
352
|
-
isInactive?: boolean | null | undefined;
|
|
353
351
|
trackingMeasurement?: string | null | undefined;
|
|
354
352
|
convert?: {
|
|
355
353
|
measurement?: string | null | undefined;
|
|
@@ -478,7 +476,6 @@ export declare const useInventoryApi: () => {
|
|
|
478
476
|
}[];
|
|
479
477
|
}[] | null | undefined;
|
|
480
478
|
sku?: {
|
|
481
|
-
isInactive?: boolean | null | undefined;
|
|
482
479
|
trackingMeasurement?: string | null | undefined;
|
|
483
480
|
convert?: {
|
|
484
481
|
measurement?: string | null | undefined;
|
|
@@ -571,7 +568,6 @@ export declare const useInventoryApi: () => {
|
|
|
571
568
|
errors: {
|
|
572
569
|
error?: any;
|
|
573
570
|
data: {
|
|
574
|
-
isInactive?: boolean | null | undefined;
|
|
575
571
|
trackingMeasurement?: string | null | undefined;
|
|
576
572
|
convert?: {
|
|
577
573
|
measurement?: string | null | undefined;
|