@feedmepos/mf-inventory-portal 0.0.23-dev.31 → 0.0.23-dev.4
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-CEmWJ9lp.js → App-DReDvY0M.js} +73 -85
- package/dist/{ApprovalView-jDll4AVe.js → ApprovalView-BMZlYmRk.js} +27 -24
- package/dist/{BindingsDialog-BC_gRSif.js → BindingsDialog-Y2K4I7H7.js} +4 -4
- package/dist/{BindingsPicker-BJsGoBzM.js → BindingsPicker-DKBq9c37.js} +9 -8
- package/dist/{BindingsTable-DSdwNK_q.js → BindingsTable-45v4SDfp.js} +22 -18
- package/dist/{ClosingTemplateView-BzG16gl5.js → ClosingTemplateView-CKJVYSbj.js} +286 -272
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DW2IOPST.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js} +23 -22
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +436 -0
- package/dist/FmMultiselectDialog-D7YtdoyJ.js +415 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DDuZEf_v.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js} +49 -48
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CiNvnaaE.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js} +5 -5
- package/dist/{IngredientGroupView-DL8eBhkk.js → IngredientGroupView-BuP-HGeg.js} +69 -63
- package/dist/IngredientsView-DMRN-odY.js +1613 -0
- package/dist/{IntegrationView-BeFT5S24.js → IntegrationView-kYCaKG0o.js} +95 -92
- package/dist/{InventoryBindingForm-DJ3uwq_X.js → InventoryBindingForm-BXHq4h-n.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIviTipZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js} +27 -25
- package/dist/{InventoryBindingSummary-CvB5j9xq.js → InventoryBindingSummary-Bjasfc_v.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQPdnXEF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BdscwUGn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js} +24 -23
- package/dist/{PurchaseOrderPrintPreview-3_6nBajH.js → PurchaseOrderPrintPreview-CmjkfTTS.js} +14 -13
- package/dist/{ReceiveRequestView-B_0UldQ7.js → ReceiveRequestView-aQZJO8sq.js} +1302 -1325
- package/dist/{RecipeView-D9p0Ou_I.js → RecipeView-DXO43tFi.js} +85 -79
- package/dist/{StockView-TIdUgG3O.js → StockView-D9no-mrA.js} +1446 -1338
- package/dist/{SupplierView-B1b9Otcr.js → SupplierView-DAx7E7sR.js} +787 -2325
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +1209 -0
- package/dist/TransferTemplateView-CfxdQF1t.js +1261 -0
- package/dist/{UnitView-BrpzJ7D3.js → UnitView-CQPGZ8-r.js} +44 -40
- package/dist/{WarehouseView-CjbdEy8o.js → WarehouseView-jy-RNCgy.js} +100 -94
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/closing.d.ts +0 -1
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-KnSMkJBV.js +33496 -0
- package/dist/app.d.ts +0 -56
- package/dist/app.js +2 -2
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -1
- package/dist/components/row-action.enum.d.ts +0 -1
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/date2-CIeUqUIc.js +117 -0
- package/dist/dayjs.min-Df5jSnDJ.js +282 -0
- package/dist/{decimal-DHYZglKx.js → decimal-BAc9M88Q.js} +1 -1
- package/dist/defineDeepModel-BfuQAIoM.js +13 -0
- package/dist/{feature-G-NnqKcY.js → feature-dwB4OxRQ.js} +6 -12
- package/dist/format-time-from-id-BbvzyIN6.js +15 -0
- package/dist/{format-unit-display-BWqJsV_R.js → format-unit-display-BBWblJEt.js} +171 -162
- package/dist/fuzzy-B9ryZ9VZ.js +41 -0
- package/dist/index-BN0CY3sZ.js +22277 -0
- package/dist/index-Bj1fJum-.js +45 -0
- package/dist/index-C4yL_7rR.js +10545 -0
- package/dist/netsuite-ByWOS6tI.js +194 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +0 -2
- package/dist/row-action.enum-PMKMRrZR.js +50 -0
- package/dist/rules-C12nWDD1.js +198 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/integration/netsuite.d.ts +2 -70
- package/dist/stores/inventory.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DTUUR48O.js → supplier-DJC0UZWv.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-DvC_i-Ih.js → use-inventory-binding-dialog-PEQbFRvO.js} +11 -10
- package/dist/use-template-enabled-locations-2-k9g5t8tt.js +86 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +193 -25
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +0 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -9
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -9
- 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/xlsx-B4XHad7S.js +24004 -0
- package/dist/xlsx.util-BSO4SHJi.js +78 -0
- package/package.json +3 -3
- package/dist/ClosingDraftView-UfWdRXb-.js +0 -1190
- package/dist/IngredientsView-B_HC9fgq.js +0 -1657
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-jUYB4L8Y.js +0 -1275
- package/dist/TransferTemplateView-Dxk5b-2j.js +0 -1264
- package/dist/api/adjustment-template.d.ts +0 -23
- package/dist/api/closing-draft.d.ts +0 -6
- package/dist/app-AcMtTQ07.js +0 -84202
- package/dist/index-Bt8vaUdT.js +0 -12087
- package/dist/stock-VZXyPw2C.js +0 -125
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +0 -2
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +0 -18
- package/dist/views/adjustment-template/import/export.d.ts +0 -60
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +0 -2
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +0 -22
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +0 -6
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +0 -2
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -1295
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +0 -16
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +0 -35
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +0 -20
- package/dist/views/adjustment-template/wastage-template/props.d.ts +0 -29
- package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -1273
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -621
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -3621
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +0 -12
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +0 -13
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +0 -12
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { u as
|
|
1
|
+
import { ref as L, onUnmounted as k, defineComponent as h, watch as b, onMounted as U, computed as R, resolveComponent as T, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as F } from "vue";
|
|
2
|
+
import { u as M, a as D, R as e, g as s, b as H } from "./app-KnSMkJBV.js";
|
|
3
|
+
import { useCoreStore as x, useI18n as G } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as A, useRoute as K } from "vue-router";
|
|
5
|
+
import { u as V } from "./feature-dwB4OxRQ.js";
|
|
6
|
+
import { u as $ } from "./netsuite-ByWOS6tI.js";
|
|
6
7
|
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
8
|
+
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
9
|
import { u as j } from "./googlemap-Dm8ERVai.js";
|
|
8
10
|
import "./array-hChJVZLE.js";
|
|
9
11
|
function z() {
|
|
@@ -12,9 +14,9 @@ function z() {
|
|
|
12
14
|
isLoading: !1
|
|
13
15
|
};
|
|
14
16
|
}
|
|
15
|
-
const _ =
|
|
17
|
+
const _ = L(z());
|
|
16
18
|
function q() {
|
|
17
|
-
const l =
|
|
19
|
+
const l = A();
|
|
18
20
|
if (!_.value.loadingHookInstalled) {
|
|
19
21
|
_.value.loadingHookInstalled = !0;
|
|
20
22
|
const n = l.beforeEach(() => {
|
|
@@ -22,7 +24,7 @@ function q() {
|
|
|
22
24
|
}), i = l.afterEach(() => {
|
|
23
25
|
_.value.isLoading = !1;
|
|
24
26
|
});
|
|
25
|
-
|
|
27
|
+
k(() => {
|
|
26
28
|
_.value.loadingHookInstalled = !1, n(), i();
|
|
27
29
|
});
|
|
28
30
|
}
|
|
@@ -38,54 +40,53 @@ const J = {
|
|
|
38
40
|
}, X = {
|
|
39
41
|
key: 1,
|
|
40
42
|
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
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" },
|
|
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" }, re = /* @__PURE__ */ h({
|
|
42
44
|
__name: "InventoryView",
|
|
43
45
|
setup(l) {
|
|
44
|
-
const n =
|
|
45
|
-
|
|
46
|
+
const n = M(), i = D(), u = $(), a = x(), c = A(), o = q(), y = V(), { t: f } = G();
|
|
47
|
+
b(
|
|
46
48
|
[() => a.sessionUser.value, () => a.currentBusiness.value],
|
|
47
|
-
([t,
|
|
48
|
-
|
|
49
|
+
([t, r]) => {
|
|
50
|
+
d(t, r);
|
|
49
51
|
}
|
|
50
|
-
),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
f(t, s);
|
|
52
|
+
), U(() => {
|
|
53
|
+
const t = a.sessionUser.value, r = a.currentBusiness.value;
|
|
54
|
+
d(t, r);
|
|
54
55
|
});
|
|
55
|
-
function
|
|
56
|
-
!t || !
|
|
56
|
+
function d(t, r) {
|
|
57
|
+
!t || !r || g();
|
|
57
58
|
}
|
|
58
|
-
async function
|
|
59
|
+
async function g() {
|
|
59
60
|
return await n.init(), await u.readSetting().catch((t) => {
|
|
60
61
|
console.error("error on reading netsuite store", t);
|
|
61
62
|
}), await i.init();
|
|
62
63
|
}
|
|
63
|
-
const N =
|
|
64
|
-
return (t,
|
|
65
|
-
const m =
|
|
66
|
-
return S(),
|
|
67
|
-
v(o).isLoading ? (S(),
|
|
64
|
+
const N = R(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
|
|
65
|
+
return (t, r) => {
|
|
66
|
+
const m = T("FmSpacer"), P = T("FmCircularProgress"), C = T("FmButton"), O = T("RouterView");
|
|
67
|
+
return S(), I("div", null, [
|
|
68
|
+
v(o).isLoading ? (S(), I("div", J, [
|
|
68
69
|
E(m),
|
|
69
70
|
p("div", null, [
|
|
70
71
|
E(P, { size: "xl" })
|
|
71
72
|
]),
|
|
72
|
-
|
|
73
|
+
r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
73
74
|
E(m)
|
|
74
|
-
])) : N.value ? v(a).sessionUser.value ? (S(),
|
|
75
|
+
])) : N.value ? v(a).sessionUser.value ? (S(), B(O, { key: 2 })) : F("", !0) : (S(), I("div", X, [
|
|
75
76
|
p("div", Y, [
|
|
76
|
-
p("div", Z,
|
|
77
|
-
p("div", ee,
|
|
77
|
+
p("div", Z, w(v(f)("inventory.common.proPlan.title")), 1),
|
|
78
|
+
p("div", ee, w(v(f)("inventory.common.proPlan.subtitle")), 1)
|
|
78
79
|
]),
|
|
79
80
|
p("div", te, [
|
|
80
81
|
p("a", oe, [
|
|
81
|
-
E(
|
|
82
|
-
label: v(
|
|
82
|
+
E(C, {
|
|
83
|
+
label: v(f)("inventory.common.proPlan.comparePlans"),
|
|
83
84
|
variant: "secondary"
|
|
84
85
|
}, null, 8, ["label"])
|
|
85
86
|
]),
|
|
86
87
|
p("a", ne, [
|
|
87
|
-
E(
|
|
88
|
-
label: v(
|
|
88
|
+
E(C, {
|
|
89
|
+
label: v(f)("inventory.common.proPlan.callUs"),
|
|
89
90
|
"prepend-icon": "call"
|
|
90
91
|
}, null, 8, ["label"])
|
|
91
92
|
])
|
|
@@ -94,18 +95,18 @@ const J = {
|
|
|
94
95
|
]);
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
|
-
}),
|
|
98
|
+
}), se = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
|
|
98
99
|
__name: "NavigationTab",
|
|
99
100
|
setup(l) {
|
|
100
|
-
const n =
|
|
101
|
-
|
|
102
|
-
(t == null ? void 0 : t.menuVersion) === "v3" && (
|
|
101
|
+
const n = K(), i = A(), u = x(), a = V(), c = Q(), { t: o } = G();
|
|
102
|
+
b([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
|
|
103
|
+
(t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
|
|
103
104
|
});
|
|
104
|
-
const y =
|
|
105
|
-
var
|
|
105
|
+
const y = R(() => {
|
|
106
|
+
var r;
|
|
106
107
|
const t = [
|
|
107
108
|
{
|
|
108
|
-
label:
|
|
109
|
+
label: s(e.STOCK, o),
|
|
109
110
|
// icon: 'inventory_2',
|
|
110
111
|
children: [
|
|
111
112
|
{
|
|
@@ -113,41 +114,28 @@ const J = {
|
|
|
113
114
|
value: e.STOCK
|
|
114
115
|
},
|
|
115
116
|
{
|
|
116
|
-
label:
|
|
117
|
-
value: e.WASTAGE_TEMPLATE
|
|
118
|
-
}
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
label: "Closing",
|
|
123
|
-
children: [
|
|
124
|
-
{
|
|
125
|
-
label: r(e.CLOSING_TEMPLATE, o),
|
|
117
|
+
label: s(e.CLOSING_TEMPLATE, o),
|
|
126
118
|
value: e.CLOSING_TEMPLATE
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
label: r(e.CLOSING_DRAFT, o),
|
|
130
|
-
value: e.CLOSING_DRAFT
|
|
131
119
|
}
|
|
132
120
|
]
|
|
133
121
|
},
|
|
134
122
|
{
|
|
135
|
-
label:
|
|
123
|
+
label: s(e.INGREDIENTS, o),
|
|
136
124
|
// icon: 'grocery',
|
|
137
125
|
value: e.INGREDIENTS
|
|
138
126
|
},
|
|
139
127
|
{
|
|
140
|
-
label:
|
|
128
|
+
label: s(e.INGREDIENT_GROUP, o),
|
|
141
129
|
// icon: 'grocery',
|
|
142
130
|
value: e.INGREDIENT_GROUP
|
|
143
131
|
},
|
|
144
132
|
{
|
|
145
|
-
label:
|
|
133
|
+
label: s(e.RECIPE, o),
|
|
146
134
|
// icon: 'weight',
|
|
147
135
|
value: e.RECIPE
|
|
148
136
|
},
|
|
149
137
|
{
|
|
150
|
-
label:
|
|
138
|
+
label: s(e.UNIT, o),
|
|
151
139
|
// icon: 'fastfood',
|
|
152
140
|
value: e.UNIT
|
|
153
141
|
},
|
|
@@ -156,41 +144,41 @@ const J = {
|
|
|
156
144
|
// icon: 'swap_horiz',
|
|
157
145
|
children: [
|
|
158
146
|
{
|
|
159
|
-
label:
|
|
147
|
+
label: s(e.RECEIVE_REQUEST, o),
|
|
160
148
|
value: e.RECEIVE_REQUEST
|
|
161
149
|
},
|
|
162
150
|
{
|
|
163
|
-
label:
|
|
151
|
+
label: s(e.APPROVAL, o),
|
|
164
152
|
value: e.APPROVAL
|
|
165
153
|
},
|
|
166
154
|
...a.enablePoTemplate ? [
|
|
167
155
|
{
|
|
168
|
-
label:
|
|
156
|
+
label: s(e.TRANSFER_TEMPLATE, o),
|
|
169
157
|
value: e.TRANSFER_TEMPLATE
|
|
170
158
|
}
|
|
171
159
|
] : []
|
|
172
160
|
]
|
|
173
161
|
},
|
|
174
162
|
{
|
|
175
|
-
label:
|
|
163
|
+
label: s(e.SUPPLIER, o),
|
|
176
164
|
// icon: 'group',
|
|
177
165
|
value: e.SUPPLIER
|
|
178
166
|
},
|
|
179
167
|
{
|
|
180
|
-
label:
|
|
168
|
+
label: s(e.WAREHOUSE, o),
|
|
181
169
|
// icon: 'warehouse',
|
|
182
170
|
value: e.WAREHOUSE
|
|
183
171
|
},
|
|
184
172
|
{
|
|
185
|
-
label:
|
|
173
|
+
label: s(e.INTEGRATION, o),
|
|
186
174
|
// icon: 'integration_instructions',
|
|
187
175
|
value: e.INTEGRATION
|
|
188
176
|
}
|
|
189
177
|
];
|
|
190
|
-
return ((
|
|
178
|
+
return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
|
|
191
179
|
(m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
|
|
192
180
|
) : t;
|
|
193
|
-
}),
|
|
181
|
+
}), f = R({
|
|
194
182
|
get() {
|
|
195
183
|
if (n.name)
|
|
196
184
|
return String(n.name);
|
|
@@ -198,35 +186,35 @@ const J = {
|
|
|
198
186
|
set(t) {
|
|
199
187
|
t && i.push({ name: t });
|
|
200
188
|
}
|
|
201
|
-
}),
|
|
189
|
+
}), d = R(
|
|
202
190
|
() => {
|
|
203
191
|
var t;
|
|
204
192
|
return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
|
|
205
193
|
}
|
|
206
|
-
),
|
|
194
|
+
), g = L(!1), N = R({
|
|
207
195
|
get() {
|
|
208
|
-
return
|
|
196
|
+
return g.value;
|
|
209
197
|
},
|
|
210
198
|
set(t) {
|
|
211
|
-
|
|
199
|
+
g.value = t, t || c.setItem(d.value, "true");
|
|
212
200
|
}
|
|
213
201
|
});
|
|
214
|
-
return
|
|
215
|
-
|
|
216
|
-
N.value = !c.getItem(
|
|
202
|
+
return b([() => d.value], () => {
|
|
203
|
+
g.value = !1, setTimeout(() => {
|
|
204
|
+
N.value = !c.getItem(d.value);
|
|
217
205
|
}, 2e3);
|
|
218
|
-
}), (t,
|
|
219
|
-
const m =
|
|
220
|
-
return S(),
|
|
206
|
+
}), (t, r) => {
|
|
207
|
+
const m = T("FmCollapsibleTabs");
|
|
208
|
+
return S(), I("div", se, [
|
|
221
209
|
E(m, {
|
|
222
|
-
modelValue:
|
|
223
|
-
"onUpdate:modelValue":
|
|
210
|
+
modelValue: f.value,
|
|
211
|
+
"onUpdate:modelValue": r[0] || (r[0] = (P) => f.value = P),
|
|
224
212
|
items: y.value
|
|
225
213
|
}, null, 8, ["modelValue", "items"])
|
|
226
214
|
]);
|
|
227
215
|
};
|
|
228
216
|
}
|
|
229
|
-
}), le = /* @__PURE__ */
|
|
217
|
+
}), le = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-0fe980e2"]]);
|
|
230
218
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
231
219
|
let l, n;
|
|
232
220
|
return { promise: new Promise((u, a) => {
|
|
@@ -236,11 +224,11 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
|
236
224
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
237
225
|
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
238
226
|
});
|
|
239
|
-
const
|
|
227
|
+
const Se = /* @__PURE__ */ h({
|
|
240
228
|
__name: "App",
|
|
241
229
|
setup(l) {
|
|
242
|
-
const n =
|
|
243
|
-
|
|
230
|
+
const n = x(), i = j(), u = H();
|
|
231
|
+
U(() => {
|
|
244
232
|
if (window.location.href.includes("print-preview")) {
|
|
245
233
|
n.setEmbedded(!0);
|
|
246
234
|
return;
|
|
@@ -248,7 +236,7 @@ const _e = /* @__PURE__ */ h({
|
|
|
248
236
|
n.registerSidebarComponent(le), i.initGoogleMap(u.appApi.googleMap).catch(() => {
|
|
249
237
|
console.error("Google map cannot be loaded");
|
|
250
238
|
});
|
|
251
|
-
}),
|
|
239
|
+
}), b([() => n.currentCountry.value], () => {
|
|
252
240
|
a();
|
|
253
241
|
});
|
|
254
242
|
async function a() {
|
|
@@ -259,9 +247,9 @@ const _e = /* @__PURE__ */ h({
|
|
|
259
247
|
console.error("error when trying to reset businesses:", o);
|
|
260
248
|
}
|
|
261
249
|
}
|
|
262
|
-
return (c, o) => (S(),
|
|
250
|
+
return (c, o) => (S(), B(re));
|
|
263
251
|
}
|
|
264
252
|
});
|
|
265
253
|
export {
|
|
266
|
-
|
|
254
|
+
Se as default
|
|
267
255
|
};
|
|
@@ -1,15 +1,18 @@
|
|
|
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 {
|
|
1
|
+
import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as pe, mergeProps as ue } from "vue";
|
|
2
|
+
import { u as me, w as v } from "./app-KnSMkJBV.js";
|
|
3
|
+
import { b as de, u as fe, _ as ve, a as _e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js";
|
|
4
|
+
import { a as he, b as De, _ as ge } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js";
|
|
5
|
+
import { c as K } from "./date2-CIeUqUIc.js";
|
|
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";
|
|
6
9
|
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 = {
|
|
7
10
|
key: 0,
|
|
8
11
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
|
-
}, Te = { class: "pt-8" },
|
|
12
|
+
}, Te = { class: "pt-8" }, Ne = /* @__PURE__ */ ae({
|
|
10
13
|
__name: "ApprovalView",
|
|
11
14
|
setup(Ce) {
|
|
12
|
-
const o =
|
|
15
|
+
const o = he("approval"), { columnDefs: Q } = De("approval", o), W = me();
|
|
13
16
|
v.object({
|
|
14
17
|
name: v.string().optional().nullable(),
|
|
15
18
|
start: v.date().optional().nullable(),
|
|
@@ -35,7 +38,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
35
38
|
return;
|
|
36
39
|
}
|
|
37
40
|
});
|
|
38
|
-
const h = g(""), { breakpoints: R } =
|
|
41
|
+
const h = g(""), { breakpoints: R } = xe(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = ye(), B = b(() => [
|
|
39
42
|
{
|
|
40
43
|
label: k("common.refresh"),
|
|
41
44
|
value: "refresh"
|
|
@@ -49,12 +52,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
49
52
|
}
|
|
50
53
|
return (c, l) => {
|
|
51
54
|
const ee = re("FmTable");
|
|
52
|
-
return
|
|
55
|
+
return x(), J(ve, {
|
|
53
56
|
title: e(k)("inventory.transfer.approval.title"),
|
|
54
57
|
actions: B.value,
|
|
55
58
|
"onClick:action": I
|
|
56
59
|
}, {
|
|
57
|
-
default:
|
|
60
|
+
default: y(() => [
|
|
58
61
|
s("div", {
|
|
59
62
|
class: ne([
|
|
60
63
|
"flex flex-col gap-8 max-h-full",
|
|
@@ -79,13 +82,13 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
79
82
|
onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
|
|
80
83
|
"page-size": X.value
|
|
81
84
|
}, {
|
|
82
|
-
"list-row":
|
|
83
|
-
n(
|
|
85
|
+
"list-row": y((r) => [
|
|
86
|
+
n(be, {
|
|
84
87
|
row: r,
|
|
85
88
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
86
89
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
var O, S, T, i, C, z,
|
|
90
|
+
default: y((t) => {
|
|
91
|
+
var O, S, T, i, C, z, F, M, p, $, V, u, Y, m, q, L, N, P, j, d, A, E, H, U, f, G;
|
|
89
92
|
return [
|
|
90
93
|
s("div", we, [
|
|
91
94
|
s("div", Re, [
|
|
@@ -96,20 +99,20 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
96
99
|
]),
|
|
97
100
|
s("div", ke, [
|
|
98
101
|
n(e(_), {
|
|
99
|
-
render: (
|
|
100
|
-
props: (
|
|
102
|
+
render: (M = (F = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : F.columnDef) == null ? void 0 : M.cell,
|
|
103
|
+
props: ($ = (p = t.to_name) == null ? void 0 : p.getContext) == null ? void 0 : $.call(p)
|
|
101
104
|
}, null, 8, ["render", "props"])
|
|
102
105
|
]),
|
|
103
|
-
s("div", Oe, le((q = (m = (Y = (
|
|
104
|
-
(
|
|
106
|
+
s("div", Oe, le((q = (m = (Y = (u = (V = r.original.purchaseOrder) == null ? void 0 : V.items) == null ? void 0 : u.map) == null ? void 0 : Y.call(u, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
|
|
107
|
+
(L = r.original.purchaseOrder) != null && L.ref ? (x(), ce("div", Se, [
|
|
105
108
|
n(e(_), {
|
|
106
|
-
render: (
|
|
107
|
-
props: (
|
|
109
|
+
render: (j = (P = (N = t.purchaseOrder_ref) == null ? void 0 : N.column) == null ? void 0 : P.columnDef) == null ? void 0 : j.cell,
|
|
110
|
+
props: (A = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : A.call(d)
|
|
108
111
|
}, null, 8, ["render", "props"])
|
|
109
112
|
])) : ie("", !0),
|
|
110
113
|
s("div", Te, [
|
|
111
114
|
n(e(_), {
|
|
112
|
-
render: (U = (H = (
|
|
115
|
+
render: (U = (H = (E = t.purchaseOrder_status) == null ? void 0 : E.column) == null ? void 0 : H.columnDef) == null ? void 0 : U.cell,
|
|
113
116
|
props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
|
|
114
117
|
}, null, 8, ["render", "props"])
|
|
115
118
|
])
|
|
@@ -122,8 +125,8 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
122
125
|
_: 1
|
|
123
126
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
124
127
|
], 2),
|
|
125
|
-
(
|
|
126
|
-
n(
|
|
128
|
+
(x(), J(pe, { to: "body" }, [
|
|
129
|
+
n(ge, ue(e(o).transferDetailsProps.value, {
|
|
127
130
|
onSubmitted: e(o).fetchData
|
|
128
131
|
}), null, 16, ["onSubmitted"])
|
|
129
132
|
]))
|
|
@@ -134,5 +137,5 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
134
137
|
}
|
|
135
138
|
});
|
|
136
139
|
export {
|
|
137
|
-
|
|
140
|
+
Ne as default
|
|
138
141
|
};
|
|
@@ -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-CVxJ_bV3.js";
|
|
3
|
+
import { a as L, G as S } from "./app-KnSMkJBV.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
|
+
}, D = /* @__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
|
+
D as default
|
|
94
94
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
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
|
-
|
|
2
|
+
import { F as M } from "./FmMultiselectDialog-D7YtdoyJ.js";
|
|
3
|
+
import { a as x, G as F } from "./app-KnSMkJBV.js";
|
|
4
|
+
const z = {
|
|
4
5
|
key: 0,
|
|
5
6
|
class: "flex flex-col gap-16"
|
|
6
7
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
7
8
|
key: 1,
|
|
8
9
|
class: "p-24 flex items-center justify-center gap-16"
|
|
9
|
-
},
|
|
10
|
+
}, A = /* @__PURE__ */ S({
|
|
10
11
|
__name: "BindingsPicker",
|
|
11
12
|
setup(L) {
|
|
12
|
-
const d =
|
|
13
|
+
const d = x(), 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) => ({
|
|
13
14
|
label: s.name,
|
|
14
15
|
sublabel: s.code,
|
|
15
16
|
value: s
|
|
@@ -62,7 +63,7 @@ const F = {
|
|
|
62
63
|
];
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
|
-
}), _ = l(), o =
|
|
66
|
+
}), _ = l(), o = F(B);
|
|
66
67
|
async function B() {
|
|
67
68
|
await d.readInventory(), _.value = o.onMessage(
|
|
68
69
|
"props:binding-items",
|
|
@@ -96,8 +97,8 @@ const F = {
|
|
|
96
97
|
g.value ? (p(), f("div", w, [
|
|
97
98
|
u(t, { size: "md" }),
|
|
98
99
|
s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
|
|
99
|
-
])) : (p(), f("div",
|
|
100
|
-
u(
|
|
100
|
+
])) : (p(), f("div", z, [
|
|
101
|
+
u(M, {
|
|
101
102
|
"model-value": b.value,
|
|
102
103
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
|
|
103
104
|
items: c.value
|
|
@@ -119,5 +120,5 @@ const F = {
|
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
export {
|
|
122
|
-
|
|
123
|
+
A as default
|
|
123
124
|
};
|
|
@@ -1,8 +1,12 @@
|
|
|
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,
|
|
2
|
+
import { F as v, a as E, G as F } from "./app-KnSMkJBV.js";
|
|
3
|
+
import "./index-BN0CY3sZ.js";
|
|
3
4
|
import { components as L } from "@feedmepos/ui-library";
|
|
5
|
+
import "./fuzzy-B9ryZ9VZ.js";
|
|
6
|
+
/* empty css */
|
|
4
7
|
import "@feedmepos/mf-common";
|
|
5
|
-
|
|
8
|
+
import "./dayjs.min-Df5jSnDJ.js";
|
|
9
|
+
const P = /* @__PURE__ */ _({
|
|
6
10
|
__name: "binding-ui",
|
|
7
11
|
props: {
|
|
8
12
|
items: { default: () => [] },
|
|
@@ -22,17 +26,17 @@ const O = /* @__PURE__ */ _({
|
|
|
22
26
|
C("closeDialog", () => {
|
|
23
27
|
u.value.isOpen = !u.value.isOpen;
|
|
24
28
|
});
|
|
25
|
-
const
|
|
29
|
+
const s = k, m = d, a = f(() => s.items.map((e) => ({
|
|
26
30
|
key: e.key,
|
|
27
31
|
name: e.name,
|
|
28
32
|
_skuLinked: e.bindings.filter(
|
|
29
|
-
({ type: n, id:
|
|
33
|
+
({ type: n, id: o }) => n === v.enum.SKU && s.skus.some((l) => l._id === o)
|
|
30
34
|
).length,
|
|
31
35
|
_recipeLinked: e.bindings.filter(
|
|
32
|
-
({ type: n, id:
|
|
36
|
+
({ type: n, id: o }) => n === v.enum.RECIPE && s.recipes.some((l) => l._id === o)
|
|
33
37
|
).length,
|
|
34
38
|
onUpdate: async () => {
|
|
35
|
-
|
|
39
|
+
s.editable && m("click:open-binding-dialog", s.type, e);
|
|
36
40
|
}
|
|
37
41
|
}))), g = [
|
|
38
42
|
{
|
|
@@ -45,7 +49,7 @@ const O = /* @__PURE__ */ _({
|
|
|
45
49
|
header: "Ingredient",
|
|
46
50
|
size: 200,
|
|
47
51
|
cell(i) {
|
|
48
|
-
const e = a.value.find((
|
|
52
|
+
const e = a.value.find((o) => o.key === i.row.original.key), n = e == null ? void 0 : e._skuLinked;
|
|
49
53
|
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
50
54
|
}
|
|
51
55
|
},
|
|
@@ -54,7 +58,7 @@ const O = /* @__PURE__ */ _({
|
|
|
54
58
|
header: "Recipe",
|
|
55
59
|
size: 200,
|
|
56
60
|
cell(i) {
|
|
57
|
-
const e = a.value.find((
|
|
61
|
+
const e = a.value.find((o) => o.key === i.row.original.key), n = e == null ? void 0 : e._recipeLinked;
|
|
58
62
|
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
59
63
|
}
|
|
60
64
|
},
|
|
@@ -87,22 +91,22 @@ const O = /* @__PURE__ */ _({
|
|
|
87
91
|
}, null, 8, ["row-data"]);
|
|
88
92
|
};
|
|
89
93
|
}
|
|
90
|
-
}),
|
|
94
|
+
}), R = {
|
|
91
95
|
key: 1,
|
|
92
96
|
class: "p-24 flex items-center justify-center gap-16"
|
|
93
|
-
},
|
|
97
|
+
}, K = /* @__PURE__ */ _({
|
|
94
98
|
__name: "BindingsTable",
|
|
95
99
|
setup(k) {
|
|
96
|
-
const d = E(), u = c(!0),
|
|
100
|
+
const d = E(), u = c(!0), s = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
|
|
97
101
|
async function n() {
|
|
98
102
|
await d.readInventory(), e.value = i.onMessage(
|
|
99
103
|
"props:grouped-bindings",
|
|
100
104
|
(t) => {
|
|
101
|
-
u.value = !1,
|
|
105
|
+
u.value = !1, s.value = t;
|
|
102
106
|
}
|
|
103
107
|
), i.sendMessage("props:grouped-bindings");
|
|
104
108
|
}
|
|
105
|
-
async function
|
|
109
|
+
async function o(t, r) {
|
|
106
110
|
i.sendMessage("@click:open-binding-dialog", {
|
|
107
111
|
key: t,
|
|
108
112
|
binding: r
|
|
@@ -124,22 +128,22 @@ const O = /* @__PURE__ */ _({
|
|
|
124
128
|
ref_key: "resizeableRef",
|
|
125
129
|
ref: l
|
|
126
130
|
}, [
|
|
127
|
-
u.value ? (p(), y("div",
|
|
131
|
+
u.value ? (p(), y("div", R, [
|
|
128
132
|
N(w, { size: "md" }),
|
|
129
133
|
r[0] || (r[0] = x("div", null, "Loading bindings table...", -1))
|
|
130
|
-
])) : (p(), h(
|
|
134
|
+
])) : (p(), h(P, {
|
|
131
135
|
key: 0,
|
|
132
|
-
items:
|
|
136
|
+
items: s.value,
|
|
133
137
|
recipes: m.value,
|
|
134
138
|
skus: a.value,
|
|
135
139
|
type: g.value,
|
|
136
140
|
editable: "",
|
|
137
|
-
"onClick:openBindingDialog":
|
|
141
|
+
"onClick:openBindingDialog": o
|
|
138
142
|
}, null, 8, ["items", "recipes", "skus", "type"]))
|
|
139
143
|
], 512);
|
|
140
144
|
};
|
|
141
145
|
}
|
|
142
146
|
});
|
|
143
147
|
export {
|
|
144
|
-
|
|
148
|
+
K as default
|
|
145
149
|
};
|