@feedmepos/mf-inventory-portal 1.2.12-dev.3 → 1.2.12
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-D5hXQpVn.js → App-CP0Qx_82.js} +40 -44
- package/dist/{ApprovalView-B__WDklZ.js → ApprovalView-D8_PzEpZ.js} +30 -30
- package/dist/{BindingsDialog-DXdwRSnn.js → BindingsDialog-BbpKhb0L.js} +2 -2
- package/dist/{BindingsPicker-CqAD3aHc.js → BindingsPicker-DzDxisHj.js} +1 -1
- package/dist/{BindingsTable-DVNjpusl.js → BindingsTable-DCXXSY8e.js} +1 -1
- package/dist/{ClosingDraftView-DL678GBB.js → ClosingDraftView-CkF-9An8.js} +129 -129
- package/dist/{ClosingTemplateView-DThiXLtp.js → ClosingTemplateView-Ce1l7n0x.js} +28 -28
- package/dist/{DeliveryOrderPrintPreview-B2MB9S6a.js → DeliveryOrderPrintPreview-CFzsECiK.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BNxs6Bcr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ZSERZzyn.js} +3 -3
- package/dist/{FmMultiselectDialog-B45ZLjVp.js → FmMultiselectDialog-DP992D0Q.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8ks6AEM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CzUvuj_c.js} +45 -45
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C5zIvG2h.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DsYwSn0d.js} +1 -1
- package/dist/{IngredientGroupView-D95dFXIZ.js → IngredientGroupView-DUiKKpvF.js} +32 -31
- package/dist/IngredientsView-C3ozIXV8.js +2475 -0
- package/dist/{IntegrationView-9m3N_9lW.js → IntegrationView-CydpIwrf.js} +57 -57
- package/dist/{InventoryBindingForm-kLoQskao.js → InventoryBindingForm-BVd2FzOW.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BytErBcK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYp_JSBb.js} +31 -31
- package/dist/{InventoryBindingSummary-Dg0FH7ad.js → InventoryBindingSummary-Dthool-6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKrUNLuG.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DR0_Qtyc.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BL1f817e.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BLfGb7mm.js} +1 -1
- package/dist/{PublishView-BcOHSAj3.js → PublishView-BE_aIhZ6.js} +15 -15
- package/dist/{PurchaseOrderPrintPreview-UfF8RVkv.js → PurchaseOrderPrintPreview-CGeqqFg-.js} +1 -1
- package/dist/{ReceiveRequestView-D_y_xNUb.js → ReceiveRequestView-Bul9Esf1.js} +63 -62
- package/dist/RecipeView-B9AGELV7.js +621 -0
- package/dist/{StockView-ciU6aAV7.js → StockView-fpJrx4Bd.js} +166 -165
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-XwDTGpR-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeOEgJ1N.js} +1 -1
- package/dist/{SupplierView-DFwtALPg.js → SupplierView-cfZTJqef.js} +492 -490
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-m5o77oG-.js +3057 -0
- package/dist/{TransferTemplateView-BXr_GqTi.js → TransferTemplateView-PZ8Mad4D.js} +48 -48
- package/dist/UnitView-C3gJq1Mt.js +667 -0
- package/dist/{WarehouseView-BYd0bPhi.js → WarehouseView-CWGQjwJm.js} +32 -32
- package/dist/api/inventory.d.ts +0 -306
- package/dist/api/purchase-order.d.ts +0 -1
- package/dist/{app-Bb0-8bRg.js → app-D5PlbdVa.js} +11108 -11723
- package/dist/app.d.ts +0 -421
- package/dist/app.js +1 -1
- package/dist/array-Ca8T3f_G.js +44 -0
- package/dist/{closing-template-DPVNEyI7.js → closing-template-C4FizLUw.js} +1 -1
- package/dist/{decimal-BdBZYISm.js → decimal-Cv7FZ14q.js} +1 -1
- package/dist/{format-unit-display-DlmCwWo_.js → format-unit-display-B0NO6FLh.js} +25 -25
- package/dist/helper/number.d.ts +0 -1
- package/dist/{index-CqBKFj1B.js → index-BCo2jtpG.js} +1 -1
- package/dist/{index-CKFmV1Pk.js → index-DaJ92t7D.js} +1 -1
- package/dist/{purchase-order-template-CLtEYr5E.js → purchase-order-template-DLkR7Mva.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{stock-nHQhfe2W.js → stock-AUSAF9Ij.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/inventory.d.ts +199 -26
- package/dist/{supplier-DuOjLpOa.js → supplier-DBXoP2UX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B-11Eqlm.js → use-ingredient-select-dialog-DZQR6jfi.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DhLSdRtp.js → use-inventory-binding-dialog-8PZ37vLV.js} +1 -1
- package/dist/views/ingredients/helper/import-export.helper.d.ts +1 -3
- package/dist/views/recipe/RecipeView.vue.d.ts +0 -1
- package/dist/views/unit/UnitView.vue.d.ts +0 -1
- package/package.json +1 -1
- package/dist/ImportView-EXm_g_jD.js +0 -1303
- package/dist/IngredientsView-MF1USuZI.js +0 -2240
- package/dist/RecipeView-DOaU9GIF.js +0 -636
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdA5_lEz.js +0 -3221
- package/dist/UnitView-CAXHvh3n.js +0 -674
- package/dist/import-export.helper-B04wszRI.js +0 -243
- package/dist/views/import/ImportView.vue.d.ts +0 -3
- package/dist/views/import/components/ImportDialog.vue.d.ts +0 -2
- package/dist/views/import/helper/import-export.helper.d.ts +0 -4
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +0 -17
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +0 -16
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +0 -2
- package/dist/views/recipe/helper/import-recipe.d.ts +0 -48
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +0 -12
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +0 -6
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +0 -9
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +0 -5
- package/dist/views/unit/helper/import-export.helper.d.ts +0 -40
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ref as U, onUnmounted as
|
|
2
|
-
import { u as
|
|
1
|
+
import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as w, computed as R, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as d, toDisplayString as G, createBlock as x, createCommentVNode as k } from "vue";
|
|
2
|
+
import { u as M, a as D, b as H, R as e, c as B, g as s, d as W } from "./app-D5PlbdVa.js";
|
|
3
3
|
import { useCoreStore as A, useI18n as O } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as L, useRoute as K } from "vue-router";
|
|
5
5
|
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
6
6
|
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
7
|
+
import "./array-Ca8T3f_G.js";
|
|
7
8
|
function j() {
|
|
8
9
|
return {
|
|
9
10
|
loadingHookInstalled: !1,
|
|
@@ -20,7 +21,7 @@ function z() {
|
|
|
20
21
|
}), i = l.afterEach(() => {
|
|
21
22
|
E.value.isLoading = !1;
|
|
22
23
|
});
|
|
23
|
-
|
|
24
|
+
F(() => {
|
|
24
25
|
E.value.loadingHookInstalled = !1, n(), i();
|
|
25
26
|
});
|
|
26
27
|
}
|
|
@@ -39,15 +40,15 @@ const q = {
|
|
|
39
40
|
}, X = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Y = { class: "fm-typo-en-title-lg-600" }, Z = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ee = { class: "flex gap-16" }, te = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, oe = { href: "https://feedme.ai/form" }, ne = /* @__PURE__ */ h({
|
|
40
41
|
__name: "InventoryView",
|
|
41
42
|
setup(l) {
|
|
42
|
-
const n =
|
|
43
|
+
const n = M(), i = D(), u = H(), r = A(), c = L(), o = z(), T = B(), { t: p } = O();
|
|
43
44
|
P(
|
|
44
|
-
[() =>
|
|
45
|
+
[() => r.sessionUser.value, () => r.currentBusiness.value],
|
|
45
46
|
([t, a]) => {
|
|
46
47
|
f(t, a);
|
|
47
48
|
}
|
|
48
49
|
), w(async () => {
|
|
49
|
-
await T.init(), await
|
|
50
|
-
const t =
|
|
50
|
+
await T.init(), await r.readBusinesses();
|
|
51
|
+
const t = r.sessionUser.value, a = r.currentBusiness.value;
|
|
51
52
|
f(t, a);
|
|
52
53
|
});
|
|
53
54
|
function f(t, a) {
|
|
@@ -60,16 +61,16 @@ const q = {
|
|
|
60
61
|
}
|
|
61
62
|
const y = R(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? T.enablePoTemplate : c.currentRoute.value.name === e.INGREDIENT_GROUP ? T.enableIngredientGroup : !0);
|
|
62
63
|
return (t, a) => {
|
|
63
|
-
const m =
|
|
64
|
-
return S(),
|
|
65
|
-
v(o).isLoading ? (S(),
|
|
64
|
+
const m = b("FmSpacer"), N = b("FmCircularProgress"), C = b("FmButton"), V = b("RouterView");
|
|
65
|
+
return S(), I("div", null, [
|
|
66
|
+
v(o).isLoading ? (S(), I("div", q, [
|
|
66
67
|
_(m),
|
|
67
68
|
d("div", null, [
|
|
68
69
|
_(N, { size: "xl" })
|
|
69
70
|
]),
|
|
70
71
|
a[0] || (a[0] = d("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
71
72
|
_(m)
|
|
72
|
-
])) : y.value ? v(
|
|
73
|
+
])) : y.value ? v(r).sessionUser.value ? (S(), x(V, { key: 2 })) : k("", !0) : (S(), I("div", J, [
|
|
73
74
|
d("div", X, [
|
|
74
75
|
d("div", Y, G(v(p)("inventory.common.proPlan.title")), 1),
|
|
75
76
|
d("div", Z, G(v(p)("inventory.common.proPlan.subtitle")), 1)
|
|
@@ -95,7 +96,7 @@ const q = {
|
|
|
95
96
|
}), ae = { class: "h-full flex flex-col overflow-auto py-16" }, re = /* @__PURE__ */ h({
|
|
96
97
|
__name: "NavigationTab",
|
|
97
98
|
setup(l) {
|
|
98
|
-
const n = K(), i = L(), u = A(),
|
|
99
|
+
const n = K(), i = L(), u = A(), r = B(), c = $(), { t: o } = O();
|
|
99
100
|
P([() => u.currentBusiness.value, () => n.name], ([t, a]) => {
|
|
100
101
|
(t == null ? void 0 : t.menuVersion) === "v3" && (a === e.INGREDIENTS || a === e.RECIPE || a === e.UNIT) && i.push({ name: e.STOCK });
|
|
101
102
|
});
|
|
@@ -103,55 +104,55 @@ const q = {
|
|
|
103
104
|
var a;
|
|
104
105
|
const t = [
|
|
105
106
|
{
|
|
106
|
-
label:
|
|
107
|
+
label: s(e.STOCK, o),
|
|
107
108
|
// icon: 'inventory_2',
|
|
108
109
|
children: [
|
|
109
110
|
{
|
|
110
111
|
label: o("inventory.stock.stock_balance.title"),
|
|
111
112
|
value: e.STOCK
|
|
112
113
|
},
|
|
113
|
-
...
|
|
114
|
+
...r.enableWastageTemplate ? [
|
|
114
115
|
{
|
|
115
|
-
label:
|
|
116
|
+
label: s(e.WASTAGE_TEMPLATE, o),
|
|
116
117
|
value: e.WASTAGE_TEMPLATE
|
|
117
118
|
}
|
|
118
119
|
] : []
|
|
119
120
|
]
|
|
120
121
|
},
|
|
121
|
-
...
|
|
122
|
+
...r.enableClosingTemplate ? [
|
|
122
123
|
{
|
|
123
124
|
label: "Closing",
|
|
124
125
|
children: [
|
|
125
126
|
{
|
|
126
|
-
label:
|
|
127
|
+
label: s(e.CLOSING_TEMPLATE, o),
|
|
127
128
|
value: e.CLOSING_TEMPLATE
|
|
128
129
|
},
|
|
129
130
|
{
|
|
130
|
-
label:
|
|
131
|
+
label: s(e.CLOSING_DRAFT, o),
|
|
131
132
|
value: e.CLOSING_DRAFT
|
|
132
133
|
}
|
|
133
134
|
]
|
|
134
135
|
}
|
|
135
136
|
] : [],
|
|
136
137
|
{
|
|
137
|
-
label:
|
|
138
|
+
label: s(e.INGREDIENTS, o),
|
|
138
139
|
// icon: 'grocery',
|
|
139
140
|
value: e.INGREDIENTS
|
|
140
141
|
},
|
|
141
|
-
...
|
|
142
|
+
...r.enableIngredientGroup ? [
|
|
142
143
|
{
|
|
143
|
-
label:
|
|
144
|
+
label: s(e.INGREDIENT_GROUP, o),
|
|
144
145
|
// icon: 'grocery',
|
|
145
146
|
value: e.INGREDIENT_GROUP
|
|
146
147
|
}
|
|
147
148
|
] : [],
|
|
148
149
|
{
|
|
149
|
-
label:
|
|
150
|
+
label: s(e.RECIPE, o),
|
|
150
151
|
// icon: 'weight',
|
|
151
152
|
value: e.RECIPE
|
|
152
153
|
},
|
|
153
154
|
{
|
|
154
|
-
label:
|
|
155
|
+
label: s(e.UNIT, o),
|
|
155
156
|
// icon: 'fastfood',
|
|
156
157
|
value: e.UNIT
|
|
157
158
|
},
|
|
@@ -160,42 +161,37 @@ const q = {
|
|
|
160
161
|
// icon: 'swap_horiz',
|
|
161
162
|
children: [
|
|
162
163
|
{
|
|
163
|
-
label:
|
|
164
|
+
label: s(e.RECEIVE_REQUEST, o),
|
|
164
165
|
value: e.RECEIVE_REQUEST
|
|
165
166
|
},
|
|
166
167
|
{
|
|
167
|
-
label:
|
|
168
|
+
label: s(e.APPROVAL, o),
|
|
168
169
|
value: e.APPROVAL
|
|
169
170
|
},
|
|
170
|
-
...
|
|
171
|
+
...r.enablePoTemplate ? [
|
|
171
172
|
{
|
|
172
|
-
label:
|
|
173
|
+
label: s(e.TRANSFER_TEMPLATE, o),
|
|
173
174
|
value: e.TRANSFER_TEMPLATE
|
|
174
175
|
}
|
|
175
176
|
] : []
|
|
176
177
|
]
|
|
177
178
|
},
|
|
178
179
|
{
|
|
179
|
-
label:
|
|
180
|
+
label: s(e.SUPPLIER, o),
|
|
180
181
|
// icon: 'group',
|
|
181
182
|
value: e.SUPPLIER
|
|
182
183
|
},
|
|
183
184
|
{
|
|
184
|
-
label:
|
|
185
|
+
label: s(e.WAREHOUSE, o),
|
|
185
186
|
// icon: 'warehouse',
|
|
186
187
|
value: e.WAREHOUSE
|
|
187
188
|
},
|
|
188
189
|
{
|
|
189
|
-
label:
|
|
190
|
+
label: s(e.PUBLISH, o),
|
|
190
191
|
value: e.PUBLISH
|
|
191
192
|
},
|
|
192
193
|
{
|
|
193
|
-
label:
|
|
194
|
-
// icon: 'developer_mode',
|
|
195
|
-
value: e.IMPORT
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
label: r(e.INTEGRATION, o),
|
|
194
|
+
label: s(e.INTEGRATION, o),
|
|
199
195
|
// icon: 'integration_instructions',
|
|
200
196
|
value: e.INTEGRATION
|
|
201
197
|
}
|
|
@@ -229,8 +225,8 @@ const q = {
|
|
|
229
225
|
y.value = !c.getItem(f.value);
|
|
230
226
|
}, 2e3);
|
|
231
227
|
}), (t, a) => {
|
|
232
|
-
const m =
|
|
233
|
-
return S(),
|
|
228
|
+
const m = b("FmCollapsibleTabs");
|
|
229
|
+
return S(), I("div", ae, [
|
|
234
230
|
_(m, {
|
|
235
231
|
modelValue: p.value,
|
|
236
232
|
"onUpdate:modelValue": a[0] || (a[0] = (N) => p.value = N),
|
|
@@ -242,14 +238,14 @@ const q = {
|
|
|
242
238
|
});
|
|
243
239
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
244
240
|
let l, n;
|
|
245
|
-
return { promise: new Promise((u,
|
|
246
|
-
l = u, n =
|
|
241
|
+
return { promise: new Promise((u, r) => {
|
|
242
|
+
l = u, n = r;
|
|
247
243
|
}), resolve: l, reject: n };
|
|
248
244
|
});
|
|
249
245
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
250
246
|
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
251
247
|
});
|
|
252
|
-
const
|
|
248
|
+
const pe = /* @__PURE__ */ h({
|
|
253
249
|
__name: "App",
|
|
254
250
|
setup(l) {
|
|
255
251
|
const n = A(), i = Q(), u = W();
|
|
@@ -262,9 +258,9 @@ const de = /* @__PURE__ */ h({
|
|
|
262
258
|
console.error("Google map cannot be loaded");
|
|
263
259
|
});
|
|
264
260
|
}), P([() => n.currentCountry.value], () => {
|
|
265
|
-
|
|
261
|
+
r();
|
|
266
262
|
});
|
|
267
|
-
async function
|
|
263
|
+
async function r() {
|
|
268
264
|
var c;
|
|
269
265
|
try {
|
|
270
266
|
await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
|
|
@@ -276,5 +272,5 @@ const de = /* @__PURE__ */ h({
|
|
|
276
272
|
}
|
|
277
273
|
});
|
|
278
274
|
export {
|
|
279
|
-
|
|
275
|
+
pe as default
|
|
280
276
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as
|
|
2
|
-
import { u as De, b as ge, aM as b, aV as ye,
|
|
3
|
-
import { a as
|
|
4
|
-
import { useBreakpoints as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as P, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
|
|
2
|
+
import { u as De, b as ge, aM as b, aV as ye, am as Z, O as be, N as Oe, L as Re, P as Se, Q as xe, T as Pe, V as O } from "./app-D5PlbdVa.js";
|
|
3
|
+
import { a as ke, P as k, b as qe, _ as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-m5o77oG-.js";
|
|
4
|
+
import { useBreakpoints as Te } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as Ne } from "@feedmepos/mf-common";
|
|
6
|
+
const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Le = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
9
|
}, ze = { class: "pt-8" }, je = /* @__PURE__ */ ue({
|
|
10
10
|
__name: "ApprovalView",
|
|
11
|
-
setup(
|
|
12
|
-
const a =
|
|
11
|
+
setup(Fe) {
|
|
12
|
+
const a = ke(k.APPROVAL), { columnDefs: I } = qe(k.APPROVAL, a, a.shipments), B = De(), ee = ge();
|
|
13
13
|
b.object({
|
|
14
14
|
name: b.string().optional().nullable(),
|
|
15
15
|
start: b.date().optional().nullable(),
|
|
16
16
|
end: b.date().optional().nullable()
|
|
17
17
|
});
|
|
18
|
-
const
|
|
18
|
+
const q = y({
|
|
19
19
|
name: "",
|
|
20
20
|
...ye()
|
|
21
21
|
}), l = y({
|
|
22
|
-
startDate: Z(
|
|
23
|
-
endDate: Z(
|
|
22
|
+
startDate: Z(q.value.start ?? /* @__PURE__ */ new Date()),
|
|
23
|
+
endDate: Z(q.value.end ?? /* @__PURE__ */ new Date())
|
|
24
24
|
});
|
|
25
25
|
ie([() => l.value.startDate], () => {
|
|
26
26
|
if (!l.value.startDate)
|
|
@@ -36,9 +36,9 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
36
36
|
}
|
|
37
37
|
a.updateDateRange(l.value.startDate, l.value.endDate);
|
|
38
38
|
});
|
|
39
|
-
const R = y(""), { breakpoints:
|
|
39
|
+
const R = y(""), { breakpoints: w } = Te(), S = d(() => w.value.xs || w.value.sm), te = d(() => S.value ? 10 : 20), ae = be(), { t: T } = Ne(), re = d(() => [
|
|
40
40
|
{
|
|
41
|
-
label:
|
|
41
|
+
label: T("inventory.common.refresh"),
|
|
42
42
|
value: "refresh"
|
|
43
43
|
}
|
|
44
44
|
]);
|
|
@@ -113,11 +113,11 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
113
113
|
return (u, s) => {
|
|
114
114
|
const e = ce("FmTable");
|
|
115
115
|
return x(), X(Se, {
|
|
116
|
-
title: n(
|
|
116
|
+
title: n(T)("inventory.transfer.approval.title"),
|
|
117
117
|
actions: re.value,
|
|
118
118
|
"onClick:action": se
|
|
119
119
|
}, {
|
|
120
|
-
default:
|
|
120
|
+
default: P(() => {
|
|
121
121
|
var r;
|
|
122
122
|
return [
|
|
123
123
|
c("div", {
|
|
@@ -154,19 +154,19 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
154
154
|
)),
|
|
155
155
|
"page-size": te.value
|
|
156
156
|
}, {
|
|
157
|
-
"list-row":
|
|
158
|
-
i(
|
|
157
|
+
"list-row": P((t) => [
|
|
158
|
+
i(Pe, {
|
|
159
159
|
row: t,
|
|
160
160
|
onRowClick: (o) => n(a).promptShowTransferDetails(o.purchaseOrder, o)
|
|
161
161
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
var p,
|
|
162
|
+
default: P((o) => {
|
|
163
|
+
var p, N, A, f, C, M, V, L, v, z, F, h, $, _, E, Y, H, U, j, D, Q, G, J, K, g, W;
|
|
164
164
|
return [
|
|
165
|
-
c("div",
|
|
166
|
-
c("div",
|
|
165
|
+
c("div", Ae, [
|
|
166
|
+
c("div", Ce, [
|
|
167
167
|
i(n(O), {
|
|
168
|
-
render: (
|
|
169
|
-
props: (
|
|
168
|
+
render: (A = (N = (p = o.purchaseOrder__id) == null ? void 0 : p.column) == null ? void 0 : N.columnDef) == null ? void 0 : A.cell,
|
|
169
|
+
props: (C = (f = o.purchaseOrder__id) == null ? void 0 : f.getContext) == null ? void 0 : C.call(f)
|
|
170
170
|
}, null, 8, ["render", "props"])
|
|
171
171
|
]),
|
|
172
172
|
c("div", Me, [
|
|
@@ -175,16 +175,16 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
175
175
|
props: (z = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : z.call(v)
|
|
176
176
|
}, null, 8, ["render", "props"])
|
|
177
177
|
]),
|
|
178
|
-
c("div", Ve, me((
|
|
179
|
-
(
|
|
178
|
+
c("div", Ve, me((E = (_ = ($ = (h = (F = t.original.purchaseOrder) == null ? void 0 : F.items) == null ? void 0 : h.map) == null ? void 0 : $.call(h, (le) => `${le.name}`)) == null ? void 0 : _.join) == null ? void 0 : E.call(_, ", ")), 1),
|
|
179
|
+
(Y = t.original.purchaseOrder) != null && Y.ref ? (x(), fe("div", Le, [
|
|
180
180
|
i(n(O), {
|
|
181
|
-
render: (j = (U = (
|
|
182
|
-
props: (
|
|
181
|
+
render: (j = (U = (H = o.purchaseOrder_ref) == null ? void 0 : H.column) == null ? void 0 : U.columnDef) == null ? void 0 : j.cell,
|
|
182
|
+
props: (Q = (D = o.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : Q.call(D)
|
|
183
183
|
}, null, 8, ["render", "props"])
|
|
184
184
|
])) : ve("", !0),
|
|
185
185
|
c("div", ze, [
|
|
186
186
|
i(n(O), {
|
|
187
|
-
render: (
|
|
187
|
+
render: (K = (J = (G = o.purchaseOrder_status) == null ? void 0 : G.column) == null ? void 0 : J.columnDef) == null ? void 0 : K.cell,
|
|
188
188
|
props: (W = (g = o.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : W.call(g)
|
|
189
189
|
}, null, 8, ["render", "props"])
|
|
190
190
|
])
|
|
@@ -198,8 +198,8 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
198
198
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
199
199
|
], 2),
|
|
200
200
|
(x(), X(he, { to: "body" }, [
|
|
201
|
-
i(
|
|
202
|
-
scope: n(
|
|
201
|
+
i(we, _e({
|
|
202
|
+
scope: n(k).APPROVAL
|
|
203
203
|
}, {
|
|
204
204
|
...n(a).transferDetailsProps.value,
|
|
205
205
|
receivedMap: ((r = n(a).transferDetailsProps.value) == null ? void 0 : r.receivedMap) ?? {},
|
|
@@ -1,6 +1,6 @@
|
|
|
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-CYp_JSBb.js";
|
|
3
|
+
import { a as L, b9 as S } from "./app-D5PlbdVa.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { a as M,
|
|
2
|
+
import { a as M, b9 as x, v as z } from "./app-D5PlbdVa.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { F as b, a as P,
|
|
2
|
+
import { F as b, a as P, b9 as R } from "./app-D5PlbdVa.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|