@feedmepos/mf-inventory-portal 1.0.36-dev.6 → 1.0.36
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-p0OfVvta.js → App-BM-ivBnF.js} +46 -47
- package/dist/{ApprovalView-DPBSTlsb.js → ApprovalView-C4hE43Zp.js} +8 -8
- package/dist/{BindingsDialog-ADhnq8rd.js → BindingsDialog-BqjiXxGY.js} +8 -8
- package/dist/{BindingsPicker-C27I8rla.js → BindingsPicker-DqCR7P5k.js} +1 -1
- package/dist/{BindingsTable-BCrjUyRA.js → BindingsTable-DD_mVBtS.js} +1 -1
- package/dist/{ClosingDraftView-CAeA34YR.js → ClosingDraftView-CL09Xu9q.js} +49 -49
- package/dist/ClosingTemplateView-CDWMdZOk.js +1804 -0
- package/dist/{DeliveryOrderPrintPreview-BHaatock.js → DeliveryOrderPrintPreview-CNPUHnpX.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-n7mTgY-4.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DB6m8oSF.js} +3 -3
- package/dist/{FmMultiselectDialog-D3hCA4Hk.js → FmMultiselectDialog-DJ5cyN7G.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-GRMblS9k.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CPAnSCWa.js} +17 -17
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BMTgY6ZR.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CauBVtK9.js} +1 -1
- package/dist/{IngredientGroupView-CoQ5jJq-.js → IngredientGroupView-D0U1ivRz.js} +21 -21
- package/dist/IngredientsView-pgJWthql.js +1838 -0
- package/dist/IntegrationView-hERgFYsT.js +3303 -0
- package/dist/{InventoryBindingForm-rBxn4aQn.js → InventoryBindingForm-vO00BnZP.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DeAbgkjo.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bku7tdc-.js} +37 -37
- package/dist/{InventoryBindingSummary-DRnfFnXw.js → InventoryBindingSummary-DWOniuG6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CFimf-EA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4_atZsW.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CkLC3e7r.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DUdI1WOL.js} +1 -1
- package/dist/{PublishView-CWPu6VU5.js → PublishView-enVS6QHQ.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-BB-UHWyM.js → PurchaseOrderPrintPreview-Z769Yvkh.js} +1 -1
- package/dist/{ReceiveRequestView-DzE2O14-.js → ReceiveRequestView-BYYWrgNX.js} +773 -789
- package/dist/{RecipeView-CdFqHWFg.js → RecipeView-CU9pkFiv.js} +38 -39
- package/dist/{StockView-2QkNXA2I.js → StockView-iqR-h1Mg.js} +68 -69
- package/dist/{SupplierView-BmIvZtRX.js → SupplierView-DFzgQ53O.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-KakO6jI_.js → TransferDetails.vue_vue_type_script_setup_true_lang-BEVlutvf.js} +67 -68
- package/dist/{TransferTemplateView-CiwTECtX.js → TransferTemplateView-EZ_z14kY.js} +107 -108
- package/dist/{UnitView-xcRT1636.js → UnitView-gYD75UdW.js} +19 -19
- package/dist/{WarehouseView-DFUkzdn3.js → WarehouseView-COLgYw-j.js} +14 -14
- package/dist/api/inventory.d.ts +0 -4
- package/dist/api/netsuite.d.ts +2 -7
- package/dist/app-DMbkakEB.js +124324 -0
- package/dist/app.d.ts +0 -9
- package/dist/app.js +6 -6
- 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-tvbOiScu.js → decimal-BLjZMddB.js} +1 -1
- package/dist/format-unit-display-BkXJg2Ux.js +1230 -0
- package/dist/{index-5P4r_6vv.js → index-Bj0hlHvy.js} +3 -4
- package/dist/{index-DunD6flC.js → index-C5rv3Yu2.js} +1 -1
- package/dist/{stock-D4Q1lqHe.js → stock-DjOpPBxG.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +2 -7
- package/dist/stores/inventory.d.ts +0 -9
- package/dist/{supplier-nyMBwI1e.js → supplier-BRKfl2V3.js} +25 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CucQZ-Oc.js → use-ingredient-select-dialog-DRIWNN3P.js} +1 -1
- package/dist/{use-inventory-binding-dialog-ZF-LeZNi.js → use-inventory-binding-dialog-DLnKkFpe.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/InventoryTransferOutTable.vue.d.ts +2 -0
- 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-x8-PdKzv.js +2365 -0
- package/package.json +1 -1
- package/dist/ClosingTemplateView-DdtZPTyt.js +0 -1849
- package/dist/IngredientsView-B0n-ed2z.js +0 -1885
- package/dist/IntegrationView-CUacWvt2.js +0 -6531
- package/dist/api/duplicate-template.d.ts +0 -5
- package/dist/app-D8WIbWK8.js +0 -102338
- package/dist/feature-CXf7RRWE.js +0 -19100
- package/dist/format-unit-display-C42DxO2e.js +0 -1275
- package/dist/vue-i18n-BmNDS6W5.js +0 -2365
package/dist/{DeliveryOrderPrintPreview-BHaatock.js → DeliveryOrderPrintPreview-CNPUHnpX.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { aw as y, aj as w } from "./app-
|
|
3
|
+
import { aw as y, aj as w } from "./app-DMbkakEB.js";
|
|
4
4
|
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "subtitle"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { P as L } from "./format-unit-display-
|
|
1
|
+
import { j as C, t as R, au as w, u as B, ay as E, aJ as D, aK as H, aL as U } from "./app-DMbkakEB.js";
|
|
2
|
+
import { u as z } from "./supplier-BRKfl2V3.js";
|
|
3
|
+
import { P as L } from "./format-unit-display-BkXJg2Ux.js";
|
|
4
4
|
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as V, openBlock as T, createElementBlock as O, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as A, Fragment as Q, renderList as X, unref as M } from "vue";
|
|
5
5
|
function Y(t, a, l) {
|
|
6
6
|
var s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
4
|
+
import { a2 as a } from "./app-DMbkakEB.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ie, mergeModels as E, useModel as ae, computed as v, ref as B, watch as W, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as H, normalizeClass as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as ie, mergeModels as E, useModel as ae, computed as v, ref as B, watch as W, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as H, normalizeClass as L, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
|
|
2
|
+
import { Q as D, I as R, Y as O, T as fe, j as M, aH as ve, t as be, b0 as ye, P as he, ao as Me, aF as ge, aE as xe } from "./app-DMbkakEB.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
function G() {
|
|
5
5
|
return {
|
|
6
6
|
amount: D.reset()
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Y() {
|
|
10
10
|
return function(f) {
|
|
11
11
|
return R()(f.amountAsString);
|
|
12
12
|
};
|
|
@@ -23,10 +23,10 @@ function qe(l) {
|
|
|
23
23
|
}
|
|
24
24
|
function Q(l, f = !1) {
|
|
25
25
|
return function(c) {
|
|
26
|
-
const s =
|
|
26
|
+
const s = Y()(c);
|
|
27
27
|
if (s != !0)
|
|
28
28
|
return f ? s : !0;
|
|
29
|
-
const A = typeof l == "number" ? l :
|
|
29
|
+
const A = typeof l == "number" ? l : O(l, c.modelValue.measurement);
|
|
30
30
|
return fe(+c.amountAsString).precision > A ? `Cannot exceed precision more than ${M({
|
|
31
31
|
amount: 1,
|
|
32
32
|
precision: A
|
|
@@ -107,7 +107,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
107
107
|
setup(l, { emit: f }) {
|
|
108
108
|
const t = l, c = f, s = ae(l, "modelValue"), A = R(), w = v(() => {
|
|
109
109
|
var n;
|
|
110
|
-
return
|
|
110
|
+
return O(t.unit, (n = s.value) == null ? void 0 : n.measurement);
|
|
111
111
|
}), p = B((() => {
|
|
112
112
|
var o;
|
|
113
113
|
const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n = ge(e), i = t.formatMinimumPrecision ?? n.precision, a = xe(n, i);
|
|
@@ -130,7 +130,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
130
130
|
}), le(() => {
|
|
131
131
|
x && clearTimeout(x);
|
|
132
132
|
});
|
|
133
|
-
const J = Symbol.for("fm:form-state"), C = ue(J, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1), K = B(), S = B(!1), $ = B(!1),
|
|
133
|
+
const J = Symbol.for("fm:form-state"), C = ue(J, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1), K = B(), S = B(!1), $ = B(!1), X = v(() => S.value || $.value), ee = v(() => {
|
|
134
134
|
var a;
|
|
135
135
|
const e = t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1), n = ye.groupBy(
|
|
136
136
|
e,
|
|
@@ -172,11 +172,11 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
172
172
|
var m;
|
|
173
173
|
if (!t.convertAmountOnChangeUnit)
|
|
174
174
|
return;
|
|
175
|
-
const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), a = t.unit.measurements.find((k) => k.id === n) ?? null, o = t.unit.measurements.find((k) => k.id === e) ?? null, r = a ? he(i, a.conversion) : i, g = o ? Me(r, o.conversion) : r, T =
|
|
175
|
+
const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), a = t.unit.measurements.find((k) => k.id === n) ?? null, o = t.unit.measurements.find((k) => k.id === e) ?? null, r = a ? he(i, a.conversion) : i, g = o ? Me(r, o.conversion) : r, T = O(t.unit, o), j = D.convertPrecision({
|
|
176
176
|
value: g,
|
|
177
177
|
precision: T
|
|
178
178
|
});
|
|
179
|
-
p.value = M(
|
|
179
|
+
p.value = M(j);
|
|
180
180
|
});
|
|
181
181
|
const q = v(() => {
|
|
182
182
|
var e;
|
|
@@ -192,7 +192,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
192
192
|
)) ?? [];
|
|
193
193
|
}
|
|
194
194
|
), ne = v(() => [...t.applyDefaultRules ? [
|
|
195
|
-
|
|
195
|
+
Y(),
|
|
196
196
|
typeof t.precision == "number" ? Q(t.precision) : Q(t.unit)
|
|
197
197
|
] : [], ...te.value]);
|
|
198
198
|
function z(e) {
|
|
@@ -212,7 +212,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
212
212
|
p.value = z(e);
|
|
213
213
|
}
|
|
214
214
|
return (e, n) => {
|
|
215
|
-
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"), g = b("FmTooltip"), T = b("FmField"),
|
|
215
|
+
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"), g = b("FmTooltip"), T = b("FmField"), j = b("FmFormGroup");
|
|
216
216
|
return d(), y("div", Fe, [
|
|
217
217
|
u("div", _e, [
|
|
218
218
|
u("div", Ae, [
|
|
@@ -223,7 +223,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
223
223
|
optional: e.labelMark === "optional"
|
|
224
224
|
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
225
225
|
]),
|
|
226
|
-
h(T, { focused:
|
|
226
|
+
h(T, { focused: X.value }, {
|
|
227
227
|
default: F(() => [
|
|
228
228
|
u("div", Pe, [
|
|
229
229
|
H(e.$slots, "prepend"),
|
|
@@ -231,7 +231,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
231
231
|
u("div", Be, [
|
|
232
232
|
e.stepperOnly ? (d(), y("span", {
|
|
233
233
|
key: 0,
|
|
234
|
-
class:
|
|
234
|
+
class: L({
|
|
235
235
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
236
236
|
"text-fm-color-typo-primary": !P.value,
|
|
237
237
|
"text-fm-color-typo-disabled": P.value
|
|
@@ -244,7 +244,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
244
244
|
onFocus: n[0] || (n[0] = () => S.value = !0),
|
|
245
245
|
onBlur: n[1] || (n[1] = () => S.value = !1),
|
|
246
246
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => p.value = m),
|
|
247
|
-
class:
|
|
247
|
+
class: L({
|
|
248
248
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
249
249
|
"text-fm-color-typo-primary": !P.value,
|
|
250
250
|
"text-fm-color-typo-disabled": P.value
|
|
@@ -255,7 +255,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
255
255
|
]),
|
|
256
256
|
e.separator ? (d(), y("div", Ie, _(e.separator), 1)) : I("", !0),
|
|
257
257
|
u("div", {
|
|
258
|
-
class:
|
|
258
|
+
class: L([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
|
|
259
259
|
}, [
|
|
260
260
|
h(g, { "z-index": 51 }, {
|
|
261
261
|
content: F(() => [
|
|
@@ -335,7 +335,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
335
335
|
_: 3
|
|
336
336
|
}, 8, ["focused"])
|
|
337
337
|
]),
|
|
338
|
-
h(
|
|
338
|
+
h(j, {
|
|
339
339
|
class: "flex-1",
|
|
340
340
|
"model-value": { modelValue: s.value, amountAsString: String(p.value) },
|
|
341
341
|
info: e.labelInfo,
|
|
@@ -352,6 +352,6 @@ export {
|
|
|
352
352
|
Ee as _,
|
|
353
353
|
qe as a,
|
|
354
354
|
ze as b,
|
|
355
|
-
|
|
355
|
+
Y as c,
|
|
356
356
|
Q as d
|
|
357
357
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { j as a, P as y } from "./app-DMbkakEB.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as U, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
|
|
2
|
-
import { a as
|
|
3
|
-
import { useDialog as Me, useSnackbar as
|
|
4
|
-
import { useI18n as P, useCoreStore as
|
|
2
|
+
import { a as z, e as S, f as L, h as Re, D as oe, i as K, I as Ie, A as Se, U as Ge, K as ue, L as Fe, N as Ve, m as de, O as Ce, q as ae, u as De, B as Ae, _ as $e, C as Te, E as Ee, G as le } from "./app-DMbkakEB.js";
|
|
3
|
+
import { useDialog as Me, useSnackbar as Y, components as B, useProxiedModel as Be, useBreakpoints as Ue } from "@feedmepos/ui-library";
|
|
4
|
+
import { useI18n as P, useCoreStore as Le } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ce, storeToRefs as ie } from "pinia";
|
|
6
6
|
import "./array-Ca8T3f_G.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as ze } from "./FmMultiselectDialog-DJ5cyN7G.js";
|
|
8
8
|
import { r as me } from "./random-CSbEbElR.js";
|
|
9
9
|
import { u as Pe, R as Ne } from "./usePromise-CbVUCxhj.js";
|
|
10
10
|
const H = ce(
|
|
11
11
|
"ingredientGroupactions",
|
|
12
12
|
function() {
|
|
13
|
-
const _ = Me(), f =
|
|
13
|
+
const _ = Me(), f = Y(), k = z(), { t: i } = P(), v = A();
|
|
14
14
|
function e() {
|
|
15
15
|
const u = {
|
|
16
16
|
modelValue: {},
|
|
@@ -24,7 +24,7 @@ const H = ce(
|
|
|
24
24
|
}
|
|
25
25
|
async function a(u) {
|
|
26
26
|
const m = {
|
|
27
|
-
modelValue:
|
|
27
|
+
modelValue: L(u),
|
|
28
28
|
mode: S.UPDATE,
|
|
29
29
|
show: !0,
|
|
30
30
|
"onUpdate:show"(r) {
|
|
@@ -83,7 +83,7 @@ const H = ce(
|
|
|
83
83
|
), Oe = ce(
|
|
84
84
|
"ingredientGroupTable",
|
|
85
85
|
function() {
|
|
86
|
-
const _ = A(!1), f =
|
|
86
|
+
const _ = A(!1), f = Y(), k = z(), i = H();
|
|
87
87
|
async function v() {
|
|
88
88
|
_.value = !0;
|
|
89
89
|
try {
|
|
@@ -99,7 +99,7 @@ const H = ce(
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
function e(t, n) {
|
|
102
|
-
switch (n =
|
|
102
|
+
switch (n = L(n), t) {
|
|
103
103
|
case K.Edit:
|
|
104
104
|
return i.updateIngredientGroup(n);
|
|
105
105
|
case K.Delete:
|
|
@@ -166,7 +166,7 @@ function qe(o) {
|
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
function fe(o) {
|
|
169
|
-
const _ =
|
|
169
|
+
const _ = ze(), f = z(), k = F(() => [
|
|
170
170
|
{
|
|
171
171
|
id: "delete",
|
|
172
172
|
header: "",
|
|
@@ -397,14 +397,14 @@ function fe(o) {
|
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" },
|
|
400
|
+
const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" }, Ye = { class: "flex flex-col gap-16" }, Je = { class: "flex flex-col" }, Qe = { class: "flex flex-col gap-4" }, We = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = /* @__PURE__ */ j({
|
|
401
401
|
__name: "IngredientGroupRuleField",
|
|
402
402
|
props: {
|
|
403
403
|
disabled: { type: Boolean },
|
|
404
404
|
modelValue: {}
|
|
405
405
|
},
|
|
406
406
|
setup(o) {
|
|
407
|
-
const _ = o, { t: f } = P(), k =
|
|
407
|
+
const _ = o, { t: f } = P(), k = Le(), i = F(() => {
|
|
408
408
|
var g;
|
|
409
409
|
const n = /* @__PURE__ */ new Map(), s = k.restaurants.value.map((u) => u.customAttributes ?? {});
|
|
410
410
|
for (const u of s)
|
|
@@ -481,8 +481,8 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
481
481
|
]
|
|
482
482
|
}, null, 8, ["model-value", "rules"])
|
|
483
483
|
]),
|
|
484
|
-
c("div",
|
|
485
|
-
c("div",
|
|
484
|
+
c("div", Ye, [
|
|
485
|
+
c("div", Je, [
|
|
486
486
|
c("div", Qe, [
|
|
487
487
|
c("div", null, [
|
|
488
488
|
b(u, {
|
|
@@ -718,9 +718,9 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
718
718
|
},
|
|
719
719
|
emits: ["update:show"],
|
|
720
720
|
setup(o) {
|
|
721
|
-
const _ = o, f =
|
|
721
|
+
const _ = o, f = z(), k = Pe(() => f.readCachedMenu()), i = F(
|
|
722
722
|
() => k.result.value.state === Ne.success ? k.result.value.data : void 0
|
|
723
|
-
), v =
|
|
723
|
+
), v = Y(), { t: e } = P(), a = Be(_, "show");
|
|
724
724
|
function t() {
|
|
725
725
|
return {
|
|
726
726
|
_id: "",
|
|
@@ -733,7 +733,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
733
733
|
() => _.show,
|
|
734
734
|
(d) => {
|
|
735
735
|
if (!d) return;
|
|
736
|
-
let p =
|
|
736
|
+
let p = L(_.modelValue ?? t());
|
|
737
737
|
p.defaultSkuRefs && (p.defaultSkuRefs = p.defaultSkuRefs.map((h, V) => ({
|
|
738
738
|
...h,
|
|
739
739
|
priority: h.priority ?? V + 1
|
|
@@ -771,7 +771,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
771
771
|
}), m = A(), r = A(!1);
|
|
772
772
|
async function y() {
|
|
773
773
|
r.value = !0;
|
|
774
|
-
const d =
|
|
774
|
+
const d = L(n.value);
|
|
775
775
|
try {
|
|
776
776
|
await f.createSkuGroup(d), a.value = !1, v.open({
|
|
777
777
|
title: e("inventory.common.success"),
|
|
@@ -790,7 +790,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
790
790
|
}
|
|
791
791
|
async function w() {
|
|
792
792
|
r.value = !0;
|
|
793
|
-
const d =
|
|
793
|
+
const d = L(n.value);
|
|
794
794
|
try {
|
|
795
795
|
await f.updateSkuGroup(d), r.value = !1, a.value = !1, v.open({
|
|
796
796
|
title: e("inventory.common.success"),
|
|
@@ -867,7 +867,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
867
867
|
}), kt = { class: "flex flex-col py-8" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ht = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, At = /* @__PURE__ */ j({
|
|
868
868
|
__name: "IngredientGroupView",
|
|
869
869
|
setup(o) {
|
|
870
|
-
const _ =
|
|
870
|
+
const _ = z(), f = F(() => _.skuGroups), k = De(), { t: i } = P(), {
|
|
871
871
|
createIngredientGroup: v,
|
|
872
872
|
updateIngredientGroup: e,
|
|
873
873
|
importIngredientGroups: a,
|
|
@@ -931,12 +931,12 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
931
931
|
onRowClick: l(e)
|
|
932
932
|
}, ke({
|
|
933
933
|
default: T((N) => {
|
|
934
|
-
var
|
|
934
|
+
var J, Q, W, O, X, Z, ee, te, q, ne;
|
|
935
935
|
return [
|
|
936
936
|
c("div", kt, [
|
|
937
937
|
c("div", xt, [
|
|
938
938
|
b(l(le), {
|
|
939
|
-
render: (W = (Q = (
|
|
939
|
+
render: (W = (Q = (J = N.code) == null ? void 0 : J.column) == null ? void 0 : Q.columnDef) == null ? void 0 : W.cell,
|
|
940
940
|
props: (X = (O = N.code) == null ? void 0 : O.getContext) == null ? void 0 : X.call(O)
|
|
941
941
|
}, null, 8, ["render", "props"])
|
|
942
942
|
]),
|