@feedmepos/mf-inventory-portal 0.0.22-dev.20 → 0.0.22-dev.21
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-DrlB6QmP.js → ApprovalView-CCYykhrK.js} +4 -4
- package/dist/{BindingsDialog-BIsmJCcX.js → BindingsDialog-33VV_AST.js} +1 -1
- package/dist/{BindingsPicker-_ozgYyoy.js → BindingsPicker-BKu4vN8J.js} +1 -1
- package/dist/{BindingsTable-BdaYKCU2.js → BindingsTable-Dd0h5gDf.js} +1 -1
- package/dist/{ClosingTemplateView-BNOjDN_Y.js → ClosingTemplateView-BhevjTLl.js} +5 -5
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhZWV_te.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3gp56NNJ.js} +1 -1
- package/dist/{IngredientsView-OWTMcqVt.js → IngredientsView-DckIH9eR.js} +3 -3
- package/dist/{IntegrationView-DqQV8FK2.js → IntegrationView-BqQ4jRIp.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-eag0ZVsT.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Vi0q_bDz.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DC3nWhhu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BIL8LWRz.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-BPJbSiQf.js → PurchaseOrderPrintPreview-Ct7daTTa.js} +1 -1
- package/dist/{ReceiveRequestView-6qYBopZt.js → ReceiveRequestView-B4wHTogG.js} +6 -6
- package/dist/{RecipeView-BKGDLAhE.js → RecipeView-DuE4cXLz.js} +3 -3
- package/dist/{StockView-DV-VVzVM.js → StockView-Bn9v2Ix8.js} +6 -6
- package/dist/{SupplierView-BebHHZhB.js → SupplierView-C8rqHSOV.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-dzrP2NYq.js → TransferDetails.vue_vue_type_script_setup_true_lang-CStnY5Zh.js} +162 -154
- package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-CCn6h2lC.js → TransferDialog.vue_vue_type_script_setup_true_lang-DRKiv_t8.js} +5 -5
- package/dist/{TransferTemplateView-DyG0qZqJ.js → TransferTemplateView-RM6Y-WL4.js} +8 -8
- package/dist/{UnitView-sesi0MIU.js → UnitView-BXISVrop.js} +4 -4
- package/dist/{WarehouseView-zZCKnbbu.js → WarehouseView-B055eB90.js} +2 -2
- package/dist/{app-b4xcXRca.js → app-9algzyce.js} +7010 -6773
- package/dist/app.js +1 -1
- package/dist/{decimal-DgBMe5Xq.js → decimal-CMuMGm4y.js} +1 -1
- package/dist/{defineDeepModel-DR6GH0Fd.js → defineDeepModel-CjPowyho.js} +1 -1
- package/dist/{format-time-from-id-Bsbw1i2y.js → format-time-from-id-DNKcbBFm.js} +1 -1
- package/dist/{id-to-date-Bh9HmRRo.js → id-to-date-C6W4aVdr.js} +1 -1
- package/dist/{purchase-order-transaction-type-CFy_l7aK.js → purchase-order-transaction-type-CscRvNAR.js} +3 -3
- package/dist/{supplier-DZuEtW07.js → supplier-BiCX3dpL.js} +1 -1
- package/dist/{use-template-enabled-locations-2-BjtiCP8N.js → use-template-enabled-locations-2-Dtg2qOTm.js} +1 -1
- package/dist/{xlsx-B3eLI4Oa.js → xlsx-fKJqx2Qc.js} +1 -1
- package/dist/{xlsx.util-CmEykrDA.js → xlsx.util-LOnzE3KS.js} +2 -2
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { computed as W, h as
|
|
1
|
+
import { f as ue } from "./format-time-from-id-DNKcbBFm.js";
|
|
2
|
+
import { computed as W, h as re, defineComponent as Ne, ref as ae, resolveComponent as H, openBlock as c, createBlock as $, unref as r, isRef as Te, withCtx as ne, createElementVNode as e, createVNode as U, createElementBlock as y, Fragment as Q, toDisplayString as d, normalizeClass as oe, createCommentVNode as O, renderList as le } from "vue";
|
|
3
3
|
import { c as Oe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
4
4
|
import { D as x, R as b } from "./row-action.enum-PMKMRrZR.js";
|
|
5
|
-
import { D as ke, m as de, a as te, al as qe, am as k, c as Pe, j as Fe, ag as A, J as $e, H as Ie, aj as je, b as Me, x as Ue, T as xe } from "./app-
|
|
6
|
-
import { F as Ke } from "./decimal-
|
|
7
|
-
import { f as Se, P as
|
|
8
|
-
import {
|
|
5
|
+
import { D as ke, m as de, a as te, al as qe, am as k, c as Pe, j as Fe, ag as A, J as $e, H as Ie, aj as je, b as Me, x as Ue, T as xe } from "./app-9algzyce.js";
|
|
6
|
+
import { F as Ke } from "./decimal-CMuMGm4y.js";
|
|
7
|
+
import { f as Se, P as ie, d as Le, e as Ve } from "./purchase-order-transaction-type-CscRvNAR.js";
|
|
8
|
+
import { useDialog as Be, useSnackbar as Ge, useProxiedModel as He } from "@feedmepos/ui-library";
|
|
9
9
|
import { useI18n as De } from "@feedmepos/mf-common";
|
|
10
|
-
import { E as
|
|
11
|
-
function
|
|
10
|
+
import { E as ze } from "./empty-placeholder-wf6-BWE8.js";
|
|
11
|
+
function Ye(f, C) {
|
|
12
12
|
return C.reduce(
|
|
13
13
|
(a, I) => {
|
|
14
14
|
const T = I.received.find((P) => P.sku._id === f._id);
|
|
@@ -17,7 +17,7 @@ function Qe(f, C) {
|
|
|
17
17
|
Ke.toPrecision(de(0), f.unit.precision)
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Qe(f, C) {
|
|
21
21
|
const { name: h, address: a, regNo: I } = C.doc.profile, T = {
|
|
22
22
|
name: h,
|
|
23
23
|
registrationNumber: I,
|
|
@@ -37,15 +37,15 @@ function Je(f, C) {
|
|
|
37
37
|
state: f.supplier.address.state,
|
|
38
38
|
country: f.supplier.address.country
|
|
39
39
|
}, z = f.items.map((i) => {
|
|
40
|
-
const { sku: l, measurement:
|
|
41
|
-
|
|
40
|
+
const { sku: l, measurement: u } = i, j = te(
|
|
41
|
+
Ye(i.sku, f.deliveryOrder || []),
|
|
42
42
|
!1
|
|
43
43
|
);
|
|
44
44
|
return {
|
|
45
45
|
code: l.code,
|
|
46
46
|
description: l.name,
|
|
47
47
|
quantity: Se(i.quantity, l.unit, i.measurement),
|
|
48
|
-
unit: (
|
|
48
|
+
unit: (u == null ? void 0 : u.abbrev) || l.unit.abbrev,
|
|
49
49
|
received: j
|
|
50
50
|
};
|
|
51
51
|
}), m = f.deliveryOrder.map((i) => ({
|
|
@@ -53,17 +53,17 @@ function Je(f, C) {
|
|
|
53
53
|
ref: i.deliveryOrderNumber,
|
|
54
54
|
remark: i.remark || "",
|
|
55
55
|
items: i.received.map((l) => {
|
|
56
|
-
var
|
|
56
|
+
var u;
|
|
57
57
|
return {
|
|
58
58
|
code: l.sku.code,
|
|
59
59
|
description: l.sku.name,
|
|
60
60
|
quantity: te(l.amount),
|
|
61
|
-
unit: ((
|
|
61
|
+
unit: ((u = l.measurement) == null ? void 0 : u.abbrev) || l.sku.unit.abbrev
|
|
62
62
|
};
|
|
63
63
|
})
|
|
64
64
|
})), K = {
|
|
65
65
|
orderNumber: f.seqNumber.toString(),
|
|
66
|
-
createdAt:
|
|
66
|
+
createdAt: ue(f._id),
|
|
67
67
|
ref: f.ref || "",
|
|
68
68
|
remark: f.remark || "",
|
|
69
69
|
buyer: T,
|
|
@@ -116,7 +116,7 @@ const J = {
|
|
|
116
116
|
value: k.enum.completeReceive
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
function
|
|
119
|
+
function vs(f, C) {
|
|
120
120
|
const h = Fe(), { t: a } = De();
|
|
121
121
|
function I(o) {
|
|
122
122
|
switch (o.status) {
|
|
@@ -164,17 +164,17 @@ function ps(f, C) {
|
|
|
164
164
|
}
|
|
165
165
|
async function P(o, i, l) {
|
|
166
166
|
var j, se;
|
|
167
|
-
const
|
|
167
|
+
const u = Pe(i);
|
|
168
168
|
if (o === b.Print) {
|
|
169
|
-
|
|
169
|
+
Qe(u, h.currentLocation);
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
172
|
if (o === b.Details) {
|
|
173
|
-
C.promptShowTransferDetails(
|
|
173
|
+
C.promptShowTransferDetails(u, l);
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
if (o === b.Update) {
|
|
177
|
-
(j = C.promptUpdateTransferDialog) == null || j.call(C,
|
|
177
|
+
(j = C.promptUpdateTransferDialog) == null || j.call(C, u);
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
180
|
if (T(o)) {
|
|
@@ -195,7 +195,7 @@ function ps(f, C) {
|
|
|
195
195
|
accessorKey: "_id",
|
|
196
196
|
header: () => a("inventory.transfer.table.createdAt"),
|
|
197
197
|
cell(o) {
|
|
198
|
-
return
|
|
198
|
+
return ue(`${o.getValue()}`);
|
|
199
199
|
},
|
|
200
200
|
enableSorting: !0
|
|
201
201
|
},
|
|
@@ -224,12 +224,12 @@ function ps(f, C) {
|
|
|
224
224
|
header: () => a("inventory.transfer.table.status"),
|
|
225
225
|
cell(o) {
|
|
226
226
|
const i = a(`inventory.transfer.status.${o.getValue() ?? ""}`), l = `${o.getValue() ?? ""}`.toLocaleLowerCase("en-us");
|
|
227
|
-
return
|
|
227
|
+
return re(
|
|
228
228
|
"div",
|
|
229
229
|
{
|
|
230
230
|
class: "flex"
|
|
231
231
|
},
|
|
232
|
-
|
|
232
|
+
re(
|
|
233
233
|
"div",
|
|
234
234
|
{
|
|
235
235
|
class: `fm-status-badge fm-status-badge-${l}`
|
|
@@ -245,7 +245,7 @@ function ps(f, C) {
|
|
|
245
245
|
id: "action",
|
|
246
246
|
cell(o) {
|
|
247
247
|
const i = o.row.original, l = I(i);
|
|
248
|
-
return Oe(l, (
|
|
248
|
+
return Oe(l, (u) => P(u, i));
|
|
249
249
|
},
|
|
250
250
|
enableSorting: !1,
|
|
251
251
|
size: 40,
|
|
@@ -269,7 +269,7 @@ function ps(f, C) {
|
|
|
269
269
|
accessorKey: "purchaseOrder._id",
|
|
270
270
|
header: () => a("inventory.transfer.table.createdAt"),
|
|
271
271
|
cell(o) {
|
|
272
|
-
return
|
|
272
|
+
return ue(`${o.getValue()}`);
|
|
273
273
|
},
|
|
274
274
|
enableSorting: !0
|
|
275
275
|
},
|
|
@@ -295,11 +295,19 @@ function ps(f, C) {
|
|
|
295
295
|
header: () => a("inventory.transfer.table.status"),
|
|
296
296
|
cell(o) {
|
|
297
297
|
const i = a(`inventory.transfer.status.${o.getValue() ?? ""}`), l = `${o.getValue() ?? ""}`.toLocaleLowerCase("en-us");
|
|
298
|
-
return
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
298
|
+
return re(
|
|
299
|
+
"div",
|
|
300
|
+
{
|
|
301
|
+
class: "flex"
|
|
302
|
+
},
|
|
303
|
+
re(
|
|
304
|
+
"div",
|
|
305
|
+
{
|
|
306
|
+
class: `fm-status-badge fm-status-badge-${l}`
|
|
307
|
+
},
|
|
308
|
+
i
|
|
309
|
+
)
|
|
310
|
+
);
|
|
303
311
|
},
|
|
304
312
|
enableSorting: !0
|
|
305
313
|
},
|
|
@@ -309,7 +317,7 @@ function ps(f, C) {
|
|
|
309
317
|
const i = o.row.original, l = i.purchaseOrder ? I(i.purchaseOrder) : [];
|
|
310
318
|
return Oe(
|
|
311
319
|
l,
|
|
312
|
-
(
|
|
320
|
+
(u) => i.purchaseOrder ? P(u, i.purchaseOrder, i) : void 0
|
|
313
321
|
);
|
|
314
322
|
},
|
|
315
323
|
enableSorting: !1,
|
|
@@ -328,55 +336,55 @@ function ps(f, C) {
|
|
|
328
336
|
}
|
|
329
337
|
};
|
|
330
338
|
}
|
|
331
|
-
const
|
|
339
|
+
const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex justify-between" }, Xe = { class: "fm-typo-en-body-lg-600" }, Ze = { class: "flex flex-col gap-8" }, et = { class: "flex flex-col gap-4" }, tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, st = { class: "flex gap-1" }, rt = { class: "fm-typo-en-body-lg-600" }, at = {
|
|
332
340
|
key: 0,
|
|
333
341
|
class: "flex flex-col gap-4"
|
|
334
|
-
},
|
|
342
|
+
}, nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ot = { class: "fm-typo-en-body-lg-600" }, lt = { class: "flex flex-col gap-4" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "fm-typo-en-body-lg-600" }, ct = {
|
|
335
343
|
key: 1,
|
|
336
344
|
class: "flex flex-col gap-4"
|
|
337
|
-
},
|
|
345
|
+
}, dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, mt = { class: "fm-typo-en-body-lg-600" }, ft = {
|
|
338
346
|
key: 2,
|
|
339
347
|
class: "flex flex-col gap-4"
|
|
340
|
-
},
|
|
348
|
+
}, vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pt = { class: "fm-typo-en-body-lg-600" }, yt = {
|
|
341
349
|
key: 3,
|
|
342
350
|
class: "flex flex-col gap-4"
|
|
343
|
-
},
|
|
351
|
+
}, bt = { class: "fm-typo-en-body-lg-600" }, ht = {
|
|
344
352
|
key: 4,
|
|
345
353
|
class: "flex flex-col gap-4"
|
|
346
|
-
},
|
|
354
|
+
}, gt = { class: "fm-typo-en-body-lg-600" }, Rt = {
|
|
347
355
|
key: 5,
|
|
348
356
|
class: "flex flex-col gap-4"
|
|
349
|
-
},
|
|
357
|
+
}, _t = { class: "fm-typo-en-body-lg-600" }, Ot = {
|
|
350
358
|
key: 6,
|
|
351
359
|
class: "flex flex-col gap-4"
|
|
352
|
-
},
|
|
360
|
+
}, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = { class: "fm-typo-en-body-lg-600" }, qt = {
|
|
353
361
|
key: 7,
|
|
354
362
|
class: "flex flex-col gap-4"
|
|
355
|
-
},
|
|
363
|
+
}, St = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dt = { class: "fm-typo-en-body-lg-600" }, wt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, At = { class: "flex flex-col gap-8" }, Ct = { class: "fm-typo-en-body-lg-600" }, Et = { class: "flex w-full gap-4" }, Nt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Tt = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Pt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, Ft = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, $t = {
|
|
356
364
|
key: 0,
|
|
357
365
|
class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
358
|
-
},
|
|
366
|
+
}, It = {
|
|
359
367
|
key: 1,
|
|
360
368
|
class: "flex-1 xs:w-screen xs:max-w-full"
|
|
361
|
-
},
|
|
369
|
+
}, jt = {
|
|
362
370
|
key: 0,
|
|
363
371
|
class: "flex flex-col items-center gap-8 h-full"
|
|
364
|
-
},
|
|
372
|
+
}, Mt = ["src"], Ut = { class: "fm-typo-en-body-lg-600" }, Kt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, Lt = {
|
|
365
373
|
key: 1,
|
|
366
374
|
class: "px-4 flex flex-col"
|
|
367
|
-
},
|
|
375
|
+
}, Vt = { class: "flex gap-12 content-stretch" }, Bt = {
|
|
368
376
|
class: "flex flex-col w-24",
|
|
369
377
|
name: "circles"
|
|
370
|
-
},
|
|
378
|
+
}, Gt = { class: "flex-1 flex flex-col items-center" }, Ht = { class: "flex-1 flex flex-col items-center" }, zt = {
|
|
371
379
|
class: "py-12 flex flex-col gap-4",
|
|
372
380
|
name: "received-at header"
|
|
373
|
-
},
|
|
381
|
+
}, Yt = { class: "fm-typo-en-body-lg-400" }, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "flex gap-12 content-stretch" }, Wt = {
|
|
374
382
|
class: "flex flex-col w-24",
|
|
375
383
|
name: "circles"
|
|
376
|
-
},
|
|
384
|
+
}, Xt = { class: "flex-1 flex flex-col items-center" }, Zt = {
|
|
377
385
|
class: "py-12 flex flex-col gap-4 flex-1",
|
|
378
386
|
name: "delivery details"
|
|
379
|
-
},
|
|
387
|
+
}, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ss = { class: "flex flex-col gap-4" }, rs = { class: "flex gap-8 xs:flex-col" }, ps = /* @__PURE__ */ Ne({
|
|
380
388
|
__name: "TransferDetails",
|
|
381
389
|
props: {
|
|
382
390
|
poRequest: {},
|
|
@@ -389,10 +397,10 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
389
397
|
},
|
|
390
398
|
emits: ["update:show", "submitted"],
|
|
391
399
|
setup(f, { emit: C }) {
|
|
392
|
-
const h = f, a = C, I =
|
|
400
|
+
const h = f, a = C, I = Be(), T = Ge(), P = je(), z = Me(), { t: m } = De(), K = W(
|
|
393
401
|
() => {
|
|
394
402
|
var t, s, q, p;
|
|
395
|
-
return ((s = (t = h.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : s.internal) === "restaurant" || ((p = (q = h.purchaseOrder) == null ? void 0 : q.supplier) == null ? void 0 : p.internal) === "warehouse" ?
|
|
403
|
+
return ((s = (t = h.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : s.internal) === "restaurant" || ((p = (q = h.purchaseOrder) == null ? void 0 : q.supplier) == null ? void 0 : p.internal) === "warehouse" ? ie.TRANSFER : ie.PURCHASE;
|
|
396
404
|
}
|
|
397
405
|
), o = [
|
|
398
406
|
{
|
|
@@ -403,9 +411,9 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
403
411
|
label: m("inventory.transfer.receiveRequest.details.deliveryHistory"),
|
|
404
412
|
value: "deliveryHistory"
|
|
405
413
|
}
|
|
406
|
-
], i =
|
|
414
|
+
], i = ae(o[0]), l = ae(!1), u = ae(""), j = ae(!0), se = Le(), ce = He(h, "show");
|
|
407
415
|
async function we(t, s, q) {
|
|
408
|
-
|
|
416
|
+
u.value = s, l.value = !0, j.value = !1;
|
|
409
417
|
try {
|
|
410
418
|
await se.processPurchaseOrder(
|
|
411
419
|
{
|
|
@@ -432,7 +440,7 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
432
440
|
type: "error"
|
|
433
441
|
}), console.error("Error when submitting PO operation", s, t, p);
|
|
434
442
|
} finally {
|
|
435
|
-
|
|
443
|
+
u.value = "", l.value = !1, j.value = !0;
|
|
436
444
|
}
|
|
437
445
|
}
|
|
438
446
|
async function L(t) {
|
|
@@ -567,7 +575,7 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
567
575
|
return (t, s) => {
|
|
568
576
|
var R, _;
|
|
569
577
|
const q = H("FmButtonGroup"), p = H("FmChip"), M = H("FmMenuDivider"), E = H("FmCard"), N = H("FmSpacer"), n = H("FmButton"), g = H("FmSideSheet");
|
|
570
|
-
return
|
|
578
|
+
return c(), $(g, {
|
|
571
579
|
header: r(m)("inventory.transfer.receiveRequest.details.title") + ((R = t.purchaseOrder) != null && R.seqNumber ? ` #${(_ = t.purchaseOrder) == null ? void 0 : _.seqNumber}` : ""),
|
|
572
580
|
modelValue: r(ce),
|
|
573
581
|
"onUpdate:modelValue": s[9] || (s[9] = (w) => Te(ce) ? ce.value = w : null),
|
|
@@ -575,10 +583,10 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
575
583
|
"close-button": "",
|
|
576
584
|
"max-width": 500
|
|
577
585
|
}, {
|
|
578
|
-
default:
|
|
586
|
+
default: ne(() => {
|
|
579
587
|
var w;
|
|
580
588
|
return [
|
|
581
|
-
e("div",
|
|
589
|
+
e("div", Je, [
|
|
582
590
|
e("div", null, [
|
|
583
591
|
U(q, {
|
|
584
592
|
items: o,
|
|
@@ -586,70 +594,70 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
586
594
|
"onUpdate:modelValue": s[0] || (s[0] = (v) => i.value = v)
|
|
587
595
|
}, null, 8, ["modelValue"])
|
|
588
596
|
]),
|
|
589
|
-
i.value.value === "overview" ? (
|
|
597
|
+
i.value.value === "overview" ? (c(), y(Q, { key: 0 }, [
|
|
590
598
|
e("div", null, [
|
|
591
599
|
U(E, {
|
|
592
600
|
variant: "outlined",
|
|
593
601
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
594
602
|
}, {
|
|
595
|
-
default:
|
|
603
|
+
default: ne(() => {
|
|
596
604
|
var v, S, D, V, B, G, X, Z, ee, F, me, fe, ve, pe, ye, be, he, ge, Re, _e;
|
|
597
605
|
return [
|
|
598
|
-
e("div",
|
|
599
|
-
e("div",
|
|
606
|
+
e("div", We, [
|
|
607
|
+
e("div", Xe, d(r(m)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
600
608
|
e("div", null, [
|
|
601
609
|
U(p, {
|
|
602
610
|
label: r(m)(`inventory.transfer.status.${(v = t.purchaseOrder) == null ? void 0 : v.status}`),
|
|
603
|
-
class:
|
|
611
|
+
class: oe(`fm-status-badge fm-status-badge-${(D = (S = t.purchaseOrder) == null ? void 0 : S.status) == null ? void 0 : D.toLocaleLowerCase("en-us")}`),
|
|
604
612
|
compact: ""
|
|
605
613
|
}, null, 8, ["label", "class"])
|
|
606
614
|
])
|
|
607
615
|
]),
|
|
608
616
|
U(M),
|
|
609
|
-
e("div",
|
|
610
|
-
e("div",
|
|
611
|
-
e("div",
|
|
612
|
-
e("div",
|
|
617
|
+
e("div", Ze, [
|
|
618
|
+
e("div", et, [
|
|
619
|
+
e("div", tt, [
|
|
620
|
+
e("div", st, d(r(m)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
613
621
|
]),
|
|
614
|
-
e("div",
|
|
622
|
+
e("div", rt, d(r(ue)(((V = t.purchaseOrder) == null ? void 0 : V._id) ?? "")), 1)
|
|
615
623
|
]),
|
|
616
|
-
(B = t.purchaseOrder) != null && B.effectiveAt ? (
|
|
617
|
-
e("div",
|
|
618
|
-
e("div",
|
|
624
|
+
(B = t.purchaseOrder) != null && B.effectiveAt ? (c(), y("div", at, [
|
|
625
|
+
e("div", nt, d(r(m)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
|
|
626
|
+
e("div", ot, d(r(qe)(new Date((G = t.purchaseOrder) == null ? void 0 : G.effectiveAt))), 1)
|
|
619
627
|
])) : O("", !0),
|
|
620
|
-
e("div",
|
|
621
|
-
e("div",
|
|
628
|
+
e("div", lt, [
|
|
629
|
+
e("div", it, d(r(m)("inventory.transfer.receiveRequest.details.type.title")), 1),
|
|
622
630
|
e("div", ut, d(r(m)(
|
|
623
631
|
`inventory.transfer.receiveRequest.details.type.${K.value.toLocaleLowerCase("en-US")}`
|
|
624
632
|
)), 1)
|
|
625
633
|
]),
|
|
626
|
-
(Z = (X = t.purchaseOrder) == null ? void 0 : X.supplier) != null && Z.name ? (
|
|
627
|
-
e("div",
|
|
628
|
-
e("div",
|
|
634
|
+
(Z = (X = t.purchaseOrder) == null ? void 0 : X.supplier) != null && Z.name ? (c(), y("div", ct, [
|
|
635
|
+
e("div", dt, d(r(m)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
636
|
+
e("div", mt, d((F = (ee = t.purchaseOrder) == null ? void 0 : ee.supplier) == null ? void 0 : F.name), 1)
|
|
629
637
|
])) : O("", !0),
|
|
630
|
-
t.transferTo ? (
|
|
631
|
-
e("div",
|
|
632
|
-
e("div",
|
|
638
|
+
t.transferTo ? (c(), y("div", ft, [
|
|
639
|
+
e("div", vt, d(r(m)("inventory.transfer.receiveRequest.details.to")), 1),
|
|
640
|
+
e("div", pt, d(t.transferTo), 1)
|
|
633
641
|
])) : O("", !0),
|
|
634
|
-
r(P).isEnabled ? (
|
|
642
|
+
r(P).isEnabled ? (c(), y("div", yt, [
|
|
635
643
|
s[10] || (s[10] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Subsidiary ", -1)),
|
|
636
|
-
e("div",
|
|
644
|
+
e("div", bt, d(((fe = (me = t.purchaseOrder) == null ? void 0 : me.netSuite) == null ? void 0 : fe.subsidiary.name) || ((pe = (ve = t.poRequest) == null ? void 0 : ve.netSuite) == null ? void 0 : pe.subsidiary.name) || "-"), 1)
|
|
637
645
|
])) : O("", !0),
|
|
638
|
-
r(P).isEnabled ? (
|
|
646
|
+
r(P).isEnabled ? (c(), y("div", ht, [
|
|
639
647
|
s[11] || (s[11] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transfer Order ", -1)),
|
|
640
|
-
e("div",
|
|
648
|
+
e("div", gt, d(((be = (ye = t.purchaseOrder) == null ? void 0 : ye.netSuite) == null ? void 0 : be.id) || ((ge = (he = t.poRequest) == null ? void 0 : he.netSuite) == null ? void 0 : ge.id) || "-"), 1)
|
|
641
649
|
])) : O("", !0),
|
|
642
|
-
r(P).isEnabled ? (
|
|
650
|
+
r(P).isEnabled ? (c(), y("div", Rt, [
|
|
643
651
|
s[12] || (s[12] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Fulfilment IDs ", -1)),
|
|
644
|
-
e("div",
|
|
652
|
+
e("div", _t, d(Ce.value), 1)
|
|
645
653
|
])) : O("", !0),
|
|
646
|
-
(Re = t.purchaseOrder) != null && Re.ref ? (
|
|
647
|
-
e("div",
|
|
648
|
-
e("div",
|
|
654
|
+
(Re = t.purchaseOrder) != null && Re.ref ? (c(), y("div", Ot, [
|
|
655
|
+
e("div", xt, d(r(m)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
656
|
+
e("div", kt, d(t.purchaseOrder.ref), 1)
|
|
649
657
|
])) : O("", !0),
|
|
650
|
-
(_e = t.purchaseOrder) != null && _e.remark ? (
|
|
651
|
-
e("div",
|
|
652
|
-
e("div",
|
|
658
|
+
(_e = t.purchaseOrder) != null && _e.remark ? (c(), y("div", qt, [
|
|
659
|
+
e("div", St, d(r(m)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
660
|
+
e("div", Dt, d(t.purchaseOrder.remark), 1)
|
|
653
661
|
])) : O("", !0)
|
|
654
662
|
])
|
|
655
663
|
];
|
|
@@ -657,33 +665,33 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
657
665
|
_: 1
|
|
658
666
|
})
|
|
659
667
|
]),
|
|
660
|
-
e("div",
|
|
661
|
-
e("div",
|
|
662
|
-
e("div",
|
|
663
|
-
(
|
|
668
|
+
e("div", wt, [
|
|
669
|
+
e("div", At, [
|
|
670
|
+
e("div", Ct, d(Ae.value ? r(m)("inventory.transfer.receiveRequest.details.receivedItems") : r(m)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
|
|
671
|
+
(c(!0), y(Q, null, le(((w = t.purchaseOrder) == null ? void 0 : w.items) ?? [], (v) => (c(), y("div", {
|
|
664
672
|
key: v.code,
|
|
665
673
|
class: "flex flex-col"
|
|
666
674
|
}, [
|
|
667
|
-
e("div",
|
|
668
|
-
e("div",
|
|
669
|
-
e("div",
|
|
675
|
+
e("div", Et, [
|
|
676
|
+
e("div", Nt, d(v.name), 1),
|
|
677
|
+
e("div", Tt, d(r(te)(Ee.value[v.sku._id], !1)) + "/" + d(r(Se)(v.quantity, v.sku.unit, v.measurement)), 1)
|
|
670
678
|
]),
|
|
671
|
-
e("div",
|
|
672
|
-
e("div",
|
|
673
|
-
v.totalCost && r(z).enableTotalCost ? (
|
|
679
|
+
e("div", Pt, [
|
|
680
|
+
e("div", Ft, d(v.code), 1),
|
|
681
|
+
v.totalCost && r(z).enableTotalCost ? (c(), y("div", $t, " (" + d(r(Ie)(v.totalCost)) + ") ", 1)) : O("", !0)
|
|
674
682
|
])
|
|
675
683
|
]))), 128))
|
|
676
684
|
])
|
|
677
685
|
])
|
|
678
686
|
], 64)) : O("", !0),
|
|
679
|
-
i.value.value === "deliveryHistory" ? (
|
|
680
|
-
Y.value.length ? (
|
|
681
|
-
(
|
|
682
|
-
e("div",
|
|
683
|
-
e("div",
|
|
684
|
-
e("div",
|
|
687
|
+
i.value.value === "deliveryHistory" ? (c(), y("div", It, [
|
|
688
|
+
Y.value.length ? (c(), y("div", Lt, [
|
|
689
|
+
(c(!0), y(Q, null, le(Y.value, (v, S) => (c(), y(Q, { key: S }, [
|
|
690
|
+
e("div", Vt, [
|
|
691
|
+
e("div", Bt, [
|
|
692
|
+
e("div", Gt, [
|
|
685
693
|
e("div", {
|
|
686
|
-
class:
|
|
694
|
+
class: oe([
|
|
687
695
|
{
|
|
688
696
|
"bg-fm-color-primary": S !== 0,
|
|
689
697
|
"bg-white": S === 0
|
|
@@ -693,9 +701,9 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
693
701
|
}, null, 2)
|
|
694
702
|
]),
|
|
695
703
|
s[13] || (s[13] = e("div", { class: "h-24 w-24 bg-fm-color-primary rounded-full" }, null, -1)),
|
|
696
|
-
e("div",
|
|
704
|
+
e("div", Ht, [
|
|
697
705
|
e("div", {
|
|
698
|
-
class:
|
|
706
|
+
class: oe([
|
|
699
707
|
{
|
|
700
708
|
"bg-fm-color-primary": S < Y.value.length - 1,
|
|
701
709
|
"bg-white": S >= Y.value.length - 1
|
|
@@ -705,16 +713,16 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
705
713
|
}, null, 2)
|
|
706
714
|
])
|
|
707
715
|
]),
|
|
708
|
-
e("div",
|
|
709
|
-
e("div",
|
|
710
|
-
e("div",
|
|
716
|
+
e("div", zt, [
|
|
717
|
+
e("div", Yt, d(v.header), 1),
|
|
718
|
+
e("div", Qt, d(v.date), 1)
|
|
711
719
|
])
|
|
712
720
|
]),
|
|
713
|
-
e("div",
|
|
714
|
-
e("div",
|
|
715
|
-
e("div",
|
|
721
|
+
e("div", Jt, [
|
|
722
|
+
e("div", Wt, [
|
|
723
|
+
e("div", Xt, [
|
|
716
724
|
e("div", {
|
|
717
|
-
class:
|
|
725
|
+
class: oe([
|
|
718
726
|
{
|
|
719
727
|
"bg-fm-color-primary": S < Y.value.length - 1,
|
|
720
728
|
"bg-white": S >= Y.value.length - 1
|
|
@@ -724,20 +732,20 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
724
732
|
}, null, 2)
|
|
725
733
|
])
|
|
726
734
|
]),
|
|
727
|
-
e("div",
|
|
735
|
+
e("div", Zt, [
|
|
728
736
|
U(E, {
|
|
729
737
|
variant: "outlined",
|
|
730
738
|
class: "py-12 px-16"
|
|
731
739
|
}, {
|
|
732
|
-
default:
|
|
733
|
-
e("div",
|
|
734
|
-
(
|
|
740
|
+
default: ne(() => [
|
|
741
|
+
e("div", es, [
|
|
742
|
+
(c(!0), y(Q, null, le(v.info, (D, V) => (c(), y("div", {
|
|
735
743
|
key: V,
|
|
736
744
|
class: "flex flex-col gap-4"
|
|
737
745
|
}, [
|
|
738
|
-
e("div",
|
|
739
|
-
e("div",
|
|
740
|
-
(
|
|
746
|
+
e("div", ts, d(D == null ? void 0 : D.label), 1),
|
|
747
|
+
e("div", ss, [
|
|
748
|
+
(c(!0), y(Q, null, le(D == null ? void 0 : D.values, (B, G) => (c(), y("div", {
|
|
741
749
|
key: G,
|
|
742
750
|
class: "fm-typo-en-body-lg-600"
|
|
743
751
|
}, d(B), 1))), 128))
|
|
@@ -750,16 +758,16 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
750
758
|
])
|
|
751
759
|
])
|
|
752
760
|
], 64))), 128))
|
|
753
|
-
])) : (
|
|
761
|
+
])) : (c(), y("div", jt, [
|
|
754
762
|
U(N),
|
|
755
763
|
e("div", null, [
|
|
756
764
|
e("img", {
|
|
757
|
-
src: r(
|
|
765
|
+
src: r(ze),
|
|
758
766
|
alt: "List is empty"
|
|
759
|
-
}, null, 8,
|
|
767
|
+
}, null, 8, Mt)
|
|
760
768
|
]),
|
|
761
|
-
e("div",
|
|
762
|
-
e("div",
|
|
769
|
+
e("div", Ut, d(r(m)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
|
|
770
|
+
e("div", Kt, d(r(m)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
|
|
763
771
|
U(N),
|
|
764
772
|
U(N)
|
|
765
773
|
]))
|
|
@@ -767,62 +775,62 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
767
775
|
])
|
|
768
776
|
];
|
|
769
777
|
}),
|
|
770
|
-
"side-sheet-footer":
|
|
778
|
+
"side-sheet-footer": ne(() => {
|
|
771
779
|
var w, v, S, D, V, B, G, X, Z, ee;
|
|
772
780
|
return [
|
|
773
|
-
e("div",
|
|
774
|
-
((w = t.purchaseOrder) == null ? void 0 : w.status) === r(A).enum.DRAFT && K.value === r(
|
|
781
|
+
e("div", rs, [
|
|
782
|
+
((w = t.purchaseOrder) == null ? void 0 : w.status) === r(A).enum.DRAFT && K.value === r(ie).PURCHASE ? (c(), $(n, {
|
|
775
783
|
key: 0,
|
|
776
784
|
label: r(m)("inventory.transfer.receiveRequest.actions.confirmDraft"),
|
|
777
785
|
onClick: s[1] || (s[1] = (F) => L("confirmDraft")),
|
|
778
|
-
loading:
|
|
779
|
-
disabled:
|
|
786
|
+
loading: u.value === "confirmDraft",
|
|
787
|
+
disabled: u.value !== "confirmDraft" && l.value
|
|
780
788
|
}, null, 8, ["label", "loading", "disabled"])) : O("", !0),
|
|
781
|
-
((v = t.purchaseOrder) == null ? void 0 : v.status) === r(A).enum.DRAFT && K.value === r(
|
|
789
|
+
((v = t.purchaseOrder) == null ? void 0 : v.status) === r(A).enum.DRAFT && K.value === r(ie).TRANSFER ? (c(), $(n, {
|
|
782
790
|
key: 1,
|
|
783
791
|
label: r(m)("inventory.transfer.receiveRequest.actions.submitRequest"),
|
|
784
792
|
onClick: s[2] || (s[2] = (F) => L("submitRequest")),
|
|
785
|
-
loading:
|
|
786
|
-
disabled:
|
|
793
|
+
loading: u.value === "submitRequest",
|
|
794
|
+
disabled: u.value !== "submitRequest" && l.value
|
|
787
795
|
}, null, 8, ["label", "loading", "disabled"])) : O("", !0),
|
|
788
|
-
((S = t.purchaseOrder) == null ? void 0 : S.status) === r(A).enum.DRAFT ? (
|
|
796
|
+
((S = t.purchaseOrder) == null ? void 0 : S.status) === r(A).enum.DRAFT ? (c(), $(n, {
|
|
789
797
|
key: 2,
|
|
790
798
|
label: r(m)("inventory.transfer.receiveRequest.actions.cancelDraft"),
|
|
791
799
|
onClick: s[3] || (s[3] = (F) => L("cancelDraft")),
|
|
792
|
-
loading:
|
|
793
|
-
disabled:
|
|
800
|
+
loading: u.value === "cancelDraft",
|
|
801
|
+
disabled: u.value !== "cancelDraft" && l.value,
|
|
794
802
|
variant: "destructive"
|
|
795
803
|
}, null, 8, ["label", "loading", "disabled"])) : O("", !0),
|
|
796
|
-
((D = t.purchaseOrder) == null ? void 0 : D.status) === r(A).enum.RECEIVING ? (
|
|
804
|
+
((D = t.purchaseOrder) == null ? void 0 : D.status) === r(A).enum.RECEIVING ? (c(), $(n, {
|
|
797
805
|
key: 3,
|
|
798
806
|
label: r(m)("inventory.transfer.receiveRequest.actions.completeReceive"),
|
|
799
807
|
onClick: s[4] || (s[4] = (F) => L("completeReceive")),
|
|
800
|
-
loading:
|
|
801
|
-
disabled:
|
|
808
|
+
loading: u.value === "completeReceive",
|
|
809
|
+
disabled: u.value !== "completeReceive" && l.value
|
|
802
810
|
}, null, 8, ["label", "loading", "disabled"])) : O("", !0),
|
|
803
|
-
t.canResubmit ? (
|
|
811
|
+
t.canResubmit ? (c(), $(n, {
|
|
804
812
|
key: 4,
|
|
805
813
|
label: r(m)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
|
|
806
814
|
onClick: s[5] || (s[5] = (F) => L("submitRequest")),
|
|
807
|
-
loading:
|
|
808
|
-
disabled:
|
|
815
|
+
loading: u.value === "submitRequest",
|
|
816
|
+
disabled: u.value !== "submitRequest" && l.value
|
|
809
817
|
}, null, 8, ["label", "loading", "disabled"])) : O("", !0),
|
|
810
|
-
(((V = t.purchaseOrder) == null ? void 0 : V.status) === r(A).enum.REQUESTING || ((B = t.purchaseOrder) == null ? void 0 : B.status) === r(A).enum.PROCESSING) && t.canApprove ? (
|
|
818
|
+
(((V = t.purchaseOrder) == null ? void 0 : V.status) === r(A).enum.REQUESTING || ((B = t.purchaseOrder) == null ? void 0 : B.status) === r(A).enum.PROCESSING) && t.canApprove ? (c(), $(n, {
|
|
811
819
|
key: 5,
|
|
812
820
|
label: r(m)("inventory.transfer.approval.actions.approveRequest"),
|
|
813
821
|
onClick: s[6] || (s[6] = (F) => L("approveRequest")),
|
|
814
|
-
loading:
|
|
815
|
-
disabled:
|
|
822
|
+
loading: u.value === "approveRequest",
|
|
823
|
+
disabled: u.value !== "approveRequest" && l.value
|
|
816
824
|
}, null, 8, ["label", "loading", "disabled"])) : O("", !0),
|
|
817
|
-
((G = t.purchaseOrder) == null ? void 0 : G.status) === r(A).enum.REQUESTING && t.canApprove ? (
|
|
825
|
+
((G = t.purchaseOrder) == null ? void 0 : G.status) === r(A).enum.REQUESTING && t.canApprove ? (c(), $(n, {
|
|
818
826
|
key: 6,
|
|
819
827
|
label: r(m)("inventory.transfer.approval.actions.rejectRequest"),
|
|
820
828
|
onClick: s[7] || (s[7] = (F) => L("rejectRequest")),
|
|
821
|
-
loading:
|
|
822
|
-
disabled:
|
|
829
|
+
loading: u.value === "rejectRequest",
|
|
830
|
+
disabled: u.value !== "rejectRequest" && l.value,
|
|
823
831
|
variant: "destructive"
|
|
824
832
|
}, null, 8, ["label", "loading", "disabled"])) : O("", !0),
|
|
825
|
-
((X = t.purchaseOrder) == null ? void 0 : X.status) !== r(A).enum.COMPLETE && ((Z = t.purchaseOrder) == null ? void 0 : Z.status) !== r(A).enum.CANCEL && (((ee = t.purchaseOrder) == null ? void 0 : ee.status) !== r(A).enum.REQUESTING || t.canApprove) ? (
|
|
833
|
+
((X = t.purchaseOrder) == null ? void 0 : X.status) !== r(A).enum.COMPLETE && ((Z = t.purchaseOrder) == null ? void 0 : Z.status) !== r(A).enum.CANCEL && (((ee = t.purchaseOrder) == null ? void 0 : ee.status) !== r(A).enum.REQUESTING || t.canApprove) ? (c(), $(n, {
|
|
826
834
|
key: 7,
|
|
827
835
|
label: r(m)("common.close"),
|
|
828
836
|
variant: "tertiary",
|
|
@@ -837,7 +845,7 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
|
|
|
837
845
|
}
|
|
838
846
|
});
|
|
839
847
|
export {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
848
|
+
ps as _,
|
|
849
|
+
Ye as g,
|
|
850
|
+
vs as u
|
|
843
851
|
};
|