@feedmepos/mf-inventory-portal 0.0.21-dev.4 → 0.0.21-dev.5
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/ApprovalView-BHoJzHuo.js +129 -0
- package/dist/{BindingsDialog-BFLeun5L.js → BindingsDialog-sUZjZtSl.js} +1 -1
- package/dist/{BindingsPicker-CnjJZH9t.js → BindingsPicker-CqzSUVc_.js} +1 -1
- package/dist/{BindingsTable-C3VTa0YL.js → BindingsTable-C1o5EgLy.js} +1 -1
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CpN5Kn8b.js} +1 -1
- package/dist/{IngredientsView-CQYJfAze.js → IngredientsView-CrXPIQme.js} +99 -91
- package/dist/IntegrationView-BJT-KMVp.js +1141 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Wv8RvXJL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DH0CcGmX.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DsOGlAb7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-kJKVCH40.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-B0hDduXB.js → PurchaseOrderPrintPreview-k26o__vy.js} +1 -1
- package/dist/ReceiveRequestView-ysOzzBTW.js +216 -0
- package/dist/{RecipeView-DYKhSgtw.js → RecipeView-DAH8YIzY.js} +182 -174
- package/dist/{StockView-BIGGG87A.js → StockView-BlCpuSLe.js} +547 -539
- package/dist/{SupplierView-DQzopnzt.js → SupplierView-Bwknjcke.js} +263 -255
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D8-sMRGm.js → TransferDetails.vue_vue_type_script_setup_true_lang-LCNiBfi7.js} +3 -3
- package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-CSUnXAyq.js → TransferDialog.vue_vue_type_script_setup_true_lang-BDvtif2q.js} +4 -4
- package/dist/{TransferTemplateView-DWF54okN.js → TransferTemplateView-DcMdNiH6.js} +372 -364
- package/dist/{UnitView-Cdw8xxzV.js → UnitView-BVMr4KlR.js} +186 -178
- package/dist/{WarehouseView-DOelxuIh.js → WarehouseView-Dd-e-IlG.js} +388 -380
- package/dist/{app-SBnQEeEV.js → app-S6iG6Hux.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{decimal-BlEB2PrM.js → decimal-nOOdFIFP.js} +1 -1
- package/dist/{id-to-date-Y6berpHs.js → id-to-date-CKQ0n3Qi.js} +1 -1
- package/dist/{purchase-order-transaction-type-Dp0wsGal.js → purchase-order-transaction-type-CQ-RpJ0h.js} +2 -2
- package/dist/{supplier-I_rYvljH.js → supplier-DQsAfn3q.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{xlsx-DGwG2ekM.js → xlsx-Dgjf-KvE.js} +1 -1
- package/dist/{xlsx.util-Dsf-EgrG.js → xlsx.util-CODYzgF8.js} +2 -2
- package/package.json +3 -3
- package/dist/ApprovalView-BS4jzhAR.js +0 -121
- package/dist/IntegrationView-9V2OcyP_.js +0 -1172
- package/dist/ReceiveRequestView-3boFHkOO.js +0 -208
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import { l as d } from "./app-
|
|
2
|
+
import { l as d } from "./app-S6iG6Hux.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as m, j as F } from "./app-
|
|
1
|
+
import { n as m, j as F } from "./app-S6iG6Hux.js";
|
|
2
2
|
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as h, defineComponent as y, resolveComponent as d, openBlock as _, createElementBlock as f, renderSlot as k, createVNode as p, withCtx as g } from "vue";
|
|
4
4
|
const l = m((e, t) => {
|
package/dist/{PurchaseOrderPrintPreview-B0hDduXB.js → PurchaseOrderPrintPreview-k26o__vy.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as f, onMounted as m, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { ae as y, i as C } from "./app-
|
|
3
|
+
import { ae as y, i as C } from "./app-S6iG6Hux.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, q = { class: "sub-header" }, T = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { defineComponent as ce, ref as C, watch as Q, computed as k, resolveComponent as le, openBlock as b, createBlock as q, unref as e, withCtx as w, createElementVNode as u, normalizeClass as ue, createVNode as c, normalizeStyle as me, toDisplayString as de, createElementBlock as pe, createCommentVNode as fe, Teleport as ve, mergeProps as G } from "vue";
|
|
2
|
+
import { Y as h, j as _e, o as Z, a as W, G as ye, Z as ge, b as De } from "./app-S6iG6Hux.js";
|
|
3
|
+
import { i as X, u as be, _ as he, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CpN5Kn8b.js";
|
|
4
|
+
import { u as xe } from "./purchase-order-transaction-type-CQ-RpJ0h.js";
|
|
5
|
+
import { u as Re, _ as Ce, g as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-LCNiBfi7.js";
|
|
6
|
+
import { i as qe, e as we } from "./id-to-date-CKQ0n3Qi.js";
|
|
7
|
+
import { useSnackbar as Te, useBreakpoints as Fe } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as Me } from "./TransferDialog.vue_vue_type_script_setup_true_lang-BDvtif2q.js";
|
|
9
|
+
import { _ as Oe, F as S } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
10
|
+
import "./array-ClJzD_Lt.js";
|
|
11
|
+
import { useI18n as Ye } from "@feedmepos/mf-common";
|
|
12
|
+
const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, $e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ne = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
15
|
+
}, je = { class: "pt-8" }, B = "ReceiveRequestViewSearchCriteria", Be = /* @__PURE__ */ ce({
|
|
16
|
+
__name: "ReceiveRequestView",
|
|
17
|
+
setup(Ae) {
|
|
18
|
+
const { t: m } = Ye(), I = Te();
|
|
19
|
+
h.object({
|
|
20
|
+
name: h.string().optional().nullable(),
|
|
21
|
+
startDate: h.string().optional().nullable(),
|
|
22
|
+
endDate: h.string().optional().nullable()
|
|
23
|
+
});
|
|
24
|
+
const T = ge(), F = De();
|
|
25
|
+
function ee() {
|
|
26
|
+
const o = {
|
|
27
|
+
name: "",
|
|
28
|
+
...X()
|
|
29
|
+
}, r = T.getItem(B);
|
|
30
|
+
if (!r)
|
|
31
|
+
return o;
|
|
32
|
+
try {
|
|
33
|
+
return JSON.parse(r);
|
|
34
|
+
} catch {
|
|
35
|
+
return o;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function M() {
|
|
39
|
+
T.setItem(B, JSON.stringify(i.value));
|
|
40
|
+
}
|
|
41
|
+
const i = C(ee()), a = xe("receive/request", i.value), { columnDefs: te } = Re("receive/request", a), O = _e();
|
|
42
|
+
async function ae() {
|
|
43
|
+
const o = `inventory-record_${Z(i.value.startDate).format("DD-MM-YYYY_HH-mm")}-${Z(i.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, r = a.purchaseOrders.value.flatMap(
|
|
44
|
+
(n) => n.items.map((t) => {
|
|
45
|
+
const s = new Date(qe(n._id) ?? ""), p = n.effectiveAt ? new Date(n.effectiveAt) : void 0, f = W(
|
|
46
|
+
ke(t.sku, n.deliveryOrder || [])
|
|
47
|
+
), v = W(t.quantity);
|
|
48
|
+
return {
|
|
49
|
+
"SKU code": t.code,
|
|
50
|
+
"SKU name": t.name,
|
|
51
|
+
"PO #": n.seqNumber,
|
|
52
|
+
"Effective at": p,
|
|
53
|
+
Date: s,
|
|
54
|
+
Status: n.status,
|
|
55
|
+
Reference: n.ref ?? "",
|
|
56
|
+
"Received quantity": f,
|
|
57
|
+
"Ordered quantity": v,
|
|
58
|
+
Unit: t.sku.unit.abbrev,
|
|
59
|
+
"Total cost": t.totalCost ? ye(t.totalCost) : null
|
|
60
|
+
};
|
|
61
|
+
})
|
|
62
|
+
), l = [
|
|
63
|
+
"SKU code",
|
|
64
|
+
"SKU name",
|
|
65
|
+
"PO #",
|
|
66
|
+
"Date",
|
|
67
|
+
"Status",
|
|
68
|
+
"Reference",
|
|
69
|
+
"Received quantity",
|
|
70
|
+
"Ordered quantity",
|
|
71
|
+
"Unit"
|
|
72
|
+
];
|
|
73
|
+
F.enableBackdatePo && l.insert("Effective at", 4), F.enableTotalCost && l.push("Total cost"), await we(
|
|
74
|
+
[
|
|
75
|
+
{
|
|
76
|
+
name: "purchases",
|
|
77
|
+
data: r,
|
|
78
|
+
columns: l
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
o
|
|
82
|
+
), I.open({
|
|
83
|
+
title: m("inventory.transfer.receiveRequest.export.success"),
|
|
84
|
+
message: m("inventory.transfer.receiveRequest.export.message", [o]),
|
|
85
|
+
type: "success"
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
const x = C(X()), d = C("");
|
|
89
|
+
Q([() => x.value], ([o]) => {
|
|
90
|
+
!o.startDate || !o.endDate || (i.value.startDate = o.startDate, i.value.endDate = o.endDate, a.updateDateRange(
|
|
91
|
+
i.value.startDate,
|
|
92
|
+
i.value.endDate
|
|
93
|
+
), M());
|
|
94
|
+
}), Q([() => d.value], () => {
|
|
95
|
+
M();
|
|
96
|
+
});
|
|
97
|
+
function oe(o) {
|
|
98
|
+
o === "create" && a.promptCreateTransferDialog();
|
|
99
|
+
}
|
|
100
|
+
const { breakpoints: Y } = Fe(), R = k(() => Y.value.xs || Y.value.sm), re = k(() => R.value ? 10 : 20), ne = be(), se = k(() => [
|
|
101
|
+
{
|
|
102
|
+
icon: "refresh",
|
|
103
|
+
onClick: a.fetchData
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
icon: "ios_share",
|
|
107
|
+
onClick: ae
|
|
108
|
+
}
|
|
109
|
+
]);
|
|
110
|
+
return (o, r) => {
|
|
111
|
+
const l = le("FmTable");
|
|
112
|
+
return b(), q(he, {
|
|
113
|
+
title: e(m)("inventory.transfer.receiveRequest.title2"),
|
|
114
|
+
actions: [
|
|
115
|
+
{
|
|
116
|
+
label: e(m)("inventory.transfer.receiveRequest.actions.create"),
|
|
117
|
+
value: "create",
|
|
118
|
+
isPrimary: !0,
|
|
119
|
+
prependIcon: "add"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"onClick:action": oe
|
|
123
|
+
}, {
|
|
124
|
+
default: w(() => {
|
|
125
|
+
var n;
|
|
126
|
+
return [
|
|
127
|
+
u("div", {
|
|
128
|
+
class: ue([
|
|
129
|
+
"flex flex-col gap-8 max-h-full",
|
|
130
|
+
{
|
|
131
|
+
"p-0": R.value,
|
|
132
|
+
"px-24 ": !R.value
|
|
133
|
+
}
|
|
134
|
+
])
|
|
135
|
+
}, [
|
|
136
|
+
c(Se, {
|
|
137
|
+
"date-range-query": "",
|
|
138
|
+
"date-range": x.value,
|
|
139
|
+
"onUpdate:dateRange": r[0] || (r[0] = (t) => x.value = t),
|
|
140
|
+
searchable: "",
|
|
141
|
+
"change-location": "",
|
|
142
|
+
search: d.value,
|
|
143
|
+
"onUpdate:search": r[1] || (r[1] = (t) => d.value = t),
|
|
144
|
+
actions: se.value
|
|
145
|
+
}, null, 8, ["date-range", "search", "actions"]),
|
|
146
|
+
(b(), q(l, {
|
|
147
|
+
style: me(e(ne).tableHeight),
|
|
148
|
+
"column-defs": e(te),
|
|
149
|
+
"row-data": e(a).purchaseOrders.value,
|
|
150
|
+
"search-value": d.value,
|
|
151
|
+
loading: !e(O)._currentLocation || e(a).loading.value,
|
|
152
|
+
onRowClick: r[2] || (r[2] = (t) => e(a).promptShowTransferDetails(t.original)),
|
|
153
|
+
key: (n = e(O)._currentLocation) == null ? void 0 : n.dbName,
|
|
154
|
+
"page-size": re.value
|
|
155
|
+
}, {
|
|
156
|
+
"list-row": w((t) => [
|
|
157
|
+
c(Oe, {
|
|
158
|
+
row: t,
|
|
159
|
+
onRowClick: e(a).promptShowTransferDetails
|
|
160
|
+
}, {
|
|
161
|
+
default: w((s) => {
|
|
162
|
+
var p, f, v, _, E, P, U, $, y, N, j, A, H, g, V, z, K, L, D, J;
|
|
163
|
+
return [
|
|
164
|
+
u("div", Ee, [
|
|
165
|
+
u("div", Pe, [
|
|
166
|
+
c(e(S), {
|
|
167
|
+
render: (v = (f = (p = s._id) == null ? void 0 : p.column) == null ? void 0 : f.columnDef) == null ? void 0 : v.cell,
|
|
168
|
+
props: (E = (_ = s._id) == null ? void 0 : _.getContext) == null ? void 0 : E.call(_)
|
|
169
|
+
}, null, 8, ["render", "props"])
|
|
170
|
+
]),
|
|
171
|
+
u("div", Ue, [
|
|
172
|
+
c(e(S), {
|
|
173
|
+
render: ($ = (U = (P = s.supplier_name) == null ? void 0 : P.column) == null ? void 0 : U.columnDef) == null ? void 0 : $.cell,
|
|
174
|
+
props: (N = (y = s.supplier_name) == null ? void 0 : y.getContext) == null ? void 0 : N.call(y)
|
|
175
|
+
}, null, 8, ["render", "props"])
|
|
176
|
+
]),
|
|
177
|
+
u("div", $e, de(t.original.items.map((ie) => `${ie.name}`).join(", ")), 1),
|
|
178
|
+
t.original.ref ? (b(), pe("div", Ne, [
|
|
179
|
+
c(e(S), {
|
|
180
|
+
render: (H = (A = (j = s.ref) == null ? void 0 : j.column) == null ? void 0 : A.columnDef) == null ? void 0 : H.cell,
|
|
181
|
+
props: (V = (g = s.ref) == null ? void 0 : g.getContext) == null ? void 0 : V.call(g)
|
|
182
|
+
}, null, 8, ["render", "props"])
|
|
183
|
+
])) : fe("", !0),
|
|
184
|
+
u("div", je, [
|
|
185
|
+
c(e(S), {
|
|
186
|
+
render: (L = (K = (z = s.status) == null ? void 0 : z.column) == null ? void 0 : K.columnDef) == null ? void 0 : L.cell,
|
|
187
|
+
props: (J = (D = s.status) == null ? void 0 : D.getContext) == null ? void 0 : J.call(D)
|
|
188
|
+
}, null, 8, ["render", "props"])
|
|
189
|
+
])
|
|
190
|
+
])
|
|
191
|
+
];
|
|
192
|
+
}),
|
|
193
|
+
_: 2
|
|
194
|
+
}, 1032, ["row", "onRowClick"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
198
|
+
], 2),
|
|
199
|
+
(b(), q(ve, { to: "body" }, [
|
|
200
|
+
c(Me, G(e(a).transferDialogProps.value, {
|
|
201
|
+
onSubmitted: e(a).fetchData
|
|
202
|
+
}), null, 16, ["onSubmitted"]),
|
|
203
|
+
c(Ce, G(e(a).transferDetailsProps.value, {
|
|
204
|
+
onSubmitted: e(a).fetchData
|
|
205
|
+
}), null, 16, ["onSubmitted"])
|
|
206
|
+
]))
|
|
207
|
+
];
|
|
208
|
+
}),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["title", "actions"]);
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
export {
|
|
215
|
+
Be as default
|
|
216
|
+
};
|