@feedmepos/mf-inventory-portal 0.0.9-dev.3 → 0.0.9-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-C9NtTd1A.js → ApprovalView-DZ7G3Dpw.js} +6 -6
- package/dist/{BindingsDialog-CBLv3pJK.js → BindingsDialog-C4T58DLy.js} +2 -2
- package/dist/{BindingsPicker-zoT0x8nF.js → BindingsPicker-tk740qzr.js} +2 -2
- package/dist/{BindingsTable-D47RR8nj.js → BindingsTable-CHlxRr9d.js} +3 -3
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DKqNqEpI.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BnVvi9YB.js} +1 -1
- package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-ZtBvTGev.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-FLtXQrxO.js} +2 -2
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-C1soNoi-.js +220 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CZJU5OoG.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BZ9Tqeho.js} +1 -1
- package/dist/{IngredientsView-hFMsLYk3.js → IngredientsView-DWimVSXF.js} +6 -6
- package/dist/{IntegrationView-DJl6--N9.js → IntegrationView-Dim5QETq.js} +3 -3
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DESMP89v.js +275 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DB7CjUfM.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CHzRvOOD.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-CPTHyW4i.js → PurchaseOrderPrintPreview-DWLpugcd.js} +1 -1
- package/dist/{ReceiveRequestView-C-Kvt6OJ.js → ReceiveRequestView-Dc7jAVbO.js} +387 -385
- package/dist/{RecipeView-DBhzx5EI.js → RecipeView-BFlxbyu_.js} +7 -7
- package/dist/{StockView-TSVfWfNP.js → StockView-Dv2jJlF6.js} +12 -12
- package/dist/SupplierView-BMrGQpLJ.js +799 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DwJnDKbV.js → TransferDetails.vue_vue_type_script_setup_true_lang-D5dbypxK.js} +5 -5
- package/dist/{UnitView-C-SfvLrI.js → UnitView-TYcL9inB.js} +6 -6
- package/dist/{WarehouseView-CQHWvGAw.js → WarehouseView-CsjJ6mZW.js} +3 -3
- package/dist/{app-Bi9BFWrX.js → app-M9Z8lUHo.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/components/FmDecimalInputProps.d.ts +13 -0
- package/dist/components/FmUnitInputProps.d.ts +8 -1
- package/dist/{date2-BXg2Rt3a.js → date2-OJLPOd91.js} +1 -1
- package/dist/{dayjs.min-CvydFU80.js → dayjs.min-Cw0T-_42.js} +2 -2
- package/dist/{decimal-Cr2TFXHL.js → decimal-D1Tz_3Ib.js} +1 -1
- package/dist/{fuzzy-D0AfqXF8.js → fuzzy-TX8jTlf3.js} +1 -1
- package/dist/{init-date-range-B_3Ap4mI.js → init-date-range-wn-dTxvH.js} +1 -1
- package/dist/{layout-UdC9Qu4Z.js → layout-8y0JGpGb.js} +1 -1
- package/dist/{rules-CG4VstbE.js → rules-BM4xu-zd.js} +25 -28
- package/dist/{stock-estimate-BFVnBLU6.js → stock-estimate-UhIlC8We.js} +2 -2
- package/dist/{supplier-CGnKHkFI.js → supplier-9CUF_94y.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-CCMFT6ee.js → use-inventory-binding-dialog-DFA1NpNT.js} +2 -2
- package/dist/views/dev/components/FmDecimalInputTest.vue.d.ts +2 -0
- package/dist/{xlsx-D6N3Y9th.js → xlsx-gm4jAAS2.js} +637 -637
- package/package.json +3 -3
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DV_zpWGN.js +0 -473
- package/dist/SupplierView-SpZj0jGP.js +0 -831
|
@@ -1,831 +0,0 @@
|
|
|
1
|
-
import { defineComponent as K, mergeModels as Ve, useModel as ge, resolveComponent as w, openBlock as F, createElementBlock as R, createElementVNode as r, createVNode as d, withCtx as D, Fragment as _e, renderList as xe, toDisplayString as ue, unref as m, computed as V, ref as T, createBlock as E, createCommentVNode as fe, isRef as de, normalizeStyle as Se, Teleport as Ce } from "vue";
|
|
2
|
-
import { u as ve } from "./supplier-CGnKHkFI.js";
|
|
3
|
-
import { D as ie, R as B, F as h } from "./row-action.enum-BwQbURNh.js";
|
|
4
|
-
import { c as he, _ as we, F as Y, u as ke } from "./layout-UdC9Qu4Z.js";
|
|
5
|
-
import { c as me, u as Fe, d as ce, g as Ie, C as j, a as $e, e as Ae } from "./app-Bi9BFWrX.js";
|
|
6
|
-
import { useDialog as be, useSnackbar as ye, useProxiedModel as pe, useBreakpoints as Ue } from "@feedmepos/ui-library";
|
|
7
|
-
import { _ as Pe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
|
|
8
|
-
import { _ as Me } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DKqNqEpI.js";
|
|
9
|
-
import { A as De, M as Te, R as U } from "./rules-CG4VstbE.js";
|
|
10
|
-
import { _ as Re } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-ZtBvTGev.js";
|
|
11
|
-
import { useCoreStore as Ee } from "@feedmepos/mf-common";
|
|
12
|
-
import { a as Ne, t as qe } from "./date2-BXg2Rt3a.js";
|
|
13
|
-
import { _ as Le } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js";
|
|
14
|
-
function ze(P, C) {
|
|
15
|
-
function g(o, v) {
|
|
16
|
-
if (o === B.Edit) {
|
|
17
|
-
P(me(v));
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
if (o === B.Delete) {
|
|
21
|
-
C(me(v));
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return { columnDefs: [
|
|
26
|
-
{
|
|
27
|
-
accessorKey: "name",
|
|
28
|
-
header: "Supplier",
|
|
29
|
-
enableSorting: !0,
|
|
30
|
-
size: 200
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
accessorKey: "contactName",
|
|
34
|
-
header: "PIC",
|
|
35
|
-
enableSorting: !1,
|
|
36
|
-
size: 250
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
accessorKey: "phoneNumber",
|
|
40
|
-
header: "Contact",
|
|
41
|
-
enableSorting: !1,
|
|
42
|
-
size: 200
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
accessorKey: "email",
|
|
46
|
-
header: "Email",
|
|
47
|
-
enableSorting: !1,
|
|
48
|
-
size: "auto"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: "action",
|
|
52
|
-
header: "",
|
|
53
|
-
cell(o) {
|
|
54
|
-
return he(
|
|
55
|
-
[ie[B.Edit], ie[B.Delete]],
|
|
56
|
-
(v) => {
|
|
57
|
-
g(v, o.row.original);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
},
|
|
61
|
-
size: 40,
|
|
62
|
-
meta: {
|
|
63
|
-
cellClass: "",
|
|
64
|
-
headerClass: ""
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
] };
|
|
68
|
-
}
|
|
69
|
-
const Be = { class: "flex flex-col gap-12" }, Ye = { class: "flex flex-col" }, Ke = { class: "flex items-center gap-8 py-8" }, je = { class: "flex-1" }, Ge = /* @__PURE__ */ r("div", { class: "fm-typo-en-title-sm-800" }, "Supply items", -1), He = /* @__PURE__ */ r("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Overrides price per unit in ingredient. ", -1), Oe = { class: "flex flex-col gap-4" }, We = { class: "fm-typo-en-body-lg-400 flex-1" }, Je = { class: "flex-1" }, Qe = { class: "flex items-center gap-4" }, Xe = { class: "flex-1" }, Ze = { class: "text-fm-color-typo-secondary" }, et = /* @__PURE__ */ r("div", { class: "text-fm-color-typo-secondary" }, "/", -1), tt = { class: "flex-1" }, lt = /* @__PURE__ */ K({
|
|
70
|
-
__name: "SupplierSupplyItemField",
|
|
71
|
-
props: /* @__PURE__ */ Ve({
|
|
72
|
-
modelValue: {}
|
|
73
|
-
}, {
|
|
74
|
-
modelValue: {},
|
|
75
|
-
modelModifiers: {}
|
|
76
|
-
}),
|
|
77
|
-
emits: ["update:modelValue"],
|
|
78
|
-
setup(P) {
|
|
79
|
-
const C = Ee(), g = Fe(), a = be(), o = ge(P, "modelValue");
|
|
80
|
-
function v() {
|
|
81
|
-
var u;
|
|
82
|
-
const c = g.skus.map((l) => ({
|
|
83
|
-
label: l.name,
|
|
84
|
-
sublabel: l.code,
|
|
85
|
-
value: l._id
|
|
86
|
-
})), f = ((u = o.value) == null ? void 0 : u.map((l) => l.skuId)) ?? [], i = V(
|
|
87
|
-
() => {
|
|
88
|
-
var l;
|
|
89
|
-
return ((l = Ie(C.currentCountry.value)) == null ? void 0 : l.currency) ?? "MYR";
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
a.open({
|
|
93
|
-
title: "Select item",
|
|
94
|
-
closeButton: !0,
|
|
95
|
-
contentComponent: Re,
|
|
96
|
-
contentComponentProps: {
|
|
97
|
-
modelValue: f,
|
|
98
|
-
items: c
|
|
99
|
-
},
|
|
100
|
-
primaryActions: {
|
|
101
|
-
text: "Confirm",
|
|
102
|
-
close: !0
|
|
103
|
-
},
|
|
104
|
-
secondaryActions: {
|
|
105
|
-
text: "Close",
|
|
106
|
-
close: !0,
|
|
107
|
-
variant: "tertiary"
|
|
108
|
-
}
|
|
109
|
-
}).onPrimary((l) => {
|
|
110
|
-
const s = l.map((e) => g.skuById[e]).filter((e) => e);
|
|
111
|
-
s.sort((e, p) => e.code.localeCompare(p.code));
|
|
112
|
-
const t = s.map((e) => {
|
|
113
|
-
var A;
|
|
114
|
-
const p = (A = o.value) == null ? void 0 : A.find((n) => n.skuId === e._id);
|
|
115
|
-
return p || {
|
|
116
|
-
skuId: e._id,
|
|
117
|
-
defaultCost: e.defaultCost ?? {
|
|
118
|
-
costPerUnit: {
|
|
119
|
-
currency: i.value,
|
|
120
|
-
amount: 0,
|
|
121
|
-
precision: 2
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
});
|
|
126
|
-
o.value = t;
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function _(c) {
|
|
130
|
-
var u, l;
|
|
131
|
-
const i = (l = (u = (o.value ?? []).at(c)) == null ? void 0 : u.defaultCost) == null ? void 0 : l.costPerUnit;
|
|
132
|
-
return i ? +Ne(i) : 0;
|
|
133
|
-
}
|
|
134
|
-
function I(c, f) {
|
|
135
|
-
var i;
|
|
136
|
-
o.value = (i = o.value) == null ? void 0 : i.map((u, l) => l !== c ? u : {
|
|
137
|
-
...u,
|
|
138
|
-
defaultCost: {
|
|
139
|
-
...u.defaultCost,
|
|
140
|
-
costPerUnit: {
|
|
141
|
-
...u.defaultCost.costPerUnit,
|
|
142
|
-
...qe(+f, 4)
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
function b(c) {
|
|
148
|
-
switch (c) {
|
|
149
|
-
case j.MY:
|
|
150
|
-
return "MYR";
|
|
151
|
-
case j.SG:
|
|
152
|
-
return "SGD";
|
|
153
|
-
case j.ID:
|
|
154
|
-
return "IDR";
|
|
155
|
-
default:
|
|
156
|
-
return "MYR";
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function $(c) {
|
|
160
|
-
const f = g.skuById[c];
|
|
161
|
-
if (!f)
|
|
162
|
-
return [];
|
|
163
|
-
const i = f.unit.measurements ?? [];
|
|
164
|
-
return [
|
|
165
|
-
{
|
|
166
|
-
label: f.unit.abbrev,
|
|
167
|
-
value: null
|
|
168
|
-
},
|
|
169
|
-
...i.map((l) => ({
|
|
170
|
-
label: l.abbrev,
|
|
171
|
-
value: l
|
|
172
|
-
}))
|
|
173
|
-
];
|
|
174
|
-
}
|
|
175
|
-
function x(c) {
|
|
176
|
-
const i = (o.value ?? []).find((s) => s.skuId === c), u = g.skuById[c];
|
|
177
|
-
if (!i || !u) return null;
|
|
178
|
-
const l = $(c);
|
|
179
|
-
return i.defaultCost.measurement ? l.find((s) => {
|
|
180
|
-
var t, e;
|
|
181
|
-
return ((t = s.value) == null ? void 0 : t.id) === ((e = i.defaultCost.measurement) == null ? void 0 : e.id);
|
|
182
|
-
}) : l.find((s) => s.value === null);
|
|
183
|
-
}
|
|
184
|
-
function k(c, f) {
|
|
185
|
-
const i = o.value ?? [];
|
|
186
|
-
o.value = i.map((u) => u.skuId !== c ? u : f ? (u.defaultCost.measurement = f, u) : {
|
|
187
|
-
...u,
|
|
188
|
-
defaultCost: {
|
|
189
|
-
...u.defaultCost,
|
|
190
|
-
measurement: null
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
function y(c) {
|
|
195
|
-
const f = [...(o == null ? void 0 : o.value) ?? []];
|
|
196
|
-
f.splice(c, 1), o.value = f;
|
|
197
|
-
}
|
|
198
|
-
return (c, f) => {
|
|
199
|
-
const i = w("FmButton"), u = w("FmTextField"), l = w("FmSelect");
|
|
200
|
-
return F(), R("div", Be, [
|
|
201
|
-
r("div", Ye, [
|
|
202
|
-
r("div", Ke, [
|
|
203
|
-
r("div", je, [
|
|
204
|
-
d(Le, { "z-index": 50 }, {
|
|
205
|
-
default: D(() => [
|
|
206
|
-
Ge
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
})
|
|
210
|
-
]),
|
|
211
|
-
r("div", null, [
|
|
212
|
-
d(i, {
|
|
213
|
-
"prepend-icon": "link",
|
|
214
|
-
label: "Add items",
|
|
215
|
-
variant: "plain",
|
|
216
|
-
onClick: v
|
|
217
|
-
})
|
|
218
|
-
])
|
|
219
|
-
]),
|
|
220
|
-
He
|
|
221
|
-
]),
|
|
222
|
-
r("div", Oe, [
|
|
223
|
-
(F(!0), R(_e, null, xe(o.value, (s, t) => {
|
|
224
|
-
var e, p;
|
|
225
|
-
return F(), R("div", {
|
|
226
|
-
key: s.skuId,
|
|
227
|
-
class: "flex items-center"
|
|
228
|
-
}, [
|
|
229
|
-
r("div", We, ue((e = m(g).skuById[s.skuId]) == null ? void 0 : e.name), 1),
|
|
230
|
-
r("div", Je, [
|
|
231
|
-
r("div", Qe, [
|
|
232
|
-
r("div", Xe, [
|
|
233
|
-
d(u, {
|
|
234
|
-
"model-value": _(t),
|
|
235
|
-
"onUpdate:modelValue": (S) => I(t, S),
|
|
236
|
-
rules: [m(De)(0), m(Te)(2)],
|
|
237
|
-
"label-mark": "required"
|
|
238
|
-
}, {
|
|
239
|
-
prepend: D(() => {
|
|
240
|
-
var S, A;
|
|
241
|
-
return [
|
|
242
|
-
r("div", Ze, ue(b(((S = m(C).currentCountry) == null ? void 0 : S.value) ?? m(ce)) === "MYR" ? "RM" : b(((A = m(C).currentCountry) == null ? void 0 : A.value) ?? m(ce))), 1)
|
|
243
|
-
];
|
|
244
|
-
}),
|
|
245
|
-
_: 2
|
|
246
|
-
}, 1032, ["model-value", "onUpdate:modelValue", "rules"])
|
|
247
|
-
]),
|
|
248
|
-
et,
|
|
249
|
-
r("div", tt, [
|
|
250
|
-
d(l, {
|
|
251
|
-
items: $(s.skuId),
|
|
252
|
-
"model-value": (p = x(s.skuId)) == null ? void 0 : p.value,
|
|
253
|
-
"onUpdate:modelValue": (S) => k(s.skuId, S)
|
|
254
|
-
}, null, 8, ["items", "model-value", "onUpdate:modelValue"])
|
|
255
|
-
]),
|
|
256
|
-
r("div", null, [
|
|
257
|
-
d(i, {
|
|
258
|
-
"prepend-icon": "close",
|
|
259
|
-
variant: "tertiary",
|
|
260
|
-
onClick: (S) => y(t)
|
|
261
|
-
}, null, 8, ["onClick"])
|
|
262
|
-
])
|
|
263
|
-
])
|
|
264
|
-
])
|
|
265
|
-
]);
|
|
266
|
-
}), 128))
|
|
267
|
-
])
|
|
268
|
-
]);
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
}), ot = { class: "flex flex-col gap-40" }, st = { class: "flex flex-col gap-16" }, at = { class: "flex flex-col gap-8" }, nt = /* @__PURE__ */ r("div", { class: "fm-typo-en-title-sm-800" }, "Address", -1), rt = { class: "grid grid-cols-2 gap-24" }, ut = { class: "flex flex-col gap-8" }, dt = /* @__PURE__ */ r("div", { class: "fm-typo-en-title-sm-800" }, "Contact", -1), it = { class: "flex flex-col gap-16" }, mt = {
|
|
272
|
-
key: 0,
|
|
273
|
-
class: "flex flex-col gap-8"
|
|
274
|
-
}, ct = /* @__PURE__ */ K({
|
|
275
|
-
__name: "SupplierForm",
|
|
276
|
-
props: {
|
|
277
|
-
modelValue: {},
|
|
278
|
-
disabled: { type: Boolean }
|
|
279
|
-
},
|
|
280
|
-
emits: ["update:modelValue", "validation-success"],
|
|
281
|
-
setup(P, { expose: C, emit: g }) {
|
|
282
|
-
const a = P, o = g, v = $e(), _ = V({
|
|
283
|
-
get() {
|
|
284
|
-
var t;
|
|
285
|
-
return ((t = a.modelValue) == null ? void 0 : t.name) ?? "";
|
|
286
|
-
},
|
|
287
|
-
set(t) {
|
|
288
|
-
const e = a.modelValue ?? {};
|
|
289
|
-
e.name = t, o("update:modelValue", e);
|
|
290
|
-
}
|
|
291
|
-
}), I = V({
|
|
292
|
-
get() {
|
|
293
|
-
var t;
|
|
294
|
-
return ((t = a.modelValue) == null ? void 0 : t.registrationNumber) ?? "";
|
|
295
|
-
},
|
|
296
|
-
set(t) {
|
|
297
|
-
const e = a.modelValue ?? {};
|
|
298
|
-
e.registrationNumber = t, o("update:modelValue", e);
|
|
299
|
-
}
|
|
300
|
-
}), b = V({
|
|
301
|
-
get() {
|
|
302
|
-
var t, e;
|
|
303
|
-
return ((e = (t = a.modelValue) == null ? void 0 : t.address) == null ? void 0 : e.line1) ?? "";
|
|
304
|
-
},
|
|
305
|
-
set(t) {
|
|
306
|
-
const e = a.modelValue ?? {};
|
|
307
|
-
e.address ?? (e.address = {}), e.address.line1 = t, o("update:modelValue", e);
|
|
308
|
-
}
|
|
309
|
-
}), $ = V({
|
|
310
|
-
get() {
|
|
311
|
-
var t, e;
|
|
312
|
-
return ((e = (t = a.modelValue) == null ? void 0 : t.address) == null ? void 0 : e.line2) ?? "";
|
|
313
|
-
},
|
|
314
|
-
set(t) {
|
|
315
|
-
const e = a.modelValue ?? {};
|
|
316
|
-
e.address ?? (e.address = {}), e.address.line2 = t, o("update:modelValue", e);
|
|
317
|
-
}
|
|
318
|
-
}), x = V({
|
|
319
|
-
get() {
|
|
320
|
-
var t, e;
|
|
321
|
-
return ((e = (t = a.modelValue) == null ? void 0 : t.address) == null ? void 0 : e.city) ?? "";
|
|
322
|
-
},
|
|
323
|
-
set(t) {
|
|
324
|
-
const e = a.modelValue ?? {};
|
|
325
|
-
e.address ?? (e.address = {}), e.address.city = t, o("update:modelValue", e);
|
|
326
|
-
}
|
|
327
|
-
}), k = V({
|
|
328
|
-
get() {
|
|
329
|
-
var t, e;
|
|
330
|
-
return ((e = (t = a.modelValue) == null ? void 0 : t.address) == null ? void 0 : e.postcode) ?? "";
|
|
331
|
-
},
|
|
332
|
-
set(t) {
|
|
333
|
-
const e = a.modelValue ?? {};
|
|
334
|
-
e.address ?? (e.address = {}), e.address.postcode = t, o("update:modelValue", e);
|
|
335
|
-
}
|
|
336
|
-
}), y = V({
|
|
337
|
-
get() {
|
|
338
|
-
var t, e;
|
|
339
|
-
return ((e = (t = a.modelValue) == null ? void 0 : t.address) == null ? void 0 : e.state) ?? "";
|
|
340
|
-
},
|
|
341
|
-
set(t) {
|
|
342
|
-
const e = a.modelValue ?? {};
|
|
343
|
-
e.address ?? (e.address = {}), e.address.state = t, o("update:modelValue", e);
|
|
344
|
-
}
|
|
345
|
-
}), c = V({
|
|
346
|
-
get() {
|
|
347
|
-
var t, e;
|
|
348
|
-
return ((e = (t = a.modelValue) == null ? void 0 : t.address) == null ? void 0 : e.country) ?? "";
|
|
349
|
-
},
|
|
350
|
-
set(t) {
|
|
351
|
-
const e = a.modelValue ?? {};
|
|
352
|
-
e.address ?? (e.address = {}), e.address.country = t, o("update:modelValue", e);
|
|
353
|
-
}
|
|
354
|
-
}), f = V({
|
|
355
|
-
get() {
|
|
356
|
-
var t;
|
|
357
|
-
return ((t = a.modelValue) == null ? void 0 : t.contactName) ?? "";
|
|
358
|
-
},
|
|
359
|
-
set(t) {
|
|
360
|
-
const e = a.modelValue ?? {};
|
|
361
|
-
e.contactName = t, o("update:modelValue", e);
|
|
362
|
-
}
|
|
363
|
-
}), i = V({
|
|
364
|
-
get() {
|
|
365
|
-
var t;
|
|
366
|
-
return ((t = a.modelValue) == null ? void 0 : t.phoneNumber) ?? "";
|
|
367
|
-
},
|
|
368
|
-
set(t) {
|
|
369
|
-
const e = a.modelValue ?? {};
|
|
370
|
-
e.phoneNumber = t, o("update:modelValue", e);
|
|
371
|
-
}
|
|
372
|
-
}), u = V({
|
|
373
|
-
get() {
|
|
374
|
-
var t;
|
|
375
|
-
return ((t = a.modelValue) == null ? void 0 : t.email) ?? "";
|
|
376
|
-
},
|
|
377
|
-
set(t) {
|
|
378
|
-
const e = a.modelValue ?? {};
|
|
379
|
-
e.email = t, o("update:modelValue", e);
|
|
380
|
-
}
|
|
381
|
-
}), l = V({
|
|
382
|
-
get() {
|
|
383
|
-
var t;
|
|
384
|
-
return ((t = a.modelValue) == null ? void 0 : t.supplyItems) ?? [];
|
|
385
|
-
},
|
|
386
|
-
set(t) {
|
|
387
|
-
const e = a.modelValue ?? {};
|
|
388
|
-
e.supplyItems = t, o("update:modelValue", e);
|
|
389
|
-
}
|
|
390
|
-
}), s = T();
|
|
391
|
-
return C({
|
|
392
|
-
validateInputs: () => {
|
|
393
|
-
var t, e;
|
|
394
|
-
(e = (t = s.value) == null ? void 0 : t.validateInputs) == null || e.call(t);
|
|
395
|
-
},
|
|
396
|
-
resetInputsValidation: () => {
|
|
397
|
-
var t, e;
|
|
398
|
-
(e = (t = s.value) == null ? void 0 : t.resetInputsValidation) == null || e.call(t);
|
|
399
|
-
},
|
|
400
|
-
resetInputs: () => {
|
|
401
|
-
var t, e;
|
|
402
|
-
(e = (t = s.value) == null ? void 0 : t.resetInputs) == null || e.call(t);
|
|
403
|
-
}
|
|
404
|
-
}), (t, e) => {
|
|
405
|
-
const p = w("FmTextField"), S = w("FmPhoneNumber"), A = w("FmForm");
|
|
406
|
-
return F(), E(A, {
|
|
407
|
-
ref_key: "formRef",
|
|
408
|
-
ref: s,
|
|
409
|
-
onValidationSuccess: e[12] || (e[12] = (n) => o("validation-success"))
|
|
410
|
-
}, {
|
|
411
|
-
default: D(() => [
|
|
412
|
-
r("div", ot, [
|
|
413
|
-
r("div", st, [
|
|
414
|
-
d(p, {
|
|
415
|
-
disabled: t.disabled,
|
|
416
|
-
rules: [m(U)()],
|
|
417
|
-
"label-mark": "required",
|
|
418
|
-
label: "Company name",
|
|
419
|
-
modelValue: _.value,
|
|
420
|
-
"onUpdate:modelValue": e[0] || (e[0] = (n) => _.value = n)
|
|
421
|
-
}, null, 8, ["disabled", "rules", "modelValue"]),
|
|
422
|
-
d(p, {
|
|
423
|
-
disabled: t.disabled,
|
|
424
|
-
rules: [m(U)()],
|
|
425
|
-
"label-mark": "required",
|
|
426
|
-
label: "Registration no.",
|
|
427
|
-
modelValue: I.value,
|
|
428
|
-
"onUpdate:modelValue": e[1] || (e[1] = (n) => I.value = n)
|
|
429
|
-
}, null, 8, ["disabled", "rules", "modelValue"])
|
|
430
|
-
]),
|
|
431
|
-
r("div", at, [
|
|
432
|
-
nt,
|
|
433
|
-
r("div", rt, [
|
|
434
|
-
d(p, {
|
|
435
|
-
disabled: t.disabled,
|
|
436
|
-
rules: [m(U)()],
|
|
437
|
-
"label-mark": "required",
|
|
438
|
-
label: "Line 1",
|
|
439
|
-
modelValue: b.value,
|
|
440
|
-
"onUpdate:modelValue": e[2] || (e[2] = (n) => b.value = n)
|
|
441
|
-
}, null, 8, ["disabled", "rules", "modelValue"]),
|
|
442
|
-
d(p, {
|
|
443
|
-
disabled: t.disabled,
|
|
444
|
-
"label-mark": "optional",
|
|
445
|
-
label: "Line 2",
|
|
446
|
-
modelValue: $.value,
|
|
447
|
-
"onUpdate:modelValue": e[3] || (e[3] = (n) => $.value = n)
|
|
448
|
-
}, null, 8, ["disabled", "modelValue"]),
|
|
449
|
-
d(p, {
|
|
450
|
-
disabled: t.disabled,
|
|
451
|
-
rules: [m(U)()],
|
|
452
|
-
"label-mark": "required",
|
|
453
|
-
label: "City",
|
|
454
|
-
modelValue: x.value,
|
|
455
|
-
"onUpdate:modelValue": e[4] || (e[4] = (n) => x.value = n)
|
|
456
|
-
}, null, 8, ["disabled", "rules", "modelValue"]),
|
|
457
|
-
d(p, {
|
|
458
|
-
disabled: t.disabled,
|
|
459
|
-
rules: [m(U)()],
|
|
460
|
-
"label-mark": "required",
|
|
461
|
-
label: "Postal code",
|
|
462
|
-
modelValue: k.value,
|
|
463
|
-
"onUpdate:modelValue": e[5] || (e[5] = (n) => k.value = n)
|
|
464
|
-
}, null, 8, ["disabled", "rules", "modelValue"]),
|
|
465
|
-
d(p, {
|
|
466
|
-
disabled: t.disabled,
|
|
467
|
-
rules: [m(U)()],
|
|
468
|
-
"label-mark": "required",
|
|
469
|
-
label: "State",
|
|
470
|
-
modelValue: y.value,
|
|
471
|
-
"onUpdate:modelValue": e[6] || (e[6] = (n) => y.value = n)
|
|
472
|
-
}, null, 8, ["disabled", "rules", "modelValue"]),
|
|
473
|
-
d(p, {
|
|
474
|
-
disabled: t.disabled,
|
|
475
|
-
rules: [m(U)()],
|
|
476
|
-
"label-mark": "required",
|
|
477
|
-
label: "Country",
|
|
478
|
-
modelValue: c.value,
|
|
479
|
-
"onUpdate:modelValue": e[7] || (e[7] = (n) => c.value = n)
|
|
480
|
-
}, null, 8, ["disabled", "rules", "modelValue"])
|
|
481
|
-
])
|
|
482
|
-
]),
|
|
483
|
-
r("div", ut, [
|
|
484
|
-
dt,
|
|
485
|
-
r("div", it, [
|
|
486
|
-
d(p, {
|
|
487
|
-
disabled: t.disabled,
|
|
488
|
-
rules: [m(U)()],
|
|
489
|
-
"label-mark": "required",
|
|
490
|
-
label: "PIC",
|
|
491
|
-
modelValue: f.value,
|
|
492
|
-
"onUpdate:modelValue": e[8] || (e[8] = (n) => f.value = n)
|
|
493
|
-
}, null, 8, ["disabled", "rules", "modelValue"]),
|
|
494
|
-
d(S, {
|
|
495
|
-
disabled: t.disabled,
|
|
496
|
-
rules: [m(U)()],
|
|
497
|
-
"label-mark": "required",
|
|
498
|
-
label: "Phone number",
|
|
499
|
-
modelValue: i.value,
|
|
500
|
-
"onUpdate:modelValue": e[9] || (e[9] = (n) => i.value = n)
|
|
501
|
-
}, null, 8, ["disabled", "rules", "modelValue"]),
|
|
502
|
-
d(p, {
|
|
503
|
-
disabled: t.disabled,
|
|
504
|
-
"label-mark": "optional",
|
|
505
|
-
label: "Email",
|
|
506
|
-
modelValue: u.value,
|
|
507
|
-
"onUpdate:modelValue": e[10] || (e[10] = (n) => u.value = n)
|
|
508
|
-
}, null, 8, ["disabled", "modelValue"])
|
|
509
|
-
])
|
|
510
|
-
]),
|
|
511
|
-
m(v).enableTotalCost ? (F(), R("div", mt, [
|
|
512
|
-
d(lt, {
|
|
513
|
-
modelValue: l.value,
|
|
514
|
-
"onUpdate:modelValue": e[11] || (e[11] = (n) => l.value = n)
|
|
515
|
-
}, null, 8, ["modelValue"])
|
|
516
|
-
])) : fe("", !0)
|
|
517
|
-
])
|
|
518
|
-
]),
|
|
519
|
-
_: 1
|
|
520
|
-
}, 512);
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
}), pt = { class: "flex gap-4" }, ft = /* @__PURE__ */ K({
|
|
524
|
-
__name: "SupplierDialog",
|
|
525
|
-
props: {
|
|
526
|
-
mode: {},
|
|
527
|
-
supplier: {},
|
|
528
|
-
show: { type: Boolean }
|
|
529
|
-
},
|
|
530
|
-
emits: ["update:show", "submitted"],
|
|
531
|
-
setup(P, { expose: C, emit: g }) {
|
|
532
|
-
const a = P, o = g, v = T(!1), _ = ye(), I = ve(), b = V(() => {
|
|
533
|
-
switch (a.mode) {
|
|
534
|
-
case h.CREATE:
|
|
535
|
-
return "Add supplier";
|
|
536
|
-
case h.READ:
|
|
537
|
-
return "View";
|
|
538
|
-
case h.UPDATE:
|
|
539
|
-
return "Edit supplier";
|
|
540
|
-
}
|
|
541
|
-
return "";
|
|
542
|
-
}), $ = V(() => {
|
|
543
|
-
switch (a.mode) {
|
|
544
|
-
case h.READ:
|
|
545
|
-
return "";
|
|
546
|
-
case h.UPDATE:
|
|
547
|
-
return "Save";
|
|
548
|
-
case h.CREATE:
|
|
549
|
-
return "Add";
|
|
550
|
-
}
|
|
551
|
-
return "";
|
|
552
|
-
}), x = T();
|
|
553
|
-
C({
|
|
554
|
-
validateInputs: () => {
|
|
555
|
-
var l, s;
|
|
556
|
-
(s = (l = x.value) == null ? void 0 : l.validateInputs) == null || s.call(l);
|
|
557
|
-
},
|
|
558
|
-
resetInputsValidation: () => {
|
|
559
|
-
var l, s;
|
|
560
|
-
(s = (l = x.value) == null ? void 0 : l.resetInputsValidation) == null || s.call(l);
|
|
561
|
-
},
|
|
562
|
-
resetInputs: () => {
|
|
563
|
-
var l, s;
|
|
564
|
-
(s = (l = x.value) == null ? void 0 : l.resetInputs) == null || s.call(l);
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
const k = pe(a, "show"), y = pe(a, "supplier");
|
|
568
|
-
function c() {
|
|
569
|
-
var l, s;
|
|
570
|
-
(s = (l = x.value) == null ? void 0 : l.validateInputs) == null || s.call(l);
|
|
571
|
-
}
|
|
572
|
-
function f() {
|
|
573
|
-
switch (a.mode) {
|
|
574
|
-
case h.READ:
|
|
575
|
-
return;
|
|
576
|
-
case h.UPDATE:
|
|
577
|
-
return u();
|
|
578
|
-
case h.CREATE:
|
|
579
|
-
return i();
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
async function i() {
|
|
583
|
-
v.value = !0;
|
|
584
|
-
try {
|
|
585
|
-
await Promise.all([
|
|
586
|
-
I.createSupplier(y.value),
|
|
587
|
-
new Promise((l) => setTimeout(l, 1e3))
|
|
588
|
-
]), _.open({
|
|
589
|
-
title: "Success",
|
|
590
|
-
message: `Created ${y.value.name} supplier`,
|
|
591
|
-
type: "success"
|
|
592
|
-
}), o("update:show", !1), o("submitted");
|
|
593
|
-
} catch (l) {
|
|
594
|
-
_.open({
|
|
595
|
-
title: "Something went wrong",
|
|
596
|
-
message: `Cannot create ${y.value.name} supplier. Please try again`,
|
|
597
|
-
type: "error"
|
|
598
|
-
}), console.error("cannot create supplier", l);
|
|
599
|
-
} finally {
|
|
600
|
-
v.value = !1;
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
async function u() {
|
|
604
|
-
if (y.value === null) {
|
|
605
|
-
_.open({
|
|
606
|
-
title: "Something went wrong",
|
|
607
|
-
message: "Cannot update empty supplier info",
|
|
608
|
-
type: "error"
|
|
609
|
-
});
|
|
610
|
-
return;
|
|
611
|
-
}
|
|
612
|
-
v.value = !0;
|
|
613
|
-
try {
|
|
614
|
-
await Promise.all([
|
|
615
|
-
I.updateSupplier(y.value),
|
|
616
|
-
new Promise((l) => setTimeout(l, 1e3))
|
|
617
|
-
]), _.open({
|
|
618
|
-
title: "Success",
|
|
619
|
-
message: `Updated ${y.value.name} supplier`,
|
|
620
|
-
type: "success"
|
|
621
|
-
}), o("update:show", !1), o("submitted");
|
|
622
|
-
} catch (l) {
|
|
623
|
-
_.open({
|
|
624
|
-
title: "Something went wrong",
|
|
625
|
-
message: `Cannot update ${y.value.name} supplier. Please try again`,
|
|
626
|
-
type: "error"
|
|
627
|
-
}), console.error("cannot update supplier", l);
|
|
628
|
-
} finally {
|
|
629
|
-
v.value = !1;
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
return (l, s) => {
|
|
633
|
-
const t = w("FmButton"), e = w("FmSideSheet");
|
|
634
|
-
return F(), E(e, {
|
|
635
|
-
header: b.value,
|
|
636
|
-
modelValue: m(k),
|
|
637
|
-
"onUpdate:modelValue": s[1] || (s[1] = (p) => de(k) ? k.value = p : null),
|
|
638
|
-
"dismiss-away": !v.value,
|
|
639
|
-
"close-button": "",
|
|
640
|
-
"max-width": 500
|
|
641
|
-
}, {
|
|
642
|
-
default: D(() => {
|
|
643
|
-
var p;
|
|
644
|
-
return [
|
|
645
|
-
(F(), E(ct, {
|
|
646
|
-
class: "w-full",
|
|
647
|
-
ref_key: "formRef",
|
|
648
|
-
ref: x,
|
|
649
|
-
modelValue: m(y),
|
|
650
|
-
"onUpdate:modelValue": s[0] || (s[0] = (S) => de(y) ? y.value = S : null),
|
|
651
|
-
onValidationSuccess: f,
|
|
652
|
-
key: ((p = l.supplier) == null ? void 0 : p._id) ?? "",
|
|
653
|
-
disabled: v.value
|
|
654
|
-
}, null, 8, ["modelValue", "disabled"]))
|
|
655
|
-
];
|
|
656
|
-
}),
|
|
657
|
-
"side-sheet-footer": D(() => [
|
|
658
|
-
r("div", pt, [
|
|
659
|
-
d(t, {
|
|
660
|
-
loading: v.value,
|
|
661
|
-
label: $.value,
|
|
662
|
-
onClick: c
|
|
663
|
-
}, null, 8, ["loading", "label"])
|
|
664
|
-
])
|
|
665
|
-
]),
|
|
666
|
-
_: 1
|
|
667
|
-
}, 8, ["header", "modelValue", "dismiss-away"]);
|
|
668
|
-
};
|
|
669
|
-
}
|
|
670
|
-
}), vt = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, bt = { class: "px-8 flex gap-8 items-center xs:gap-0 xs:flex-col-reverse sm:gap-0 sm:flex-col-reverse" }, yt = { class: "xs:w-full sm:w-full flex gap-8 items-center overflow-x-auto no-scrollbar py-8" }, Vt = { class: "flex-grow xs:w-full" }, gt = { class: "flex flex-col py-8" }, _t = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, St = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ct = {
|
|
671
|
-
key: 0,
|
|
672
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
673
|
-
}, Et = /* @__PURE__ */ K({
|
|
674
|
-
__name: "SupplierView",
|
|
675
|
-
setup(P) {
|
|
676
|
-
const C = ve(), g = Ae(), a = T(!1), o = be(), v = ye();
|
|
677
|
-
g.watchLocation(_);
|
|
678
|
-
async function _(t) {
|
|
679
|
-
if (t) {
|
|
680
|
-
a.value = !0;
|
|
681
|
-
try {
|
|
682
|
-
await C.readSuppliers();
|
|
683
|
-
} catch {
|
|
684
|
-
v.open({
|
|
685
|
-
title: "Cannot fetch supplier list",
|
|
686
|
-
type: "error"
|
|
687
|
-
});
|
|
688
|
-
} finally {
|
|
689
|
-
a.value = !1;
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
const I = V(() => C.suppliers), b = T({});
|
|
694
|
-
function $() {
|
|
695
|
-
b.value.mode = h.CREATE, b.value.supplier = {}, b.value.show = !0;
|
|
696
|
-
}
|
|
697
|
-
function x(t) {
|
|
698
|
-
b.value.mode = h.UPDATE, b.value.supplier = t, b.value.show = !0;
|
|
699
|
-
}
|
|
700
|
-
async function k(t) {
|
|
701
|
-
o.open({
|
|
702
|
-
title: "Delete supplier?",
|
|
703
|
-
message: `Confirm deleting ${t.name}?`,
|
|
704
|
-
primaryActions: {
|
|
705
|
-
text: "Delete",
|
|
706
|
-
close: !0,
|
|
707
|
-
variant: "destructive"
|
|
708
|
-
},
|
|
709
|
-
secondaryActions: {
|
|
710
|
-
text: "Cancel",
|
|
711
|
-
close: !0
|
|
712
|
-
}
|
|
713
|
-
}).onPrimary(() => y(t));
|
|
714
|
-
}
|
|
715
|
-
async function y(t) {
|
|
716
|
-
o.open({
|
|
717
|
-
title: "Deleting supplier...",
|
|
718
|
-
closeButton: !1
|
|
719
|
-
});
|
|
720
|
-
try {
|
|
721
|
-
await C.deleteSupplier(t), v.open({
|
|
722
|
-
title: "Success",
|
|
723
|
-
message: `Deleted ${t == null ? void 0 : t.name}.`,
|
|
724
|
-
type: "success"
|
|
725
|
-
}), _(g.currentLocation);
|
|
726
|
-
} catch (e) {
|
|
727
|
-
v.open({
|
|
728
|
-
title: "Something went wrong",
|
|
729
|
-
message: `Cannot delete ${t == null ? void 0 : t.name}. Please try again.`,
|
|
730
|
-
type: "error"
|
|
731
|
-
}), console.error("failed to delete supplier", e);
|
|
732
|
-
} finally {
|
|
733
|
-
o.close();
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
const { columnDefs: c } = ze(x, k);
|
|
737
|
-
function f(t) {
|
|
738
|
-
t === "create" && $();
|
|
739
|
-
}
|
|
740
|
-
const i = T(""), { breakpoints: u } = Ue(), l = V(() => u.value.xs || u.value.sm ? 10 : 20), s = ke();
|
|
741
|
-
return (t, e) => {
|
|
742
|
-
const p = w("FmTableToolbar"), S = w("FmMenuDivider"), A = w("FmTable");
|
|
743
|
-
return F(), E(Pe, {
|
|
744
|
-
title: "Supplier",
|
|
745
|
-
actions: [{ label: "Create supplier", value: "create", isPrimary: !0, prependIcon: "add" }],
|
|
746
|
-
"onClick:action": f
|
|
747
|
-
}, {
|
|
748
|
-
default: D(() => [
|
|
749
|
-
r("div", vt, [
|
|
750
|
-
r("div", bt, [
|
|
751
|
-
r("div", yt, [
|
|
752
|
-
d(Me)
|
|
753
|
-
]),
|
|
754
|
-
r("div", Vt, [
|
|
755
|
-
d(p, {
|
|
756
|
-
searchable: "",
|
|
757
|
-
"search-model": i.value,
|
|
758
|
-
"onUpdate:searchModel": e[0] || (e[0] = (n) => i.value = n)
|
|
759
|
-
}, null, 8, ["search-model"]),
|
|
760
|
-
d(S, { class: "hidden xs:block" })
|
|
761
|
-
])
|
|
762
|
-
]),
|
|
763
|
-
d(A, {
|
|
764
|
-
style: Se(m(s).tableHeight),
|
|
765
|
-
"column-defs": m(c),
|
|
766
|
-
"row-data": I.value,
|
|
767
|
-
"search-value": i.value,
|
|
768
|
-
loading: !m(g)._currentLocation || a.value,
|
|
769
|
-
onRowClick: e[1] || (e[1] = (n) => x(n.original)),
|
|
770
|
-
"page-size": l.value
|
|
771
|
-
}, {
|
|
772
|
-
"list-row": D((n) => [
|
|
773
|
-
d(we, {
|
|
774
|
-
row: n,
|
|
775
|
-
onRowClick: x
|
|
776
|
-
}, {
|
|
777
|
-
default: D((M) => {
|
|
778
|
-
var G, H, O, N, W, J, Q, X, q, Z, ee, te, le, L, oe, se, ae, ne, z, re;
|
|
779
|
-
return [
|
|
780
|
-
r("div", gt, [
|
|
781
|
-
r("div", _t, [
|
|
782
|
-
d(m(Y), {
|
|
783
|
-
render: (O = (H = (G = M.name) == null ? void 0 : G.column) == null ? void 0 : H.columnDef) == null ? void 0 : O.cell,
|
|
784
|
-
props: (W = (N = M.name) == null ? void 0 : N.getContext) == null ? void 0 : W.call(N)
|
|
785
|
-
}, null, 8, ["render", "props"])
|
|
786
|
-
]),
|
|
787
|
-
r("div", xt, [
|
|
788
|
-
d(m(Y), {
|
|
789
|
-
render: (X = (Q = (J = M.contactName) == null ? void 0 : J.column) == null ? void 0 : Q.columnDef) == null ? void 0 : X.cell,
|
|
790
|
-
props: (Z = (q = M.contactName) == null ? void 0 : q.getContext) == null ? void 0 : Z.call(q)
|
|
791
|
-
}, null, 8, ["render", "props"])
|
|
792
|
-
]),
|
|
793
|
-
r("div", St, [
|
|
794
|
-
d(m(Y), {
|
|
795
|
-
render: (le = (te = (ee = M.phoneNumber) == null ? void 0 : ee.column) == null ? void 0 : te.columnDef) == null ? void 0 : le.cell,
|
|
796
|
-
props: (oe = (L = M.phoneNumber) == null ? void 0 : L.getContext) == null ? void 0 : oe.call(L)
|
|
797
|
-
}, null, 8, ["render", "props"])
|
|
798
|
-
]),
|
|
799
|
-
n.original.email ? (F(), R("div", Ct, [
|
|
800
|
-
d(m(Y), {
|
|
801
|
-
render: (ne = (ae = (se = M.email) == null ? void 0 : se.column) == null ? void 0 : ae.columnDef) == null ? void 0 : ne.cell,
|
|
802
|
-
props: (re = (z = M.email) == null ? void 0 : z.getContext) == null ? void 0 : re.call(z)
|
|
803
|
-
}, null, 8, ["render", "props"])
|
|
804
|
-
])) : fe("", !0)
|
|
805
|
-
])
|
|
806
|
-
];
|
|
807
|
-
}),
|
|
808
|
-
_: 2
|
|
809
|
-
}, 1032, ["row"])
|
|
810
|
-
]),
|
|
811
|
-
_: 1
|
|
812
|
-
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
813
|
-
]),
|
|
814
|
-
(F(), E(Ce, { to: "body" }, [
|
|
815
|
-
d(ft, {
|
|
816
|
-
show: b.value.show,
|
|
817
|
-
"onUpdate:show": e[2] || (e[2] = (n) => b.value.show = n),
|
|
818
|
-
supplier: b.value.supplier,
|
|
819
|
-
mode: b.value.mode,
|
|
820
|
-
onSubmitted: e[3] || (e[3] = (n) => _(m(g).currentLocation))
|
|
821
|
-
}, null, 8, ["show", "supplier", "mode"])
|
|
822
|
-
]))
|
|
823
|
-
]),
|
|
824
|
-
_: 1
|
|
825
|
-
});
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
});
|
|
829
|
-
export {
|
|
830
|
-
Et as default
|
|
831
|
-
};
|