@feedmepos/mf-inventory-portal 1.2.11-dev.2 → 1.2.12-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-7THD1njR.js → App-DAWBJNxz.js} +44 -40
- package/dist/{ApprovalView-DMEJRr68.js → ApprovalView-B2WUwSN4.js} +30 -30
- package/dist/{BindingsDialog-BNzLPDnk.js → BindingsDialog-C3OOcB8g.js} +2 -2
- package/dist/{BindingsPicker-b6IVAFK_.js → BindingsPicker-R3Zz0fWB.js} +1 -1
- package/dist/{BindingsTable-C-4XGO_N.js → BindingsTable-B46C8p7M.js} +1 -1
- package/dist/{ClosingDraftView-DVTloUym.js → ClosingDraftView-a_QhmaM4.js} +180 -180
- package/dist/{ClosingTemplateView-C-eHKV0N.js → ClosingTemplateView-CEVmIsVw.js} +3 -3
- package/dist/{DeliveryOrderPrintPreview-ChIV_Wxd.js → DeliveryOrderPrintPreview-BeQFF6sn.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DPkGmSYU.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DIG9NwPj.js} +3 -3
- package/dist/{FmMultiselectDialog-aRqxOX4h.js → FmMultiselectDialog-BunyF2O-.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-_MPI8AAx.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bx0dzfHO.js} +39 -39
- package/dist/ImportView-CwBeBbXz.js +1220 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BiHvGyAN.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CfwprwJN.js} +1 -1
- package/dist/{IngredientGroupView-DtExVKaV.js → IngredientGroupView-CIPTj0hf.js} +16 -17
- package/dist/IngredientsView-BwBaeLtw.js +2240 -0
- package/dist/{IntegrationView-LnHPQMs8.js → IntegrationView-CvRD-5O6.js} +57 -57
- package/dist/{InventoryBindingForm-Cm9TOWWe.js → InventoryBindingForm-DLQTH1di.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DwGz8gLR.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-XvIklIYw.js} +31 -31
- package/dist/{InventoryBindingSummary-BQ6ysLf9.js → InventoryBindingSummary-BGFSPQIw.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B_ASTDtr.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B3J0i5IU.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DdFHN7A8.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CyMRTB5L.js} +1 -1
- package/dist/{PublishView-Dg_U3hW1.js → PublishView-7g0bx6KO.js} +16 -16
- package/dist/{PurchaseOrderPrintPreview-DnwHiTGF.js → PurchaseOrderPrintPreview-LEfLcjkd.js} +1 -1
- package/dist/{ReceiveRequestView-CIzZf6q8.js → ReceiveRequestView-DUNfHRGf.js} +193 -194
- package/dist/RecipeView-XzqGQg_a.js +636 -0
- package/dist/{StockView-D6RmCUZZ.js → StockView-vZr9etBj.js} +165 -166
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BAcaiBqq.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3_csD6uU.js} +1 -1
- package/dist/{SupplierView-DmJXuznz.js → SupplierView-CUORFWJW.js} +52 -52
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-9wk6mQHT.js → TransferDetails.vue_vue_type_script_setup_true_lang-DhXoNkss.js} +5 -5
- package/dist/{TransferTemplateView-wcXRmuoK.js → TransferTemplateView-DeliKkYY.js} +97 -97
- package/dist/UnitView-B4NCl6jJ.js +674 -0
- package/dist/{WarehouseView-643lOh1p.js → WarehouseView-jLGGlnwV.js} +32 -32
- package/dist/api/inventory.d.ts +306 -0
- package/dist/{app-CsyUwsea.js → app-DJcCTZjT.js} +7663 -7341
- package/dist/app.d.ts +169 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-DaHVCTUh.js → closing-template-hM43IpP-.js} +1 -1
- package/dist/{decimal-DveC9JMl.js → decimal-BVu2HlCS.js} +1 -1
- package/dist/{format-unit-display-_9FgoZom.js → format-unit-display-C-M_AirC.js} +25 -25
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-C05Vl6i-.js +243 -0
- package/dist/{index-ChAOZMz9.js → index-CNQtmSfJ.js} +1 -1
- package/dist/{index-CZmm0Xbi.js → index-v6hU4gAy.js} +1 -1
- package/dist/{purchase-order-template-D2kAwN4O.js → purchase-order-template-BBCEFnbo.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-CL0X5Bnh.js → stock-CK3LBQmj.js} +1 -1
- package/dist/stores/inventory.d.ts +26 -199
- package/dist/{supplier-D3mOSUzY.js → supplier-CoCAyG12.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Ba-l0gZ1.js → use-ingredient-select-dialog-DYfpyC4u.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CpaprD6M.js → use-inventory-binding-dialog-CDwm6TPx.js} +1 -1
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +3 -1
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/package.json +3 -3
- package/dist/IngredientsView-DQUK8EMq.js +0 -2475
- package/dist/RecipeView-BQeJBUvu.js +0 -621
- package/dist/UnitView-C1cxS42T.js +0 -667
- package/dist/array-Ca8T3f_G.js +0 -44
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ref as U, onUnmounted as
|
|
2
|
-
import { u as
|
|
1
|
+
import { ref as U, onUnmounted as V, defineComponent as h, watch as P, onMounted as w, computed as R, resolveComponent as I, openBlock as S, createElementBlock as b, unref as v, createVNode as _, createElementVNode as d, toDisplayString as G, createBlock as x, createCommentVNode as F } from "vue";
|
|
2
|
+
import { u as k, a as D, b as H, R as e, c as B, g as r, d as W } from "./app-DJcCTZjT.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";
|
|
8
7
|
function j() {
|
|
9
8
|
return {
|
|
10
9
|
loadingHookInstalled: !1,
|
|
@@ -21,7 +20,7 @@ function z() {
|
|
|
21
20
|
}), i = l.afterEach(() => {
|
|
22
21
|
E.value.isLoading = !1;
|
|
23
22
|
});
|
|
24
|
-
|
|
23
|
+
V(() => {
|
|
25
24
|
E.value.loadingHookInstalled = !1, n(), i();
|
|
26
25
|
});
|
|
27
26
|
}
|
|
@@ -40,15 +39,15 @@ const q = {
|
|
|
40
39
|
}, 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({
|
|
41
40
|
__name: "InventoryView",
|
|
42
41
|
setup(l) {
|
|
43
|
-
const n =
|
|
42
|
+
const n = k(), i = D(), u = H(), s = A(), c = L(), o = z(), T = B(), { t: p } = O();
|
|
44
43
|
P(
|
|
45
|
-
[() =>
|
|
44
|
+
[() => s.sessionUser.value, () => s.currentBusiness.value],
|
|
46
45
|
([t, a]) => {
|
|
47
46
|
f(t, a);
|
|
48
47
|
}
|
|
49
48
|
), w(async () => {
|
|
50
|
-
await T.init(), await
|
|
51
|
-
const t =
|
|
49
|
+
await T.init(), await s.readBusinesses();
|
|
50
|
+
const t = s.sessionUser.value, a = s.currentBusiness.value;
|
|
52
51
|
f(t, a);
|
|
53
52
|
});
|
|
54
53
|
function f(t, a) {
|
|
@@ -61,16 +60,16 @@ const q = {
|
|
|
61
60
|
}
|
|
62
61
|
const y = R(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? T.enablePoTemplate : c.currentRoute.value.name === e.INGREDIENT_GROUP ? T.enableIngredientGroup : !0);
|
|
63
62
|
return (t, a) => {
|
|
64
|
-
const m =
|
|
65
|
-
return S(),
|
|
66
|
-
v(o).isLoading ? (S(),
|
|
63
|
+
const m = I("FmSpacer"), N = I("FmCircularProgress"), C = I("FmButton"), M = I("RouterView");
|
|
64
|
+
return S(), b("div", null, [
|
|
65
|
+
v(o).isLoading ? (S(), b("div", q, [
|
|
67
66
|
_(m),
|
|
68
67
|
d("div", null, [
|
|
69
68
|
_(N, { size: "xl" })
|
|
70
69
|
]),
|
|
71
70
|
a[0] || (a[0] = d("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
72
71
|
_(m)
|
|
73
|
-
])) : y.value ? v(
|
|
72
|
+
])) : y.value ? v(s).sessionUser.value ? (S(), x(M, { key: 2 })) : F("", !0) : (S(), b("div", J, [
|
|
74
73
|
d("div", X, [
|
|
75
74
|
d("div", Y, G(v(p)("inventory.common.proPlan.title")), 1),
|
|
76
75
|
d("div", Z, G(v(p)("inventory.common.proPlan.subtitle")), 1)
|
|
@@ -96,7 +95,7 @@ const q = {
|
|
|
96
95
|
}), ae = { class: "h-full flex flex-col overflow-auto py-16" }, re = /* @__PURE__ */ h({
|
|
97
96
|
__name: "NavigationTab",
|
|
98
97
|
setup(l) {
|
|
99
|
-
const n = K(), i = L(), u = A(),
|
|
98
|
+
const n = K(), i = L(), u = A(), s = B(), c = $(), { t: o } = O();
|
|
100
99
|
P([() => u.currentBusiness.value, () => n.name], ([t, a]) => {
|
|
101
100
|
(t == null ? void 0 : t.menuVersion) === "v3" && (a === e.INGREDIENTS || a === e.RECIPE || a === e.UNIT) && i.push({ name: e.STOCK });
|
|
102
101
|
});
|
|
@@ -104,55 +103,55 @@ const q = {
|
|
|
104
103
|
var a;
|
|
105
104
|
const t = [
|
|
106
105
|
{
|
|
107
|
-
label:
|
|
106
|
+
label: r(e.STOCK, o),
|
|
108
107
|
// icon: 'inventory_2',
|
|
109
108
|
children: [
|
|
110
109
|
{
|
|
111
110
|
label: o("inventory.stock.stock_balance.title"),
|
|
112
111
|
value: e.STOCK
|
|
113
112
|
},
|
|
114
|
-
...
|
|
113
|
+
...s.enableWastageTemplate ? [
|
|
115
114
|
{
|
|
116
|
-
label:
|
|
115
|
+
label: r(e.WASTAGE_TEMPLATE, o),
|
|
117
116
|
value: e.WASTAGE_TEMPLATE
|
|
118
117
|
}
|
|
119
118
|
] : []
|
|
120
119
|
]
|
|
121
120
|
},
|
|
122
|
-
...
|
|
121
|
+
...s.enableClosingTemplate ? [
|
|
123
122
|
{
|
|
124
123
|
label: "Closing",
|
|
125
124
|
children: [
|
|
126
125
|
{
|
|
127
|
-
label:
|
|
126
|
+
label: r(e.CLOSING_TEMPLATE, o),
|
|
128
127
|
value: e.CLOSING_TEMPLATE
|
|
129
128
|
},
|
|
130
129
|
{
|
|
131
|
-
label:
|
|
130
|
+
label: r(e.CLOSING_DRAFT, o),
|
|
132
131
|
value: e.CLOSING_DRAFT
|
|
133
132
|
}
|
|
134
133
|
]
|
|
135
134
|
}
|
|
136
135
|
] : [],
|
|
137
136
|
{
|
|
138
|
-
label:
|
|
137
|
+
label: r(e.INGREDIENTS, o),
|
|
139
138
|
// icon: 'grocery',
|
|
140
139
|
value: e.INGREDIENTS
|
|
141
140
|
},
|
|
142
|
-
...
|
|
141
|
+
...s.enableIngredientGroup ? [
|
|
143
142
|
{
|
|
144
|
-
label:
|
|
143
|
+
label: r(e.INGREDIENT_GROUP, o),
|
|
145
144
|
// icon: 'grocery',
|
|
146
145
|
value: e.INGREDIENT_GROUP
|
|
147
146
|
}
|
|
148
147
|
] : [],
|
|
149
148
|
{
|
|
150
|
-
label:
|
|
149
|
+
label: r(e.RECIPE, o),
|
|
151
150
|
// icon: 'weight',
|
|
152
151
|
value: e.RECIPE
|
|
153
152
|
},
|
|
154
153
|
{
|
|
155
|
-
label:
|
|
154
|
+
label: r(e.UNIT, o),
|
|
156
155
|
// icon: 'fastfood',
|
|
157
156
|
value: e.UNIT
|
|
158
157
|
},
|
|
@@ -161,37 +160,42 @@ const q = {
|
|
|
161
160
|
// icon: 'swap_horiz',
|
|
162
161
|
children: [
|
|
163
162
|
{
|
|
164
|
-
label:
|
|
163
|
+
label: r(e.RECEIVE_REQUEST, o),
|
|
165
164
|
value: e.RECEIVE_REQUEST
|
|
166
165
|
},
|
|
167
166
|
{
|
|
168
|
-
label:
|
|
167
|
+
label: r(e.APPROVAL, o),
|
|
169
168
|
value: e.APPROVAL
|
|
170
169
|
},
|
|
171
|
-
...
|
|
170
|
+
...s.enablePoTemplate ? [
|
|
172
171
|
{
|
|
173
|
-
label:
|
|
172
|
+
label: r(e.TRANSFER_TEMPLATE, o),
|
|
174
173
|
value: e.TRANSFER_TEMPLATE
|
|
175
174
|
}
|
|
176
175
|
] : []
|
|
177
176
|
]
|
|
178
177
|
},
|
|
179
178
|
{
|
|
180
|
-
label:
|
|
179
|
+
label: r(e.SUPPLIER, o),
|
|
181
180
|
// icon: 'group',
|
|
182
181
|
value: e.SUPPLIER
|
|
183
182
|
},
|
|
184
183
|
{
|
|
185
|
-
label:
|
|
184
|
+
label: r(e.WAREHOUSE, o),
|
|
186
185
|
// icon: 'warehouse',
|
|
187
186
|
value: e.WAREHOUSE
|
|
188
187
|
},
|
|
189
188
|
{
|
|
190
|
-
label:
|
|
189
|
+
label: r(e.PUBLISH, o),
|
|
191
190
|
value: e.PUBLISH
|
|
192
191
|
},
|
|
193
192
|
{
|
|
194
|
-
label:
|
|
193
|
+
label: r(e.IMPORT, o),
|
|
194
|
+
// icon: 'developer_mode',
|
|
195
|
+
value: e.IMPORT
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
label: r(e.INTEGRATION, o),
|
|
195
199
|
// icon: 'integration_instructions',
|
|
196
200
|
value: e.INTEGRATION
|
|
197
201
|
}
|
|
@@ -225,8 +229,8 @@ const q = {
|
|
|
225
229
|
y.value = !c.getItem(f.value);
|
|
226
230
|
}, 2e3);
|
|
227
231
|
}), (t, a) => {
|
|
228
|
-
const m =
|
|
229
|
-
return S(),
|
|
232
|
+
const m = I("FmCollapsibleTabs");
|
|
233
|
+
return S(), b("div", ae, [
|
|
230
234
|
_(m, {
|
|
231
235
|
modelValue: p.value,
|
|
232
236
|
"onUpdate:modelValue": a[0] || (a[0] = (N) => p.value = N),
|
|
@@ -238,14 +242,14 @@ const q = {
|
|
|
238
242
|
});
|
|
239
243
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
240
244
|
let l, n;
|
|
241
|
-
return { promise: new Promise((u,
|
|
242
|
-
l = u, n =
|
|
245
|
+
return { promise: new Promise((u, s) => {
|
|
246
|
+
l = u, n = s;
|
|
243
247
|
}), resolve: l, reject: n };
|
|
244
248
|
});
|
|
245
249
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
246
250
|
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
247
251
|
});
|
|
248
|
-
const
|
|
252
|
+
const de = /* @__PURE__ */ h({
|
|
249
253
|
__name: "App",
|
|
250
254
|
setup(l) {
|
|
251
255
|
const n = A(), i = Q(), u = W();
|
|
@@ -258,9 +262,9 @@ const pe = /* @__PURE__ */ h({
|
|
|
258
262
|
console.error("Google map cannot be loaded");
|
|
259
263
|
});
|
|
260
264
|
}), P([() => n.currentCountry.value], () => {
|
|
261
|
-
|
|
265
|
+
s();
|
|
262
266
|
});
|
|
263
|
-
async function
|
|
267
|
+
async function s() {
|
|
264
268
|
var c;
|
|
265
269
|
try {
|
|
266
270
|
await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
|
|
@@ -272,5 +276,5 @@ const pe = /* @__PURE__ */ h({
|
|
|
272
276
|
}
|
|
273
277
|
});
|
|
274
278
|
export {
|
|
275
|
-
|
|
279
|
+
de as default
|
|
276
280
|
};
|
|
@@ -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 k, 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, ak as Z, C as be, N as Oe, H as Re, E as Se, G as xe, I as ke, J as O } from "./app-DJcCTZjT.js";
|
|
3
|
+
import { a as qe, P as q, b as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DhXoNkss.js";
|
|
4
|
+
import { useBreakpoints as Ne } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as Te } from "@feedmepos/mf-common";
|
|
6
|
+
const Ce = { class: "flex flex-col py-8" }, Ae = { 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(Ee) {
|
|
12
|
+
const a = qe(q.APPROVAL), { columnDefs: I } = we(q.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 w = y({
|
|
19
19
|
name: "",
|
|
20
20
|
...ye()
|
|
21
21
|
}), l = y({
|
|
22
|
-
startDate: Z(
|
|
23
|
-
endDate: Z(
|
|
22
|
+
startDate: Z(w.value.start ?? /* @__PURE__ */ new Date()),
|
|
23
|
+
endDate: Z(w.value.end ?? /* @__PURE__ */ new Date())
|
|
24
24
|
});
|
|
25
25
|
ie([() => l.value.startDate], () => {
|
|
26
26
|
if (!l.value.startDate)
|
|
@@ -36,9 +36,9 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { 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: P } = Ne(), S = d(() => P.value.xs || P.value.sm), te = d(() => S.value ? 10 : 20), ae = be(), { t: N } = Te(), re = d(() => [
|
|
40
40
|
{
|
|
41
|
-
label:
|
|
41
|
+
label: N("inventory.common.refresh"),
|
|
42
42
|
value: "refresh"
|
|
43
43
|
}
|
|
44
44
|
]);
|
|
@@ -113,11 +113,11 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { 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(N)("inventory.transfer.approval.title"),
|
|
117
117
|
actions: re.value,
|
|
118
118
|
"onClick:action": se
|
|
119
119
|
}, {
|
|
120
|
-
default:
|
|
120
|
+
default: k(() => {
|
|
121
121
|
var r;
|
|
122
122
|
return [
|
|
123
123
|
c("div", {
|
|
@@ -154,19 +154,19 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { 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": k((t) => [
|
|
158
|
+
i(ke, {
|
|
159
159
|
row: t,
|
|
160
160
|
onRowClick: (o) => n(a).promptShowTransferDetails(o.purchaseOrder, o)
|
|
161
161
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
var p,
|
|
162
|
+
default: k((o) => {
|
|
163
|
+
var p, T, C, f, A, M, V, L, v, z, E, h, F, _, $, H, Y, U, j, D, G, J, K, Q, g, W;
|
|
164
164
|
return [
|
|
165
|
-
c("div",
|
|
166
|
-
c("div",
|
|
165
|
+
c("div", Ce, [
|
|
166
|
+
c("div", Ae, [
|
|
167
167
|
i(n(O), {
|
|
168
|
-
render: (
|
|
169
|
-
props: (
|
|
168
|
+
render: (C = (T = (p = o.purchaseOrder__id) == null ? void 0 : p.column) == null ? void 0 : T.columnDef) == null ? void 0 : C.cell,
|
|
169
|
+
props: (A = (f = o.purchaseOrder__id) == null ? void 0 : f.getContext) == null ? void 0 : A.call(f)
|
|
170
170
|
}, null, 8, ["render", "props"])
|
|
171
171
|
]),
|
|
172
172
|
c("div", Me, [
|
|
@@ -175,16 +175,16 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { 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(($ = (_ = (F = (h = (E = t.original.purchaseOrder) == null ? void 0 : E.items) == null ? void 0 : h.map) == null ? void 0 : F.call(h, (le) => `${le.name}`)) == null ? void 0 : _.join) == null ? void 0 : $.call(_, ", ")), 1),
|
|
179
|
+
(H = t.original.purchaseOrder) != null && H.ref ? (x(), fe("div", Le, [
|
|
180
180
|
i(n(O), {
|
|
181
|
-
render: (j = (U = (
|
|
182
|
-
props: (
|
|
181
|
+
render: (j = (U = (Y = o.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : U.columnDef) == null ? void 0 : j.cell,
|
|
182
|
+
props: (G = (D = o.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : G.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: (Q = (K = (J = o.purchaseOrder_status) == null ? void 0 : J.column) == null ? void 0 : K.columnDef) == null ? void 0 : Q.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 Ae = { class: "flex flex-col py-8" }, Ce = { 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(Pe, _e({
|
|
202
|
+
scope: n(q).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-XvIklIYw.js";
|
|
3
|
+
import { a as L, ba as S } from "./app-DJcCTZjT.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, ba as x, v as z } from "./app-DJcCTZjT.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, ba as R } from "./app-DJcCTZjT.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({
|