@feedmepos/mf-inventory-portal 1.0.5 → 1.0.7-dev.1
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-BC040Les.js → App-zspCOQeF.js} +50 -49
- package/dist/{ApprovalView-DCvl3a_5.js → ApprovalView-CKJV87es.js} +24 -24
- package/dist/{BindingsDialog-CrVuhZqk.js → BindingsDialog-CTmuzAWi.js} +4 -4
- package/dist/{BindingsPicker-lmFa-poh.js → BindingsPicker-Dabonsov.js} +8 -8
- package/dist/{BindingsTable-CT_lSIYf.js → BindingsTable-L0yzAoQq.js} +4 -4
- package/dist/{ClosingDraftView-DRc0FjAS.js → ClosingDraftView-CddxqfNi.js} +464 -463
- package/dist/{ClosingTemplateView-C_X0J-M4.js → ClosingTemplateView-BsW-nPec.js} +10 -10
- package/dist/{DeliveryOrderPrintPreview-BneNiMcQ.js → DeliveryOrderPrintPreview-DQ4msDpJ.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BJWjd3-f.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-TnVI2vdF.js} +32 -32
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-BRvXmLV6.js +338 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BhfVsV9p.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHLx7Lbo.js} +1 -1
- package/dist/{IngredientGroupView-NyW26_DP.js → IngredientGroupView-CF2GLMSD.js} +11 -11
- package/dist/{IngredientsView-BN1jydVe.js → IngredientsView-DopQVz7u.js} +15 -14
- package/dist/IntegrationView-EnD2l7af.js +2149 -0
- package/dist/{InventoryBindingForm-Bf52xXaz.js → InventoryBindingForm-VP2_coNH.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BLCgDC82.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-dQF7h_Jp.js} +27 -27
- package/dist/{InventoryBindingSummary-BM48Xk8j.js → InventoryBindingSummary-BCEXzmFu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DYSoSSzj.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RfkBlwxw.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DjtXgvRo.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CGgxjz4P.js} +10 -10
- package/dist/{PublishView-C_c9fd-9.js → PublishView-ExvxeKR_.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-CmIP1Zpp.js → PurchaseOrderPrintPreview-59AaXtZ_.js} +4 -4
- package/dist/{ReceiveRequestView-DJknUS-e.js → ReceiveRequestView-BxGss8gu.js} +53 -52
- package/dist/{RecipeView-nzgPP4xb.js → RecipeView-BqTsG4xX.js} +32 -32
- package/dist/{StockView-DERznopJ.js → StockView-D-WvydHv.js} +73 -72
- package/dist/{SupplierView-B03zhGGq.js → SupplierView-C6ruAEih.js} +12 -11
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CQ-Om_rI.js +1894 -0
- package/dist/{TransferTemplateView-HLrkeo9I.js → TransferTemplateView-qSA3Txpn.js} +291 -290
- package/dist/{UnitView-yMNF61nI.js → UnitView-oHDOLM8k.js} +23 -23
- package/dist/{WarehouseView-Cl8O3zEO.js → WarehouseView-C3EqYfCf.js} +26 -26
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing.d.ts +7 -1
- package/dist/api/food-market-hub.d.ts +1 -1
- package/dist/api/inventory.d.ts +44 -44
- package/dist/api/netsuite.d.ts +83 -1
- package/dist/api/purchase-order.d.ts +5 -1
- package/dist/api/stock.d.ts +12 -12
- package/dist/{app-ByZGP6to.js → app-DqrcGlGd.js} +20015 -20284
- package/dist/app.d.ts +7 -7
- package/dist/app.js +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +8 -8
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
- package/dist/composable/usePromise.d.ts +41 -0
- package/dist/{decimal-C6ZIb15B.js → decimal-rgCB5DGy.js} +1 -1
- package/dist/feature-CifIpcNk.js +17345 -0
- package/dist/{format-unit-display-Bixr5QQV.js → format-unit-display-DUWzu8vU.js} +60 -60
- package/dist/index-CH3OzDYK.js +126 -0
- package/dist/{index-3ud7W_2Y.js → index-YgIaxVhw.js} +1 -1
- package/dist/{stock-DpKjVgzG.js → stock-BPNYXwz1.js} +1 -1
- package/dist/stores/feature.d.ts +5 -19
- package/dist/stores/integration/foodmarkethub.d.ts +1 -1
- package/dist/stores/integration/index.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +18 -7
- package/dist/stores/integration/xilnex.d.ts +12 -0
- package/dist/stores/inventory.d.ts +56 -56
- package/dist/stores/location.d.ts +137 -137
- package/dist/stores/stock.d.ts +12 -12
- package/dist/{supplier-DfKwECUI.js → supplier-CnrH580K.js} +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Cs5SmNLE.js → use-ingredient-select-dialog-CpnJoeWb.js} +1 -1
- package/dist/{use-inventory-binding-dialog-9RGXAtLh.js → use-inventory-binding-dialog-DHvNwt_F.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
- package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +76 -76
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +456 -456
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
- package/dist/views/integration/XilnexView.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
- package/dist/views/integration/components/Xilnex/XilnexOpeningImport.vue.d.ts +2 -0
- package/dist/views/integration/components/Xilnex/XilnexProps.d.ts +7 -0
- package/dist/views/integration/components/Xilnex/XilnexSideSheet.vue.d.ts +24 -0
- package/dist/views/integration/components/Xilnex/importFn.d.ts +16 -0
- package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +1334 -0
- package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +174 -0
- package/dist/views/integration/components/netsuite/LocationConfigurationDialogProps.d.ts +16 -0
- package/dist/views/integration/components/netsuite/NetSuiteLocationField.vue.d.ts +71 -0
- package/dist/views/receive-request/components/transfer-details/FulfillmentForm.vue.d.ts +5 -1
- package/dist/views/receive-request/components/transfer-details/usePurchaseOrderFn.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +696 -668
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1270 -1222
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1197 -1149
- package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
- package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
- package/dist/{vue-i18n-DR_smMg1.js → vue-i18n-4m7yAqU2.js} +426 -426
- package/package.json +5 -2
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CAEBtWpw.js +0 -328
- package/dist/IntegrationView-CVbR75fb.js +0 -1197
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D709Nkfi.js +0 -1723
- package/dist/index-CoqRZydm.js +0 -84
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as H, computed as g, openBlock as v, createElementBlock as C, createElementVNode as l, Fragment as j, renderList as q, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as $, createBlock as T, withCtx as A, createVNode as y, unref as o, isRef as ee, normalizeClass as re, normalizeStyle as ie, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as K, d as w, S as ce, f as pe, D as te, h as L, e as le, l as N, A as fe, i as J, K as ve, L as ye, p as ne, u as be, b as ge, z as xe, _ as _e, B as he, C as Ve, E as Ue } from "./app-DqrcGlGd.js";
|
|
3
3
|
import { useDialog as we, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ce } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Se, _ as ke } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { defineStore as Ee, storeToRefs as Fe } from "pinia";
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import { F as $e } from "./decimal-
|
|
8
|
-
import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { useI18n as G } from "@feedmepos/mf-common";
|
|
7
|
+
import { F as $e } from "./decimal-rgCB5DGy.js";
|
|
8
|
+
import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RfkBlwxw.js";
|
|
9
9
|
const De = { class: "flex flex-col gap-8" }, Ae = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col"
|
|
@@ -18,10 +18,10 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
|
|
|
18
18
|
}, Te = { class: "flex-1 py-8 px-16" }, Be = {
|
|
19
19
|
class: "flex-0 py-8 px-16",
|
|
20
20
|
style: { "flex-basis": "240px" }
|
|
21
|
-
},
|
|
21
|
+
}, ze = {
|
|
22
22
|
key: 2,
|
|
23
23
|
class: "flex flex-col"
|
|
24
|
-
},
|
|
24
|
+
}, Le = { class: "flex-1 py-8 px-16" }, Ne = {
|
|
25
25
|
class: "flex-0 py-8 px-16",
|
|
26
26
|
style: { "flex-basis": "240px" }
|
|
27
27
|
}, je = /* @__PURE__ */ H({
|
|
@@ -30,7 +30,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
|
|
|
30
30
|
unit: {}
|
|
31
31
|
},
|
|
32
32
|
setup(k) {
|
|
33
|
-
const f = k, b =
|
|
33
|
+
const f = k, b = K(), i = g(() => b.validateUnitUsage(f.unit)), r = g(() => i.value.filter((c) => c.from === "INGREDIENT")), s = g(() => i.value.filter((c) => c.from === "RECIPE")), d = g(() => i.value.filter((c) => c.from === "MENU"));
|
|
34
34
|
return (c, p) => (v(), C("div", De, [
|
|
35
35
|
p[3] || (p[3] = l("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1)),
|
|
36
36
|
r.value.length ? (v(), C("div", Ae, [
|
|
@@ -71,7 +71,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
|
|
|
71
71
|
]);
|
|
72
72
|
}), 128))
|
|
73
73
|
])) : Y("", !0),
|
|
74
|
-
d.value.length ? (v(), C("div",
|
|
74
|
+
d.value.length ? (v(), C("div", ze, [
|
|
75
75
|
p[2] || (p[2] = l("div", { 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" }, [
|
|
76
76
|
l("div", { class: "flex-1 py-8 px-16" }, "Menu"),
|
|
77
77
|
l("div", {
|
|
@@ -85,7 +85,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
|
|
|
85
85
|
key: a.code,
|
|
86
86
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
87
87
|
}, [
|
|
88
|
-
l("div",
|
|
88
|
+
l("div", Le, V(a.code) + " " + V(a.name), 1),
|
|
89
89
|
l("div", Ne, V((n = a.bindedIngredient) == null ? void 0 : n.slice(0, 3).map((_) => _.code).join(", ")) + " " + V(a.bindedIngredient && ((u = a.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((x = a.bindedIngredient) == null ? void 0 : x.length) - 3} more` : ""), 1)
|
|
90
90
|
]);
|
|
91
91
|
}), 128))
|
|
@@ -93,7 +93,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
|
|
|
93
93
|
]));
|
|
94
94
|
}
|
|
95
95
|
}), Q = Ee("unitForm", function() {
|
|
96
|
-
const f = we(), b = se(), i =
|
|
96
|
+
const f = we(), b = se(), i = K(), r = M(!1), s = M();
|
|
97
97
|
function d() {
|
|
98
98
|
const n = {
|
|
99
99
|
unit: {},
|
|
@@ -187,14 +187,14 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
|
|
|
187
187
|
};
|
|
188
188
|
});
|
|
189
189
|
function qe() {
|
|
190
|
-
const { updateUnit: k, deleteUnit: f } = Q(), { t: b } =
|
|
190
|
+
const { updateUnit: k, deleteUnit: f } = Q(), { t: b } = G();
|
|
191
191
|
async function i(s, d) {
|
|
192
192
|
const c = le(d);
|
|
193
|
-
if (s ===
|
|
193
|
+
if (s === L.Edit) {
|
|
194
194
|
await k(c);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
if (s ===
|
|
197
|
+
if (s === L.Delete) {
|
|
198
198
|
await f(c);
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
@@ -217,7 +217,7 @@ function qe() {
|
|
|
217
217
|
header: "",
|
|
218
218
|
cell(s) {
|
|
219
219
|
return pe(
|
|
220
|
-
[te[
|
|
220
|
+
[te[L.Edit], te[L.Delete]],
|
|
221
221
|
(d) => {
|
|
222
222
|
i(d, s.row.original);
|
|
223
223
|
}
|
|
@@ -232,7 +232,7 @@ function qe() {
|
|
|
232
232
|
}
|
|
233
233
|
] };
|
|
234
234
|
}
|
|
235
|
-
const He = { class: "flex flex-col gap-24" },
|
|
235
|
+
const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge = { class: "flex-1" }, Oe = { class: "flex-1" }, Ye = { class: "flex" }, Je = { class: "flex items-center" }, Qe = { class: "fm-typo-en-body-lg-600 flex-grow" }, We = { class: "flex flex-col gap-24" }, Xe = { class: "flex gap-24" }, Ze = { class: "flex-1" }, et = { class: "flex-1" }, tt = /* @__PURE__ */ H({
|
|
236
236
|
__name: "UnitForm",
|
|
237
237
|
props: {
|
|
238
238
|
mode: {},
|
|
@@ -241,7 +241,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
|
|
|
241
241
|
},
|
|
242
242
|
emits: ["update:modelValue", "click:submit"],
|
|
243
243
|
setup(k, { expose: f, emit: b }) {
|
|
244
|
-
const i = k, r = b, { t: s } =
|
|
244
|
+
const i = k, r = b, { t: s } = G();
|
|
245
245
|
function d() {
|
|
246
246
|
r("click:submit");
|
|
247
247
|
}
|
|
@@ -327,8 +327,8 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
|
|
|
327
327
|
var E;
|
|
328
328
|
return [
|
|
329
329
|
l("div", He, [
|
|
330
|
-
l("div",
|
|
331
|
-
l("div",
|
|
330
|
+
l("div", Ke, [
|
|
331
|
+
l("div", Ge, [
|
|
332
332
|
y(m, {
|
|
333
333
|
disabled: e.disabled,
|
|
334
334
|
label: o(s)("inventory.unit.name"),
|
|
@@ -450,7 +450,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
|
|
|
450
450
|
},
|
|
451
451
|
emits: ["update:show"],
|
|
452
452
|
setup(k) {
|
|
453
|
-
const f = k, b =
|
|
453
|
+
const f = k, b = K(), i = se(), { t: r } = G(), s = oe(f, "show"), d = oe(f, "unit"), c = g(() => {
|
|
454
454
|
switch (f.mode) {
|
|
455
455
|
case w.READ:
|
|
456
456
|
return "";
|
|
@@ -566,11 +566,11 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
|
|
|
566
566
|
}), lt = { class: "flex flex-col py-8" }, st = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, at = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vt = /* @__PURE__ */ H({
|
|
567
567
|
__name: "UnitView",
|
|
568
568
|
setup(k) {
|
|
569
|
-
const f =
|
|
569
|
+
const f = K(), b = be(), i = ge(), r = g(() => f.units), { createUnit: s, updateUnit: d } = Q(), { unitDialogProps: c, unitViewLoading: p } = Fe(Q()), { columnDefs: a } = qe();
|
|
570
570
|
function n(D) {
|
|
571
571
|
D === "add" && s();
|
|
572
572
|
}
|
|
573
|
-
const u = M(""), x = g(() => p.value), { breakpoints: _ } = Ce(), e = g(() => _.value.xs || _.value.sm), t = g(() => e.value ? 10 : 20), m = xe(), { t: I } =
|
|
573
|
+
const u = M(""), x = g(() => p.value), { breakpoints: _ } = Ce(), e = g(() => _.value.xs || _.value.sm), t = g(() => e.value ? 10 : 20), m = xe(), { t: I } = G();
|
|
574
574
|
return (D, U) => {
|
|
575
575
|
const O = $("FmTable");
|
|
576
576
|
return v(), T(_e, {
|
|
@@ -615,7 +615,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
|
|
|
615
615
|
onRowClick: o(d)
|
|
616
616
|
}, {
|
|
617
617
|
default: A((S) => {
|
|
618
|
-
var h, F, P, R, W, B, X,
|
|
618
|
+
var h, F, P, R, W, B, X, z, Z;
|
|
619
619
|
return [
|
|
620
620
|
l("div", lt, [
|
|
621
621
|
l("div", st, [
|
|
@@ -624,7 +624,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
|
|
|
624
624
|
props: (W = (R = S.name) == null ? void 0 : R.getContext) == null ? void 0 : W.call(R)
|
|
625
625
|
}, null, 8, ["render", "props"])
|
|
626
626
|
]),
|
|
627
|
-
l("div", at, V((Z = (
|
|
627
|
+
l("div", at, V((Z = (z = (X = (B = E.original.measurements) == null ? void 0 : B.map) == null ? void 0 : X.call(B, (ae) => ae.name)) == null ? void 0 : z.join) == null ? void 0 : Z.call(z, ", ")), 1)
|
|
628
628
|
])
|
|
629
629
|
];
|
|
630
630
|
}),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as xe, openBlock as R, createElementBlock as z, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as L, unref as c, createVNode as V, resolveComponent as B, createSlots as $e, withCtx as q, createTextVNode as Se, renderSlot as We, createBlock as I, createCommentVNode as Ae, computed as $, isRef as we, normalizeClass as De, normalizeStyle as Pe } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { useCoreStore as
|
|
2
|
+
import { X as Re, ak as Ue, al as Ee, f as Te, D as Ve, h as J, e as G, am as Le, ad as Ne, l as N, d as T, S as Be, u as qe, z as ze, _ as Ie, B as je, C as Oe, E as Q } from "./app-DqrcGlGd.js";
|
|
3
|
+
import { useCoreStore as Ge, useI18n as O } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as Ke, useDialog as Me, 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";
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
8
|
-
const y =
|
|
6
|
+
import { _ as Xe } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
7
|
+
const Y = Re((m, h) => {
|
|
8
|
+
const y = Ge();
|
|
9
9
|
return {
|
|
10
10
|
async readWarehouses() {
|
|
11
11
|
var l;
|
|
@@ -46,17 +46,17 @@ function Ce() {
|
|
|
46
46
|
},
|
|
47
47
|
// actions
|
|
48
48
|
async readWarehouses() {
|
|
49
|
-
const m =
|
|
49
|
+
const m = Y();
|
|
50
50
|
this.warehouses = await m.readWarehouses();
|
|
51
51
|
},
|
|
52
52
|
async createWarehouse(m) {
|
|
53
|
-
await
|
|
53
|
+
await Y().createWarehouse(m);
|
|
54
54
|
},
|
|
55
55
|
async updateWarehouse(m) {
|
|
56
|
-
await
|
|
56
|
+
await Y().updateWarehouse(m._id, m.profile);
|
|
57
57
|
},
|
|
58
58
|
async deleteWarehouse(m) {
|
|
59
|
-
await
|
|
59
|
+
await Y().deleteWarehouse(m._id);
|
|
60
60
|
},
|
|
61
61
|
async init() {
|
|
62
62
|
const m = Ue();
|
|
@@ -71,15 +71,15 @@ function Ce() {
|
|
|
71
71
|
function Je(m, h) {
|
|
72
72
|
function y(p, s) {
|
|
73
73
|
if (p === J.Edit) {
|
|
74
|
-
m(
|
|
74
|
+
m(G(s));
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
77
|
if (p === J.Delete) {
|
|
78
|
-
h(
|
|
78
|
+
h(G(s));
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const { t } =
|
|
82
|
+
const { t } = O(), n = [
|
|
83
83
|
{
|
|
84
84
|
accessorKey: "warehouse",
|
|
85
85
|
header: () => t("inventory.warehouse.table.warehouse"),
|
|
@@ -266,7 +266,7 @@ const Qe = /* @__PURE__ */ j({
|
|
|
266
266
|
class: "map app-map"
|
|
267
267
|
}, null, 512));
|
|
268
268
|
}
|
|
269
|
-
}),
|
|
269
|
+
}), Ye = { class: "flex flex-col gap-24" }, eo = { class: "flex flex-col gap-8" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = /* @__PURE__ */ j({
|
|
270
270
|
__name: "CoordinateDialog",
|
|
271
271
|
props: {
|
|
272
272
|
address: {
|
|
@@ -279,8 +279,8 @@ const Qe = /* @__PURE__ */ j({
|
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
281
|
setup(m) {
|
|
282
|
-
const h = m, y = Ke(), t = se(), { t: n } =
|
|
283
|
-
|
|
282
|
+
const h = m, y = Ke(), t = se(), { t: n } = O(), l = Fe(
|
|
283
|
+
G(h.coordinate ? h.coordinate : le.jb)
|
|
284
284
|
), p = D(""), s = Le(async function() {
|
|
285
285
|
p.value = await t.getFirstMatchingAddress(
|
|
286
286
|
l.lat,
|
|
@@ -288,13 +288,13 @@ const Qe = /* @__PURE__ */ j({
|
|
|
288
288
|
);
|
|
289
289
|
}, 1e3);
|
|
290
290
|
te(() => {
|
|
291
|
-
y.emitData(
|
|
291
|
+
y.emitData(G(l)), s();
|
|
292
292
|
});
|
|
293
293
|
function u({ position: b }) {
|
|
294
|
-
l.lat = b.lat, l.lng = b.lng, y.emitData(
|
|
294
|
+
l.lat = b.lat, l.lng = b.lng, y.emitData(G(l)), s();
|
|
295
295
|
}
|
|
296
296
|
const k = D();
|
|
297
|
-
return (b, M) => (R(), z("div",
|
|
297
|
+
return (b, M) => (R(), z("div", Ye, [
|
|
298
298
|
g("div", eo, [
|
|
299
299
|
g("div", null, [
|
|
300
300
|
g("span", oo, L(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
|
|
@@ -348,7 +348,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
348
348
|
},
|
|
349
349
|
emits: ["update:modelValue"],
|
|
350
350
|
setup(m, { emit: h }) {
|
|
351
|
-
const y = m, t = h, n = se(), l = Me(), p = ae(), s = oe(y, "modelValue"), u = D(!1), { t: k } =
|
|
351
|
+
const y = m, t = h, n = se(), l = Me(), p = ae(), s = oe(y, "modelValue"), u = D(!1), { t: k } = O();
|
|
352
352
|
function b(d) {
|
|
353
353
|
if (d != null && d[0] && (d != null && d[1]))
|
|
354
354
|
return k("inventory.formField.coordinate.longLat", [d[0].toFixed(3), d[1].toFixed(3)]);
|
|
@@ -454,7 +454,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
454
454
|
},
|
|
455
455
|
emits: ["update:modelValue", "validation-success"],
|
|
456
456
|
setup(m, { expose: h, emit: y }) {
|
|
457
|
-
const t = m, n = y, { t: l } =
|
|
457
|
+
const t = m, n = y, { t: l } = O(), p = $({
|
|
458
458
|
get() {
|
|
459
459
|
var o, e;
|
|
460
460
|
return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
|
|
@@ -695,7 +695,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
695
695
|
])
|
|
696
696
|
]),
|
|
697
697
|
g("div", null, [
|
|
698
|
-
V(
|
|
698
|
+
V(Xe, {
|
|
699
699
|
entity: "warehouse",
|
|
700
700
|
modelValue: F.value,
|
|
701
701
|
"onUpdate:modelValue": e[11] || (e[11] = (v) => F.value = v)
|
|
@@ -716,7 +716,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
716
716
|
},
|
|
717
717
|
emits: ["update:show", "submitted"],
|
|
718
718
|
setup(m, { expose: h, emit: y }) {
|
|
719
|
-
const t = m, n = y, l = D(!1), p = ae(), { t: s } =
|
|
719
|
+
const t = m, n = y, l = D(!1), p = ae(), { t: s } = O(), u = Ce(), k = $(() => {
|
|
720
720
|
switch (t.mode) {
|
|
721
721
|
case T.READ:
|
|
722
722
|
return "";
|
|
@@ -862,7 +862,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
862
862
|
}, Do = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, No = /* @__PURE__ */ j({
|
|
863
863
|
__name: "WarehouseView",
|
|
864
864
|
setup(m) {
|
|
865
|
-
const h = Ce(), y = qe(), t = $(() => h.warehouses), n = Me(), l = ae(), p = D(!1), { t: s } =
|
|
865
|
+
const h = Ce(), y = qe(), t = $(() => h.warehouses), n = Me(), l = ae(), p = D(!1), { t: s } = O();
|
|
866
866
|
te(() => {
|
|
867
867
|
y._currentLocation && F();
|
|
868
868
|
}), ee([() => y._currentLocation], () => {
|
|
@@ -973,12 +973,12 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
973
973
|
"page-size": e.value
|
|
974
974
|
}, {
|
|
975
975
|
"list-row": q((E) => [
|
|
976
|
-
V(
|
|
976
|
+
V(Oe, {
|
|
977
977
|
row: E,
|
|
978
978
|
onRowClick: (r) => b(r.original)
|
|
979
979
|
}, {
|
|
980
980
|
default: q((r) => {
|
|
981
|
-
var f, w, S, P, K, re, ne, ue, H, ie, de, ce, pe, me,
|
|
981
|
+
var f, w, S, P, K, re, ne, ue, H, ie, de, ce, pe, me, X, fe, he, ye, ve, Z, ge;
|
|
982
982
|
return [
|
|
983
983
|
g("div", Fo, [
|
|
984
984
|
g("div", $o, [
|
|
@@ -996,7 +996,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
996
996
|
(de = E.original) != null && de.email ? (R(), z("div", Wo, [
|
|
997
997
|
V(c(Q), {
|
|
998
998
|
render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
|
|
999
|
-
props: (fe = (
|
|
999
|
+
props: (fe = (X = r.email) == null ? void 0 : X.getContext) == null ? void 0 : fe.call(X)
|
|
1000
1000
|
}, null, 8, ["render", "props"])
|
|
1001
1001
|
])) : Ae("", !0),
|
|
1002
1002
|
g("div", Do, [
|
package/dist/api/bill.d.ts
CHANGED
|
@@ -397,7 +397,7 @@ export declare const useBillApi: () => {
|
|
|
397
397
|
calculatorVersion?: number | null | undefined;
|
|
398
398
|
minPriceMode?: "PRODUCT_ONLY" | null | undefined;
|
|
399
399
|
slot: string;
|
|
400
|
-
status: "DRAFT" | "
|
|
400
|
+
status: "DRAFT" | "BILLED" | "REFUNDED" | "COMPLETED" | "VOIDED" | "PREORDER";
|
|
401
401
|
items: Record<string, {
|
|
402
402
|
createdBy?: {
|
|
403
403
|
name: string;
|
|
@@ -1161,7 +1161,7 @@ export declare const useBillApi: () => {
|
|
|
1161
1161
|
calculatorVersion?: number | null | undefined;
|
|
1162
1162
|
minPriceMode?: "PRODUCT_ONLY" | null | undefined;
|
|
1163
1163
|
slot: string;
|
|
1164
|
-
status: "DRAFT" | "
|
|
1164
|
+
status: "DRAFT" | "BILLED" | "REFUNDED" | "COMPLETED" | "VOIDED" | "PREORDER";
|
|
1165
1165
|
items: Record<string, {
|
|
1166
1166
|
createdBy?: {
|
|
1167
1167
|
name: string;
|
package/dist/api/closing.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare const useClosingApi: () => {
|
|
2
|
-
readLastClosing(idOnly?: boolean): Promise<Partial<FdoClosing> | null>;
|
|
2
|
+
readLastClosing(dbName: string, idOnly?: boolean): Promise<Partial<FdoClosing> | null>;
|
|
3
|
+
readCurrentLocationLastClosing(idOnly?: boolean): Promise<Partial<FdoClosing> | null>;
|
|
3
4
|
getClosingById(id: string): Promise<FdoClosing | null>;
|
|
5
|
+
setOpeningBalance(payload: {
|
|
6
|
+
effectiveAt: string;
|
|
7
|
+
skuAdjustments: FdoSkuAdjustment[];
|
|
8
|
+
skuBalances: FdoSkuBalance[];
|
|
9
|
+
}): Promise<FdoClosing | null>;
|
|
4
10
|
};
|