@feedmepos/mf-inventory-portal 0.0.23-dev.3 → 0.0.23-dev.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BREfwtck.js → App-Brc7GX7l.js} +85 -73
- package/dist/{ApprovalView-DCzLx24G.js → ApprovalView-CMRd7pcC.js} +24 -27
- package/dist/{BindingsDialog-CUcC8lue.js → BindingsDialog-DoakDtFI.js} +4 -4
- package/dist/{BindingsPicker-3VOdZBWI.js → BindingsPicker-BC3rjqKw.js} +8 -9
- package/dist/{BindingsTable-D5Lt6GOO.js → BindingsTable-xKRvhEV5.js} +18 -22
- package/dist/ClosingDraftView-DlaVbAHy.js +1190 -0
- package/dist/{ClosingTemplateView-CukthwOo.js → ClosingTemplateView-DFxLuV8k.js} +272 -286
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjGGEGQ9.js +282 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DNEwc797.js} +116 -114
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DlM-xGKh.js} +5 -5
- package/dist/{IngredientGroupView-CkD8x2CP.js → IngredientGroupView-C4bL0O5L.js} +63 -69
- package/dist/IngredientsView-CfS8FgxA.js +1657 -0
- package/dist/{IntegrationView-BfeV07OO.js → IntegrationView-aSAeFNtp.js} +92 -95
- package/dist/{InventoryBindingForm-BsSmth0U.js → InventoryBindingForm-C7rIUyV1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ba6WLcom.js} +25 -27
- package/dist/{InventoryBindingSummary-BHloDawE.js → InventoryBindingSummary-Ix92wSE6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-6BUIvm7C.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Cd6LQ6Yz.js} +23 -24
- package/dist/{PurchaseOrderPrintPreview-CTdd-RuH.js → PurchaseOrderPrintPreview-DJSF8YaR.js} +13 -14
- package/dist/ReceiveRequestView-BUyShiP2.js +4188 -0
- package/dist/{RecipeView-CrmDQdc5.js → RecipeView-c0XB2_P8.js} +79 -85
- package/dist/{StockView-Xb3fQaiD.js → StockView-DNPNymCW.js} +1338 -1446
- package/dist/{SupplierView-CrtIiaz0.js → SupplierView-Cz0hgito.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ySR4KngR.js +1227 -0
- package/dist/TransferTemplateView-B7kzPdfT.js +1264 -0
- package/dist/{UnitView-C6BgrZ1G.js → UnitView-BKWbaZfc.js} +40 -44
- package/dist/{WarehouseView-Hhd76ybU.js → WarehouseView-BgE3teyT.js} +94 -100
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/netsuite.d.ts +1 -1
- package/dist/app-Bkg0JUKr.js +84182 -0
- package/dist/app.d.ts +56 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-rPKr5T-H.js → decimal-CZ3lFF__.js} +1 -1
- package/dist/{feature-z95vJnA1.js → feature-By_PNrnn.js} +23 -9
- package/dist/format-unit-display-ZlJT10zr.js +1207 -0
- package/dist/index-B4nO9Djl.js +12087 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-DNajb8lV.js +125 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +69 -1
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-BixmjZyl.js → supplier-eaFF1izE.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BRygbm1p.js → use-inventory-binding-dialog-14JW4t6q.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +621 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +3621 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +25 -193
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
- package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/package.json +3 -3
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +0 -267
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +0 -436
- package/dist/FmMultiselectDialog-CKBcMDGC.js +0 -415
- package/dist/IngredientsView-DuK4YSD6.js +0 -1613
- package/dist/ReceiveRequestView-CgWNaYs1.js +0 -4104
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +0 -1189
- package/dist/TransferTemplateView-Cc7VRbZ7.js +0 -1262
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-CwUHqg7h.js +0 -33462
- package/dist/date2-CHNm4ELK.js +0 -117
- package/dist/dayjs.min-FE3dpxHU.js +0 -282
- package/dist/defineDeepModel-Dc1zZzOi.js +0 -13
- package/dist/format-time-from-id-CaPj8EHN.js +0 -15
- package/dist/format-unit-display-Bkz5kW6p.js +0 -1198
- package/dist/fuzzy-DXqhGaFi.js +0 -41
- package/dist/index-BMJHz32O.js +0 -22277
- package/dist/index-Be5vGZdr.js +0 -45
- package/dist/index-D2juQPg6.js +0 -10545
- package/dist/netsuite-P0as0Moa.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-BQz4NGht.js +0 -198
- package/dist/use-template-enabled-locations-2-Dd15d-ng.js +0 -86
- package/dist/xlsx-k2Rf0NcF.js +0 -24004
- package/dist/xlsx.util-CJxPf7XZ.js +0 -78
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as $ } from "./netsuite-P0as0Moa.js";
|
|
1
|
+
import { ref as w, onUnmounted as F, defineComponent as h, watch as I, onMounted as G, computed as g, resolveComponent as R, openBlock as S, createElementBlock as b, unref as v, createVNode as E, createElementVNode as p, toDisplayString as x, createBlock as U, createCommentVNode as M } from "vue";
|
|
2
|
+
import { u as k, a as D, b as H, R as e, g as r, _ as K, c as W } from "./app-Bkg0JUKr.js";
|
|
3
|
+
import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as C, useRoute as $ } from "vue-router";
|
|
5
|
+
import { u as O } from "./feature-By_PNrnn.js";
|
|
7
6
|
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
8
|
-
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
7
|
import { u as j } from "./googlemap-Dm8ERVai.js";
|
|
10
8
|
import "./array-hChJVZLE.js";
|
|
11
9
|
function z() {
|
|
@@ -14,9 +12,9 @@ function z() {
|
|
|
14
12
|
isLoading: !1
|
|
15
13
|
};
|
|
16
14
|
}
|
|
17
|
-
const _ =
|
|
15
|
+
const _ = w(z());
|
|
18
16
|
function q() {
|
|
19
|
-
const l =
|
|
17
|
+
const l = C();
|
|
20
18
|
if (!_.value.loadingHookInstalled) {
|
|
21
19
|
_.value.loadingHookInstalled = !0;
|
|
22
20
|
const n = l.beforeEach(() => {
|
|
@@ -24,7 +22,7 @@ function q() {
|
|
|
24
22
|
}), i = l.afterEach(() => {
|
|
25
23
|
_.value.isLoading = !1;
|
|
26
24
|
});
|
|
27
|
-
|
|
25
|
+
F(() => {
|
|
28
26
|
_.value.loadingHookInstalled = !1, n(), i();
|
|
29
27
|
});
|
|
30
28
|
}
|
|
@@ -40,53 +38,54 @@ const J = {
|
|
|
40
38
|
}, X = {
|
|
41
39
|
key: 1,
|
|
42
40
|
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
43
|
-
}, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" },
|
|
41
|
+
}, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" }, se = /* @__PURE__ */ h({
|
|
44
42
|
__name: "InventoryView",
|
|
45
43
|
setup(l) {
|
|
46
|
-
const n =
|
|
47
|
-
|
|
44
|
+
const n = k(), i = D(), u = H(), a = A(), c = C(), o = q(), y = O(), { t: d } = B();
|
|
45
|
+
I(
|
|
48
46
|
[() => a.sessionUser.value, () => a.currentBusiness.value],
|
|
49
|
-
([t,
|
|
50
|
-
|
|
47
|
+
([t, s]) => {
|
|
48
|
+
f(t, s);
|
|
51
49
|
}
|
|
52
|
-
),
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
), G(async () => {
|
|
51
|
+
await a.readBusinesses();
|
|
52
|
+
const t = a.sessionUser.value, s = a.currentBusiness.value;
|
|
53
|
+
f(t, s);
|
|
55
54
|
});
|
|
56
|
-
function
|
|
57
|
-
!t || !
|
|
55
|
+
function f(t, s) {
|
|
56
|
+
!t || !s || T();
|
|
58
57
|
}
|
|
59
|
-
async function
|
|
58
|
+
async function T() {
|
|
60
59
|
return await n.init(), await u.readSetting().catch((t) => {
|
|
61
60
|
console.error("error on reading netsuite store", t);
|
|
62
61
|
}), await i.init();
|
|
63
62
|
}
|
|
64
|
-
const N =
|
|
65
|
-
return (t,
|
|
66
|
-
const m =
|
|
67
|
-
return S(),
|
|
68
|
-
v(o).isLoading ? (S(),
|
|
63
|
+
const N = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
|
|
64
|
+
return (t, s) => {
|
|
65
|
+
const m = R("FmSpacer"), P = R("FmCircularProgress"), L = R("FmButton"), V = R("RouterView");
|
|
66
|
+
return S(), b("div", null, [
|
|
67
|
+
v(o).isLoading ? (S(), b("div", J, [
|
|
69
68
|
E(m),
|
|
70
69
|
p("div", null, [
|
|
71
70
|
E(P, { size: "xl" })
|
|
72
71
|
]),
|
|
73
|
-
|
|
72
|
+
s[0] || (s[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
74
73
|
E(m)
|
|
75
|
-
])) : N.value ? v(a).sessionUser.value ? (S(),
|
|
74
|
+
])) : N.value ? v(a).sessionUser.value ? (S(), U(V, { key: 2 })) : M("", !0) : (S(), b("div", X, [
|
|
76
75
|
p("div", Y, [
|
|
77
|
-
p("div", Z,
|
|
78
|
-
p("div", ee,
|
|
76
|
+
p("div", Z, x(v(d)("inventory.common.proPlan.title")), 1),
|
|
77
|
+
p("div", ee, x(v(d)("inventory.common.proPlan.subtitle")), 1)
|
|
79
78
|
]),
|
|
80
79
|
p("div", te, [
|
|
81
80
|
p("a", oe, [
|
|
82
|
-
E(
|
|
83
|
-
label: v(
|
|
81
|
+
E(L, {
|
|
82
|
+
label: v(d)("inventory.common.proPlan.comparePlans"),
|
|
84
83
|
variant: "secondary"
|
|
85
84
|
}, null, 8, ["label"])
|
|
86
85
|
]),
|
|
87
86
|
p("a", ne, [
|
|
88
|
-
E(
|
|
89
|
-
label: v(
|
|
87
|
+
E(L, {
|
|
88
|
+
label: v(d)("inventory.common.proPlan.callUs"),
|
|
90
89
|
"prepend-icon": "call"
|
|
91
90
|
}, null, 8, ["label"])
|
|
92
91
|
])
|
|
@@ -95,18 +94,18 @@ const J = {
|
|
|
95
94
|
]);
|
|
96
95
|
};
|
|
97
96
|
}
|
|
98
|
-
}),
|
|
97
|
+
}), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
|
|
99
98
|
__name: "NavigationTab",
|
|
100
99
|
setup(l) {
|
|
101
|
-
const n =
|
|
102
|
-
|
|
103
|
-
(t == null ? void 0 : t.menuVersion) === "v3" && (
|
|
100
|
+
const n = $(), i = C(), u = A(), a = O(), c = Q(), { t: o } = B();
|
|
101
|
+
I([() => u.currentBusiness.value, () => n.name], ([t, s]) => {
|
|
102
|
+
(t == null ? void 0 : t.menuVersion) === "v3" && (s === e.INGREDIENTS || s === e.RECIPE || s === e.UNIT) && i.push({ name: e.STOCK });
|
|
104
103
|
});
|
|
105
|
-
const y =
|
|
106
|
-
var
|
|
104
|
+
const y = g(() => {
|
|
105
|
+
var s;
|
|
107
106
|
const t = [
|
|
108
107
|
{
|
|
109
|
-
label:
|
|
108
|
+
label: r(e.STOCK, o),
|
|
110
109
|
// icon: 'inventory_2',
|
|
111
110
|
children: [
|
|
112
111
|
{
|
|
@@ -114,28 +113,41 @@ const J = {
|
|
|
114
113
|
value: e.STOCK
|
|
115
114
|
},
|
|
116
115
|
{
|
|
117
|
-
label:
|
|
116
|
+
label: r(e.WASTAGE_TEMPLATE, o),
|
|
117
|
+
value: e.WASTAGE_TEMPLATE
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
label: "Closing",
|
|
123
|
+
children: [
|
|
124
|
+
{
|
|
125
|
+
label: r(e.CLOSING_TEMPLATE, o),
|
|
118
126
|
value: e.CLOSING_TEMPLATE
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
label: r(e.CLOSING_DRAFT, o),
|
|
130
|
+
value: e.CLOSING_DRAFT
|
|
119
131
|
}
|
|
120
132
|
]
|
|
121
133
|
},
|
|
122
134
|
{
|
|
123
|
-
label:
|
|
135
|
+
label: r(e.INGREDIENTS, o),
|
|
124
136
|
// icon: 'grocery',
|
|
125
137
|
value: e.INGREDIENTS
|
|
126
138
|
},
|
|
127
139
|
{
|
|
128
|
-
label:
|
|
140
|
+
label: r(e.INGREDIENT_GROUP, o),
|
|
129
141
|
// icon: 'grocery',
|
|
130
142
|
value: e.INGREDIENT_GROUP
|
|
131
143
|
},
|
|
132
144
|
{
|
|
133
|
-
label:
|
|
145
|
+
label: r(e.RECIPE, o),
|
|
134
146
|
// icon: 'weight',
|
|
135
147
|
value: e.RECIPE
|
|
136
148
|
},
|
|
137
149
|
{
|
|
138
|
-
label:
|
|
150
|
+
label: r(e.UNIT, o),
|
|
139
151
|
// icon: 'fastfood',
|
|
140
152
|
value: e.UNIT
|
|
141
153
|
},
|
|
@@ -144,41 +156,41 @@ const J = {
|
|
|
144
156
|
// icon: 'swap_horiz',
|
|
145
157
|
children: [
|
|
146
158
|
{
|
|
147
|
-
label:
|
|
159
|
+
label: r(e.RECEIVE_REQUEST, o),
|
|
148
160
|
value: e.RECEIVE_REQUEST
|
|
149
161
|
},
|
|
150
162
|
{
|
|
151
|
-
label:
|
|
163
|
+
label: r(e.APPROVAL, o),
|
|
152
164
|
value: e.APPROVAL
|
|
153
165
|
},
|
|
154
166
|
...a.enablePoTemplate ? [
|
|
155
167
|
{
|
|
156
|
-
label:
|
|
168
|
+
label: r(e.TRANSFER_TEMPLATE, o),
|
|
157
169
|
value: e.TRANSFER_TEMPLATE
|
|
158
170
|
}
|
|
159
171
|
] : []
|
|
160
172
|
]
|
|
161
173
|
},
|
|
162
174
|
{
|
|
163
|
-
label:
|
|
175
|
+
label: r(e.SUPPLIER, o),
|
|
164
176
|
// icon: 'group',
|
|
165
177
|
value: e.SUPPLIER
|
|
166
178
|
},
|
|
167
179
|
{
|
|
168
|
-
label:
|
|
180
|
+
label: r(e.WAREHOUSE, o),
|
|
169
181
|
// icon: 'warehouse',
|
|
170
182
|
value: e.WAREHOUSE
|
|
171
183
|
},
|
|
172
184
|
{
|
|
173
|
-
label:
|
|
185
|
+
label: r(e.INTEGRATION, o),
|
|
174
186
|
// icon: 'integration_instructions',
|
|
175
187
|
value: e.INTEGRATION
|
|
176
188
|
}
|
|
177
189
|
];
|
|
178
|
-
return ((
|
|
190
|
+
return ((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) === "v3" ? t.filter(
|
|
179
191
|
(m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
|
|
180
192
|
) : t;
|
|
181
|
-
}),
|
|
193
|
+
}), d = g({
|
|
182
194
|
get() {
|
|
183
195
|
if (n.name)
|
|
184
196
|
return String(n.name);
|
|
@@ -186,35 +198,35 @@ const J = {
|
|
|
186
198
|
set(t) {
|
|
187
199
|
t && i.push({ name: t });
|
|
188
200
|
}
|
|
189
|
-
}),
|
|
201
|
+
}), f = g(
|
|
190
202
|
() => {
|
|
191
203
|
var t;
|
|
192
204
|
return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
|
|
193
205
|
}
|
|
194
|
-
),
|
|
206
|
+
), T = w(!1), N = g({
|
|
195
207
|
get() {
|
|
196
|
-
return
|
|
208
|
+
return T.value;
|
|
197
209
|
},
|
|
198
210
|
set(t) {
|
|
199
|
-
|
|
211
|
+
T.value = t, t || c.setItem(f.value, "true");
|
|
200
212
|
}
|
|
201
213
|
});
|
|
202
|
-
return
|
|
203
|
-
|
|
204
|
-
N.value = !c.getItem(
|
|
214
|
+
return I([() => f.value], () => {
|
|
215
|
+
T.value = !1, setTimeout(() => {
|
|
216
|
+
N.value = !c.getItem(f.value);
|
|
205
217
|
}, 2e3);
|
|
206
|
-
}), (t,
|
|
207
|
-
const m =
|
|
208
|
-
return S(),
|
|
218
|
+
}), (t, s) => {
|
|
219
|
+
const m = R("FmCollapsibleTabs");
|
|
220
|
+
return S(), b("div", re, [
|
|
209
221
|
E(m, {
|
|
210
|
-
modelValue:
|
|
211
|
-
"onUpdate:modelValue":
|
|
222
|
+
modelValue: d.value,
|
|
223
|
+
"onUpdate:modelValue": s[0] || (s[0] = (P) => d.value = P),
|
|
212
224
|
items: y.value
|
|
213
225
|
}, null, 8, ["modelValue", "items"])
|
|
214
226
|
]);
|
|
215
227
|
};
|
|
216
228
|
}
|
|
217
|
-
}), le = /* @__PURE__ */
|
|
229
|
+
}), le = /* @__PURE__ */ K(ae, [["__scopeId", "data-v-4515fce1"]]);
|
|
218
230
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
219
231
|
let l, n;
|
|
220
232
|
return { promise: new Promise((u, a) => {
|
|
@@ -224,11 +236,11 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
|
224
236
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
225
237
|
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
226
238
|
});
|
|
227
|
-
const
|
|
239
|
+
const _e = /* @__PURE__ */ h({
|
|
228
240
|
__name: "App",
|
|
229
241
|
setup(l) {
|
|
230
|
-
const n =
|
|
231
|
-
|
|
242
|
+
const n = A(), i = j(), u = W();
|
|
243
|
+
G(() => {
|
|
232
244
|
if (window.location.href.includes("print-preview")) {
|
|
233
245
|
n.setEmbedded(!0);
|
|
234
246
|
return;
|
|
@@ -236,7 +248,7 @@ const Se = /* @__PURE__ */ h({
|
|
|
236
248
|
n.registerSidebarComponent(le), i.initGoogleMap(u.appApi.googleMap).catch(() => {
|
|
237
249
|
console.error("Google map cannot be loaded");
|
|
238
250
|
});
|
|
239
|
-
}),
|
|
251
|
+
}), I([() => n.currentCountry.value], () => {
|
|
240
252
|
a();
|
|
241
253
|
});
|
|
242
254
|
async function a() {
|
|
@@ -247,9 +259,9 @@ const Se = /* @__PURE__ */ h({
|
|
|
247
259
|
console.error("error when trying to reset businesses:", o);
|
|
248
260
|
}
|
|
249
261
|
}
|
|
250
|
-
return (c, o) => (S(),
|
|
262
|
+
return (c, o) => (S(), U(se));
|
|
251
263
|
}
|
|
252
264
|
});
|
|
253
265
|
export {
|
|
254
|
-
|
|
266
|
+
_e as default
|
|
255
267
|
};
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as
|
|
2
|
-
import { u as me,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as be, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
7
|
-
import { useBreakpoints as xe } from "@feedmepos/ui-library";
|
|
8
|
-
import { useI18n as ye } from "@feedmepos/mf-common";
|
|
1
|
+
import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as y, createBlock as J, unref as e, withCtx as x, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as ue, mergeProps as pe } from "vue";
|
|
2
|
+
import { u as me, ay as v, aI as de, ab as K, x as fe, y as ve, z as _e, B as he, E as _ } from "./app-Bkg0JUKr.js";
|
|
3
|
+
import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-ySR4KngR.js";
|
|
4
|
+
import { useBreakpoints as ye } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as xe } from "@feedmepos/mf-common";
|
|
9
6
|
const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
|
|
10
7
|
key: 0,
|
|
11
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
12
|
-
}, Te = { class: "pt-8" },
|
|
9
|
+
}, Te = { class: "pt-8" }, Ye = /* @__PURE__ */ ae({
|
|
13
10
|
__name: "ApprovalView",
|
|
14
11
|
setup(Ce) {
|
|
15
|
-
const o =
|
|
12
|
+
const o = De("approval"), { columnDefs: Q } = ge("approval", o), W = me();
|
|
16
13
|
v.object({
|
|
17
14
|
name: v.string().optional().nullable(),
|
|
18
15
|
start: v.date().optional().nullable(),
|
|
@@ -38,7 +35,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
38
35
|
return;
|
|
39
36
|
}
|
|
40
37
|
});
|
|
41
|
-
const h = g(""), { breakpoints: R } =
|
|
38
|
+
const h = g(""), { breakpoints: R } = ye(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = xe(), B = b(() => [
|
|
42
39
|
{
|
|
43
40
|
label: k("common.refresh"),
|
|
44
41
|
value: "refresh"
|
|
@@ -52,12 +49,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
52
49
|
}
|
|
53
50
|
return (c, l) => {
|
|
54
51
|
const ee = re("FmTable");
|
|
55
|
-
return
|
|
52
|
+
return y(), J(ve, {
|
|
56
53
|
title: e(k)("inventory.transfer.approval.title"),
|
|
57
54
|
actions: B.value,
|
|
58
55
|
"onClick:action": I
|
|
59
56
|
}, {
|
|
60
|
-
default:
|
|
57
|
+
default: x(() => [
|
|
61
58
|
s("div", {
|
|
62
59
|
class: ne([
|
|
63
60
|
"flex flex-col gap-8 max-h-full",
|
|
@@ -82,13 +79,13 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
82
79
|
onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
|
|
83
80
|
"page-size": X.value
|
|
84
81
|
}, {
|
|
85
|
-
"list-row":
|
|
86
|
-
n(
|
|
82
|
+
"list-row": x((r) => [
|
|
83
|
+
n(he, {
|
|
87
84
|
row: r,
|
|
88
85
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
89
86
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
var O, S, T, i, C, z,
|
|
87
|
+
default: x((t) => {
|
|
88
|
+
var O, S, T, i, C, z, M, $, u, F, V, p, Y, m, q, E, L, N, P, d, j, A, H, U, f, G;
|
|
92
89
|
return [
|
|
93
90
|
s("div", we, [
|
|
94
91
|
s("div", Re, [
|
|
@@ -99,20 +96,20 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
99
96
|
]),
|
|
100
97
|
s("div", ke, [
|
|
101
98
|
n(e(_), {
|
|
102
|
-
render: (
|
|
103
|
-
props: (
|
|
99
|
+
render: ($ = (M = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : M.columnDef) == null ? void 0 : $.cell,
|
|
100
|
+
props: (F = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : F.call(u)
|
|
104
101
|
}, null, 8, ["render", "props"])
|
|
105
102
|
]),
|
|
106
|
-
s("div", Oe, le((q = (m = (Y = (
|
|
107
|
-
(
|
|
103
|
+
s("div", Oe, le((q = (m = (Y = (p = (V = r.original.purchaseOrder) == null ? void 0 : V.items) == null ? void 0 : p.map) == null ? void 0 : Y.call(p, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
|
|
104
|
+
(E = r.original.purchaseOrder) != null && E.ref ? (y(), ce("div", Se, [
|
|
108
105
|
n(e(_), {
|
|
109
|
-
render: (
|
|
110
|
-
props: (
|
|
106
|
+
render: (P = (N = (L = t.purchaseOrder_ref) == null ? void 0 : L.column) == null ? void 0 : N.columnDef) == null ? void 0 : P.cell,
|
|
107
|
+
props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
|
|
111
108
|
}, null, 8, ["render", "props"])
|
|
112
109
|
])) : ie("", !0),
|
|
113
110
|
s("div", Te, [
|
|
114
111
|
n(e(_), {
|
|
115
|
-
render: (U = (H = (
|
|
112
|
+
render: (U = (H = (A = t.purchaseOrder_status) == null ? void 0 : A.column) == null ? void 0 : H.columnDef) == null ? void 0 : U.cell,
|
|
116
113
|
props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
|
|
117
114
|
}, null, 8, ["render", "props"])
|
|
118
115
|
])
|
|
@@ -125,8 +122,8 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
125
122
|
_: 1
|
|
126
123
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
127
124
|
], 2),
|
|
128
|
-
(
|
|
129
|
-
n(
|
|
125
|
+
(y(), J(ue, { to: "body" }, [
|
|
126
|
+
n(be, pe(e(o).transferDetailsProps.value, {
|
|
130
127
|
onSubmitted: e(o).fetchData
|
|
131
128
|
}), null, 16, ["onSubmitted"])
|
|
132
129
|
]))
|
|
@@ -137,5 +134,5 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
137
134
|
}
|
|
138
135
|
});
|
|
139
136
|
export {
|
|
140
|
-
|
|
137
|
+
Ye as default
|
|
141
138
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L,
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ba6WLcom.js";
|
|
3
|
+
import { a as L, aO as S } from "./app-Bkg0JUKr.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
7
7
|
}, E = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
|
-
},
|
|
10
|
+
}, A = /* @__PURE__ */ C({
|
|
11
11
|
__name: "BindingsDialog",
|
|
12
12
|
setup(N) {
|
|
13
13
|
const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
|
|
@@ -90,5 +90,5 @@ const U = {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
A as default
|
|
94
94
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const z = {
|
|
2
|
+
import { a as M, aO as x, H as z } from "./app-Bkg0JUKr.js";
|
|
3
|
+
const F = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "flex flex-col gap-16"
|
|
7
6
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
8
7
|
key: 1,
|
|
9
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
|
-
},
|
|
9
|
+
}, H = /* @__PURE__ */ S({
|
|
11
10
|
__name: "BindingsPicker",
|
|
12
11
|
setup(L) {
|
|
13
|
-
const d =
|
|
12
|
+
const d = M(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
|
|
14
13
|
label: s.name,
|
|
15
14
|
sublabel: s.code,
|
|
16
15
|
value: s
|
|
@@ -63,7 +62,7 @@ const z = {
|
|
|
63
62
|
];
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
}), _ = l(), o =
|
|
65
|
+
}), _ = l(), o = x(B);
|
|
67
66
|
async function B() {
|
|
68
67
|
await d.readInventory(), _.value = o.onMessage(
|
|
69
68
|
"props:binding-items",
|
|
@@ -97,8 +96,8 @@ const z = {
|
|
|
97
96
|
g.value ? (p(), f("div", w, [
|
|
98
97
|
u(t, { size: "md" }),
|
|
99
98
|
s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
|
|
100
|
-
])) : (p(), f("div",
|
|
101
|
-
u(
|
|
99
|
+
])) : (p(), f("div", F, [
|
|
100
|
+
u(z, {
|
|
102
101
|
"model-value": b.value,
|
|
103
102
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
|
|
104
103
|
items: c.value
|
|
@@ -120,5 +119,5 @@ const z = {
|
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
121
|
export {
|
|
123
|
-
|
|
122
|
+
H as default
|
|
124
123
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
|
|
2
|
-
import { F as v, a as E,
|
|
3
|
-
import "./index-BMJHz32O.js";
|
|
2
|
+
import { F as v, a as E, aO as F } from "./app-Bkg0JUKr.js";
|
|
4
3
|
import { components as L } from "@feedmepos/ui-library";
|
|
5
|
-
import "./fuzzy-DXqhGaFi.js";
|
|
6
|
-
/* empty css */
|
|
7
4
|
import "@feedmepos/mf-common";
|
|
8
|
-
|
|
9
|
-
const P = /* @__PURE__ */ _({
|
|
5
|
+
const O = /* @__PURE__ */ _({
|
|
10
6
|
__name: "binding-ui",
|
|
11
7
|
props: {
|
|
12
8
|
items: { default: () => [] },
|
|
@@ -26,17 +22,17 @@ const P = /* @__PURE__ */ _({
|
|
|
26
22
|
C("closeDialog", () => {
|
|
27
23
|
u.value.isOpen = !u.value.isOpen;
|
|
28
24
|
});
|
|
29
|
-
const
|
|
25
|
+
const o = k, m = d, a = f(() => o.items.map((e) => ({
|
|
30
26
|
key: e.key,
|
|
31
27
|
name: e.name,
|
|
32
28
|
_skuLinked: e.bindings.filter(
|
|
33
|
-
({ type: n, id:
|
|
29
|
+
({ type: n, id: s }) => n === v.enum.SKU && o.skus.some((l) => l._id === s)
|
|
34
30
|
).length,
|
|
35
31
|
_recipeLinked: e.bindings.filter(
|
|
36
|
-
({ type: n, id:
|
|
32
|
+
({ type: n, id: s }) => n === v.enum.RECIPE && o.recipes.some((l) => l._id === s)
|
|
37
33
|
).length,
|
|
38
34
|
onUpdate: async () => {
|
|
39
|
-
|
|
35
|
+
o.editable && m("click:open-binding-dialog", o.type, e);
|
|
40
36
|
}
|
|
41
37
|
}))), g = [
|
|
42
38
|
{
|
|
@@ -49,7 +45,7 @@ const P = /* @__PURE__ */ _({
|
|
|
49
45
|
header: "Ingredient",
|
|
50
46
|
size: 200,
|
|
51
47
|
cell(i) {
|
|
52
|
-
const e = a.value.find((
|
|
48
|
+
const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._skuLinked;
|
|
53
49
|
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
54
50
|
}
|
|
55
51
|
},
|
|
@@ -58,7 +54,7 @@ const P = /* @__PURE__ */ _({
|
|
|
58
54
|
header: "Recipe",
|
|
59
55
|
size: 200,
|
|
60
56
|
cell(i) {
|
|
61
|
-
const e = a.value.find((
|
|
57
|
+
const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._recipeLinked;
|
|
62
58
|
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
63
59
|
}
|
|
64
60
|
},
|
|
@@ -91,22 +87,22 @@ const P = /* @__PURE__ */ _({
|
|
|
91
87
|
}, null, 8, ["row-data"]);
|
|
92
88
|
};
|
|
93
89
|
}
|
|
94
|
-
}),
|
|
90
|
+
}), P = {
|
|
95
91
|
key: 1,
|
|
96
92
|
class: "p-24 flex items-center justify-center gap-16"
|
|
97
|
-
},
|
|
93
|
+
}, D = /* @__PURE__ */ _({
|
|
98
94
|
__name: "BindingsTable",
|
|
99
95
|
setup(k) {
|
|
100
|
-
const d = E(), u = c(!0),
|
|
96
|
+
const d = E(), u = c(!0), o = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
|
|
101
97
|
async function n() {
|
|
102
98
|
await d.readInventory(), e.value = i.onMessage(
|
|
103
99
|
"props:grouped-bindings",
|
|
104
100
|
(t) => {
|
|
105
|
-
u.value = !1,
|
|
101
|
+
u.value = !1, o.value = t;
|
|
106
102
|
}
|
|
107
103
|
), i.sendMessage("props:grouped-bindings");
|
|
108
104
|
}
|
|
109
|
-
async function
|
|
105
|
+
async function s(t, r) {
|
|
110
106
|
i.sendMessage("@click:open-binding-dialog", {
|
|
111
107
|
key: t,
|
|
112
108
|
binding: r
|
|
@@ -128,22 +124,22 @@ const P = /* @__PURE__ */ _({
|
|
|
128
124
|
ref_key: "resizeableRef",
|
|
129
125
|
ref: l
|
|
130
126
|
}, [
|
|
131
|
-
u.value ? (p(), y("div",
|
|
127
|
+
u.value ? (p(), y("div", P, [
|
|
132
128
|
N(w, { size: "md" }),
|
|
133
129
|
r[0] || (r[0] = x("div", null, "Loading bindings table...", -1))
|
|
134
|
-
])) : (p(), h(
|
|
130
|
+
])) : (p(), h(O, {
|
|
135
131
|
key: 0,
|
|
136
|
-
items:
|
|
132
|
+
items: o.value,
|
|
137
133
|
recipes: m.value,
|
|
138
134
|
skus: a.value,
|
|
139
135
|
type: g.value,
|
|
140
136
|
editable: "",
|
|
141
|
-
"onClick:openBindingDialog":
|
|
137
|
+
"onClick:openBindingDialog": s
|
|
142
138
|
}, null, 8, ["items", "recipes", "skus", "type"]))
|
|
143
139
|
], 512);
|
|
144
140
|
};
|
|
145
141
|
}
|
|
146
142
|
});
|
|
147
143
|
export {
|
|
148
|
-
|
|
144
|
+
D as default
|
|
149
145
|
};
|