@feedmepos/mf-inventory-portal 1.1.2-dev.2 → 1.1.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-BP1j0Wfm.js → App-BhEtjLqO.js} +1 -1
- package/dist/ApprovalView-BHIVSsbz.js +213 -0
- package/dist/{BindingsDialog-DsJ4ULCX.js → BindingsDialog-CX3Hu_r6.js} +4 -4
- package/dist/{BindingsPicker-C8VsQIVc.js → BindingsPicker-BbinQ8Hl.js} +1 -1
- package/dist/{BindingsTable-Dv7ovYaR.js → BindingsTable-DxlSz6Ev.js} +4 -4
- package/dist/ClosingDraftView-B5gQ2k-T.js +1520 -0
- package/dist/{ClosingTemplateView-3RWSh9GP.js → ClosingTemplateView-CB9_JOl4.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BH060kC1.js → DeliveryOrderPrintPreview-BlE3fIAT.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CdeaTsc8.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DxKFFyWs.js} +3 -3
- package/dist/{FmMultiselectDialog-C-9RO1fp.js → FmMultiselectDialog-DcviKwNR.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C57WQ2iL.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CepHeClt.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CpWvuh5U.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Dg8VdQzg.js} +1 -1
- package/dist/{IngredientGroupView-BnPGvMNK.js → IngredientGroupView-EE8lN8JL.js} +2 -2
- package/dist/{IngredientsView-e_HgWPoP.js → IngredientsView-BkDpHVvn.js} +4 -4
- package/dist/{IntegrationView-DYkTeLDC.js → IntegrationView-Bj7sb1gO.js} +1141 -1170
- package/dist/{InventoryBindingForm-CBYmaiJ-.js → InventoryBindingForm-BkazprFH.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DfNnosnL.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BbQqYyzL.js} +3 -3
- package/dist/{InventoryBindingSummary-DGjY9q0H.js → InventoryBindingSummary-D0XiOdR4.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cy0r8-gD.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Pf8BPDZw.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CO4-uU7s.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D2Tx3xSj.js} +1 -1
- package/dist/{PublishView-CtPChk5P.js → PublishView-BUIcrw8m.js} +18 -18
- package/dist/{PurchaseOrderPrintPreview-DzivX4_W.js → PurchaseOrderPrintPreview-lO7Bilm5.js} +1 -1
- package/dist/{ReceiveRequestView-QCbdf08n.js → ReceiveRequestView-BZV-8Ib3.js} +694 -697
- package/dist/{RecipeView-D1NTlI0L.js → RecipeView-2Tm12Zuk.js} +3 -3
- package/dist/{StockView-CdfztIA6.js → StockView-DaWS_HQl.js} +6 -6
- package/dist/{SupplierView-CCqxkiW7.js → SupplierView-nfxqynuY.js} +3 -3
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-g74nRiM0.js +2213 -0
- package/dist/{TransferTemplateView-AWGyqDnj.js → TransferTemplateView-CGjfCELA.js} +6 -6
- package/dist/{UnitView-D49BzCAv.js → UnitView-Cm5WuuEN.js} +3 -3
- package/dist/{WarehouseView-C5H3zy02.js → WarehouseView-BSLX0g3B.js} +1 -1
- package/dist/api/netsuite.d.ts +0 -1
- package/dist/{app-F90HTHJ6.js → app-CnDLBWW7.js} +27510 -27243
- package/dist/app.d.ts +0 -9
- package/dist/app.js +5 -5
- package/dist/components/FmMultiselectDialogTemporary.vue.d.ts +41 -0
- package/dist/{decimal-DMDoO7Rc.js → decimal-DmezA5YT.js} +1 -1
- package/dist/{format-unit-display-CyqyV_Q1.js → format-unit-display-Bcq6wldv.js} +2 -2
- package/dist/{index-Bq6I3lAV.js → index-C476dvi7.js} +2651 -2687
- package/dist/{index-DGNRUhaL.js → index-R97nRHsF.js} +1 -1
- package/dist/{stock-D53H7SeD.js → stock-Dd0YSjSF.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-CyLpu1Jk.js → supplier-C4s3SHui.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Cp9Z0ZMi.js → use-ingredient-select-dialog-DaXBOLhz.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DlFMZOnP.js → use-inventory-binding-dialog-CsFwoUbg.js} +1 -1
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +1 -4
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +0 -8
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -626
- package/dist/{vue-i18n-CH21Ql15.js → vue-i18n-CdkMdZ30.js} +393 -393
- package/package.json +4 -4
- package/dist/ApprovalView-DHpMEMs9.js +0 -219
- package/dist/ClosingDraftView-m5qcjTQQ.js +0 -1676
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CKZam-tm.js +0 -2275
- package/dist/views/closing-draft/components/closing-draft-action/RefreshBalanceAction.vue.d.ts +0 -19
- package/dist/views/receive-request/composables/fn.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "1.1.2
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"vue-i18n": "^10.0.5",
|
|
44
44
|
"vue-router": "^4.4.0",
|
|
45
45
|
"xlsx": "^0.18.5",
|
|
46
|
-
"@feedmepos/inventory-core": "^1.0.
|
|
46
|
+
"@feedmepos/inventory-core": "^1.0.0",
|
|
47
47
|
"@feedmepos/inventory-core-2": "^2.0.0",
|
|
48
48
|
"@feedmepos/inventory-core-dart": "^1.0.0",
|
|
49
|
-
"@feedmepos/inventory-core-js": "^1.0.1",
|
|
50
49
|
"@feedmepos/netsuite-core": "^1.0.0",
|
|
51
|
-
"@feedmepos/zod-inventory": "^1.0.12"
|
|
50
|
+
"@feedmepos/zod-inventory": "^1.0.12",
|
|
51
|
+
"@feedmepos/inventory-core-js": "^1.0.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@rushstack/eslint-patch": "^1.10.3",
|
|
@@ -1,219 +0,0 @@
|
|
|
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, aD as b, aO as ye, ae as Z, B as be, N as Oe, H as Re, _ as Se, C as xe, E as ke, G as O } from "./app-F90HTHJ6.js";
|
|
3
|
-
import { a as qe, P as q, b as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CKZam-tm.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
|
-
key: 0,
|
|
8
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
|
-
}, ze = { class: "pt-8" }, je = /* @__PURE__ */ ue({
|
|
10
|
-
__name: "ApprovalView",
|
|
11
|
-
setup(Ee) {
|
|
12
|
-
const s = qe(q.APPROVAL), { columnDefs: B } = we(q.APPROVAL, s), I = De(), ee = ge();
|
|
13
|
-
b.object({
|
|
14
|
-
name: b.string().optional().nullable(),
|
|
15
|
-
start: b.date().optional().nullable(),
|
|
16
|
-
end: b.date().optional().nullable()
|
|
17
|
-
});
|
|
18
|
-
const w = y({
|
|
19
|
-
name: "",
|
|
20
|
-
...ye()
|
|
21
|
-
}), l = y({
|
|
22
|
-
startDate: Z(w.value.start ?? /* @__PURE__ */ new Date()),
|
|
23
|
-
endDate: Z(w.value.end ?? /* @__PURE__ */ new Date())
|
|
24
|
-
});
|
|
25
|
-
ie([() => l.value.startDate], () => {
|
|
26
|
-
if (!l.value.startDate)
|
|
27
|
-
return;
|
|
28
|
-
if (!l.value.endDate) {
|
|
29
|
-
l.value.endDate = l.value.startDate;
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
const u = new Date(l.value.startDate);
|
|
33
|
-
if (new Date(l.value.endDate).getTime() < u.getTime()) {
|
|
34
|
-
l.value.endDate = l.value.startDate;
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
s.updateDateRange(l.value.startDate, l.value.endDate);
|
|
38
|
-
});
|
|
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
|
-
{
|
|
41
|
-
label: N("inventory.common.refresh"),
|
|
42
|
-
value: "refresh"
|
|
43
|
-
}
|
|
44
|
-
]);
|
|
45
|
-
function se(u) {
|
|
46
|
-
switch (u) {
|
|
47
|
-
case "refresh":
|
|
48
|
-
return s.fetchData();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
const ne = d(() => {
|
|
52
|
-
const u = [
|
|
53
|
-
{
|
|
54
|
-
type: "string",
|
|
55
|
-
key: "status",
|
|
56
|
-
entity: "purchaseOrderRequest",
|
|
57
|
-
values: Array.from(
|
|
58
|
-
new Set(
|
|
59
|
-
s.purchaseRequests.value.map((e) => {
|
|
60
|
-
var a;
|
|
61
|
-
return ((a = e.purchaseOrder) == null ? void 0 : a.status) ?? "";
|
|
62
|
-
}).filter((e) => e !== "")
|
|
63
|
-
)
|
|
64
|
-
)
|
|
65
|
-
}
|
|
66
|
-
], r = [
|
|
67
|
-
{
|
|
68
|
-
type: "string",
|
|
69
|
-
key: "netsuiteTransactionNumber",
|
|
70
|
-
entity: "purchaseOrderRequest",
|
|
71
|
-
values: s.purchaseRequests.value.map((e) => {
|
|
72
|
-
var a, t;
|
|
73
|
-
return (t = (a = e.netSuite) == null ? void 0 : a.additionalInfo) == null ? void 0 : t.transactionnumber;
|
|
74
|
-
}).filter((e) => e != null)
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
type: "string",
|
|
78
|
-
key: "netsuiteOrderNo",
|
|
79
|
-
entity: "purchaseOrderRequest",
|
|
80
|
-
values: s.purchaseRequests.value.map((e) => {
|
|
81
|
-
var a;
|
|
82
|
-
return (a = e.netSuite) == null ? void 0 : a.refNo;
|
|
83
|
-
}).filter((e) => e != null)
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
type: "string",
|
|
87
|
-
key: "netsuiteOrderId",
|
|
88
|
-
entity: "purchaseOrderRequest",
|
|
89
|
-
values: s.purchaseRequests.value.map((e) => {
|
|
90
|
-
var a;
|
|
91
|
-
return (a = e.netSuite) == null ? void 0 : a.id;
|
|
92
|
-
}).filter((e) => e != null)
|
|
93
|
-
}
|
|
94
|
-
];
|
|
95
|
-
return [...u, ...ee.isEnabled ? r : []];
|
|
96
|
-
}), m = y(null), oe = d(() => {
|
|
97
|
-
if (!m.value)
|
|
98
|
-
return s.purchaseRequests.value;
|
|
99
|
-
const u = Oe.build(m.value);
|
|
100
|
-
return s.purchaseRequests.value.filter((r) => {
|
|
101
|
-
var e, a, t, o, p;
|
|
102
|
-
return Re(
|
|
103
|
-
{
|
|
104
|
-
netsuiteTransactionNumber: (a = (e = r.netSuite) == null ? void 0 : e.additionalInfo) == null ? void 0 : a.transactionnumber,
|
|
105
|
-
netsuiteOrderNo: (t = r.netSuite) == null ? void 0 : t.refNo,
|
|
106
|
-
netsuiteOrderId: (o = r.netSuite) == null ? void 0 : o.id,
|
|
107
|
-
status: (p = r.purchaseOrder) == null ? void 0 : p.status
|
|
108
|
-
},
|
|
109
|
-
u
|
|
110
|
-
);
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
return (u, r) => {
|
|
114
|
-
const e = ce("FmTable");
|
|
115
|
-
return x(), X(Se, {
|
|
116
|
-
title: n(N)("inventory.transfer.approval.title"),
|
|
117
|
-
actions: re.value,
|
|
118
|
-
"onClick:action": se
|
|
119
|
-
}, {
|
|
120
|
-
default: k(() => {
|
|
121
|
-
var a;
|
|
122
|
-
return [
|
|
123
|
-
c("div", {
|
|
124
|
-
class: pe([
|
|
125
|
-
"flex flex-col gap-8 max-h-full",
|
|
126
|
-
{
|
|
127
|
-
"p-0": S.value,
|
|
128
|
-
"px-24 ": !S.value
|
|
129
|
-
}
|
|
130
|
-
])
|
|
131
|
-
}, [
|
|
132
|
-
i(xe, {
|
|
133
|
-
"date-range-query": "",
|
|
134
|
-
"date-range": l.value,
|
|
135
|
-
"onUpdate:dateRange": r[0] || (r[0] = (t) => l.value = t),
|
|
136
|
-
searchable: "",
|
|
137
|
-
"change-location": "",
|
|
138
|
-
search: R.value,
|
|
139
|
-
"onUpdate:search": r[1] || (r[1] = (t) => R.value = t),
|
|
140
|
-
filterable: "",
|
|
141
|
-
"filter-attributes": ne.value,
|
|
142
|
-
filter: m.value,
|
|
143
|
-
"onUpdate:filter": r[2] || (r[2] = (t) => m.value = t)
|
|
144
|
-
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
145
|
-
i(e, {
|
|
146
|
-
style: de(n(ae).tableHeight),
|
|
147
|
-
"column-defs": n(B),
|
|
148
|
-
"row-data": oe.value,
|
|
149
|
-
"search-value": R.value,
|
|
150
|
-
loading: !n(I)._currentLocation || n(s).loading.value,
|
|
151
|
-
onRowClick: r[3] || (r[3] = (t) => n(s).promptShowTransferDetails(
|
|
152
|
-
t.original.purchaseOrder,
|
|
153
|
-
t.original
|
|
154
|
-
)),
|
|
155
|
-
"page-size": te.value
|
|
156
|
-
}, {
|
|
157
|
-
"list-row": k((t) => [
|
|
158
|
-
i(ke, {
|
|
159
|
-
row: t,
|
|
160
|
-
onRowClick: (o) => n(s).promptShowTransferDetails(o.purchaseOrder, o)
|
|
161
|
-
}, {
|
|
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
|
-
return [
|
|
165
|
-
c("div", Ce, [
|
|
166
|
-
c("div", Ae, [
|
|
167
|
-
i(n(O), {
|
|
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
|
-
}, null, 8, ["render", "props"])
|
|
171
|
-
]),
|
|
172
|
-
c("div", Me, [
|
|
173
|
-
i(n(O), {
|
|
174
|
-
render: (L = (V = (M = o.to_name) == null ? void 0 : M.column) == null ? void 0 : V.columnDef) == null ? void 0 : L.cell,
|
|
175
|
-
props: (z = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : z.call(v)
|
|
176
|
-
}, null, 8, ["render", "props"])
|
|
177
|
-
]),
|
|
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
|
-
i(n(O), {
|
|
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
|
-
}, null, 8, ["render", "props"])
|
|
184
|
-
])) : ve("", !0),
|
|
185
|
-
c("div", ze, [
|
|
186
|
-
i(n(O), {
|
|
187
|
-
render: (Q = (K = (J = o.purchaseOrder_status) == null ? void 0 : J.column) == null ? void 0 : K.columnDef) == null ? void 0 : Q.cell,
|
|
188
|
-
props: (W = (g = o.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : W.call(g)
|
|
189
|
-
}, null, 8, ["render", "props"])
|
|
190
|
-
])
|
|
191
|
-
])
|
|
192
|
-
];
|
|
193
|
-
}),
|
|
194
|
-
_: 2
|
|
195
|
-
}, 1032, ["row", "onRowClick"])
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
199
|
-
], 2),
|
|
200
|
-
(x(), X(he, { to: "body" }, [
|
|
201
|
-
i(Pe, _e({
|
|
202
|
-
scope: n(q).APPROVAL
|
|
203
|
-
}, {
|
|
204
|
-
...n(s).transferDetailsProps.value,
|
|
205
|
-
receivedMap: ((a = n(s).transferDetailsProps.value) == null ? void 0 : a.receivedMap) ?? {}
|
|
206
|
-
}, {
|
|
207
|
-
onSubmitted: n(s).fetchData
|
|
208
|
-
}), null, 16, ["scope", "onSubmitted"])
|
|
209
|
-
]))
|
|
210
|
-
];
|
|
211
|
-
}),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 8, ["title", "actions"]);
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
export {
|
|
218
|
-
je as default
|
|
219
|
-
};
|