@feedmepos/mf-inventory-portal 1.2.28 → 1.2.30-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-BpTp4tTy.js → App-kX4bqoEe.js} +2 -2
- package/dist/{ApprovalView-BiCWMNPZ.js → ApprovalView-DCNKqVE2.js} +2 -2
- package/dist/{BindingsDialog-AwpEPK6d.js → BindingsDialog-d7f1f8gf.js} +2 -2
- package/dist/{BindingsPicker-BRPue7Be.js → BindingsPicker-2HJOx0QW.js} +1 -1
- package/dist/{BindingsTable-9ERKT3nZ.js → BindingsTable-CPAjxOZG.js} +1 -1
- package/dist/{ClosingDraftView-DIvddbOy.js → ClosingDraftView-CUng41eo.js} +172 -171
- package/dist/{ClosingHistoryView-BYv0GXGj.js → ClosingHistoryView-CcGc2NwU.js} +2 -2
- package/dist/ClosingTemplateView-D8IAdhDb.js +2041 -0
- package/dist/{DeliveryOrderPrintPreview-BgCGQYlJ.js → DeliveryOrderPrintPreview-BsM-CCc5.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cl-BXK9c.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-cuggJ5Xd.js} +3 -3
- package/dist/{FmMultiselectDialog-A5K1fbiJ.js → FmMultiselectDialog-BGbrqXUF.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D57Jmy3H.js → FmUnitInput.vue_vue_type_script_setup_true_lang-isogcN1O.js} +1 -1
- package/dist/{ImportView-BCtms71i.js → ImportView-wAVrMEwL.js} +2 -2
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B3DFrMFL.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVUF4I2Q.js} +1 -1
- package/dist/{IngredientGroupView-CAewASse.js → IngredientGroupView-BZczeXdL.js} +2 -2
- package/dist/{IngredientsView-DtJ1dBPf.js → IngredientsView-D5N5Y1ZY.js} +7 -7
- package/dist/{IntegrationView-CaBB8Izb.js → IntegrationView-Hrslmuc1.js} +3 -3
- package/dist/{InventoryBindingForm-BU7kUZSz.js → InventoryBindingForm-DH6wgxOG.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ds__y-Lo.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Drr5vD6f.js} +3 -3
- package/dist/{InventoryBindingSummary-XFDK1dPw.js → InventoryBindingSummary-BU1ehpQZ.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CMgRJ85E.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1ueC4GfZ.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-6I4HFx0j.js → PremiumBadge.vue_vue_type_script_setup_true_lang-FHcU1zZt.js} +1 -1
- package/dist/{PublishView-CBEuARad.js → PublishView-CQtj0f31.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-THSwoyZV.js → PurchaseOrderPrintPreview-BQyXtHST.js} +1 -1
- package/dist/{ReceiveRequestView-D4E0DHhj.js → ReceiveRequestView-Dm-h_SrY.js} +222 -222
- package/dist/{RecipeView-DrJOwiZG.js → RecipeView-DNNRvr1w.js} +3 -3
- package/dist/{StockView-DdhoiUs5.js → StockView-CaOm5BCx.js} +8 -8
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-ze5NJ_-a.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Z91XRszD.js} +1 -1
- package/dist/{SupplierView-CBZEt5ub.js → SupplierView-JSII9qwL.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BWPYiDXh.js → TransferDetails.vue_vue_type_script_setup_true_lang-Mehd4lGs.js} +5 -5
- package/dist/{TransferTemplateView-BPKx5laO.js → TransferTemplateView-DyCpNKJd.js} +7 -7
- package/dist/{UnitView-Cd9dZhGB.js → UnitView-CqN7mlJ2.js} +3 -3
- package/dist/{WarehouseView-Cycp5mC8.js → WarehouseView-gFWD-m8e.js} +1 -1
- package/dist/{app-DzPAqMfV.js → app-CnQ49Lyb.js} +22103 -21569
- package/dist/app.d.ts +21 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-B6b_BCrz.js → decimal-DfF_g5rc.js} +1 -1
- package/dist/{format-unit-display-D6UHEBQy.js → format-unit-display-ivAljvlo.js} +3 -3
- package/dist/{import-export.helper-D7FUv1ZN.js → import-export.helper-B2MWv9v7.js} +1 -1
- package/dist/{index-CqxJHYsC.js → index-BbhuWHyh.js} +1 -1
- package/dist/{index-7Gffcntc.js → index-DZaT0ZaL.js} +1 -1
- package/dist/{purchase-order-template-CmXUb_MT.js → purchase-order-template-DdybMC_P.js} +1 -1
- package/dist/{stock-BYRT4p1b.js → stock-BYagIdsj.js} +1 -1
- package/dist/{stock-GesfiBWR.js → stock-V4ciPiBe.js} +2 -2
- package/dist/{supplier-LrosKW2Q.js → supplier-CgtB1I9I.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BhVF0zwr.js → use-ingredient-select-dialog-BIQovyZX.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CApue-hU.js → use-inventory-binding-dialog-DyjicXgc.js} +1 -1
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -0
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -0
- package/package.json +4 -4
- package/dist/ClosingTemplateView-Co9-71Qd.js +0 -2001
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { reactive as gt, onMounted as Ke, watch as be, computed as
|
|
2
|
-
import { b as
|
|
3
|
-
import { u as ts, P as Ze, a as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { reactive as gt, onMounted as Ke, watch as be, computed as U, h as L, defineComponent as ce, openBlock as w, createElementBlock as T, Fragment as de, renderList as Se, createElementVNode as n, toDisplayString as M, unref as s, resolveComponent as $, createVNode as y, withCtx as A, createCommentVNode as j, ref as q, createBlock as W, normalizeClass as G, normalizeStyle as _t, createTextVNode as Te, nextTick as It, mergeProps as Je, isRef as xe, createSlots as $t, Teleport as Tt, normalizeProps as Dt, guardReactiveProps as Pt } from "vue";
|
|
2
|
+
import { b as Ne, $ as Ge, c as We, r as Me, n as Ce, af as Ye, a0 as Vt, aB as Rt, A as qe, M as At, s as ht, am as et, L as fe, ay as Et, aJ as tt, aK as Ot, aL as Mt, ac as qt, aM as Nt, Q as kt, u as st, a as ot, aN as Ut, aO as Bt, ae as zt, a6 as Lt, aP as Ht, K as xt, x as jt, e as Oe, aQ as Qt, as as Yt, C as Kt, E as Xt, m as Qe, ag as ft, G as Zt, N as Jt, H as Gt, I as Wt, J as es, a2 as vt } from "./app-CnQ49Lyb.js";
|
|
3
|
+
import { u as ts, P as Ze, a as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Mehd4lGs.js";
|
|
4
|
+
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-FHcU1zZt.js";
|
|
5
5
|
import { u as is } from "./useTabStorage-BkIVScW_.js";
|
|
6
6
|
import { useBreakpoints as at, components as ye, FmButtonVariant as us, useSnackbar as De, useDialog as ds, useProxiedModel as St } from "@feedmepos/ui-library";
|
|
7
|
-
import { P as ae, u as wt } from "./format-unit-display-
|
|
8
|
-
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { c as $e, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { P as ae, u as wt } from "./format-unit-display-ivAljvlo.js";
|
|
8
|
+
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-isogcN1O.js";
|
|
9
|
+
import { c as $e, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-cuggJ5Xd.js";
|
|
10
10
|
import { useI18n as ge } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as nt } from "./supplier-
|
|
11
|
+
import "./FmMultiselectDialog-BGbrqXUF.js";
|
|
12
|
+
import { u as nt } from "./supplier-CgtB1I9I.js";
|
|
13
13
|
import { _ as bs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
14
|
var te = /* @__PURE__ */ ((g) => (g.Code = "Code", g.Name = "Name", g.TemplateName = "TemplateName", g.Amount = "Amount", g.Cost = "Cost", g.TotalCost = "TotalCost", g.Delete = "Delete", g))(te || {});
|
|
15
15
|
const gs = () => (ge(), L(
|
|
@@ -21,7 +21,7 @@ const gs = () => (ge(), L(
|
|
|
21
21
|
`Total (${ht()})`
|
|
22
22
|
));
|
|
23
23
|
function _s(g) {
|
|
24
|
-
const { t:
|
|
24
|
+
const { t: C } = ge(), r = gt({}), { breakpoints: p } = at(), x = We(), t = Ne();
|
|
25
25
|
Ke(() => {
|
|
26
26
|
for (const v of g.items) {
|
|
27
27
|
if (!v.totalCost)
|
|
@@ -52,13 +52,13 @@ function _s(g) {
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
function f(v) {
|
|
55
|
-
var u, k, a, i, h, _,
|
|
56
|
-
return !!(((k = (u = v.defaultCost) == null ? void 0 : u.costPerUnit) == null ? void 0 : k.amount) ?? ((
|
|
55
|
+
var u, k, a, i, h, _, S;
|
|
56
|
+
return !!(((k = (u = v.defaultCost) == null ? void 0 : u.costPerUnit) == null ? void 0 : k.amount) ?? ((S = (_ = (h = (i = (a = g.supplier) == null ? void 0 : a.supplyItems) == null ? void 0 : i.find((l) => l.skuId === v._id)) == null ? void 0 : h.defaultCost) == null ? void 0 : _.costPerUnit) == null ? void 0 : S.amount));
|
|
57
57
|
}
|
|
58
58
|
const F = [
|
|
59
59
|
{
|
|
60
60
|
id: "Code",
|
|
61
|
-
header: () =>
|
|
61
|
+
header: () => C("inventory.transfer.form.items.table.Code"),
|
|
62
62
|
accessorKey: "code",
|
|
63
63
|
size: 200,
|
|
64
64
|
cell(v) {
|
|
@@ -95,7 +95,7 @@ function _s(g) {
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
id: "Name",
|
|
98
|
-
header: () =>
|
|
98
|
+
header: () => C("inventory.transfer.form.items.table.Name"),
|
|
99
99
|
minSize: 300,
|
|
100
100
|
cell(v) {
|
|
101
101
|
const e = v.row.original;
|
|
@@ -131,7 +131,7 @@ function _s(g) {
|
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
id: "TemplateName",
|
|
134
|
-
header: () =>
|
|
134
|
+
header: () => C("inventory.transfer.form.items.table.Name"),
|
|
135
135
|
minSize: 300,
|
|
136
136
|
enableSorting: !1,
|
|
137
137
|
cell(v) {
|
|
@@ -165,11 +165,11 @@ function _s(g) {
|
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
id: "Amount",
|
|
168
|
-
header: () =>
|
|
168
|
+
header: () => C("inventory.transfer.form.items.table.Amount"),
|
|
169
169
|
minSize: 200,
|
|
170
170
|
cell(v) {
|
|
171
|
-
var i, h, _,
|
|
172
|
-
const e = v.row.original, u = (i = g.forecastAmounts) == null ? void 0 : i.find((c) => c.skuId === e.sku._id), k = u ? u.helperState === "error" ? `Predicted: ${u.amount} (out of range)` : `Predicted: ${u.amount}` : void 0, a = (
|
|
171
|
+
var i, h, _, S, l;
|
|
172
|
+
const e = v.row.original, u = (i = g.forecastAmounts) == null ? void 0 : i.find((c) => c.skuId === e.sku._id), k = u ? u.helperState === "error" ? `Predicted: ${u.amount} (out of range)` : `Predicted: ${u.amount}` : void 0, a = (S = (_ = (h = g.template) == null ? void 0 : h.purchaseOrder) == null ? void 0 : _.items) == null ? void 0 : S.find(
|
|
173
173
|
(c) => c.sku._id === e.sku._id
|
|
174
174
|
);
|
|
175
175
|
return L(cs, {
|
|
@@ -280,7 +280,7 @@ function _s(g) {
|
|
|
280
280
|
g.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-neutral-gray-400"
|
|
281
281
|
]
|
|
282
282
|
},
|
|
283
|
-
|
|
283
|
+
C("inventory.transfer.form.items.autoCalculated")
|
|
284
284
|
),
|
|
285
285
|
i ? L(
|
|
286
286
|
"span",
|
|
@@ -392,7 +392,7 @@ function _s(g) {
|
|
|
392
392
|
}
|
|
393
393
|
];
|
|
394
394
|
return {
|
|
395
|
-
columnDefs:
|
|
395
|
+
columnDefs: U(() => x.enableTotalCost && g.transferType === ae.PURCHASE ? F : F.filter(
|
|
396
396
|
(v) => v.id !== "Cost"
|
|
397
397
|
/* Cost */
|
|
398
398
|
))
|
|
@@ -404,22 +404,22 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
404
404
|
prices: {}
|
|
405
405
|
},
|
|
406
406
|
setup(g) {
|
|
407
|
-
const
|
|
407
|
+
const C = nt();
|
|
408
408
|
function r(p) {
|
|
409
|
-
return
|
|
409
|
+
return C.suppliers.find((x) => x._id === p);
|
|
410
410
|
}
|
|
411
|
-
return (p, x) => (
|
|
412
|
-
(
|
|
411
|
+
return (p, x) => (w(), T("div", hs, [
|
|
412
|
+
(w(!0), T(de, null, Se(Object.keys(p.prices), (t) => {
|
|
413
413
|
var f;
|
|
414
|
-
return
|
|
414
|
+
return w(), T("div", {
|
|
415
415
|
key: t,
|
|
416
416
|
class: "flex items-center gap-12 xs:gap-4 xs:flex-wrap w-full"
|
|
417
417
|
}, [
|
|
418
418
|
n("div", ks, M((f = r(t)) == null ? void 0 : f.name), 1),
|
|
419
419
|
n("div", xs, [
|
|
420
|
-
(
|
|
420
|
+
(w(!0), T(de, null, Se(p.prices[t].slice(0, 3), (F) => {
|
|
421
421
|
var I;
|
|
422
|
-
return
|
|
422
|
+
return w(), T("div", {
|
|
423
423
|
key: F.date,
|
|
424
424
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
425
425
|
}, [
|
|
@@ -453,11 +453,11 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
453
453
|
row: {}
|
|
454
454
|
},
|
|
455
455
|
setup(g) {
|
|
456
|
-
const { t:
|
|
456
|
+
const { t: C } = ge();
|
|
457
457
|
return (r, p) => {
|
|
458
|
-
var f, F, I, v, e, u, k, a, i, h, _,
|
|
458
|
+
var f, F, I, v, e, u, k, a, i, h, _, S, l, c, D, B, Q, Y, K, O, N, V, d, b, R, X, Z;
|
|
459
459
|
const x = $("FmLabel"), t = $("FmSpacer");
|
|
460
|
-
return
|
|
460
|
+
return w(), T("div", ws, [
|
|
461
461
|
n("div", Fs, [
|
|
462
462
|
n("div", Is, [
|
|
463
463
|
n("span", $s, " (" + M(r.row.original.sku.code) + ") ", 1),
|
|
@@ -473,7 +473,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
473
473
|
n("div", Ds, [
|
|
474
474
|
n("div", Ps, [
|
|
475
475
|
y(x, {
|
|
476
|
-
label: s(
|
|
476
|
+
label: s(C)(`inventory.transfer.form.items.table.${s(te).Code}`)
|
|
477
477
|
}, null, 8, ["label"]),
|
|
478
478
|
y(s(fe), {
|
|
479
479
|
render: (a = (k = (u = r.cellByColId[s(te).Code]) == null ? void 0 : u.column) == null ? void 0 : k.columnDef) == null ? void 0 : a.cell,
|
|
@@ -483,10 +483,10 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
483
483
|
]),
|
|
484
484
|
n("div", Vs, [
|
|
485
485
|
y(x, {
|
|
486
|
-
label: s(
|
|
486
|
+
label: s(C)(`inventory.transfer.form.items.table.${s(te).Name}`)
|
|
487
487
|
}, null, 8, ["label"]),
|
|
488
488
|
y(s(fe), {
|
|
489
|
-
render: (l = (
|
|
489
|
+
render: (l = (S = (_ = r.cellByColId[s(te).Name]) == null ? void 0 : _.column) == null ? void 0 : S.columnDef) == null ? void 0 : l.cell,
|
|
490
490
|
props: (D = (c = r.cellByColId[s(te).Name]) == null ? void 0 : c.getContext) == null ? void 0 : D.call(c)
|
|
491
491
|
}, null, 8, ["render", "props"]),
|
|
492
492
|
p[1] || (p[1] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -495,7 +495,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
495
495
|
n("div", Rs, [
|
|
496
496
|
n("div", As, [
|
|
497
497
|
y(x, {
|
|
498
|
-
label: s(
|
|
498
|
+
label: s(C)(`inventory.transfer.form.items.table.${s(te).Amount}`)
|
|
499
499
|
}, null, 8, ["label"]),
|
|
500
500
|
y(s(fe), {
|
|
501
501
|
render: (Y = (Q = (B = r.cellByColId[s(te).Amount]) == null ? void 0 : B.column) == null ? void 0 : Q.columnDef) == null ? void 0 : Y.cell,
|
|
@@ -503,23 +503,23 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
503
503
|
}, null, 8, ["render", "props"]),
|
|
504
504
|
p[2] || (p[2] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
505
505
|
]),
|
|
506
|
-
r.cellByColId[s(te).Cost] ? (
|
|
506
|
+
r.cellByColId[s(te).Cost] ? (w(), T("div", Es, [
|
|
507
507
|
y(Ct, { "z-index": 50 }, {
|
|
508
508
|
default: A(() => [
|
|
509
509
|
y(x, {
|
|
510
|
-
label: s(
|
|
510
|
+
label: s(C)(`inventory.transfer.form.items.table.${s(te).Cost}2`)
|
|
511
511
|
}, null, 8, ["label"])
|
|
512
512
|
]),
|
|
513
513
|
_: 1
|
|
514
514
|
}),
|
|
515
515
|
y(s(fe), {
|
|
516
|
-
render: (d = (V = (
|
|
516
|
+
render: (d = (V = (N = r.cellByColId[s(te).Cost]) == null ? void 0 : N.column) == null ? void 0 : V.columnDef) == null ? void 0 : d.cell,
|
|
517
517
|
props: (R = (b = r.cellByColId[s(te).Cost]) == null ? void 0 : b.getContext) == null ? void 0 : R.call(b)
|
|
518
518
|
}, null, 8, ["render", "props"]),
|
|
519
519
|
p[3] || (p[3] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
520
520
|
])) : j("", !0)
|
|
521
521
|
]),
|
|
522
|
-
r.showComparePrice && Object.keys(r.comparePriceBySku[(X = r.row.original.sku) == null ? void 0 : X._id] ?? {}).length > 0 ? (
|
|
522
|
+
r.showComparePrice && Object.keys(r.comparePriceBySku[(X = r.row.original.sku) == null ? void 0 : X._id] ?? {}).length > 0 ? (w(), T(de, { key: 0 }, [
|
|
523
523
|
y(t, { class: "h-8" }),
|
|
524
524
|
y(Ft, {
|
|
525
525
|
prices: r.comparePriceBySku[(Z = r.row.original.sku) == null ? void 0 : Z._id]
|
|
@@ -530,7 +530,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
530
530
|
}
|
|
531
531
|
});
|
|
532
532
|
function Ms(g) {
|
|
533
|
-
const
|
|
533
|
+
const C = U({
|
|
534
534
|
get() {
|
|
535
535
|
const t = g.getEffectiveAt();
|
|
536
536
|
return t ? new Date(t) : null;
|
|
@@ -538,30 +538,30 @@ function Ms(g) {
|
|
|
538
538
|
set(t) {
|
|
539
539
|
g.setEffectiveAt((t == null ? void 0 : t.toISOString()) ?? null);
|
|
540
540
|
}
|
|
541
|
-
}), r =
|
|
541
|
+
}), r = U({
|
|
542
542
|
get() {
|
|
543
|
-
return !!
|
|
543
|
+
return !!C.value;
|
|
544
544
|
},
|
|
545
545
|
set(t) {
|
|
546
|
-
t ?
|
|
546
|
+
t ? C.value = /* @__PURE__ */ new Date() : C.value = null;
|
|
547
547
|
}
|
|
548
|
-
}), p =
|
|
548
|
+
}), p = U({
|
|
549
549
|
get() {
|
|
550
|
-
return
|
|
550
|
+
return C.value === null ? "" : et(C.value);
|
|
551
551
|
},
|
|
552
552
|
set(t) {
|
|
553
|
-
t ?
|
|
553
|
+
t ? C.value = /* @__PURE__ */ new Date(`${t} ${x.value}`) : C.value = null;
|
|
554
554
|
}
|
|
555
|
-
}), x =
|
|
555
|
+
}), x = U({
|
|
556
556
|
get() {
|
|
557
|
-
return
|
|
557
|
+
return C.value === null ? "" : Et(C.value);
|
|
558
558
|
},
|
|
559
559
|
set(t) {
|
|
560
|
-
t ?
|
|
560
|
+
t ? C.value = /* @__PURE__ */ new Date(`${p.value} ${t}`) : C.value = null;
|
|
561
561
|
}
|
|
562
562
|
});
|
|
563
563
|
return {
|
|
564
|
-
backdatePo:
|
|
564
|
+
backdatePo: C,
|
|
565
565
|
backdateSwitch: r,
|
|
566
566
|
backdateModel: p,
|
|
567
567
|
backdateTimeModel: x
|
|
@@ -573,7 +573,7 @@ const qs = {
|
|
|
573
573
|
viewBox: "0 0 24 24",
|
|
574
574
|
fill: "none",
|
|
575
575
|
xmlns: "http://www.w3.org/2000/svg"
|
|
576
|
-
},
|
|
576
|
+
}, Ns = ["fill"], Us = ["fill"], Bs = ["stroke"], zs = ["stroke"], Ls = /* @__PURE__ */ ce({
|
|
577
577
|
__name: "SparkIcon",
|
|
578
578
|
props: {
|
|
579
579
|
size: {
|
|
@@ -586,15 +586,15 @@ const qs = {
|
|
|
586
586
|
}
|
|
587
587
|
},
|
|
588
588
|
setup(g) {
|
|
589
|
-
return (
|
|
589
|
+
return (C, r) => (w(), T("svg", qs, [
|
|
590
590
|
n("path", {
|
|
591
591
|
d: "M7.6 7.6C8.17076 6.94229 8.5 5.5 8.5 5.5C8.5 5.5 8.81356 6.87361 9.35714 7.5C9.92948 8.15953 11.5 8.5 11.5 8.5C11.5 8.5 9.92948 8.69761 9.35714 9.35714C8.81356 9.98354 8.5 11.5 8.5 11.5C8.5 11.5 8.32076 10.1888 7.75 9.59091C7.14905 8.96136 5.5 8.5 5.5 8.5C5.5 8.5 6.99905 8.29251 7.6 7.6Z",
|
|
592
592
|
fill: g.color
|
|
593
|
-
}, null, 8,
|
|
593
|
+
}, null, 8, Ns),
|
|
594
594
|
n("path", {
|
|
595
595
|
d: "M12.2 12.2C13.3415 10.8846 14 8 14 8C14 8 14.6271 10.7472 15.7143 12C16.859 13.3191 20 14 20 14C20 14 16.859 14.3952 15.7143 15.7143C14.6271 16.9671 14 20 14 20C14 20 13.6415 17.3777 12.5 16.1818C11.2981 14.9227 8 14 8 14C8 14 10.9981 13.585 12.2 12.2Z",
|
|
596
596
|
fill: g.color
|
|
597
|
-
}, null, 8,
|
|
597
|
+
}, null, 8, Us),
|
|
598
598
|
n("path", {
|
|
599
599
|
d: "M7.6 7.6C8.17076 6.94229 8.5 5.5 8.5 5.5C8.5 5.5 8.81356 6.87361 9.35714 7.5C9.92948 8.15953 11.5 8.5 11.5 8.5C11.5 8.5 9.92948 8.69761 9.35714 9.35714C8.81356 9.98354 8.5 11.5 8.5 11.5C8.5 11.5 8.32076 10.1888 7.75 9.59091C7.14905 8.96136 5.5 8.5 5.5 8.5C5.5 8.5 6.99905 8.29251 7.6 7.6Z",
|
|
600
600
|
stroke: g.color,
|
|
@@ -620,8 +620,8 @@ const qs = {
|
|
|
620
620
|
templateItems: {}
|
|
621
621
|
},
|
|
622
622
|
emits: ["update:poItems", "update:forecastAmounts"],
|
|
623
|
-
setup(g, { emit:
|
|
624
|
-
const r = g, p =
|
|
623
|
+
setup(g, { emit: C }) {
|
|
624
|
+
const r = g, p = C, x = q(!1), t = q(7), f = ns(), F = De(), { t: I } = ge();
|
|
625
625
|
function v(a, i, h) {
|
|
626
626
|
return i != null && a < i && (a = i), h != null && a > h && (a = h), a;
|
|
627
627
|
}
|
|
@@ -634,19 +634,19 @@ const qs = {
|
|
|
634
634
|
code: i,
|
|
635
635
|
name: h,
|
|
636
636
|
baseAmount: _,
|
|
637
|
-
measurement:
|
|
637
|
+
measurement: S,
|
|
638
638
|
min: l,
|
|
639
639
|
max: c
|
|
640
640
|
}) {
|
|
641
|
-
if (
|
|
642
|
-
const D =
|
|
641
|
+
if (S) {
|
|
642
|
+
const D = S.conversion.amount;
|
|
643
643
|
let B = Math.ceil(_ / D);
|
|
644
644
|
return B = v(B, l, c), {
|
|
645
645
|
sku: a,
|
|
646
646
|
code: i,
|
|
647
647
|
name: h,
|
|
648
648
|
quantity: { amount: B, precision: 0 },
|
|
649
|
-
measurement:
|
|
649
|
+
measurement: S
|
|
650
650
|
};
|
|
651
651
|
} else {
|
|
652
652
|
const D = Math.ceil(v(_, l, c));
|
|
@@ -670,40 +670,40 @@ const qs = {
|
|
|
670
670
|
});
|
|
671
671
|
return;
|
|
672
672
|
}
|
|
673
|
-
const i = r.templateItems.reduce((_,
|
|
673
|
+
const i = r.templateItems.reduce((_, S) => {
|
|
674
674
|
var B;
|
|
675
|
-
const l = (B = r.poItems) == null ? void 0 : B.find((Q) => Q.sku._id ===
|
|
675
|
+
const l = (B = r.poItems) == null ? void 0 : B.find((Q) => Q.sku._id === S.sku._id), c = a.find((Q) => Q.id === S.sku._id);
|
|
676
676
|
if (!c)
|
|
677
677
|
return l && _.push(l), _;
|
|
678
678
|
if (!r.templateId && c.amount <= 0) return _;
|
|
679
679
|
const D = c.amount ?? e(l == null ? void 0 : l.quantity) ?? 0;
|
|
680
680
|
return _.push(
|
|
681
681
|
u({
|
|
682
|
-
sku:
|
|
683
|
-
code:
|
|
684
|
-
name:
|
|
682
|
+
sku: S.sku,
|
|
683
|
+
code: S.code,
|
|
684
|
+
name: S.name,
|
|
685
685
|
baseAmount: D,
|
|
686
|
-
measurement:
|
|
687
|
-
min: e(
|
|
688
|
-
max: e(
|
|
686
|
+
measurement: S.measurement || null,
|
|
687
|
+
min: e(S.minimumQuantity),
|
|
688
|
+
max: e(S.maximumQuantity)
|
|
689
689
|
})
|
|
690
690
|
), _;
|
|
691
691
|
}, []), h = a.map((_) => {
|
|
692
|
-
const
|
|
692
|
+
const S = r.templateItems.find((Y) => Y.sku._id === _.id);
|
|
693
693
|
let l = _.amount, c = 0;
|
|
694
|
-
if (
|
|
695
|
-
const Y = e(
|
|
694
|
+
if (S != null && S.measurement) {
|
|
695
|
+
const Y = e(S.measurement.conversion) ?? 1;
|
|
696
696
|
l = Math.ceil(_.amount / Y);
|
|
697
697
|
} else
|
|
698
698
|
l = Math.ceil(_.amount);
|
|
699
|
-
const D = e(
|
|
699
|
+
const D = e(S == null ? void 0 : S.minimumQuantity) ?? 0, B = e(S == null ? void 0 : S.maximumQuantity) ?? 1 / 0, Q = l < D || l > B ? "error" : "success";
|
|
700
700
|
return { skuId: _.id, amount: l, precision: c, helperState: Q };
|
|
701
701
|
});
|
|
702
702
|
p("update:poItems", i), p("update:forecastAmounts", h);
|
|
703
703
|
}
|
|
704
704
|
return (a, i) => {
|
|
705
|
-
const h = $("FmButton"), _ = $("FmIcon"),
|
|
706
|
-
return
|
|
705
|
+
const h = $("FmButton"), _ = $("FmIcon"), S = $("FmStepperField"), l = $("FmPopover");
|
|
706
|
+
return w(), W(l, {
|
|
707
707
|
disabled: a.disabled,
|
|
708
708
|
class: "flex",
|
|
709
709
|
"show-popover": x.value,
|
|
@@ -748,7 +748,7 @@ const qs = {
|
|
|
748
748
|
onClick: i[0] || (i[0] = (c) => x.value = !1)
|
|
749
749
|
})
|
|
750
750
|
]),
|
|
751
|
-
y(
|
|
751
|
+
y(S, {
|
|
752
752
|
modelValue: t.value,
|
|
753
753
|
"onUpdate:modelValue": i[1] || (i[1] = (c) => t.value = c),
|
|
754
754
|
label: s(I)("inventory.transfer.form.items.forecastStock.days"),
|
|
@@ -786,7 +786,7 @@ const qs = {
|
|
|
786
786
|
}
|
|
787
787
|
});
|
|
788
788
|
function eo() {
|
|
789
|
-
const g = De(),
|
|
789
|
+
const g = De(), C = tt(), r = q(!1);
|
|
790
790
|
be(r, (f) => {
|
|
791
791
|
f && (x.value = !0, p().finally(() => {
|
|
792
792
|
x.value = !1;
|
|
@@ -794,7 +794,7 @@ function eo() {
|
|
|
794
794
|
});
|
|
795
795
|
async function p() {
|
|
796
796
|
try {
|
|
797
|
-
const { startDate: f, endDate: F } = Ot(6), e = (await
|
|
797
|
+
const { startDate: f, endDate: F } = Ot(6), e = (await C.getPurchaseOrders({ start: f, end: F })).filter(
|
|
798
798
|
(u) => {
|
|
799
799
|
var k, a;
|
|
800
800
|
return u.status === Mt.enum.COMPLETE && ((k = u.supplier) == null ? void 0 : k.internal) !== "warehouse" && ((a = u.supplier) == null ? void 0 : a.internal) !== "restaurant";
|
|
@@ -803,15 +803,15 @@ function eo() {
|
|
|
803
803
|
const a = new Date(qt(k._id)), i = k.supplier._id;
|
|
804
804
|
for (const h of k.items) {
|
|
805
805
|
if (!h.totalCost) continue;
|
|
806
|
-
const _ = u[h.sku._id] ?? {},
|
|
807
|
-
|
|
806
|
+
const _ = u[h.sku._id] ?? {}, S = _[i] ?? [];
|
|
807
|
+
S.push({
|
|
808
808
|
date: a.toISOString(),
|
|
809
809
|
totalUnit: h.quantity,
|
|
810
810
|
totalCost: h.totalCost,
|
|
811
811
|
unit: h.sku.unit,
|
|
812
812
|
measurement: h.measurement,
|
|
813
813
|
seqNumber: k.seqNumber
|
|
814
|
-
}), _[i] =
|
|
814
|
+
}), _[i] = S, u[h.sku._id] = _;
|
|
815
815
|
}
|
|
816
816
|
return u;
|
|
817
817
|
}, {});
|
|
@@ -841,26 +841,26 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
841
841
|
},
|
|
842
842
|
emits: ["update:item"],
|
|
843
843
|
setup(g) {
|
|
844
|
-
function
|
|
844
|
+
function C(r) {
|
|
845
845
|
return r.column.columnDef.meta;
|
|
846
846
|
}
|
|
847
847
|
return (r, p) => {
|
|
848
848
|
var x, t;
|
|
849
|
-
return
|
|
849
|
+
return w(), T(de, null, [
|
|
850
850
|
n("tr", {
|
|
851
851
|
class: G(["border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm", {
|
|
852
852
|
"bg-fm-color-neutral-gray-100": r.row.getIsSelected()
|
|
853
853
|
}])
|
|
854
854
|
}, [
|
|
855
|
-
(
|
|
855
|
+
(w(!0), T(de, null, Se(r.row.getVisibleCells(), (f) => {
|
|
856
856
|
var F, I, v, e;
|
|
857
|
-
return
|
|
857
|
+
return w(), T("td", {
|
|
858
858
|
key: f.id,
|
|
859
|
-
class: G(["h-[56px] text-fm-color-typo-primary", ((F =
|
|
859
|
+
class: G(["h-[56px] text-fm-color-typo-primary", ((F = C(f)) == null ? void 0 : F.cellClass) ?? "px-16"]),
|
|
860
860
|
style: _t({
|
|
861
|
-
width: (I =
|
|
862
|
-
maxWidth: (v =
|
|
863
|
-
textAlign: ((e =
|
|
861
|
+
width: (I = C(f)) == null ? void 0 : I.width,
|
|
862
|
+
maxWidth: (v = C(f)) == null ? void 0 : v.maxWidth,
|
|
863
|
+
textAlign: ((e = C(f)) == null ? void 0 : e.textAlign) ?? "left"
|
|
864
864
|
})
|
|
865
865
|
}, [
|
|
866
866
|
n("span", to, [
|
|
@@ -872,7 +872,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
872
872
|
], 6);
|
|
873
873
|
}), 128))
|
|
874
874
|
], 2),
|
|
875
|
-
r.showComparePrice && Object.keys(r.comparePriceBySku[(x = r.row.original.sku) == null ? void 0 : x._id] ?? {}).length > 0 ? (
|
|
875
|
+
r.showComparePrice && Object.keys(r.comparePriceBySku[(x = r.row.original.sku) == null ? void 0 : x._id] ?? {}).length > 0 ? (w(), T("tr", so, [
|
|
876
876
|
n("td", {
|
|
877
877
|
colspan: r.row.getVisibleCells().length
|
|
878
878
|
}, [
|
|
@@ -901,8 +901,8 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
901
901
|
onChange: { type: Function }
|
|
902
902
|
},
|
|
903
903
|
emits: ["netsuite:ready"],
|
|
904
|
-
setup(g, { emit:
|
|
905
|
-
const r =
|
|
904
|
+
setup(g, { emit: C }) {
|
|
905
|
+
const r = Ne(), p = g, x = C, { t } = Nt(), f = q(!1), F = q();
|
|
906
906
|
Ke(() => {
|
|
907
907
|
var u, k, a, i;
|
|
908
908
|
let e = {
|
|
@@ -929,7 +929,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
929
929
|
name: h.name
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
|
-
const _ = r.getAvailableItems(h.id),
|
|
932
|
+
const _ = r.getAvailableItems(h.id), S = p.items.filter((l) => {
|
|
933
933
|
if (l.measurement != null) {
|
|
934
934
|
const c = r.getAvailableMeasurements(
|
|
935
935
|
l.sku._id,
|
|
@@ -940,7 +940,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
940
940
|
return _.includes(l.sku._id);
|
|
941
941
|
}).map((l) => l.sku._id);
|
|
942
942
|
p.onChange(
|
|
943
|
-
p.items.filter((l) =>
|
|
943
|
+
p.items.filter((l) => S.includes(l.sku._id)),
|
|
944
944
|
e
|
|
945
945
|
);
|
|
946
946
|
} finally {
|
|
@@ -951,16 +951,16 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
951
951
|
!r.isEnabled || h && r.isEnabled && h == _ ? x("netsuite:ready", e) : f.value = !0;
|
|
952
952
|
}
|
|
953
953
|
});
|
|
954
|
-
const I =
|
|
954
|
+
const I = U(
|
|
955
955
|
() => p.supplier.internal ? r.currentLocationSubsidiary() : r.currentVendorSubsidiary(p.supplier._id)
|
|
956
|
-
), v =
|
|
956
|
+
), v = U(() => {
|
|
957
957
|
var e, u;
|
|
958
958
|
return F.value == null ? `Cannot find the NetSuite location for "${p.supplier.name}"` : `The subsidiary of the request
|
|
959
959
|
location is ${(u = r.getLocationSubsidiary((e = F.value) == null ? void 0 : e.netSuiteId)) == null ? void 0 : u.fullName}`;
|
|
960
960
|
});
|
|
961
961
|
return (e, u) => {
|
|
962
962
|
const k = $("FmLabel"), a = $("FmIcon"), i = $("FmField"), h = $("FmTooltip");
|
|
963
|
-
return s(r).isEnabled && p.required ? (
|
|
963
|
+
return s(r).isEnabled && p.required ? (w(), T("div", no, [
|
|
964
964
|
y(k, {
|
|
965
965
|
label: `NetSuite ${s(t)("inventory.transfer.form.netsuite.subsidiary")}`
|
|
966
966
|
}, null, 8, ["label"]),
|
|
@@ -995,7 +995,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
995
995
|
]),
|
|
996
996
|
_: 1
|
|
997
997
|
}, 8, ["disabled"]),
|
|
998
|
-
f.value ? (
|
|
998
|
+
f.value ? (w(), T("div", io, M(v.value), 1)) : j("", !0)
|
|
999
999
|
])
|
|
1000
1000
|
])) : j("", !0);
|
|
1001
1001
|
};
|
|
@@ -1020,15 +1020,15 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1020
1020
|
lastClosingDate: {}
|
|
1021
1021
|
},
|
|
1022
1022
|
emits: ["validation-success", "form:ready"],
|
|
1023
|
-
setup(g, { expose:
|
|
1024
|
-
const p = g, x = r, t = kt(), { t: f } = ge(), F = st(), I = ot(), v =
|
|
1023
|
+
setup(g, { expose: C, emit: r }) {
|
|
1024
|
+
const p = g, x = r, t = kt(), { t: f } = ge(), F = st(), I = ot(), v = Ne(), e = nt(), u = We(), k = wt(), { breakpoints: a } = at(), i = U(() => a.value.xs || a.value.sm), h = gt({
|
|
1025
1025
|
value: !1
|
|
1026
|
-
}), _ = q(!1),
|
|
1026
|
+
}), _ = q(!1), S = q(0), l = q([]), c = U(
|
|
1027
1027
|
() => {
|
|
1028
1028
|
var o;
|
|
1029
1029
|
return ((o = p.modelValue) == null ? void 0 : o.templateDoc) ?? k.templates.find((m) => m._id === t.template);
|
|
1030
1030
|
}
|
|
1031
|
-
), D =
|
|
1031
|
+
), D = U(() => t.status === "DRAFT" || !t._rev);
|
|
1032
1032
|
be(c, (o) => {
|
|
1033
1033
|
var m, E;
|
|
1034
1034
|
if (o) {
|
|
@@ -1078,8 +1078,8 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1078
1078
|
}), be([_, h], ([o, m], [E, H]) => {
|
|
1079
1079
|
m.value && H.value && x("form:ready");
|
|
1080
1080
|
});
|
|
1081
|
-
const B =
|
|
1082
|
-
() => F.currentLocation.type ===
|
|
1081
|
+
const B = U(
|
|
1082
|
+
() => F.currentLocation.type === Ut.restaurant
|
|
1083
1083
|
);
|
|
1084
1084
|
F.watchLocation(async () => {
|
|
1085
1085
|
location && (t.supplier || (t.supplier = e.suppliers.find((o) => o) ?? t.supplier));
|
|
@@ -1091,7 +1091,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1091
1091
|
},
|
|
1092
1092
|
!0,
|
|
1093
1093
|
!0
|
|
1094
|
-
), K =
|
|
1094
|
+
), K = U({
|
|
1095
1095
|
get() {
|
|
1096
1096
|
var o;
|
|
1097
1097
|
return typeof ((o = t == null ? void 0 : t.supplier) == null ? void 0 : o.internal) == "string" ? ae.TRANSFER : ae.PURCHASE;
|
|
@@ -1117,13 +1117,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1117
1117
|
},
|
|
1118
1118
|
{ immediate: !0 }
|
|
1119
1119
|
);
|
|
1120
|
-
const O =
|
|
1120
|
+
const O = U(() => {
|
|
1121
1121
|
let o = Y.transferLocationOptions.value;
|
|
1122
1122
|
return u.mustUsePoTemplate && !t.template && (o = o.filter((m) => {
|
|
1123
1123
|
var E;
|
|
1124
1124
|
return (E = m.sublabel) == null ? void 0 : E.startsWith("restaurant");
|
|
1125
1125
|
})), o;
|
|
1126
|
-
}),
|
|
1126
|
+
}), N = U({
|
|
1127
1127
|
get() {
|
|
1128
1128
|
var o;
|
|
1129
1129
|
return (o = t.supplier) == null ? void 0 : o._id;
|
|
@@ -1131,7 +1131,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1131
1131
|
set(o) {
|
|
1132
1132
|
Y.transferLocationModel.value = o;
|
|
1133
1133
|
}
|
|
1134
|
-
}), V =
|
|
1134
|
+
}), V = U({
|
|
1135
1135
|
get() {
|
|
1136
1136
|
return t.remark ?? void 0;
|
|
1137
1137
|
},
|
|
@@ -1146,7 +1146,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1146
1146
|
t.effectiveAt = o;
|
|
1147
1147
|
}
|
|
1148
1148
|
}), { comparePricesToggle: Z, comparePriceFetching: he, comparePriceBySku: ke } = eo(), re = q();
|
|
1149
|
-
|
|
1149
|
+
C({
|
|
1150
1150
|
validateInputs: () => {
|
|
1151
1151
|
var o, m;
|
|
1152
1152
|
(m = (o = re.value) == null ? void 0 : o.validateInputs) == null || m.call(o);
|
|
@@ -1160,7 +1160,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1160
1160
|
(m = (o = re.value) == null ? void 0 : o.resetInputs) == null || m.call(o);
|
|
1161
1161
|
}
|
|
1162
1162
|
});
|
|
1163
|
-
const we =
|
|
1163
|
+
const we = U(() => ({
|
|
1164
1164
|
updateItem: (o) => {
|
|
1165
1165
|
const m = Bt.parse(o);
|
|
1166
1166
|
t.items = t.items.map((E) => E.id && E.id !== o.id || !E.id && E.sku._id !== o.sku._id ? E : m);
|
|
@@ -1170,7 +1170,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1170
1170
|
(m) => m.id ? m.id !== o.id : m.sku._id !== o.sku._id
|
|
1171
1171
|
);
|
|
1172
1172
|
}
|
|
1173
|
-
})),
|
|
1173
|
+
})), Ue = _s({
|
|
1174
1174
|
updateItem: (o) => we.value.updateItem(o),
|
|
1175
1175
|
deleteItem: (o) => we.value.deleteItem(o),
|
|
1176
1176
|
get supplier() {
|
|
@@ -1191,7 +1191,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1191
1191
|
get forecastAmounts() {
|
|
1192
1192
|
return l.value;
|
|
1193
1193
|
}
|
|
1194
|
-
}), Be =
|
|
1194
|
+
}), Be = U(() => Ue.columnDefs.value);
|
|
1195
1195
|
function ze() {
|
|
1196
1196
|
var le, Fe, He, Ae, je;
|
|
1197
1197
|
const o = (He = (Fe = (le = c.value) == null ? void 0 : le.purchaseOrder) == null ? void 0 : Fe.items) == null ? void 0 : He.groupBy((z) => z.sku._id), m = v.isEnabled ? v.getAvailableItems((je = (Ae = t.netSuite) == null ? void 0 : Ae.subsidiary) == null ? void 0 : je.id) : [], E = o != null && o.size ? I.skus.filter((z) => o.has(z._id)) : I.skus, H = v.isEnabled ? E.filter((z) => {
|
|
@@ -1284,7 +1284,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1284
1284
|
function Pe(o) {
|
|
1285
1285
|
return o;
|
|
1286
1286
|
}
|
|
1287
|
-
const Le =
|
|
1287
|
+
const Le = U(() => {
|
|
1288
1288
|
var o;
|
|
1289
1289
|
return c.value ? ((o = c.value) == null ? void 0 : o.purchaseOrder.items) || [] : I.skus.map((m) => ({
|
|
1290
1290
|
quantity: {
|
|
@@ -1300,7 +1300,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1300
1300
|
},
|
|
1301
1301
|
measurement: m.trackingMeasurement ? m.unit.measurements.find((E) => E.id === m.trackingMeasurement) : null
|
|
1302
1302
|
}));
|
|
1303
|
-
}), Ve =
|
|
1303
|
+
}), Ve = U(() => {
|
|
1304
1304
|
const o = [];
|
|
1305
1305
|
return (!u.mustUsePoTemplate || u.mustUsePoTemplate && t.template) && o.push({
|
|
1306
1306
|
label: f("inventory.transfer.form.type.purchase"),
|
|
@@ -1309,16 +1309,16 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1309
1309
|
label: f("inventory.transfer.form.type.transfer"),
|
|
1310
1310
|
value: ae.TRANSFER
|
|
1311
1311
|
}), o;
|
|
1312
|
-
}), Re =
|
|
1312
|
+
}), Re = U(() => {
|
|
1313
1313
|
var o;
|
|
1314
1314
|
return (o = p.modelValue) == null ? void 0 : o.items.every((m) => m.quantity.amount <= 0);
|
|
1315
1315
|
});
|
|
1316
1316
|
return (o, m) => {
|
|
1317
1317
|
var pe, ve;
|
|
1318
1318
|
const E = $("FmChip"), H = $("FmLabel"), ne = $("FmIcon"), me = $("FmField"), J = $("FmTooltip"), le = $("FmSelect"), Fe = $("FmTextField"), He = $("FmTextarea"), Ae = $("FmSwitch"), je = $("FmDatePicker"), z = $("FmTimePicker"), ee = $("FmFormGroup"), ie = $("FmButton"), se = $("FmTable"), ue = $("FmForm");
|
|
1319
|
-
return
|
|
1319
|
+
return w(), T("div", co, [
|
|
1320
1320
|
n("div", mo, [
|
|
1321
|
-
(pe = p.modelValue) != null && pe.template ? (
|
|
1321
|
+
(pe = p.modelValue) != null && pe.template ? (w(), W(E, {
|
|
1322
1322
|
key: 0,
|
|
1323
1323
|
variant: o.disabled ? "warning" : void 0,
|
|
1324
1324
|
label: `${s(f)("inventory.transfer.template.title")}: ${((ve = c.value) == null ? void 0 : ve.name) ?? s(f)("inventory.transfer.form.loading")}`,
|
|
@@ -1330,7 +1330,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1330
1330
|
icon: "storefront",
|
|
1331
1331
|
compact: ""
|
|
1332
1332
|
}, null, 8, ["label"]),
|
|
1333
|
-
o.lastClosingDate ? (
|
|
1333
|
+
o.lastClosingDate ? (w(), W(E, {
|
|
1334
1334
|
key: 1,
|
|
1335
1335
|
label: `${s(f)("inventory.transfer.form.lastClosing")}: ${s(et)(o.lastClosingDate)} ${s(zt)(o.lastClosingDate)}`,
|
|
1336
1336
|
icon: "calendar_month",
|
|
@@ -1350,7 +1350,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1350
1350
|
return [
|
|
1351
1351
|
n("div", po, [
|
|
1352
1352
|
n("div", fo, [
|
|
1353
|
-
(Ie = p.modelValue) != null && Ie.template ? (
|
|
1353
|
+
(Ie = p.modelValue) != null && Ie.template ? (w(), T(de, { key: 0 }, [
|
|
1354
1354
|
n("div", vo, [
|
|
1355
1355
|
y(H, {
|
|
1356
1356
|
label: s(f)("inventory.transfer.form.type.title")
|
|
@@ -1417,7 +1417,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1417
1417
|
}, null, 8, ["color"]),
|
|
1418
1418
|
n("div", {
|
|
1419
1419
|
class: G({ "text-fm-color-typo-disabled": o.disabled })
|
|
1420
|
-
}, M((P = O.value.find((oe) => oe.value ===
|
|
1420
|
+
}, M((P = O.value.find((oe) => oe.value === N.value)) == null ? void 0 : P.label), 3)
|
|
1421
1421
|
])
|
|
1422
1422
|
];
|
|
1423
1423
|
}),
|
|
@@ -1428,7 +1428,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1428
1428
|
}, 8, ["disabled"])
|
|
1429
1429
|
])
|
|
1430
1430
|
])
|
|
1431
|
-
], 64)) : (
|
|
1431
|
+
], 64)) : (w(), T(de, { key: 1 }, [
|
|
1432
1432
|
y(le, {
|
|
1433
1433
|
label: s(f)("inventory.transfer.form.type.title"),
|
|
1434
1434
|
"label-mark": "required",
|
|
@@ -1450,8 +1450,8 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1450
1450
|
y(le, {
|
|
1451
1451
|
label: K.value === s(ae).PURCHASE ? s(f)("inventory.transfer.form.purchaseFrom") : s(f)("inventory.transfer.form.transferFrom"),
|
|
1452
1452
|
"label-mark": "required",
|
|
1453
|
-
modelValue:
|
|
1454
|
-
"onUpdate:modelValue": m[1] || (m[1] = (P) =>
|
|
1453
|
+
modelValue: N.value,
|
|
1454
|
+
"onUpdate:modelValue": m[1] || (m[1] = (P) => N.value = P),
|
|
1455
1455
|
items: O.value,
|
|
1456
1456
|
rules: [s(qe)(1)(O.value)]
|
|
1457
1457
|
}, {
|
|
@@ -1472,7 +1472,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1472
1472
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1473
1473
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1474
1474
|
])
|
|
1475
|
-
}, M((P = O.value.find((oe) => oe.value ===
|
|
1475
|
+
}, M((P = O.value.find((oe) => oe.value === N.value)) == null ? void 0 : P.label), 3)
|
|
1476
1476
|
];
|
|
1477
1477
|
}),
|
|
1478
1478
|
_: 1
|
|
@@ -1492,7 +1492,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1492
1492
|
"onUpdate:modelValue": m[3] || (m[3] = (P) => V.value = P),
|
|
1493
1493
|
class: G([o.disabled ? "text-fm-color-typo-disabled " : ""])
|
|
1494
1494
|
}, null, 8, ["label", "modelValue", "class"]),
|
|
1495
|
-
_.value ? (
|
|
1495
|
+
_.value ? (w(), W(uo, {
|
|
1496
1496
|
key: 2,
|
|
1497
1497
|
required: s(t).template != null,
|
|
1498
1498
|
disabled: o.disabled,
|
|
@@ -1506,7 +1506,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1506
1506
|
h.value = !0;
|
|
1507
1507
|
})
|
|
1508
1508
|
}, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : j("", !0),
|
|
1509
|
-
s(u).enableBackdatePo ? (
|
|
1509
|
+
s(u).enableBackdatePo ? (w(), T("div", ko, [
|
|
1510
1510
|
n("div", {
|
|
1511
1511
|
class: G([
|
|
1512
1512
|
"flex",
|
|
@@ -1526,7 +1526,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1526
1526
|
n("div", {
|
|
1527
1527
|
class: G({ hidden: i.value, "w-16": !i.value })
|
|
1528
1528
|
}, null, 2),
|
|
1529
|
-
s(b) ? (
|
|
1529
|
+
s(b) ? (w(), T("div", xo, [
|
|
1530
1530
|
n("div", Co, [
|
|
1531
1531
|
y(je, {
|
|
1532
1532
|
modelValue: s(R),
|
|
@@ -1541,13 +1541,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1541
1541
|
])
|
|
1542
1542
|
])) : j("", !0)
|
|
1543
1543
|
], 2),
|
|
1544
|
-
s(d) ? (
|
|
1544
|
+
s(d) ? (w(), W(ee, {
|
|
1545
1545
|
key: 0,
|
|
1546
1546
|
modelValue: s(d),
|
|
1547
1547
|
"onUpdate:modelValue": m[8] || (m[8] = (P) => xe(d) ? d.value = P : null),
|
|
1548
1548
|
rules: [s(Ht)(new Date(o.lastClosingDate), /* @__PURE__ */ new Date())]
|
|
1549
1549
|
}, null, 8, ["modelValue", "rules"])) : j("", !0),
|
|
1550
|
-
B.value && !o.lastClosingDate ? (
|
|
1550
|
+
B.value && !o.lastClosingDate ? (w(), T("div", wo, [
|
|
1551
1551
|
y(ne, {
|
|
1552
1552
|
name: "error",
|
|
1553
1553
|
size: "sm",
|
|
@@ -1593,12 +1593,12 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1593
1593
|
l.value = P;
|
|
1594
1594
|
}),
|
|
1595
1595
|
"onUpdate:poItems": m[11] || (m[11] = (P) => {
|
|
1596
|
-
s(t).items = P,
|
|
1596
|
+
s(t).items = P, S.value++;
|
|
1597
1597
|
})
|
|
1598
1598
|
}, null, 8, ["template-id", "template-items", "po-items"])
|
|
1599
1599
|
])
|
|
1600
1600
|
], 2),
|
|
1601
|
-
K.value === s(ae).PURCHASE && D.value && s(u).enableTotalCost && ((_e = o.modelValue) != null && _e.items.length) ? (
|
|
1601
|
+
K.value === s(ae).PURCHASE && D.value && s(u).enableTotalCost && ((_e = o.modelValue) != null && _e.items.length) ? (w(), T("div", Do, [
|
|
1602
1602
|
y(Ae, {
|
|
1603
1603
|
label: s(he) ? s(f)("inventory.transfer.form.items.fetchingData") : s(f)("inventory.transfer.form.items.comparePriceHistory"),
|
|
1604
1604
|
"prepend-icon": "compare_arrows",
|
|
@@ -1612,7 +1612,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1612
1612
|
"model-value": Re.value,
|
|
1613
1613
|
rules: [() => Re.value ? "Must have at least one non-zero item" : !0]
|
|
1614
1614
|
}, null, 8, ["model-value", "rules"]),
|
|
1615
|
-
(
|
|
1615
|
+
(w(), W(se, {
|
|
1616
1616
|
"column-defs": Be.value,
|
|
1617
1617
|
"column-visibility": {
|
|
1618
1618
|
[s(te).Code]: !(((lt = o.modelValue) == null ? void 0 : lt.template) ?? ((rt = o.modelValue) == null ? void 0 : rt.templateDoc)),
|
|
@@ -1620,7 +1620,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1620
1620
|
[s(te).TemplateName]: !!(((dt = o.modelValue) == null ? void 0 : dt.template) ?? ((ct = o.modelValue) == null ? void 0 : ct.templateDoc))
|
|
1621
1621
|
},
|
|
1622
1622
|
"row-data": s(t).items,
|
|
1623
|
-
key:
|
|
1623
|
+
key: S.value,
|
|
1624
1624
|
"hide-footer": "",
|
|
1625
1625
|
"page-size": s(t).items.length
|
|
1626
1626
|
}, {
|
|
@@ -1640,7 +1640,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1640
1640
|
];
|
|
1641
1641
|
}),
|
|
1642
1642
|
"list-row": A((P) => [
|
|
1643
|
-
(
|
|
1643
|
+
(w(), W(xt, {
|
|
1644
1644
|
row: P,
|
|
1645
1645
|
key: s(t).items.map((oe) => oe.sku._id).join(".")
|
|
1646
1646
|
}, {
|
|
@@ -1675,7 +1675,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1675
1675
|
lastClosingDate: {}
|
|
1676
1676
|
},
|
|
1677
1677
|
emits: ["update:show", "submitted"],
|
|
1678
|
-
setup(g, { expose:
|
|
1678
|
+
setup(g, { expose: C, emit: r }) {
|
|
1679
1679
|
var V;
|
|
1680
1680
|
const p = g, x = r, t = tt(), f = wt(), F = De(), I = nt(), v = ot(), e = st(), { t: u } = ge(), k = q(!1), a = q(!1), i = q(!1);
|
|
1681
1681
|
async function h(d) {
|
|
@@ -1727,7 +1727,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1727
1727
|
templateDoc: f.templates.find((b) => b._id === p.templateId)
|
|
1728
1728
|
};
|
|
1729
1729
|
}
|
|
1730
|
-
const
|
|
1730
|
+
const S = St(p, "show"), l = q(p.modelValue ?? _()), c = q(((V = p.modelValue) == null ? void 0 : V._id) ?? `${Math.random()}`);
|
|
1731
1731
|
be(
|
|
1732
1732
|
() => p.show,
|
|
1733
1733
|
(d) => {
|
|
@@ -1735,7 +1735,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1735
1735
|
d && (i.value = !1, l.value = p.modelValue ?? _(), c.value = ((b = p.modelValue) == null ? void 0 : b._id) ?? `${Math.random()}`);
|
|
1736
1736
|
}
|
|
1737
1737
|
);
|
|
1738
|
-
const D =
|
|
1738
|
+
const D = U(() => !a.value || !i.value), B = U(() => {
|
|
1739
1739
|
switch (p.mode) {
|
|
1740
1740
|
case Oe.READ:
|
|
1741
1741
|
return "View transfer";
|
|
@@ -1746,7 +1746,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1746
1746
|
}
|
|
1747
1747
|
return "";
|
|
1748
1748
|
}), Q = q();
|
|
1749
|
-
|
|
1749
|
+
C({
|
|
1750
1750
|
validateInputs: () => {
|
|
1751
1751
|
var d, b;
|
|
1752
1752
|
(b = (d = Q.value) == null ? void 0 : d.validateInputs) == null || b.call(d);
|
|
@@ -1822,7 +1822,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1822
1822
|
return K();
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function N() {
|
|
1826
1826
|
var R, X;
|
|
1827
1827
|
const d = Qt.validatePurchaseOrderItems({
|
|
1828
1828
|
skusById: v.skuById ?? {},
|
|
@@ -1841,9 +1841,9 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1841
1841
|
}
|
|
1842
1842
|
return (d, b) => {
|
|
1843
1843
|
const R = $("FmButton"), X = $("FmSideSheet");
|
|
1844
|
-
return
|
|
1845
|
-
modelValue: s(
|
|
1846
|
-
"onUpdate:modelValue": b[3] || (b[3] = (Z) => xe(
|
|
1844
|
+
return w(), W(X, {
|
|
1845
|
+
modelValue: s(S),
|
|
1846
|
+
"onUpdate:modelValue": b[3] || (b[3] = (Z) => xe(S) ? S.value = Z : null),
|
|
1847
1847
|
"dismiss-away": "",
|
|
1848
1848
|
"close-button": "",
|
|
1849
1849
|
"max-width": 900
|
|
@@ -1854,7 +1854,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1854
1854
|
])
|
|
1855
1855
|
]),
|
|
1856
1856
|
default: A(() => [
|
|
1857
|
-
(
|
|
1857
|
+
(w(), W(Po, {
|
|
1858
1858
|
class: "w-full",
|
|
1859
1859
|
ref_key: "formRef",
|
|
1860
1860
|
ref: Q,
|
|
@@ -1875,7 +1875,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1875
1875
|
loading: k.value,
|
|
1876
1876
|
disabled: D.value,
|
|
1877
1877
|
label: s(u)("common.save"),
|
|
1878
|
-
onClick:
|
|
1878
|
+
onClick: N
|
|
1879
1879
|
}, null, 8, ["loading", "disabled", "label"]),
|
|
1880
1880
|
y(R, {
|
|
1881
1881
|
disabled: D.value,
|
|
@@ -1891,7 +1891,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1891
1891
|
}
|
|
1892
1892
|
});
|
|
1893
1893
|
function Oo(g) {
|
|
1894
|
-
const [
|
|
1894
|
+
const [C, r, p, ...x] = Yt(g), t = p.map((v) => v.toLowerCase().trim().replace(/ /g, "_")), F = ["item_name", "transfer_quantity(uom)", "uom", "scanned_code"].filter((v) => !t.includes(v));
|
|
1895
1895
|
if (F.length)
|
|
1896
1896
|
throw new Error(
|
|
1897
1897
|
`Missing headers (${F.join()}). Excel file does not come from the template.`
|
|
@@ -1909,9 +1909,9 @@ function Oo(g) {
|
|
|
1909
1909
|
});
|
|
1910
1910
|
}
|
|
1911
1911
|
function Mo(g) {
|
|
1912
|
-
const
|
|
1912
|
+
const C = g.SheetNames;
|
|
1913
1913
|
try {
|
|
1914
|
-
return
|
|
1914
|
+
return C.reduce(
|
|
1915
1915
|
(p, x) => {
|
|
1916
1916
|
const t = new Array(), f = g.Sheets[x], F = ot(), I = Oo(f), v = [];
|
|
1917
1917
|
for (const { index: u, data: k } of I) {
|
|
@@ -1924,7 +1924,7 @@ function Mo(g) {
|
|
|
1924
1924
|
const i = a.unit.abbrev === k.uom;
|
|
1925
1925
|
let h = null;
|
|
1926
1926
|
if (!i) {
|
|
1927
|
-
const _ = a.unit.measurements.find((
|
|
1927
|
+
const _ = a.unit.measurements.find((S) => S.abbrev === k.uom);
|
|
1928
1928
|
if (!_) {
|
|
1929
1929
|
t.push(`Row ${u + 1}: Measurement not found`);
|
|
1930
1930
|
continue;
|
|
@@ -1960,7 +1960,7 @@ function Mo(g) {
|
|
|
1960
1960
|
};
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
|
-
const qo = { class: "flex flex-col flex-1" },
|
|
1963
|
+
const qo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, Bo = {
|
|
1964
1964
|
key: 0,
|
|
1965
1965
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
1966
1966
|
}, zo = { key: 0 }, Lo = {
|
|
@@ -1974,30 +1974,30 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1974
1974
|
errors: {}
|
|
1975
1975
|
},
|
|
1976
1976
|
setup(g) {
|
|
1977
|
-
const
|
|
1978
|
-
|
|
1977
|
+
const C = g, { t: r } = ge(), p = q(!1), x = () => {
|
|
1978
|
+
C.errors.length && (p.value = !p.value);
|
|
1979
1979
|
};
|
|
1980
1980
|
return (t, f) => {
|
|
1981
1981
|
var v;
|
|
1982
1982
|
const F = $("FmIcon"), I = $("FmTooltip");
|
|
1983
|
-
return
|
|
1983
|
+
return w(), T("div", qo, [
|
|
1984
1984
|
n("div", {
|
|
1985
1985
|
onClick: x,
|
|
1986
1986
|
class: G({
|
|
1987
1987
|
"cursor-pointer": t.errors.length
|
|
1988
1988
|
})
|
|
1989
1989
|
}, [
|
|
1990
|
-
n("div",
|
|
1991
|
-
n("div",
|
|
1990
|
+
n("div", No, [
|
|
1991
|
+
n("div", Uo, [
|
|
1992
1992
|
n("div", {
|
|
1993
1993
|
class: G({
|
|
1994
1994
|
"text-fm-color-system-error-300": t.errors.length
|
|
1995
1995
|
})
|
|
1996
1996
|
}, [
|
|
1997
1997
|
Te(M(t.name) + " ", 1),
|
|
1998
|
-
t.type === "create" ? (
|
|
1998
|
+
t.type === "create" ? (w(), T("span", Bo, "(" + M(s(r)("inventory.closing.template.import.new")) + ")", 1)) : j("", !0)
|
|
1999
1999
|
], 2),
|
|
2000
|
-
t.errors.length ? (
|
|
2000
|
+
t.errors.length ? (w(), T("div", zo, [
|
|
2001
2001
|
y(F, {
|
|
2002
2002
|
name: "error",
|
|
2003
2003
|
size: "sm",
|
|
@@ -2007,7 +2007,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2007
2007
|
]),
|
|
2008
2008
|
f[0] || (f[0] = n("hr", { class: "my-2" }, null, -1)),
|
|
2009
2009
|
n("div", Lo, [
|
|
2010
|
-
(v = t.items) != null && v.length ? (
|
|
2010
|
+
(v = t.items) != null && v.length ? (w(!0), T(de, { key: 0 }, Se(t.items, (e, u) => (w(), T("div", {
|
|
2011
2011
|
key: u,
|
|
2012
2012
|
class: "flex gap-4 mt-2 items-center"
|
|
2013
2013
|
}, [
|
|
@@ -2043,23 +2043,23 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2043
2043
|
])
|
|
2044
2044
|
]),
|
|
2045
2045
|
n("div", Ko, [
|
|
2046
|
-
t.errors.length ? (
|
|
2046
|
+
t.errors.length ? (w(), W(F, {
|
|
2047
2047
|
key: 0,
|
|
2048
2048
|
name: p.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
2049
2049
|
size: "md"
|
|
2050
2050
|
}, null, 8, ["name"])) : j("", !0)
|
|
2051
2051
|
])
|
|
2052
2052
|
], 2),
|
|
2053
|
-
p.value ? (
|
|
2053
|
+
p.value ? (w(), T("div", {
|
|
2054
2054
|
key: 0,
|
|
2055
2055
|
class: G(["flex flex-col gap-4 pl-8 fm-typo-en-body-sm-400", {
|
|
2056
2056
|
"text-fm-color-typo-secondary": !t.errors.length,
|
|
2057
2057
|
"text-fm-color-system-error-300": t.errors.length
|
|
2058
2058
|
}])
|
|
2059
2059
|
}, [
|
|
2060
|
-
t.errors.length ? (
|
|
2060
|
+
t.errors.length ? (w(), T("div", Xo, [
|
|
2061
2061
|
n("ol", null, [
|
|
2062
|
-
(
|
|
2062
|
+
(w(!0), T(de, null, Se(t.errors, (e, u) => (w(), T("li", { key: u }, M(e), 1))), 128))
|
|
2063
2063
|
])
|
|
2064
2064
|
])) : j("", !0)
|
|
2065
2065
|
], 2)) : j("", !0)
|
|
@@ -2080,10 +2080,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2080
2080
|
class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
|
|
2081
2081
|
}, la = { class: "fm-typo-en-body-lg-600" }, yt = "Transfer note", ra = /* @__PURE__ */ ce({
|
|
2082
2082
|
__name: "XilnexImportForm",
|
|
2083
|
-
setup(g, { expose:
|
|
2084
|
-
const r = q(null), p = De(), x = q(!1), t = q(!1), f = kt(), F = q(!1), I =
|
|
2083
|
+
setup(g, { expose: C }) {
|
|
2084
|
+
const r = q(null), p = De(), x = q(!1), t = q(!1), f = kt(), F = q(!1), I = Ne();
|
|
2085
2085
|
q([]);
|
|
2086
|
-
const v =
|
|
2086
|
+
const v = U({
|
|
2087
2087
|
get() {
|
|
2088
2088
|
var l;
|
|
2089
2089
|
return ((l = f.supplier) == null ? void 0 : l.name) ?? "";
|
|
@@ -2109,7 +2109,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2109
2109
|
const l = await I.getNetSuiteLocations();
|
|
2110
2110
|
console.log(l), F.value = !0;
|
|
2111
2111
|
});
|
|
2112
|
-
const e =
|
|
2112
|
+
const e = U({
|
|
2113
2113
|
get() {
|
|
2114
2114
|
return "";
|
|
2115
2115
|
},
|
|
@@ -2119,7 +2119,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2119
2119
|
c.setFullYear(parseInt(D)), c.setMonth(parseInt(B) - 1), c.setDate(parseInt(Q)), f.effectiveAt = c.toISOString();
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
|
-
}), u =
|
|
2122
|
+
}), u = U({
|
|
2123
2123
|
get() {
|
|
2124
2124
|
return null;
|
|
2125
2125
|
},
|
|
@@ -2129,10 +2129,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2129
2129
|
c.setMinutes(parseInt(D)), c.setSeconds(parseInt(B)), f.effectiveAt = c.toISOString();
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
|
-
}), k = q(new Array()), a = q([]), i =
|
|
2132
|
+
}), k = q(new Array()), a = q([]), i = U(
|
|
2133
2133
|
() => !!k.value.length || a.value.some((l) => l.errors.length)
|
|
2134
2134
|
), h = q();
|
|
2135
|
-
|
|
2135
|
+
C({
|
|
2136
2136
|
validateInputs: () => {
|
|
2137
2137
|
var l, c;
|
|
2138
2138
|
(c = (l = h.value) == null ? void 0 : l.validateInputs) == null || c.call(l);
|
|
@@ -2147,7 +2147,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2147
2147
|
}
|
|
2148
2148
|
});
|
|
2149
2149
|
const { t: _ } = ge();
|
|
2150
|
-
async function
|
|
2150
|
+
async function S(l) {
|
|
2151
2151
|
k.value = [], a.value = [];
|
|
2152
2152
|
try {
|
|
2153
2153
|
x.value = !0;
|
|
@@ -2181,10 +2181,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
2183
|
return be(r, (l) => {
|
|
2184
|
-
l &&
|
|
2184
|
+
l && S(l);
|
|
2185
2185
|
}), (l, c) => {
|
|
2186
|
-
const D = $("FmSelect"), B = $("FmDatePicker"), Q = $("FmTimePicker"), Y = $("FmCircularProgress"), K = $("FmLabel"), O = $("FmIcon"),
|
|
2187
|
-
return
|
|
2186
|
+
const D = $("FmSelect"), B = $("FmDatePicker"), Q = $("FmTimePicker"), Y = $("FmCircularProgress"), K = $("FmLabel"), O = $("FmIcon"), N = $("FmButton"), V = $("FmForm");
|
|
2187
|
+
return w(), W(V, {
|
|
2188
2188
|
ref_key: "formRef",
|
|
2189
2189
|
ref: h
|
|
2190
2190
|
}, {
|
|
@@ -2219,7 +2219,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2219
2219
|
label: "Transfer time",
|
|
2220
2220
|
rules: [s(Me)()]
|
|
2221
2221
|
}, null, 8, ["modelValue", "rules"]),
|
|
2222
|
-
t.value ? (
|
|
2222
|
+
t.value ? (w(), T("div", Go, [
|
|
2223
2223
|
n("div", null, [
|
|
2224
2224
|
y(Y, {
|
|
2225
2225
|
size: "md",
|
|
@@ -2227,7 +2227,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2227
2227
|
})
|
|
2228
2228
|
]),
|
|
2229
2229
|
n("div", Wo, M(s(_)("inventory.formField.loading")), 1)
|
|
2230
|
-
])) : (
|
|
2230
|
+
])) : (w(), T(de, { key: 1 }, [
|
|
2231
2231
|
y(Kt, {
|
|
2232
2232
|
"max-file-size": 5,
|
|
2233
2233
|
class: G({
|
|
@@ -2259,11 +2259,11 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2259
2259
|
}
|
|
2260
2260
|
])
|
|
2261
2261
|
}, [
|
|
2262
|
-
x.value ? (
|
|
2262
|
+
x.value ? (w(), W(Y, {
|
|
2263
2263
|
key: 0,
|
|
2264
2264
|
size: "md",
|
|
2265
2265
|
color: "neutral-gray-200"
|
|
2266
|
-
})) : (
|
|
2266
|
+
})) : (w(), W(O, {
|
|
2267
2267
|
key: 1,
|
|
2268
2268
|
name: i.value ? "error" : "attach_file",
|
|
2269
2269
|
outline: "",
|
|
@@ -2280,8 +2280,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2280
2280
|
}, [
|
|
2281
2281
|
n("div", ta, M(r.value.name), 1)
|
|
2282
2282
|
], 2),
|
|
2283
|
-
x.value ? j("", !0) : (
|
|
2284
|
-
y(
|
|
2283
|
+
x.value ? j("", !0) : (w(), T("div", sa, [
|
|
2284
|
+
y(N, {
|
|
2285
2285
|
label: s(_)("inventory.ingredient.import.replaceFile"),
|
|
2286
2286
|
variant: i.value ? "destructive" : "secondary",
|
|
2287
2287
|
"prepend-icon": i.value ? void 0 : "autorenew",
|
|
@@ -2289,8 +2289,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2289
2289
|
}, null, 8, ["label", "variant", "prepend-icon", "onClick"])
|
|
2290
2290
|
]))
|
|
2291
2291
|
], 2),
|
|
2292
|
-
k.value.length ? (
|
|
2293
|
-
(
|
|
2292
|
+
k.value.length ? (w(), T("div", oa, [
|
|
2293
|
+
(w(!0), T(de, null, Se(k.value, (b, R) => (w(), T("div", {
|
|
2294
2294
|
key: R,
|
|
2295
2295
|
class: "flex gap-8 items-center"
|
|
2296
2296
|
}, [
|
|
@@ -2307,9 +2307,9 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2307
2307
|
key: "0"
|
|
2308
2308
|
} : void 0
|
|
2309
2309
|
]), 1032, ["class", "button-label"]),
|
|
2310
|
-
r.value ? (
|
|
2310
|
+
r.value ? (w(), T("div", na, [
|
|
2311
2311
|
n("div", la, M(s(_)("inventory.ingredient.import.summary")), 1),
|
|
2312
|
-
(
|
|
2312
|
+
(w(!0), T(de, null, Se(a.value, (d, b) => (w(), W(Zo, {
|
|
2313
2313
|
key: b,
|
|
2314
2314
|
name: `Transfer Note ${b + 1}`,
|
|
2315
2315
|
items: d.poItems,
|
|
@@ -2330,9 +2330,9 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2330
2330
|
show: { type: Boolean }
|
|
2331
2331
|
},
|
|
2332
2332
|
emits: ["update:show", "submitted"],
|
|
2333
|
-
setup(g, { expose:
|
|
2333
|
+
setup(g, { expose: C, emit: r }) {
|
|
2334
2334
|
const p = r, t = St(g, "show"), f = De(), F = tt(), I = q(!1), v = q(), e = q();
|
|
2335
|
-
|
|
2335
|
+
C({
|
|
2336
2336
|
validateInputs: () => {
|
|
2337
2337
|
var a, i;
|
|
2338
2338
|
(i = (a = v.value) == null ? void 0 : a.validateInputs) == null || i.call(a);
|
|
@@ -2351,7 +2351,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2351
2351
|
(i = (a = v.value) == null ? void 0 : a.validateInputs) == null || i.call(a);
|
|
2352
2352
|
}
|
|
2353
2353
|
async function k() {
|
|
2354
|
-
var i, h, _,
|
|
2354
|
+
var i, h, _, S, l;
|
|
2355
2355
|
if (!((h = (i = e.value) == null ? void 0 : i.supplier) != null && h.name)) {
|
|
2356
2356
|
f.open({
|
|
2357
2357
|
title: "Upload failed",
|
|
@@ -2360,7 +2360,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2360
2360
|
});
|
|
2361
2361
|
return;
|
|
2362
2362
|
}
|
|
2363
|
-
if (!((_ = e.value) != null && _.items) || ((l = (
|
|
2363
|
+
if (!((_ = e.value) != null && _.items) || ((l = (S = e.value) == null ? void 0 : S.items) == null ? void 0 : l.length) === 0) {
|
|
2364
2364
|
f.open({
|
|
2365
2365
|
title: "Upload failed",
|
|
2366
2366
|
message: "No data to upload",
|
|
@@ -2399,8 +2399,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2399
2399
|
}
|
|
2400
2400
|
}
|
|
2401
2401
|
return (a, i) => {
|
|
2402
|
-
const h = $("FmSpacer"), _ = $("FmButton"),
|
|
2403
|
-
return
|
|
2402
|
+
const h = $("FmSpacer"), _ = $("FmButton"), S = $("FmDialog");
|
|
2403
|
+
return w(), W(S, {
|
|
2404
2404
|
modelValue: s(t),
|
|
2405
2405
|
"onUpdate:modelValue": i[2] || (i[2] = (l) => xe(t) ? t.value = l : null),
|
|
2406
2406
|
overlay: !0,
|
|
@@ -2450,24 +2450,24 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2450
2450
|
}, va = { class: "pt-8" }, bt = "ReceiveRequestViewSearchCriteria", Ta = /* @__PURE__ */ ce({
|
|
2451
2451
|
__name: "ReceiveRequestView",
|
|
2452
2452
|
setup(g) {
|
|
2453
|
-
const { t:
|
|
2453
|
+
const { t: C } = ge(), r = De();
|
|
2454
2454
|
Qe.object({
|
|
2455
2455
|
name: Qe.string().optional().nullable(),
|
|
2456
2456
|
startDate: Qe.string().optional().nullable(),
|
|
2457
2457
|
endDate: Qe.string().optional().nullable()
|
|
2458
2458
|
});
|
|
2459
|
-
const p =
|
|
2459
|
+
const p = U(
|
|
2460
2460
|
() => !k._currentLocation || e.loading.value
|
|
2461
|
-
), x = is(), t = We(), f =
|
|
2461
|
+
), x = is(), t = We(), f = Ne();
|
|
2462
2462
|
function F() {
|
|
2463
2463
|
const O = {
|
|
2464
2464
|
name: "",
|
|
2465
2465
|
...ft()
|
|
2466
|
-
},
|
|
2467
|
-
if (!
|
|
2466
|
+
}, N = x.getItem(bt);
|
|
2467
|
+
if (!N)
|
|
2468
2468
|
return O;
|
|
2469
2469
|
try {
|
|
2470
|
-
return JSON.parse(
|
|
2470
|
+
return JSON.parse(N);
|
|
2471
2471
|
} catch {
|
|
2472
2472
|
return O;
|
|
2473
2473
|
}
|
|
@@ -2484,7 +2484,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2484
2484
|
e.shipments
|
|
2485
2485
|
), k = st();
|
|
2486
2486
|
async function a() {
|
|
2487
|
-
const O = `inventory-record_${vt(v.value.startDate).format("DD-MM-YYYY_HH-mm")}-${vt(v.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`,
|
|
2487
|
+
const O = `inventory-record_${vt(v.value.startDate).format("DD-MM-YYYY_HH-mm")}-${vt(v.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, N = e.purchaseOrders.value.flatMap(
|
|
2488
2488
|
(d) => d.items.map((b) => {
|
|
2489
2489
|
var re;
|
|
2490
2490
|
const R = new Date(ls(d._id) ?? ""), X = d.effectiveAt ? new Date(d.effectiveAt) : void 0, Z = Ce(
|
|
@@ -2519,14 +2519,14 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2519
2519
|
[
|
|
2520
2520
|
{
|
|
2521
2521
|
name: "purchases",
|
|
2522
|
-
data:
|
|
2522
|
+
data: N,
|
|
2523
2523
|
columns: V
|
|
2524
2524
|
}
|
|
2525
2525
|
],
|
|
2526
2526
|
O
|
|
2527
2527
|
), r.open({
|
|
2528
|
-
title:
|
|
2529
|
-
message:
|
|
2528
|
+
title: C("inventory.transfer.receiveRequest.export.success"),
|
|
2529
|
+
message: C("inventory.transfer.receiveRequest.export.message", [O]),
|
|
2530
2530
|
type: "success"
|
|
2531
2531
|
});
|
|
2532
2532
|
}
|
|
@@ -2558,28 +2558,28 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2558
2558
|
if (O === "export")
|
|
2559
2559
|
return a();
|
|
2560
2560
|
}
|
|
2561
|
-
const { breakpoints:
|
|
2561
|
+
const { breakpoints: S } = at(), l = U(() => S.value.xs || S.value.sm), c = U(() => l.value ? 10 : 20), D = Zt(), B = U(() => [
|
|
2562
2562
|
{
|
|
2563
|
-
label:
|
|
2563
|
+
label: C("inventory.transfer.receiveRequest.actions.create"),
|
|
2564
2564
|
value: "create",
|
|
2565
2565
|
isPrimary: !0,
|
|
2566
2566
|
prependIcon: "add"
|
|
2567
2567
|
},
|
|
2568
2568
|
...t.enableXilnexTransferNote ? [
|
|
2569
2569
|
{
|
|
2570
|
-
label: "
|
|
2570
|
+
label: C("inventory.common.upload"),
|
|
2571
2571
|
value: "upload"
|
|
2572
2572
|
}
|
|
2573
2573
|
] : [],
|
|
2574
2574
|
{
|
|
2575
|
-
label:
|
|
2575
|
+
label: C("inventory.common.refresh"),
|
|
2576
2576
|
value: "refresh"
|
|
2577
2577
|
},
|
|
2578
2578
|
{
|
|
2579
|
-
label:
|
|
2579
|
+
label: C("inventory.common.export"),
|
|
2580
2580
|
value: "export"
|
|
2581
2581
|
}
|
|
2582
|
-
]), Q =
|
|
2582
|
+
]), Q = U(() => {
|
|
2583
2583
|
const O = [
|
|
2584
2584
|
{
|
|
2585
2585
|
type: "string",
|
|
@@ -2589,7 +2589,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2589
2589
|
new Set(e.purchaseOrders.value.map((V) => V.status))
|
|
2590
2590
|
)
|
|
2591
2591
|
}
|
|
2592
|
-
],
|
|
2592
|
+
], N = [
|
|
2593
2593
|
{
|
|
2594
2594
|
type: "string",
|
|
2595
2595
|
key: "netsuiteTransactionNumber",
|
|
@@ -2618,28 +2618,28 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2618
2618
|
}).filter((V) => V != null)
|
|
2619
2619
|
}
|
|
2620
2620
|
];
|
|
2621
|
-
return [...O, ...f.isEnabled ?
|
|
2622
|
-
}), Y = q(null), K =
|
|
2621
|
+
return [...O, ...f.isEnabled ? N : []];
|
|
2622
|
+
}), Y = q(null), K = U(() => {
|
|
2623
2623
|
if (!Y.value)
|
|
2624
2624
|
return e.purchaseOrders.value;
|
|
2625
2625
|
const O = Jt.build(Y.value);
|
|
2626
|
-
return e.purchaseOrders.value.filter((
|
|
2626
|
+
return e.purchaseOrders.value.filter((N) => {
|
|
2627
2627
|
var V, d, b, R;
|
|
2628
2628
|
return Gt(
|
|
2629
2629
|
{
|
|
2630
|
-
netsuiteTransactionNumber: (d = (V =
|
|
2631
|
-
netsuiteOrderNo: (b =
|
|
2632
|
-
netsuiteOrderId: (R =
|
|
2633
|
-
status:
|
|
2630
|
+
netsuiteTransactionNumber: (d = (V = N.netSuite) == null ? void 0 : V.additionalInfo) == null ? void 0 : d.transactionnumber,
|
|
2631
|
+
netsuiteOrderNo: (b = N.netSuite) == null ? void 0 : b.refNo,
|
|
2632
|
+
netsuiteOrderId: (R = N.netSuite) == null ? void 0 : R.id,
|
|
2633
|
+
status: N.status
|
|
2634
2634
|
},
|
|
2635
2635
|
O
|
|
2636
2636
|
);
|
|
2637
2637
|
});
|
|
2638
2638
|
});
|
|
2639
|
-
return (O,
|
|
2639
|
+
return (O, N) => {
|
|
2640
2640
|
const V = $("FmTable");
|
|
2641
|
-
return
|
|
2642
|
-
title: s(
|
|
2641
|
+
return w(), W(Wt, {
|
|
2642
|
+
title: s(C)("inventory.transfer.receiveRequest.title2"),
|
|
2643
2643
|
actions: B.value,
|
|
2644
2644
|
"onClick:action": _
|
|
2645
2645
|
}, {
|
|
@@ -2658,23 +2658,23 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2658
2658
|
y(es, {
|
|
2659
2659
|
"date-range-query": "",
|
|
2660
2660
|
"date-range": i.value,
|
|
2661
|
-
"onUpdate:dateRange":
|
|
2661
|
+
"onUpdate:dateRange": N[0] || (N[0] = (R) => i.value = R),
|
|
2662
2662
|
searchable: "",
|
|
2663
2663
|
"change-location": "",
|
|
2664
2664
|
search: h.value,
|
|
2665
|
-
"onUpdate:search":
|
|
2665
|
+
"onUpdate:search": N[1] || (N[1] = (R) => h.value = R),
|
|
2666
2666
|
filterable: "",
|
|
2667
2667
|
"filter-attributes": Q.value,
|
|
2668
2668
|
filter: Y.value,
|
|
2669
|
-
"onUpdate:filter":
|
|
2669
|
+
"onUpdate:filter": N[2] || (N[2] = (R) => Y.value = R)
|
|
2670
2670
|
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
2671
|
-
(
|
|
2671
|
+
(w(), W(V, {
|
|
2672
2672
|
style: _t(s(D).tableHeight),
|
|
2673
2673
|
"column-defs": s(u),
|
|
2674
2674
|
"row-data": K.value,
|
|
2675
2675
|
"search-value": h.value,
|
|
2676
2676
|
loading: p.value,
|
|
2677
|
-
onRowClick:
|
|
2677
|
+
onRowClick: N[3] || (N[3] = (R) => s(e).promptShowTransferDetails(R.original)),
|
|
2678
2678
|
key: (d = s(k)._currentLocation) == null ? void 0 : d.dbName,
|
|
2679
2679
|
"page-size": c.value
|
|
2680
2680
|
}, {
|
|
@@ -2684,7 +2684,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2684
2684
|
onRowClick: s(e).promptShowTransferDetails
|
|
2685
2685
|
}, {
|
|
2686
2686
|
default: A((X) => {
|
|
2687
|
-
var Z, he, ke, re, we,
|
|
2687
|
+
var Z, he, ke, re, we, Ue, Be, ze, Pe, Le, Ve, Re, o, m, E, H, ne, me, J, le;
|
|
2688
2688
|
return [
|
|
2689
2689
|
n("div", da, [
|
|
2690
2690
|
n("div", ca, [
|
|
@@ -2695,12 +2695,12 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2695
2695
|
]),
|
|
2696
2696
|
n("div", ma, [
|
|
2697
2697
|
y(s(fe), {
|
|
2698
|
-
render: (ze = (Be = (
|
|
2698
|
+
render: (ze = (Be = (Ue = X.supplier_name) == null ? void 0 : Ue.column) == null ? void 0 : Be.columnDef) == null ? void 0 : ze.cell,
|
|
2699
2699
|
props: (Le = (Pe = X.supplier_name) == null ? void 0 : Pe.getContext) == null ? void 0 : Le.call(Pe)
|
|
2700
2700
|
}, null, 8, ["render", "props"])
|
|
2701
2701
|
]),
|
|
2702
2702
|
n("div", pa, M(R.original.items.map((Fe) => `${Fe.name}`).join(", ")), 1),
|
|
2703
|
-
R.original.ref ? (
|
|
2703
|
+
R.original.ref ? (w(), T("div", fa, [
|
|
2704
2704
|
y(s(fe), {
|
|
2705
2705
|
render: (o = (Re = (Ve = X.ref) == null ? void 0 : Ve.column) == null ? void 0 : Re.columnDef) == null ? void 0 : o.cell,
|
|
2706
2706
|
props: (E = (m = X.ref) == null ? void 0 : m.getContext) == null ? void 0 : E.call(m)
|
|
@@ -2721,7 +2721,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2721
2721
|
_: 1
|
|
2722
2722
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
2723
2723
|
], 2),
|
|
2724
|
-
(
|
|
2724
|
+
(w(), W(Tt, { to: "body" }, [
|
|
2725
2725
|
y(Eo, Je(s(e).transferDialogProps.value, {
|
|
2726
2726
|
onSubmitted: s(e).fetchData
|
|
2727
2727
|
}), null, 16, ["onSubmitted"]),
|