@feedmepos/mf-inventory-portal 1.2.24 → 1.2.25-dev.2
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-pG3igEbR.js +297 -0
- package/dist/{ApprovalView-D8SozxgZ.js → ApprovalView-JoTq2Bdf.js} +13 -13
- package/dist/{BindingsDialog-DpD-srnA.js → BindingsDialog-D44lDz_m.js} +2 -2
- package/dist/{BindingsPicker-TraPSRn0.js → BindingsPicker-BwaLwmiz.js} +1 -1
- package/dist/{BindingsTable-geCwbXg4.js → BindingsTable-C5y3yr5d.js} +1 -1
- package/dist/{ClosingDraftView-DsYJZvGk.js → ClosingDraftView-BxBEDZ8r.js} +5 -4
- package/dist/ClosingHistoryView-DU0Dv4IW.js +363 -0
- package/dist/{ClosingTemplateView-CHkzO1Nu.js → ClosingTemplateView-tigOzz56.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-skDykYOJ.js → DeliveryOrderPrintPreview-BSxjnk3a.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BgSCX-LL.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-eUMrmGD4.js} +21 -21
- package/dist/{FmMultiselectDialog-CDbPF9Jh.js → FmMultiselectDialog-s0EntbOX.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CqDOpQBo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DQuvByaf.js} +1 -1
- package/dist/{ImportView-CskoJZ8f.js → ImportView-D6c6oNby.js} +4 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-IrrYBFeM.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Ko8B7MYK.js} +1 -1
- package/dist/{IngredientGroupView-RledP9Ba.js → IngredientGroupView-oCZpkxZO.js} +2 -2
- package/dist/{IngredientsView-C3AXdYSs.js → IngredientsView-C8WzhNAH.js} +7 -7
- package/dist/{IntegrationView-B_mGrVu5.js → IntegrationView-DD1QWlE3.js} +141 -141
- package/dist/{InventoryBindingForm-CAqsJlFM.js → InventoryBindingForm-ChoO3SrA.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C3hmrMQB.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DXe0VwF9.js} +3 -3
- package/dist/{InventoryBindingSummary-CX05dIVw.js → InventoryBindingSummary-BGmUNPfu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wWuCVuRM.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DDXfvqWA.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BU0Npweo.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BwW92Whg.js} +1 -1
- package/dist/{PublishView-CfVJ65by.js → PublishView-CzS06kO-.js} +4 -4
- package/dist/{PurchaseOrderPrintPreview-DTsz2K_J.js → PurchaseOrderPrintPreview-YCg4lu_a.js} +10 -10
- package/dist/{ReceiveRequestView-CgJZis38.js → ReceiveRequestView-WjbYB-a0.js} +8 -8
- package/dist/{RecipeView-CLipp4YX.js → RecipeView-Cl4_vFBE.js} +3 -3
- package/dist/{StockView-BwZ2pl_P.js → StockView-dyF-JQbP.js} +18 -17
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-jmEYs9QV.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B-fQRg6q.js} +1 -1
- package/dist/{SupplierView-BpwchJuw.js → SupplierView-BN_pPxS7.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CkkFDzSi.js → TransferDetails.vue_vue_type_script_setup_true_lang-DR9qQoBL.js} +174 -174
- package/dist/{TransferTemplateView-BoVhRHqn.js → TransferTemplateView-CSA2wNJR.js} +7 -7
- package/dist/{UnitView-DvOXmefs.js → UnitView-C69iwndm.js} +3 -3
- package/dist/{WarehouseView-CuSv-A_N.js → WarehouseView-BkSvBJg_.js} +1 -1
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/stock.d.ts +2 -44
- package/dist/{app-Cl-v2EjQ.js → app-NmiyG_NE.js} +6561 -6389
- package/dist/app.d.ts +108 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-Cd_xkdIL.js → decimal-B-SPLtwh.js} +1 -1
- package/dist/{format-unit-display-UAp-LCyp.js → format-unit-display-jXD4D_J4.js} +20 -20
- package/dist/{import-export.helper-0uVecFKH.js → import-export.helper-BOFJJxVC.js} +1 -1
- package/dist/{index-BO1KynNa.js → index-BvtleP-f.js} +1 -1
- package/dist/{index-CL9QvjgU.js → index-DY1lwU0l.js} +1 -1
- package/dist/{purchase-order-template-D7DZ6S2H.js → purchase-order-template-BNtdgrTt.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/stock-Basa-Xi7.js +74 -0
- package/dist/stock-F2A8gqHx.js +83 -0
- package/dist/stores/inventory.d.ts +1 -0
- package/dist/{supplier-D49_CDEa.js → supplier-CBUmza-i.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CCLEsRrk.js → use-ingredient-select-dialog-ogRof947.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CvRGlhsk.js → use-inventory-binding-dialog-D9P4uH3I.js} +1 -1
- package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
- package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
- package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
- package/package.json +4 -4
- package/dist/App-hvbk1R9p.js +0 -286
- package/dist/stock-DJ9usOfe.js +0 -146
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { ref as B, onUnmounted as D, defineComponent as w, watch as L, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as g, createElementVNode as v, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
|
|
2
|
+
import { u as K, a as $, b as j, R as e, c as V, m as _, g as r, d as k } from "./app-NmiyG_NE.js";
|
|
3
|
+
import { useCoreStore as U, useI18n as H } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as O, useRoute as z } from "vue-router";
|
|
5
|
+
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
6
|
+
import { u as Y } from "./googlemap-Dm8ERVai.js";
|
|
7
|
+
function q() {
|
|
8
|
+
return {
|
|
9
|
+
loadingHookInstalled: !1,
|
|
10
|
+
isLoading: !1
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const I = B(q());
|
|
14
|
+
function J() {
|
|
15
|
+
const c = O();
|
|
16
|
+
if (!I.value.loadingHookInstalled) {
|
|
17
|
+
I.value.loadingHookInstalled = !0;
|
|
18
|
+
const a = c.beforeEach(() => {
|
|
19
|
+
I.value.isLoading = !0;
|
|
20
|
+
}), d = c.afterEach(() => {
|
|
21
|
+
I.value.isLoading = !1;
|
|
22
|
+
});
|
|
23
|
+
D(() => {
|
|
24
|
+
I.value.loadingHookInstalled = !1, a(), d();
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
get isLoading() {
|
|
29
|
+
return I.value.isLoading;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const X = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "flex flex-col items-center w-full h-full gap-24"
|
|
36
|
+
}, Z = {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
39
|
+
}, ee = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, te = { class: "fm-typo-en-title-lg-600" }, oe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "flex gap-16" }, ae = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, re = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ w({
|
|
40
|
+
__name: "InventoryView",
|
|
41
|
+
setup(c) {
|
|
42
|
+
const a = K(), d = $(), p = j(), l = U(), s = O(), m = J(), t = V(), { t: E } = H();
|
|
43
|
+
L(
|
|
44
|
+
[() => l.sessionUser.value, () => l.currentBusiness.value],
|
|
45
|
+
([u, i]) => {
|
|
46
|
+
h(u, i);
|
|
47
|
+
}
|
|
48
|
+
), M(async () => {
|
|
49
|
+
await t.init(), await l.readBusinesses();
|
|
50
|
+
const u = l.sessionUser.value, i = l.currentBusiness.value;
|
|
51
|
+
h(u, i);
|
|
52
|
+
});
|
|
53
|
+
function h(u, i) {
|
|
54
|
+
!u || !i || N();
|
|
55
|
+
}
|
|
56
|
+
async function N() {
|
|
57
|
+
return await a.init(), await p.readSetting().catch((u) => {
|
|
58
|
+
console.error("[all] error on reading netsuite store", u);
|
|
59
|
+
}), await d.init();
|
|
60
|
+
}
|
|
61
|
+
const C = P(() => s.currentRoute.value.name === e.TRANSFER_TEMPLATE ? t.enablePoTemplate : s.currentRoute.value.name === e.INGREDIENT_GROUP ? t.enableIngredientGroup : !0);
|
|
62
|
+
return (u, i) => {
|
|
63
|
+
const S = y("FmSpacer"), G = y("FmCircularProgress"), o = y("FmButton"), n = y("RouterView");
|
|
64
|
+
return R(), A("div", null, [
|
|
65
|
+
T(m).isLoading ? (R(), A("div", X, [
|
|
66
|
+
g(S),
|
|
67
|
+
v("div", null, [
|
|
68
|
+
g(G, { size: "xl" })
|
|
69
|
+
]),
|
|
70
|
+
i[0] || (i[0] = v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
71
|
+
g(S)
|
|
72
|
+
])) : C.value ? T(l).sessionUser.value ? (R(), F(n, { key: 2 })) : W("", !0) : (R(), A("div", Z, [
|
|
73
|
+
v("div", ee, [
|
|
74
|
+
v("div", te, x(T(E)("inventory.common.proPlan.title")), 1),
|
|
75
|
+
v("div", oe, x(T(E)("inventory.common.proPlan.subtitle")), 1)
|
|
76
|
+
]),
|
|
77
|
+
v("div", ne, [
|
|
78
|
+
v("a", ae, [
|
|
79
|
+
g(o, {
|
|
80
|
+
label: T(E)("inventory.common.proPlan.comparePlans"),
|
|
81
|
+
variant: "secondary"
|
|
82
|
+
}, null, 8, ["label"])
|
|
83
|
+
]),
|
|
84
|
+
v("a", re, [
|
|
85
|
+
g(o, {
|
|
86
|
+
label: T(E)("inventory.common.proPlan.callUs"),
|
|
87
|
+
"prepend-icon": "call"
|
|
88
|
+
}, null, 8, ["label"])
|
|
89
|
+
])
|
|
90
|
+
])
|
|
91
|
+
]))
|
|
92
|
+
]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}), se = { class: "h-full flex flex-col overflow-auto py-16" }, ie = /* @__PURE__ */ w({
|
|
96
|
+
__name: "NavigationTab",
|
|
97
|
+
setup(c) {
|
|
98
|
+
const a = _.object({
|
|
99
|
+
label: _.string(),
|
|
100
|
+
value: _.string().optional(),
|
|
101
|
+
icon: _.string().optional(),
|
|
102
|
+
hide: _.boolean().optional(),
|
|
103
|
+
children: _.array(_.lazy(() => a)).optional()
|
|
104
|
+
}), d = z(), p = O(), l = U(), s = V(), m = Q(), { t } = H(), { isDev: E } = k();
|
|
105
|
+
L([() => l.currentBusiness.value, () => d.name], ([o, n]) => {
|
|
106
|
+
(o == null ? void 0 : o.menuVersion) === "v3" && (n === e.INGREDIENTS || n === e.RECIPE || n === e.UNIT) && p.push({ name: e.STOCK });
|
|
107
|
+
});
|
|
108
|
+
const h = (o) => o.filter((n) => !n.hide).map((n) => n.children ? { ...n, children: h(n.children) } : n), N = (o) => o.map((n) => {
|
|
109
|
+
delete n.hide;
|
|
110
|
+
const f = n;
|
|
111
|
+
return n.children && (f.children = N(n.children)), f;
|
|
112
|
+
}), C = P(() => {
|
|
113
|
+
var f;
|
|
114
|
+
const o = [
|
|
115
|
+
{
|
|
116
|
+
label: "Non-Production Environment",
|
|
117
|
+
icon: "logo_dev",
|
|
118
|
+
disabled: !0,
|
|
119
|
+
hide: !E
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
label: r(e.STOCK, t),
|
|
123
|
+
// icon: 'inventory_2',
|
|
124
|
+
children: [
|
|
125
|
+
{
|
|
126
|
+
label: t("inventory.stock.stock_balance.title"),
|
|
127
|
+
value: e.STOCK
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: r(e.WASTAGE_TEMPLATE, t),
|
|
131
|
+
value: e.WASTAGE_TEMPLATE,
|
|
132
|
+
hide: !s.enableWastageTemplate
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
label: "Closing",
|
|
138
|
+
children: [
|
|
139
|
+
{
|
|
140
|
+
label: r(e.CLOSING_HISTORY, t),
|
|
141
|
+
value: e.CLOSING_HISTORY
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
label: r(e.CLOSING_TEMPLATE, t),
|
|
145
|
+
value: e.CLOSING_TEMPLATE,
|
|
146
|
+
hide: !s.enableClosingTemplate
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
label: r(e.CLOSING_DRAFT, t),
|
|
150
|
+
value: e.CLOSING_DRAFT,
|
|
151
|
+
hide: !s.enableClosingTemplate
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
label: r(e.INGREDIENTS, t),
|
|
157
|
+
// icon: 'grocery',
|
|
158
|
+
value: e.INGREDIENTS
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
label: r(e.INGREDIENT_GROUP, t),
|
|
162
|
+
// icon: 'grocery',
|
|
163
|
+
value: e.INGREDIENT_GROUP,
|
|
164
|
+
hide: !s.enableIngredientGroup
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: r(e.RECIPE, t),
|
|
168
|
+
// icon: 'weight',
|
|
169
|
+
value: e.RECIPE
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
label: r(e.UNIT, t),
|
|
173
|
+
// icon: 'fastfood',
|
|
174
|
+
value: e.UNIT
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
label: t("inventory.transfer.title"),
|
|
178
|
+
// icon: 'swap_horiz',
|
|
179
|
+
children: [
|
|
180
|
+
{
|
|
181
|
+
label: r(e.RECEIVE_REQUEST, t),
|
|
182
|
+
value: e.RECEIVE_REQUEST
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
label: r(e.APPROVAL, t),
|
|
186
|
+
value: e.APPROVAL
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
label: r(e.TRANSFER_TEMPLATE, t),
|
|
190
|
+
value: e.TRANSFER_TEMPLATE,
|
|
191
|
+
hide: !s.enablePoTemplate
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
label: r(e.SUPPLIER, t),
|
|
197
|
+
// icon: 'group',
|
|
198
|
+
value: e.SUPPLIER
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
label: r(e.WAREHOUSE, t),
|
|
202
|
+
// icon: 'warehouse',
|
|
203
|
+
value: e.WAREHOUSE
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
label: r(e.PUBLISH, t),
|
|
207
|
+
value: e.PUBLISH
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
label: r(e.IMPORT, t),
|
|
211
|
+
value: e.IMPORT,
|
|
212
|
+
hide: !s.enableBulkImport
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
label: r(e.INTEGRATION, t),
|
|
216
|
+
// icon: 'integration_instructions',
|
|
217
|
+
value: e.INTEGRATION
|
|
218
|
+
}
|
|
219
|
+
], n = N(h(o));
|
|
220
|
+
return ((f = l.currentBusiness.value) == null ? void 0 : f.menuVersion) === "v3" ? n.filter(
|
|
221
|
+
(b) => b.value !== e.INGREDIENTS && b.value !== e.RECIPE && b.value !== e.UNIT && b.value !== e.PUBLISH
|
|
222
|
+
) : n;
|
|
223
|
+
}), u = P({
|
|
224
|
+
get() {
|
|
225
|
+
if (d.name)
|
|
226
|
+
return String(d.name);
|
|
227
|
+
},
|
|
228
|
+
set(o) {
|
|
229
|
+
o && p.push({ name: o });
|
|
230
|
+
}
|
|
231
|
+
}), i = P(
|
|
232
|
+
() => {
|
|
233
|
+
var o;
|
|
234
|
+
return `NavigationTab.${(o = l.currentBusiness.value) == null ? void 0 : o._id}`;
|
|
235
|
+
}
|
|
236
|
+
), S = B(!1), G = P({
|
|
237
|
+
get() {
|
|
238
|
+
return S.value;
|
|
239
|
+
},
|
|
240
|
+
set(o) {
|
|
241
|
+
S.value = o, o || m.setItem(i.value, "true");
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
return L([() => i.value], () => {
|
|
245
|
+
S.value = !1, setTimeout(() => {
|
|
246
|
+
G.value = !m.getItem(i.value);
|
|
247
|
+
}, 2e3);
|
|
248
|
+
}), (o, n) => {
|
|
249
|
+
const f = y("FmCollapsibleTabs");
|
|
250
|
+
return R(), A("div", se, [
|
|
251
|
+
g(f, {
|
|
252
|
+
modelValue: u.value,
|
|
253
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => u.value = b),
|
|
254
|
+
items: C.value
|
|
255
|
+
}, null, 8, ["modelValue", "items"])
|
|
256
|
+
]);
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
261
|
+
let c, a;
|
|
262
|
+
return { promise: new Promise((p, l) => {
|
|
263
|
+
c = p, a = l;
|
|
264
|
+
}), resolve: c, reject: a };
|
|
265
|
+
});
|
|
266
|
+
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(c) {
|
|
267
|
+
return await new Promise((a) => setTimeout(a, c)), Promise.resolve(this);
|
|
268
|
+
});
|
|
269
|
+
const fe = /* @__PURE__ */ w({
|
|
270
|
+
__name: "App",
|
|
271
|
+
setup(c) {
|
|
272
|
+
const a = U(), d = Y(), p = k();
|
|
273
|
+
M(() => {
|
|
274
|
+
if (window.location.href.includes("print-preview")) {
|
|
275
|
+
a.setEmbedded(!0), document.body.classList.add("print-mode");
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
a.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
|
|
279
|
+
console.error("Google map cannot be loaded");
|
|
280
|
+
});
|
|
281
|
+
}), L([() => a.currentCountry.value], () => {
|
|
282
|
+
l();
|
|
283
|
+
});
|
|
284
|
+
async function l() {
|
|
285
|
+
var s;
|
|
286
|
+
try {
|
|
287
|
+
await a.readBusinesses(), a.currentBusiness.value = (s = a.businesses.value) == null ? void 0 : s.find((m) => m);
|
|
288
|
+
} catch (m) {
|
|
289
|
+
console.error("error when trying to reset businesses:", m);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return (s, m) => (R(), F(le));
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
export {
|
|
296
|
+
fe as default
|
|
297
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as
|
|
2
|
-
import { u as De, b as ge, m as b,
|
|
3
|
-
import { u as qe, P as q, a as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as W, 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, m as b, aZ as ye, am as X, G as be, N as Oe, H as Re, I as Se, J as xe, K as ke, L as O } from "./app-NmiyG_NE.js";
|
|
3
|
+
import { u as qe, P as q, a as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DR9qQoBL.js";
|
|
4
4
|
import { useBreakpoints as Ne } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Te } from "@feedmepos/mf-common";
|
|
6
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" }, Le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ve = {
|
|
@@ -19,8 +19,8 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
19
19
|
name: "",
|
|
20
20
|
...ye()
|
|
21
21
|
}), l = y({
|
|
22
|
-
startDate:
|
|
23
|
-
endDate:
|
|
22
|
+
startDate: X(w.value.start ?? /* @__PURE__ */ new Date()),
|
|
23
|
+
endDate: X(w.value.end ?? /* @__PURE__ */ new Date())
|
|
24
24
|
});
|
|
25
25
|
ie([() => l.value.startDate], () => {
|
|
26
26
|
if (!l.value.startDate)
|
|
@@ -112,7 +112,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
112
112
|
});
|
|
113
113
|
return (u, s) => {
|
|
114
114
|
const e = ce("FmTable");
|
|
115
|
-
return x(),
|
|
115
|
+
return x(), W(Se, {
|
|
116
116
|
title: n(N)("inventory.transfer.approval.title"),
|
|
117
117
|
actions: re.value,
|
|
118
118
|
"onClick:action": se
|
|
@@ -160,7 +160,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
160
160
|
onRowClick: (o) => n(a).promptShowTransferDetails(o.purchaseOrder, o)
|
|
161
161
|
}, {
|
|
162
162
|
default: k((o) => {
|
|
163
|
-
var p, T, A, f, C, M, L, V, v, z, F, h,
|
|
163
|
+
var p, T, A, f, C, M, L, V, v, z, F, h, $, _, E, H, Y, U, j, D, G, J, K, Z, g, Q;
|
|
164
164
|
return [
|
|
165
165
|
c("div", Ae, [
|
|
166
166
|
c("div", Ce, [
|
|
@@ -175,17 +175,17 @@ 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", Le, me((
|
|
179
|
-
(
|
|
178
|
+
c("div", Le, 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
|
+
(H = t.original.purchaseOrder) != null && H.ref ? (x(), fe("div", Ve, [
|
|
180
180
|
i(n(O), {
|
|
181
|
-
render: (j = (U = (
|
|
181
|
+
render: (j = (U = (Y = o.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : U.columnDef) == null ? void 0 : j.cell,
|
|
182
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: (
|
|
188
|
-
props: (
|
|
187
|
+
render: (Z = (K = (J = o.purchaseOrder_status) == null ? void 0 : J.column) == null ? void 0 : K.columnDef) == null ? void 0 : Z.cell,
|
|
188
|
+
props: (Q = (g = o.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : Q.call(g)
|
|
189
189
|
}, null, 8, ["render", "props"])
|
|
190
190
|
])
|
|
191
191
|
])
|
|
@@ -197,7 +197,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
197
197
|
_: 1
|
|
198
198
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
199
199
|
], 2),
|
|
200
|
-
(x(),
|
|
200
|
+
(x(), W(he, { to: "body" }, [
|
|
201
201
|
i(Pe, _e({
|
|
202
202
|
scope: n(q).APPROVAL
|
|
203
203
|
}, {
|
|
@@ -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, bc as S } from "./app-
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DXe0VwF9.js";
|
|
3
|
+
import { a as L, bc as S } from "./app-NmiyG_NE.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 x, bc as M, x as z } from "./app-
|
|
2
|
+
import { a as x, bc as M, x as z } from "./app-NmiyG_NE.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, bc as R } from "./app-
|
|
2
|
+
import { F as b, a as P, bc as R } from "./app-NmiyG_NE.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({
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { defineComponent as He, ref as H, computed as V, onMounted as Ye, resolveComponent as U, openBlock as j, createElementBlock as L, Fragment as ee, createTextVNode as X, createBlock as se, withCtx as G, createElementVNode as r, toDisplayString as J, unref as F, createVNode as x, createCommentVNode as de, h as T, reactive as _t, watch as Dt, isRef as rt, normalizeClass as De, renderList as je, normalizeStyle as lt, Teleport as wt, mergeProps as St } from "vue";
|
|
2
|
-
import { aa as Ct, u as ze, ax as z, am as ct, ay as it, r as jt, Z as Qe, n as N, t as Bt, a0 as Be, W as Ft, Y as Tt, X as $t, az as ut, aA as dt, ah as mt, aB as pe, an as Mt, ac as Ke, ab as ve, a6 as Ue, D as st, j as Re, i as Rt, f as It, a as Pt, $ as Ie, a9 as Vt, G as Ut, I as Lt, J as Et, K as Ht, L as Pe } from "./app-
|
|
2
|
+
import { aa as Ct, u as ze, ax as z, am as ct, ay as it, r as jt, Z as Qe, n as N, t as Bt, a0 as Be, W as Ft, Y as Tt, X as $t, az as ut, aA as dt, ah as mt, aB as pe, an as Mt, ac as Ke, ab as ve, a6 as Ue, D as st, j as Re, i as Rt, f as It, a as Pt, $ as Ie, a9 as Vt, G as Ut, I as Lt, J as Et, K as Ht, L as Pe } from "./app-NmiyG_NE.js";
|
|
3
3
|
import { useCoreStore as zt, useI18n as ft } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ge, useDialog as Nt, useProxiedModel as Ot, components as Ve, useBreakpoints as Kt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as pt, storeToRefs as Yt } from "pinia";
|
|
6
|
-
import {
|
|
6
|
+
import { u as vt } from "./stock-Basa-Xi7.js";
|
|
7
|
+
import { u as We } from "./stock-F2A8gqHx.js";
|
|
7
8
|
import { E as Qt } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
9
|
const Ne = Ct((o, l) => {
|
|
9
10
|
function e() {
|
|
@@ -1769,7 +1770,7 @@ const ia = pt(
|
|
|
1769
1770
|
}, 8, ["model-value"]);
|
|
1770
1771
|
};
|
|
1771
1772
|
}
|
|
1772
|
-
}), Qa = { class: "flex-1 flex flex-col gap-8" }, Ga = { class: "flex flex-col" }, Wa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qa = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Za = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Ja = { class: "fm-typo-en-body-lg-400 line-clamp-2" },
|
|
1773
|
+
}), Qa = { class: "flex-1 flex flex-col gap-8" }, Ga = { class: "flex flex-col" }, Wa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qa = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Za = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Ja = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, un = /* @__PURE__ */ He({
|
|
1773
1774
|
__name: "ClosingDraftView",
|
|
1774
1775
|
setup(o) {
|
|
1775
1776
|
const { t: l } = ft(), { viewDraft: e } = Ee(), { viewClosingDraftProps: m, viewClosingDraftShow: p } = Yt(Ee()), w = ze(), v = ia(), R = Ut(), { breakpoints: S } = Kt();
|
|
@@ -1894,5 +1895,5 @@ const ia = pt(
|
|
|
1894
1895
|
}
|
|
1895
1896
|
});
|
|
1896
1897
|
export {
|
|
1897
|
-
|
|
1898
|
+
un as default
|
|
1898
1899
|
};
|