@feedmepos/mf-inventory-portal 1.2.4-dev.1 → 1.2.5-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-CdweYGJb.js → App-plHMDZk7.js} +1 -1
- package/dist/{ApprovalView-N5aTAawv.js → ApprovalView-CChHxp4X.js} +50 -49
- package/dist/{BindingsDialog-CF43nBIL.js → BindingsDialog-CU-u0hJx.js} +2 -2
- package/dist/{BindingsPicker-UXffTvIT.js → BindingsPicker-BpbNVNQQ.js} +1 -1
- package/dist/{BindingsTable-bGEdChlq.js → BindingsTable-v1QcskCd.js} +1 -1
- package/dist/{ClosingDraftView-CU6ncRGd.js → ClosingDraftView-D9HwfK7e.js} +2 -2
- package/dist/{ClosingTemplateView-B7hlv-ol.js → ClosingTemplateView-ancesrdQ.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BHsASpvc.js → DeliveryOrderPrintPreview-DLSzR6HB.js} +8 -8
- package/dist/{FmAdminBadge-phxApe08.js → FmAdminBadge-Cb9aT29U.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cp0j6Sx0.js +230 -0
- package/dist/{FmMultiselectDialog-Cw7978N9.js → FmMultiselectDialog-SoaYz3_K.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-m_DVEWZp.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D5k7Xk3M.js} +15 -15
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CK2uHzWs.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-NY7TPnoY.js} +1 -1
- package/dist/{IngredientGroupView-BLlM22XE.js → IngredientGroupView-DmbPHuWG.js} +2 -2
- package/dist/{IngredientsView-D-MLnQUs.js → IngredientsView-Bxb_BeyP.js} +71 -61
- package/dist/{IntegrationView-DS8GfDcu.js → IntegrationView-B8mnGO1_.js} +84 -84
- package/dist/{InventoryBindingForm-Cxl3010v.js → InventoryBindingForm-B2tlc3uk.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DVytESGu.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-C-qi9Mri.js} +3 -3
- package/dist/{InventoryBindingSummary-BPLbgkdU.js → InventoryBindingSummary-BUkLwuPN.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6G0tvu8.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-4W5T_8W7.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DIgC7Vso.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DCtPbVFp.js} +7 -7
- package/dist/{PublishView-C7M3-gQh.js → PublishView-Dkq9VZOG.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-ZhFYuurj.js → PurchaseOrderPrintPreview-C-jyn09w.js} +8 -8
- package/dist/{ReceiveRequestView-BCdKPhsr.js → ReceiveRequestView-V4YNI_Jd.js} +82 -79
- package/dist/{RecipeView-DUmXQOxV.js → RecipeView-Ck3RZRhC.js} +3 -3
- package/dist/{StockView-BcxAyI7w.js → StockView-nstUyEXe.js} +7 -7
- package/dist/{SupplierView-q04_80bh.js → SupplierView-eXyZsmHQ.js} +862 -831
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-OCR95cDM.js +2578 -0
- package/dist/{TransferTemplateView-Cfcu-qeJ.js → TransferTemplateView-DZG_UCWg.js} +57 -57
- package/dist/{UnitView-BAPZkTQp.js → UnitView-COiitpcS.js} +3 -3
- package/dist/WarehouseView-DhBpkfGm.js +1066 -0
- package/dist/api/inventory.d.ts +8 -0
- package/dist/api/shipment.d.ts +11 -0
- package/dist/api/warehouse.d.ts +3 -1
- package/dist/{app-Bcq0U90V.js → app-DayXXH4q.js} +14439 -13858
- package/dist/app.d.ts +24 -9
- package/dist/app.js +1 -1
- package/dist/{decimal-Dhnp84Mk.js → decimal-CFYWiBC2.js} +1 -1
- package/dist/{format-unit-display-X0is3zJN.js → format-unit-display-DIr9pTFo.js} +21 -21
- package/dist/{index-Bb9d1Qcc.js → index-DLOpJmH-.js} +1 -1
- package/dist/{index-CnqZ1tak.js → index-tQKFc6GI.js} +1 -1
- package/dist/{stock-DcD5Tbqe.js → stock-DeAkNJnm.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/inventory.d.ts +1 -0
- package/dist/stores/location.d.ts +57 -1
- package/dist/stores/supplier.d.ts +96 -0
- package/dist/stores/warehouse.d.ts +4 -0
- package/dist/{supplier-njZB-A08.js → supplier-C4DAoZrI.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CFxbHyQu.js → use-ingredient-select-dialog-CV7X8z4O.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CtvdrDNH.js → use-inventory-binding-dialog-nuT-Ptlx.js} +1 -1
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +60 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +10 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +94 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +72 -1
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
- package/package.json +2 -2
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQi8T-o4.js +0 -227
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CBFgpKee.js +0 -2494
- package/dist/WarehouseView-9AkOoqZV.js +0 -1034
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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-DayXXH4q.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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,
|
|
3
|
-
import { a as qe, P as q, b as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as De, b as ge, aI as b, aS as ye, ai as Z, C as be, N as Oe, H as Re, _ as Se, E as xe, G as ke, J as O } from "./app-DayXXH4q.js";
|
|
3
|
+
import { a as qe, P as q, b as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-OCR95cDM.js";
|
|
4
4
|
import { useBreakpoints as Ne } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Te } from "@feedmepos/mf-common";
|
|
6
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 = {
|
|
@@ -9,7 +9,7 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
9
9
|
}, ze = { class: "pt-8" }, je = /* @__PURE__ */ ue({
|
|
10
10
|
__name: "ApprovalView",
|
|
11
11
|
setup(Ee) {
|
|
12
|
-
const
|
|
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(),
|
|
@@ -34,9 +34,9 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
34
34
|
l.value.endDate = l.value.startDate;
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
a.updateDateRange(l.value.startDate, l.value.endDate);
|
|
38
38
|
});
|
|
39
|
-
const
|
|
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
41
|
label: N("inventory.common.refresh"),
|
|
42
42
|
value: "refresh"
|
|
@@ -45,7 +45,7 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
45
45
|
function se(u) {
|
|
46
46
|
switch (u) {
|
|
47
47
|
case "refresh":
|
|
48
|
-
return
|
|
48
|
+
return a.fetchData();
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
const ne = d(() => {
|
|
@@ -56,61 +56,61 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
56
56
|
entity: "purchaseOrderRequest",
|
|
57
57
|
values: Array.from(
|
|
58
58
|
new Set(
|
|
59
|
-
|
|
60
|
-
var
|
|
61
|
-
return ((
|
|
59
|
+
a.purchaseRequests.value.map((e) => {
|
|
60
|
+
var r;
|
|
61
|
+
return ((r = e.purchaseOrder) == null ? void 0 : r.status) ?? "";
|
|
62
62
|
}).filter((e) => e !== "")
|
|
63
63
|
)
|
|
64
64
|
)
|
|
65
65
|
}
|
|
66
|
-
],
|
|
66
|
+
], s = [
|
|
67
67
|
{
|
|
68
68
|
type: "string",
|
|
69
69
|
key: "netsuiteTransactionNumber",
|
|
70
70
|
entity: "purchaseOrderRequest",
|
|
71
|
-
values:
|
|
72
|
-
var
|
|
73
|
-
return (t = (
|
|
71
|
+
values: a.purchaseRequests.value.map((e) => {
|
|
72
|
+
var r, t;
|
|
73
|
+
return (t = (r = e.netSuite) == null ? void 0 : r.additionalInfo) == null ? void 0 : t.transactionnumber;
|
|
74
74
|
}).filter((e) => e != null)
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
type: "string",
|
|
78
78
|
key: "netsuiteOrderNo",
|
|
79
79
|
entity: "purchaseOrderRequest",
|
|
80
|
-
values:
|
|
81
|
-
var
|
|
82
|
-
return (
|
|
80
|
+
values: a.purchaseRequests.value.map((e) => {
|
|
81
|
+
var r;
|
|
82
|
+
return (r = e.netSuite) == null ? void 0 : r.refNo;
|
|
83
83
|
}).filter((e) => e != null)
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
type: "string",
|
|
87
87
|
key: "netsuiteOrderId",
|
|
88
88
|
entity: "purchaseOrderRequest",
|
|
89
|
-
values:
|
|
90
|
-
var
|
|
91
|
-
return (
|
|
89
|
+
values: a.purchaseRequests.value.map((e) => {
|
|
90
|
+
var r;
|
|
91
|
+
return (r = e.netSuite) == null ? void 0 : r.id;
|
|
92
92
|
}).filter((e) => e != null)
|
|
93
93
|
}
|
|
94
94
|
];
|
|
95
|
-
return [...u, ...ee.isEnabled ?
|
|
95
|
+
return [...u, ...ee.isEnabled ? s : []];
|
|
96
96
|
}), m = y(null), oe = d(() => {
|
|
97
97
|
if (!m.value)
|
|
98
|
-
return
|
|
99
|
-
const u =
|
|
100
|
-
return
|
|
101
|
-
var e,
|
|
102
|
-
return
|
|
98
|
+
return a.purchaseRequests.value;
|
|
99
|
+
const u = Oe.build(m.value);
|
|
100
|
+
return a.purchaseRequests.value.filter((s) => {
|
|
101
|
+
var e, r, t, o, p;
|
|
102
|
+
return Re(
|
|
103
103
|
{
|
|
104
|
-
netsuiteTransactionNumber: (
|
|
105
|
-
netsuiteOrderNo: (t =
|
|
106
|
-
netsuiteOrderId: (o =
|
|
107
|
-
status: (p =
|
|
104
|
+
netsuiteTransactionNumber: (r = (e = s.netSuite) == null ? void 0 : e.additionalInfo) == null ? void 0 : r.transactionnumber,
|
|
105
|
+
netsuiteOrderNo: (t = s.netSuite) == null ? void 0 : t.refNo,
|
|
106
|
+
netsuiteOrderId: (o = s.netSuite) == null ? void 0 : o.id,
|
|
107
|
+
status: (p = s.purchaseOrder) == null ? void 0 : p.status
|
|
108
108
|
},
|
|
109
109
|
u
|
|
110
110
|
);
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
|
-
return (u,
|
|
113
|
+
return (u, s) => {
|
|
114
114
|
const e = ce("FmTable");
|
|
115
115
|
return x(), X(Se, {
|
|
116
116
|
title: n(N)("inventory.transfer.approval.title"),
|
|
@@ -118,7 +118,7 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
118
118
|
"onClick:action": se
|
|
119
119
|
}, {
|
|
120
120
|
default: k(() => {
|
|
121
|
-
var
|
|
121
|
+
var r;
|
|
122
122
|
return [
|
|
123
123
|
c("div", {
|
|
124
124
|
class: pe([
|
|
@@ -132,23 +132,23 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
132
132
|
i(xe, {
|
|
133
133
|
"date-range-query": "",
|
|
134
134
|
"date-range": l.value,
|
|
135
|
-
"onUpdate:dateRange":
|
|
135
|
+
"onUpdate:dateRange": s[0] || (s[0] = (t) => l.value = t),
|
|
136
136
|
searchable: "",
|
|
137
137
|
"change-location": "",
|
|
138
|
-
search:
|
|
139
|
-
"onUpdate:search":
|
|
138
|
+
search: R.value,
|
|
139
|
+
"onUpdate:search": s[1] || (s[1] = (t) => R.value = t),
|
|
140
140
|
filterable: "",
|
|
141
141
|
"filter-attributes": ne.value,
|
|
142
142
|
filter: m.value,
|
|
143
|
-
"onUpdate:filter":
|
|
143
|
+
"onUpdate:filter": s[2] || (s[2] = (t) => m.value = t)
|
|
144
144
|
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
145
145
|
i(e, {
|
|
146
146
|
style: de(n(ae).tableHeight),
|
|
147
147
|
"column-defs": n(I),
|
|
148
148
|
"row-data": oe.value,
|
|
149
|
-
"search-value":
|
|
150
|
-
loading: !n(B)._currentLocation || n(
|
|
151
|
-
onRowClick:
|
|
149
|
+
"search-value": R.value,
|
|
150
|
+
loading: !n(B)._currentLocation || n(a).loading.value,
|
|
151
|
+
onRowClick: s[3] || (s[3] = (t) => n(a).promptShowTransferDetails(
|
|
152
152
|
t.original.purchaseOrder,
|
|
153
153
|
t.original
|
|
154
154
|
)),
|
|
@@ -157,33 +157,33 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
157
157
|
"list-row": k((t) => [
|
|
158
158
|
i(ke, {
|
|
159
159
|
row: t,
|
|
160
|
-
onRowClick: (o) => n(
|
|
160
|
+
onRowClick: (o) => n(a).promptShowTransferDetails(o.purchaseOrder, o)
|
|
161
161
|
}, {
|
|
162
162
|
default: k((o) => {
|
|
163
|
-
var p, T, C, f, A, M, V, L, v, z, E, h, F, _, H,
|
|
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
165
|
c("div", Ce, [
|
|
166
166
|
c("div", Ae, [
|
|
167
|
-
i(n(
|
|
167
|
+
i(n(O), {
|
|
168
168
|
render: (C = (T = (p = o.purchaseOrder__id) == null ? void 0 : p.column) == null ? void 0 : T.columnDef) == null ? void 0 : C.cell,
|
|
169
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, [
|
|
173
|
-
i(n(
|
|
173
|
+
i(n(O), {
|
|
174
174
|
render: (L = (V = (M = o.to_name) == null ? void 0 : M.column) == null ? void 0 : V.columnDef) == null ? void 0 : L.cell,
|
|
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
|
-
(
|
|
180
|
-
i(n(
|
|
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
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
|
-
i(n(
|
|
186
|
+
i(n(O), {
|
|
187
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"])
|
|
@@ -201,10 +201,11 @@ const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-40
|
|
|
201
201
|
i(Pe, _e({
|
|
202
202
|
scope: n(q).APPROVAL
|
|
203
203
|
}, {
|
|
204
|
-
...n(
|
|
205
|
-
receivedMap: ((
|
|
204
|
+
...n(a).transferDetailsProps.value,
|
|
205
|
+
receivedMap: ((r = n(a).transferDetailsProps.value) == null ? void 0 : r.receivedMap) ?? {},
|
|
206
|
+
shipments: n(a).shipments.value ?? []
|
|
206
207
|
}, {
|
|
207
|
-
onSubmitted: n(
|
|
208
|
+
onSubmitted: n(a).fetchData
|
|
208
209
|
}), null, 16, ["scope", "onSubmitted"])
|
|
209
210
|
]))
|
|
210
211
|
];
|
|
@@ -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-C-qi9Mri.js";
|
|
3
|
+
import { a as L, b5 as S } from "./app-DayXXH4q.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, b5 as x, a3 as z } from "./app-DayXXH4q.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, b5 as R } from "./app-DayXXH4q.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,9 @@
|
|
|
1
1
|
import { defineComponent as Fe, ref as E, computed as P, onMounted as Pe, resolveComponent as T, openBlock as w, createElementBlock as R, Fragment as q, createTextVNode as G, createBlock as Z, withCtx as Y, createElementVNode as n, toDisplayString as K, unref as S, createVNode as D, createCommentVNode as Q, h as I, reactive as et, watch as tt, isRef as He, normalizeClass as me, renderList as ve, normalizeStyle as ze, Teleport as at, mergeProps as nt } from "vue";
|
|
2
|
-
import { a4 as ot, u as $e, aq as L, ai as Ne, ar as Oe, n as st, Q as Me, j as N, t as rt, V as ye, s as lt, v as ct, w as it, as as Ye, at as Ke, ad as Ge, au as se, aj as ut, a6 as Ie, a5 as re, a1 as Re, D as Ve, i as we, h as dt, f as mt, a as ft, C as pt, _ as vt, E as yt, G as gt, J as Ce } from "./app-
|
|
2
|
+
import { a4 as ot, u as $e, aq as L, ai as Ne, ar as Oe, n as st, Q as Me, j as N, t as rt, V as ye, s as lt, v as ct, w as it, as as Ye, at as Ke, ad as Ge, au as se, aj as ut, a6 as Ie, a5 as re, a1 as Re, D as Ve, i as we, h as dt, f as mt, a as ft, C as pt, _ as vt, E as yt, G as gt, J as Ce } from "./app-DayXXH4q.js";
|
|
3
3
|
import { useCoreStore as bt, useI18n as qe } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ue, useDialog as At, useProxiedModel as Dt, components as de, useBreakpoints as kt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as We, storeToRefs as _t } from "pinia";
|
|
6
|
-
import { a as Le, u as Ze } from "./stock-
|
|
6
|
+
import { a as Le, u as Ze } from "./stock-DeAkNJnm.js";
|
|
7
7
|
import { E as ht } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const Be = ot((l, o) => {
|
|
9
9
|
function e() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as P, h as F, defineComponent as L, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Pe, toDisplayString as C, unref as y, createCommentVNode as K, createVNode as $, withCtx as A, Fragment as j, renderList as J, computed as E, watch as Fe, createSlots as Re, createBlock as V, isRef as Oe, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as Je, mergeProps as We } from "vue";
|
|
2
|
-
import { a4 as qe, u as ie, aj as Qe, D as Z, i as N, h as Xe, f as Ae, ak as Ze, al as ae, v as et, am as Ee, w as Ne, a as ce, b as tt, x as nt, y as Ue, z as ot, B as st, an as lt, e as H, J as O, L as at, ao as rt, n as it, G as Ve, A as ct, ap as mt, a5 as le, C as ut, _ as dt, E as pt } from "./app-
|
|
2
|
+
import { a4 as qe, u as ie, aj as Qe, D as Z, i as N, h as Xe, f as Ae, ak as Ze, al as ae, v as et, am as Ee, w as Ne, a as ce, b as tt, x as nt, y as Ue, z as ot, B as st, an as lt, e as H, J as O, L as at, ao as rt, n as it, G as Ve, A as ct, ap as mt, a5 as le, C as ut, _ as dt, E as pt } from "./app-DayXXH4q.js";
|
|
3
3
|
import { useCoreStore as me, useI18n as z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as te, useDialogChild as ft, useSnackbar as ne, FmButtonVariant as ee, components as B, useProxiedModel as vt, useBreakpoints as gt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Be, storeToRefs as Le } from "pinia";
|
|
6
|
-
import { u as yt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as yt } from "./use-ingredient-select-dialog-CV7X8z4O.js";
|
|
7
7
|
const oe = qe((c, o) => {
|
|
8
8
|
function l() {
|
|
9
9
|
var t;
|
package/dist/{DeliveryOrderPrintPreview-BHsASpvc.js → DeliveryOrderPrintPreview-DLSzR6HB.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" },
|
|
3
|
+
import { aC as y, ap as w } from "./app-DayXXH4q.js";
|
|
4
|
+
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, C = ["src"], O = { style: { "padding-left": "10px" } }, P = { class: "address" }, D = { class: "text-right" }, R = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "subtitle"
|
|
7
|
-
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" },
|
|
7
|
+
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, U = { class: "purchase-body" }, B = { class: "text-left" }, H = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-right" }, j = { key: 0 }, z = {
|
|
8
8
|
key: 1,
|
|
9
9
|
style: { "padding-top": "30px" }
|
|
10
10
|
}, G = { valign: "bottom" }, Q = { class: "header" }, K = { class: "caption" }, W = {
|
|
@@ -41,12 +41,12 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
41
41
|
class: "logo",
|
|
42
42
|
src: s.value.logo,
|
|
43
43
|
alt: "logo"
|
|
44
|
-
}, null, 8,
|
|
44
|
+
}, null, 8, C)
|
|
45
45
|
])
|
|
46
46
|
]),
|
|
47
47
|
t("td", null, [
|
|
48
|
-
t("div",
|
|
49
|
-
t("div",
|
|
48
|
+
t("div", O, [
|
|
49
|
+
t("div", P, [
|
|
50
50
|
t("div", null, [
|
|
51
51
|
n(e(s.value.businessName), 1),
|
|
52
52
|
l[0] || (l[0] = t("br", null, null, -1)),
|
|
@@ -106,7 +106,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
106
106
|
])
|
|
107
107
|
])
|
|
108
108
|
]),
|
|
109
|
-
t("div",
|
|
109
|
+
t("div", U, [
|
|
110
110
|
t("table", null, [
|
|
111
111
|
l[19] || (l[19] = t("thead", { class: "item-header" }, [
|
|
112
112
|
t("tr", null, [
|
|
@@ -126,7 +126,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
126
126
|
], -1)),
|
|
127
127
|
t("tbody", null, [
|
|
128
128
|
t("tr", null, [
|
|
129
|
-
t("td",
|
|
129
|
+
t("td", B, e(s.value.orderNumber), 1),
|
|
130
130
|
t("td", H, e(s.value.ref), 1),
|
|
131
131
|
t("td", L, e(s.value.supplier.phoneNumber), 1)
|
|
132
132
|
])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, resolveComponent as i, unref as p, openBlock as l, createElementBlock as d, renderSlot as t, createElementVNode as s, normalizeClass as u, createVNode as f } from "vue";
|
|
2
2
|
import { useCoreStore as _ } from "@feedmepos/mf-common";
|
|
3
|
-
import { ap as v } from "./app-
|
|
3
|
+
import { ap as v } from "./app-DayXXH4q.js";
|
|
4
4
|
const g = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "group gap-8 inline-flex items-center relative select-none"
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { j as C, t as N, aA as M, u as R, aE as B, aQ as D, l as H, aR as U } from "./app-DayXXH4q.js";
|
|
2
|
+
import { u as z } from "./supplier-C4DAoZrI.js";
|
|
3
|
+
import { P as T } from "./format-unit-display-DIr9pTFo.js";
|
|
4
|
+
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as L, createElementBlock as O, normalizeStyle as $, createElementVNode as A, createVNode as Q, withCtx as J, createBlock as V, createCommentVNode as E, Fragment as K, renderList as X, unref as g } from "vue";
|
|
5
|
+
function Y(e, a, r) {
|
|
6
|
+
var o;
|
|
7
|
+
if (!!a.measurement === !!r && ((o = a.measurement) == null ? void 0 : o.id) === r)
|
|
8
|
+
return a;
|
|
9
|
+
if (!r)
|
|
10
|
+
return {
|
|
11
|
+
costPerUnit: a.costPerUnit
|
|
12
|
+
};
|
|
13
|
+
const n = e.measurements.find((p) => p.id === r);
|
|
14
|
+
return n ? {
|
|
15
|
+
costPerUnit: a.costPerUnit,
|
|
16
|
+
measurement: n
|
|
17
|
+
} : {
|
|
18
|
+
costPerUnit: a.costPerUnit
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function oe(e, a, r, u) {
|
|
22
|
+
var P, _, s;
|
|
23
|
+
const l = (s = (_ = (P = u == null ? void 0 : u.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
|
|
24
|
+
(t) => t.skuId === e._id
|
|
25
|
+
)) == null ? void 0 : s.defaultCost;
|
|
26
|
+
if (u != null && u.manualTotalCost)
|
|
27
|
+
return {
|
|
28
|
+
cost: u.manualTotalCost,
|
|
29
|
+
skuDefaultCost: e.defaultCost ?? void 0,
|
|
30
|
+
supplierOverrideCost: l ?? void 0
|
|
31
|
+
};
|
|
32
|
+
const n = e.defaultCost ? Y(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +C(p) / +C(o == null ? void 0 : o.measurement.conversion) : +C(p) : void 0, b = v ? r ? v * +C(r.conversion) : v : void 0, h = b ? +C(a) * b : void 0;
|
|
33
|
+
return {
|
|
34
|
+
cost: h ? {
|
|
35
|
+
...N(h ?? 0, 2),
|
|
36
|
+
currency: M()
|
|
37
|
+
} : {
|
|
38
|
+
amount: 0,
|
|
39
|
+
precision: 0,
|
|
40
|
+
currency: M()
|
|
41
|
+
},
|
|
42
|
+
skuDefaultCost: e.defaultCost ?? void 0,
|
|
43
|
+
supplierOverrideCost: l ?? void 0
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function k(e) {
|
|
47
|
+
const a = D.safeParse(e);
|
|
48
|
+
if (a.success) return a.data;
|
|
49
|
+
throw new Error("Invalid supplier data");
|
|
50
|
+
}
|
|
51
|
+
function F(e) {
|
|
52
|
+
return {
|
|
53
|
+
_id: e.doc._id,
|
|
54
|
+
internal: e.type,
|
|
55
|
+
contactName: e.doc.profile.name,
|
|
56
|
+
name: e.doc.profile.name ?? "",
|
|
57
|
+
email: e.doc.profile.email,
|
|
58
|
+
phoneNumber: e.doc.profile.phoneNo,
|
|
59
|
+
registrationNumber: e.doc.profile.regNo,
|
|
60
|
+
address: e.doc.profile.address ?? {
|
|
61
|
+
line1: "",
|
|
62
|
+
state: "",
|
|
63
|
+
city: "",
|
|
64
|
+
postcode: "",
|
|
65
|
+
country: ""
|
|
66
|
+
},
|
|
67
|
+
preparationTime: e.preparationTime
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function ne(e, a, r = !1, u = !1) {
|
|
71
|
+
const l = z(), n = R();
|
|
72
|
+
n.watchLocation(async () => {
|
|
73
|
+
var y;
|
|
74
|
+
await l.readSuppliers();
|
|
75
|
+
const s = e();
|
|
76
|
+
if ((y = s.supplier) != null && y._id) return;
|
|
77
|
+
const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (r ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
|
|
78
|
+
a({
|
|
79
|
+
...s,
|
|
80
|
+
supplier: t ? k(t) : i ? F(i) : s.supplier
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
const o = f(
|
|
84
|
+
() => {
|
|
85
|
+
var s, t;
|
|
86
|
+
return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? T.TRANSFER : T.PURCHASE;
|
|
87
|
+
}
|
|
88
|
+
), p = f({
|
|
89
|
+
get() {
|
|
90
|
+
var s, t;
|
|
91
|
+
return (t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t._id;
|
|
92
|
+
},
|
|
93
|
+
set(s) {
|
|
94
|
+
const t = e() ?? {};
|
|
95
|
+
if (o.value === T.PURCHASE) {
|
|
96
|
+
const S = (u ? l.suppliers : l.businessSuppliers).find((I) => I._id === s);
|
|
97
|
+
a({
|
|
98
|
+
...t,
|
|
99
|
+
supplier: S ? k(S) : t.supplier
|
|
100
|
+
});
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const y = (r ? n.allLocations.filter(
|
|
104
|
+
(d) => d.doc._id !== n.currentLocation.doc._id
|
|
105
|
+
) : n.allLocations).find((d) => d.doc._id === s);
|
|
106
|
+
a({
|
|
107
|
+
...t,
|
|
108
|
+
supplier: y ? F(y) : t.supplier
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}), v = f(() => l.locationSuppliers.map(k)), b = f(() => l.businessSuppliers.map(k)), h = f(() => {
|
|
112
|
+
const s = [...v.value], t = [...b.value];
|
|
113
|
+
return u ? [...t, ...s] : t;
|
|
114
|
+
}), c = f(() => {
|
|
115
|
+
var m;
|
|
116
|
+
const s = ((m = n._currentLocation) == null ? void 0 : m.type) === B.warehouse;
|
|
117
|
+
return (r ? n.allLocations.filter(
|
|
118
|
+
(i) => i.doc._id !== n.currentLocation.doc._id
|
|
119
|
+
) : n.allLocations).filter((i) => s || i.acceptRequest).map(F);
|
|
120
|
+
}), P = f(() => {
|
|
121
|
+
if (o.value === T.PURCHASE) {
|
|
122
|
+
const t = v.value.map((i) => ({
|
|
123
|
+
label: i.name,
|
|
124
|
+
value: i._id
|
|
125
|
+
})), m = b.value.map((i) => ({
|
|
126
|
+
label: i.name,
|
|
127
|
+
sublabel: "Business supplier",
|
|
128
|
+
value: i._id
|
|
129
|
+
}));
|
|
130
|
+
return u ? [...t, ...m] : m;
|
|
131
|
+
}
|
|
132
|
+
return c.value.map((t) => ({
|
|
133
|
+
label: t.name,
|
|
134
|
+
sublabel: t.internal ? `${t.internal}` : void 0,
|
|
135
|
+
value: t._id
|
|
136
|
+
}));
|
|
137
|
+
}), _ = f(() => {
|
|
138
|
+
var i, y;
|
|
139
|
+
const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
|
|
140
|
+
if (o.value === T.PURCHASE) {
|
|
141
|
+
const d = l.suppliers.find((S) => S._id === s);
|
|
142
|
+
return d ? k(d) : null;
|
|
143
|
+
}
|
|
144
|
+
const m = n.allLocations.find((d) => d.doc._id);
|
|
145
|
+
return m ? F(m) : null;
|
|
146
|
+
});
|
|
147
|
+
return {
|
|
148
|
+
transferLocationModel: p,
|
|
149
|
+
transferLocationOptions: P,
|
|
150
|
+
locationOptionsTypePurchase: h,
|
|
151
|
+
locationOptionsTypePurchaseLocationLevel: v,
|
|
152
|
+
locationOptionsTypeTransfer: c,
|
|
153
|
+
selectedLocation: _
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
|
|
157
|
+
__name: "FmFilterableMenuOptions",
|
|
158
|
+
props: /* @__PURE__ */ q({
|
|
159
|
+
modelValue: {},
|
|
160
|
+
maxHeight: {},
|
|
161
|
+
width: {},
|
|
162
|
+
handleItemChange: { type: Function },
|
|
163
|
+
items: {},
|
|
164
|
+
options: {}
|
|
165
|
+
}, {
|
|
166
|
+
search: {},
|
|
167
|
+
searchModifiers: {}
|
|
168
|
+
}),
|
|
169
|
+
emits: ["update:search"],
|
|
170
|
+
setup(e) {
|
|
171
|
+
const a = e, r = x(e, "search"), u = f(
|
|
172
|
+
() => new H(a.items, ["label", "sublabel"], {
|
|
173
|
+
caseSensitive: !1,
|
|
174
|
+
sort: !0
|
|
175
|
+
})
|
|
176
|
+
), l = f(() => u.value.search(r.value)), n = W();
|
|
177
|
+
return console.log({ stickyRef: n }), (o, p) => {
|
|
178
|
+
const v = w("FmButton"), b = w("FmTextField"), h = w("FmMenuItem");
|
|
179
|
+
return L(), O("div", {
|
|
180
|
+
class: "relative",
|
|
181
|
+
style: $({ width: o.width })
|
|
182
|
+
}, [
|
|
183
|
+
A("div", {
|
|
184
|
+
class: "sticky top-0 bg-white mb-8",
|
|
185
|
+
ref_key: "stickyRef",
|
|
186
|
+
ref: n
|
|
187
|
+
}, [
|
|
188
|
+
Q(b, {
|
|
189
|
+
modelValue: r.value,
|
|
190
|
+
"onUpdate:modelValue": p[1] || (p[1] = (c) => r.value = c),
|
|
191
|
+
placeholder: "Filter options"
|
|
192
|
+
}, {
|
|
193
|
+
append: J(() => [
|
|
194
|
+
r.value ? (L(), V(v, {
|
|
195
|
+
key: 0,
|
|
196
|
+
variant: "tertiary",
|
|
197
|
+
"prepend-icon": "close",
|
|
198
|
+
onClick: p[0] || (p[0] = (c) => r.value = "")
|
|
199
|
+
})) : E("", !0)
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 8, ["modelValue"])
|
|
203
|
+
], 512),
|
|
204
|
+
A("div", Z, [
|
|
205
|
+
(L(!0), O(K, null, X(l.value, (c, P) => (L(), V(h, {
|
|
206
|
+
key: P,
|
|
207
|
+
label: c.label,
|
|
208
|
+
sublabel: c.sublabel,
|
|
209
|
+
"model-value": g(U)(o.modelValue, c.value),
|
|
210
|
+
onClick: () => o.handleItemChange(g(U)(o.modelValue, c.value), c),
|
|
211
|
+
onVnodeMounted: (_) => {
|
|
212
|
+
var s, t;
|
|
213
|
+
return g(U)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
214
|
+
}
|
|
215
|
+
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
216
|
+
l.value.length ? E("", !0) : (L(), V(h, {
|
|
217
|
+
key: 0,
|
|
218
|
+
disabled: "",
|
|
219
|
+
label: "No options available"
|
|
220
|
+
}))
|
|
221
|
+
])
|
|
222
|
+
], 4);
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
export {
|
|
227
|
+
ae as _,
|
|
228
|
+
oe as c,
|
|
229
|
+
ne as u
|
|
230
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import { a3 as a } from "./app-
|
|
4
|
+
import { a3 as a } from "./app-DayXXH4q.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|