@feedmepos/mf-inventory-portal 1.1.5 → 1.1.6-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-CyCxXYWb.js → App-ZdPyRgoK.js} +1 -1
- package/dist/{ApprovalView-U_0mloUl.js → ApprovalView-VNUUoGaD.js} +12 -12
- package/dist/{BindingsDialog-MU1VXpRz.js → BindingsDialog-CqrwH8Le.js} +2 -2
- package/dist/{BindingsPicker-B0DtgYMV.js → BindingsPicker-CBrr3QOo.js} +1 -1
- package/dist/{BindingsTable-CSZw1l9L.js → BindingsTable-CM_qgGzX.js} +1 -1
- package/dist/{ClosingDraftView-DwUlj7ta.js → ClosingDraftView-EJxncQHK.js} +2 -2
- package/dist/ClosingTemplateView-P3-3w7LP.js +1908 -0
- package/dist/{DeliveryOrderPrintPreview-D7-jS3K1.js → DeliveryOrderPrintPreview-B_0diddC.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BnL2z9Or.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C_pIvqso.js} +16 -16
- package/dist/{FmMultiselectDialog-BTjE3FDA.js → FmMultiselectDialog-B3_QQAyt.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D-hrdDvI.js → FmUnitInput.vue_vue_type_script_setup_true_lang-FPaLEdx0.js} +20 -20
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DqY-ppJ9.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BOMcifaU.js} +1 -1
- package/dist/{IngredientGroupView-R5cNGeUG.js → IngredientGroupView-C4qAQE49.js} +2 -2
- package/dist/{IngredientsView-BkRv5-9o.js → IngredientsView-BuUCuN_-.js} +4 -4
- package/dist/{IntegrationView-DJzLUlBA.js → IntegrationView-Ww16O2-h.js} +729 -766
- package/dist/{InventoryBindingForm-SBCpdUlA.js → InventoryBindingForm-BdGh-FcD.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DQ9-3Y3R.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DkqxNffc.js} +3 -3
- package/dist/{InventoryBindingSummary-DRJTEG5M.js → InventoryBindingSummary-immSfENb.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BTyKsubT.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ChP4yc96.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Bn5b1Ur-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D-GMVZlu.js} +6 -6
- package/dist/{PublishView-ClOkwACw.js → PublishView-BYymYGs5.js} +22 -23
- package/dist/{PurchaseOrderPrintPreview-BV_-rfm2.js → PurchaseOrderPrintPreview-D3WKx7pj.js} +6 -6
- package/dist/{ReceiveRequestView-BEA8WYAJ.js → ReceiveRequestView-Ba5ONN7U.js} +122 -123
- package/dist/{RecipeView-CgS5UMwE.js → RecipeView-DoD3paRP.js} +3 -3
- package/dist/{StockView-DfNZOW1U.js → StockView-fO7PGIdp.js} +6 -6
- package/dist/{SupplierView-nAtRIngl.js → SupplierView-DNhVDIF0.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-0fKqK-Yg.js → TransferDetails.vue_vue_type_script_setup_true_lang-D4noOVzU.js} +812 -847
- package/dist/{TransferTemplateView-B7P8MaPd.js → TransferTemplateView-788yoUXj.js} +70 -70
- package/dist/{UnitView-B5bqeT_p.js → UnitView-iQCflI7n.js} +3 -3
- package/dist/{WarehouseView-yIhVXIOL.js → WarehouseView-ComVJ9Ub.js} +1 -1
- package/dist/api/adjustment-template.d.ts +2 -0
- package/dist/api/closing-template.d.ts +2 -0
- package/dist/api/netsuite.d.ts +0 -1
- package/dist/{app-CktPIZfH.js → app-DDQ8iM43.js} +32520 -30121
- package/dist/app.js +5 -5
- package/dist/components/TemplatePublishDialog.d.ts +13 -0
- package/dist/components/TemplatePublishDialog.vue.d.ts +12 -0
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/{decimal-ClHMtypx.js → decimal-Cj3dpSJu.js} +1 -1
- package/dist/{format-unit-display--5ianNK1.js → format-unit-display-DBZ-CswW.js} +22 -22
- package/dist/{index-ynBWdY_c.js → index-DkQGplv5.js} +1 -1
- package/dist/{index-KMubbPxS.js → index-TCig0pJv.js} +1 -1
- package/dist/{stock-Bsrt9B9a.js → stock-cW_hYhb6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-BXmGBQ24.js → supplier-CmLYcKmg.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Pg9yaoJS.js → use-ingredient-select-dialog-J1mw_EQM.js} +1 -1
- package/dist/{use-inventory-binding-dialog-Deyh6NeE.js → use-inventory-binding-dialog-CgxQ2cgb.js} +1 -1
- package/dist/views/dev/components/TemplatePublishDialogTest.vue.d.ts +2 -0
- package/dist/views/receive-request/composables/fn.d.ts +3 -4
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +618 -1
- package/package.json +1 -1
- package/dist/ClosingTemplateView-DcUMrx5w.js +0 -1863
- package/dist/components/FmMultiselectDialogTemporary.vue.d.ts +0 -41
- package/dist/vue-i18n-Dybwy_8K.js +0 -2365
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { reactive as bt, onMounted as Ye, watch as ge, computed as N, h as L, defineComponent as ce, openBlock as S, createElementBlock as T, Fragment as de, renderList as Se, createElementVNode as n, toDisplayString as M, unref as s, resolveComponent as I, createVNode as y, withCtx as A, createCommentVNode as j, ref as q, createBlock as J, normalizeClass as G, normalizeStyle as gt, createTextVNode as Ie, nextTick as $t, mergeProps as Ze, isRef as xe, createSlots as It, Teleport as Tt, normalizeProps as Dt, guardReactiveProps as Vt } from "vue";
|
|
2
|
-
import { b as Ue, Q as _t, c as We, m as Me, j as Ce, a7 as Qe, T as Pt,
|
|
3
|
-
import { u as tt,
|
|
4
|
-
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { b as Ue, Q as _t, c as We, m as Me, j as Ce, a7 as Qe, T as Pt, aw as Rt, A as qe, M as At, n as ht, ae as Ge, G as fe, ao as Et, ax as Ot, ay as Mt, az as qt, aA as Ut, K as kt, u as Je, a as et, aB as Nt, aC as Bt, a6 as zt, a0 as Lt, aD as Ht, E as xt, a2 as jt, e as Oe, aE as Qt, x as Yt, y as Kt, z as Xt, aF as je, a8 as pt, B as Zt, N as Wt, H as Gt, _ as Jt, C as es, W as ft } from "./app-DDQ8iM43.js";
|
|
3
|
+
import { u as tt, a as ts, P as Xe, b as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D4noOVzU.js";
|
|
4
|
+
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-D-GMVZlu.js";
|
|
5
5
|
import { u as is } from "./useTabStorage-BkIVScW_.js";
|
|
6
6
|
import { useBreakpoints as st, components as be, FmButtonVariant as us, useSnackbar as Te, useDialog as ds, useProxiedModel as St } from "@feedmepos/ui-library";
|
|
7
|
-
import { P as ne, 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 ne, u as wt } from "./format-unit-display-DBZ-CswW.js";
|
|
8
|
+
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-FPaLEdx0.js";
|
|
9
|
+
import { c as $e, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C_pIvqso.js";
|
|
10
10
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as ot } from "./supplier-
|
|
11
|
+
import "./FmMultiselectDialog-B3_QQAyt.js";
|
|
12
|
+
import { u as ot } from "./supplier-CmLYcKmg.js";
|
|
13
13
|
import { _ as bs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
-
import { u as gs } from "./vue-i18n-Dybwy_8K.js";
|
|
15
14
|
import "./array-Ca8T3f_G.js";
|
|
16
15
|
var ee = /* @__PURE__ */ ((g) => (g.Code = "Code", g.Name = "Name", g.TemplateName = "TemplateName", g.Amount = "Amount", g.Cost = "Cost", g.TotalCost = "TotalCost", g.Delete = "Delete", g))(ee || {});
|
|
17
|
-
const
|
|
16
|
+
const gs = () => (_e(), L(
|
|
18
17
|
Ct,
|
|
19
18
|
{
|
|
20
19
|
zIndex: 50,
|
|
@@ -22,7 +21,7 @@ const _s = () => (_e(), L(
|
|
|
22
21
|
},
|
|
23
22
|
`Total (${ht()})`
|
|
24
23
|
));
|
|
25
|
-
function
|
|
24
|
+
function _s(g) {
|
|
26
25
|
const { t: w } = _e(), r = bt({}), { breakpoints: p } = st(), x = We(), t = Ue();
|
|
27
26
|
Ye(() => {
|
|
28
27
|
for (const v of g.items) {
|
|
@@ -230,7 +229,7 @@ function hs(g) {
|
|
|
230
229
|
},
|
|
231
230
|
{
|
|
232
231
|
id: "Cost",
|
|
233
|
-
header:
|
|
232
|
+
header: gs,
|
|
234
233
|
size: 180,
|
|
235
234
|
cell(v) {
|
|
236
235
|
const e = v.row.original, u = f(e.sku), k = p.value.xs || p.value.sm;
|
|
@@ -400,7 +399,7 @@ function hs(g) {
|
|
|
400
399
|
))
|
|
401
400
|
};
|
|
402
401
|
}
|
|
403
|
-
const
|
|
402
|
+
const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center" }, ks = { class: "fm-typo-en-body-lg-600 xs:fm-typo-en-body-md-600 mr-auto xs:w-full" }, xs = { class: "w-[450px] xs:w-full flex" }, Cs = { class: "fm-typo-en-body-md-400 whitespace-nowrap" }, Ss = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ft = /* @__PURE__ */ ce({
|
|
404
403
|
__name: "SupplierPriceHistory",
|
|
405
404
|
props: {
|
|
406
405
|
prices: {}
|
|
@@ -410,28 +409,28 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
410
409
|
function r(p) {
|
|
411
410
|
return w.suppliers.find((x) => x._id === p);
|
|
412
411
|
}
|
|
413
|
-
return (p, x) => (S(), T("div",
|
|
412
|
+
return (p, x) => (S(), T("div", hs, [
|
|
414
413
|
(S(!0), T(de, null, Se(Object.keys(p.prices), (t) => {
|
|
415
414
|
var f;
|
|
416
415
|
return S(), T("div", {
|
|
417
416
|
key: t,
|
|
418
417
|
class: "flex items-center gap-12 xs:gap-4 xs:flex-wrap w-full"
|
|
419
418
|
}, [
|
|
420
|
-
n("div",
|
|
421
|
-
n("div",
|
|
419
|
+
n("div", ks, M((f = r(t)) == null ? void 0 : f.name), 1),
|
|
420
|
+
n("div", xs, [
|
|
422
421
|
(S(!0), T(de, null, Se(p.prices[t].slice(0, 3), (F) => {
|
|
423
422
|
var $;
|
|
424
423
|
return S(), T("div", {
|
|
425
424
|
key: F.date,
|
|
426
425
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
427
426
|
}, [
|
|
428
|
-
n("div",
|
|
427
|
+
n("div", Cs, [
|
|
429
428
|
n("span", null, M(F.totalCost ? s(Qe)(F.totalCost) : "No data"), 1),
|
|
430
429
|
x[0] || (x[0] = n("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
431
430
|
n("span", null, M(s(Ce)(F.totalUnit, !1)), 1),
|
|
432
431
|
n("span", null, M((($ = F.measurement) == null ? void 0 : $.abbrev) ?? F.unit.abbrev), 1)
|
|
433
432
|
]),
|
|
434
|
-
n("div",
|
|
433
|
+
n("div", Ss, [
|
|
435
434
|
n("span", null, "(#" + M(F.seqNumber) + ")", 1),
|
|
436
435
|
x[1] || (x[1] = n("span", null, M(" "), -1)),
|
|
437
436
|
n("span", null, M(s(Ge)(new Date(F.date))), 1)
|
|
@@ -443,10 +442,10 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
443
442
|
}), 128))
|
|
444
443
|
]));
|
|
445
444
|
}
|
|
446
|
-
}),
|
|
445
|
+
}), ws = { class: "flex flex-col gap-8 py-16" }, Fs = { class: "flex items-center" }, $s = { class: "flex-1 flex gap-1 items-center" }, Is = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ts = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ds = { class: "flex gap-8 w-full" }, Vs = { class: "flex-1 flex flex-col gap-4" }, Ps = { class: "flex-1 flex flex-col gap-4" }, Rs = { class: "flex gap-8 w-full" }, As = { class: "flex-1 flex flex-col gap-4" }, Es = {
|
|
447
446
|
key: 0,
|
|
448
447
|
class: "flex-1 flex flex-col gap-4"
|
|
449
|
-
},
|
|
448
|
+
}, Os = /* @__PURE__ */ ce({
|
|
450
449
|
__name: "TransferItem",
|
|
451
450
|
props: {
|
|
452
451
|
cellByColId: {},
|
|
@@ -459,11 +458,11 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
459
458
|
return (r, p) => {
|
|
460
459
|
var f, F, $, v, e, u, k, a, i, h, _, C, l, c, D, B, Q, Y, K, O, U, P, d, b, R, X, Z;
|
|
461
460
|
const x = I("FmLabel"), t = I("FmSpacer");
|
|
462
|
-
return S(), T("div",
|
|
463
|
-
n("div",
|
|
464
|
-
n("div",
|
|
465
|
-
n("span",
|
|
466
|
-
n("span",
|
|
461
|
+
return S(), T("div", ws, [
|
|
462
|
+
n("div", Fs, [
|
|
463
|
+
n("div", $s, [
|
|
464
|
+
n("span", Is, " (" + M(r.row.original.sku.code) + ") ", 1),
|
|
465
|
+
n("span", Ts, M(r.row.original.sku.name), 1)
|
|
467
466
|
]),
|
|
468
467
|
n("div", null, [
|
|
469
468
|
y(s(fe), {
|
|
@@ -472,8 +471,8 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
472
471
|
}, null, 8, ["render", "props"])
|
|
473
472
|
])
|
|
474
473
|
]),
|
|
475
|
-
n("div",
|
|
476
|
-
n("div",
|
|
474
|
+
n("div", Ds, [
|
|
475
|
+
n("div", Vs, [
|
|
477
476
|
y(x, {
|
|
478
477
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Code}`)
|
|
479
478
|
}, null, 8, ["label"]),
|
|
@@ -483,7 +482,7 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
483
482
|
}, null, 8, ["render", "props"]),
|
|
484
483
|
p[0] || (p[0] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
485
484
|
]),
|
|
486
|
-
n("div",
|
|
485
|
+
n("div", Ps, [
|
|
487
486
|
y(x, {
|
|
488
487
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Name}`)
|
|
489
488
|
}, null, 8, ["label"]),
|
|
@@ -494,8 +493,8 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
494
493
|
p[1] || (p[1] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
495
494
|
])
|
|
496
495
|
]),
|
|
497
|
-
n("div",
|
|
498
|
-
n("div",
|
|
496
|
+
n("div", Rs, [
|
|
497
|
+
n("div", As, [
|
|
499
498
|
y(x, {
|
|
500
499
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Amount}`)
|
|
501
500
|
}, null, 8, ["label"]),
|
|
@@ -505,7 +504,7 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
505
504
|
}, null, 8, ["render", "props"]),
|
|
506
505
|
p[2] || (p[2] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
507
506
|
]),
|
|
508
|
-
r.cellByColId[s(ee).Cost] ? (S(), T("div",
|
|
507
|
+
r.cellByColId[s(ee).Cost] ? (S(), T("div", Es, [
|
|
509
508
|
y(Ct, { "z-index": 50 }, {
|
|
510
509
|
default: A(() => [
|
|
511
510
|
y(x, {
|
|
@@ -531,7 +530,7 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
531
530
|
};
|
|
532
531
|
}
|
|
533
532
|
});
|
|
534
|
-
function
|
|
533
|
+
function Ms(g) {
|
|
535
534
|
const w = N({
|
|
536
535
|
get() {
|
|
537
536
|
const t = g.getEffectiveAt();
|
|
@@ -569,13 +568,13 @@ function qs(g) {
|
|
|
569
568
|
backdateTimeModel: x
|
|
570
569
|
};
|
|
571
570
|
}
|
|
572
|
-
const
|
|
571
|
+
const qs = {
|
|
573
572
|
width: "24",
|
|
574
573
|
height: "24",
|
|
575
574
|
viewBox: "0 0 24 24",
|
|
576
575
|
fill: "none",
|
|
577
576
|
xmlns: "http://www.w3.org/2000/svg"
|
|
578
|
-
},
|
|
577
|
+
}, Us = ["fill"], Ns = ["fill"], Bs = ["stroke"], zs = ["stroke"], Ls = /* @__PURE__ */ ce({
|
|
579
578
|
__name: "SparkIcon",
|
|
580
579
|
props: {
|
|
581
580
|
size: {
|
|
@@ -588,32 +587,32 @@ const Us = {
|
|
|
588
587
|
}
|
|
589
588
|
},
|
|
590
589
|
setup(g) {
|
|
591
|
-
return (w, r) => (S(), T("svg",
|
|
590
|
+
return (w, r) => (S(), T("svg", qs, [
|
|
592
591
|
n("path", {
|
|
593
592
|
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",
|
|
594
593
|
fill: g.color
|
|
595
|
-
}, null, 8,
|
|
594
|
+
}, null, 8, Us),
|
|
596
595
|
n("path", {
|
|
597
596
|
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",
|
|
598
597
|
fill: g.color
|
|
599
|
-
}, null, 8,
|
|
598
|
+
}, null, 8, Ns),
|
|
600
599
|
n("path", {
|
|
601
600
|
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",
|
|
602
601
|
stroke: g.color,
|
|
603
602
|
"stroke-width": "1.5",
|
|
604
603
|
"stroke-linecap": "round",
|
|
605
604
|
"stroke-linejoin": "round"
|
|
606
|
-
}, null, 8,
|
|
605
|
+
}, null, 8, Bs),
|
|
607
606
|
n("path", {
|
|
608
607
|
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",
|
|
609
608
|
stroke: g.color,
|
|
610
609
|
"stroke-width": "1.5",
|
|
611
610
|
"stroke-linecap": "round",
|
|
612
611
|
"stroke-linejoin": "round"
|
|
613
|
-
}, null, 8,
|
|
612
|
+
}, null, 8, zs)
|
|
614
613
|
]));
|
|
615
614
|
}
|
|
616
|
-
}),
|
|
615
|
+
}), Hs = { class: "flex gap-8 items-center" }, js = { class: "fm-typo-en-body-lg-600 line-clamp-1" }, Qs = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, Ys = { class: "flex items-center w-full" }, Ks = { class: "flex-1" }, Xs = { class: "fm-typo-en-title-sm-800" }, Zs = { class: "flex items-start gap-8" }, Ws = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Gs = { class: "flex gap-1" }, Js = /* @__PURE__ */ ce({
|
|
617
616
|
__name: "ForecastStock",
|
|
618
617
|
props: {
|
|
619
618
|
templateId: {},
|
|
@@ -721,24 +720,24 @@ const Us = {
|
|
|
721
720
|
disabled: a.disabled
|
|
722
721
|
}, {
|
|
723
722
|
default: A(() => [
|
|
724
|
-
n("div",
|
|
725
|
-
y(
|
|
723
|
+
n("div", Hs, [
|
|
724
|
+
y(Ls, {
|
|
726
725
|
size: 24,
|
|
727
726
|
color: a.disabled ? "#c7c7cc" : "#ff7823"
|
|
728
727
|
}, null, 8, ["color"]),
|
|
729
|
-
n("div",
|
|
728
|
+
n("div", js, M(s($)("inventory.transfer.form.items.forecastStock.title")), 1)
|
|
730
729
|
])
|
|
731
730
|
]),
|
|
732
731
|
_: 1
|
|
733
732
|
}, 8, ["text-color", "border-color", "disabled"])
|
|
734
733
|
]),
|
|
735
734
|
default: A(() => [
|
|
736
|
-
n("div",
|
|
737
|
-
n("div",
|
|
738
|
-
n("div",
|
|
735
|
+
n("div", Qs, [
|
|
736
|
+
n("div", Ys, [
|
|
737
|
+
n("div", Ks, [
|
|
739
738
|
y(bs, { "z-index": 99 }, {
|
|
740
739
|
default: A(() => [
|
|
741
|
-
n("p",
|
|
740
|
+
n("p", Xs, M(s($)("inventory.transfer.form.items.forecastStock.title")), 1)
|
|
742
741
|
]),
|
|
743
742
|
_: 1
|
|
744
743
|
})
|
|
@@ -757,18 +756,18 @@ const Us = {
|
|
|
757
756
|
rules: [s(qe)(1)]
|
|
758
757
|
}, {
|
|
759
758
|
"helper-text": A(() => [
|
|
760
|
-
n("div",
|
|
759
|
+
n("div", Zs, [
|
|
761
760
|
y(_, {
|
|
762
761
|
name: "warning",
|
|
763
762
|
size: "sm",
|
|
764
763
|
class: "text-fm-color-system-warning-300"
|
|
765
764
|
}),
|
|
766
|
-
n("div",
|
|
765
|
+
n("div", Ws, M(s($)("inventory.transfer.form.items.forecastStock.replace")), 1)
|
|
767
766
|
])
|
|
768
767
|
]),
|
|
769
768
|
_: 1
|
|
770
769
|
}, 8, ["modelValue", "label", "rules"]),
|
|
771
|
-
n("div",
|
|
770
|
+
n("div", Gs, [
|
|
772
771
|
i[4] || (i[4] = n("div", { class: "grow" }, null, -1)),
|
|
773
772
|
y(h, {
|
|
774
773
|
label: s($)("common.cancel"),
|
|
@@ -787,7 +786,7 @@ const Us = {
|
|
|
787
786
|
};
|
|
788
787
|
}
|
|
789
788
|
});
|
|
790
|
-
function
|
|
789
|
+
function eo() {
|
|
791
790
|
const g = Te(), w = tt(), r = q(!1);
|
|
792
791
|
ge(r, (f) => {
|
|
793
792
|
f && (x.value = !0, p().finally(() => {
|
|
@@ -832,7 +831,7 @@ function to() {
|
|
|
832
831
|
comparePriceBySku: t
|
|
833
832
|
};
|
|
834
833
|
}
|
|
835
|
-
const
|
|
834
|
+
const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }, oo = ["colspan"], ao = /* @__PURE__ */ ce({
|
|
836
835
|
__name: "TransferItemTable",
|
|
837
836
|
props: {
|
|
838
837
|
templateItem: {},
|
|
@@ -865,7 +864,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
865
864
|
textAlign: ((e = w(f)) == null ? void 0 : e.textAlign) ?? "left"
|
|
866
865
|
})
|
|
867
866
|
}, [
|
|
868
|
-
n("span",
|
|
867
|
+
n("span", to, [
|
|
869
868
|
y(s(fe), {
|
|
870
869
|
render: f.column.columnDef.cell,
|
|
871
870
|
props: f.getContext()
|
|
@@ -874,25 +873,25 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
874
873
|
], 6);
|
|
875
874
|
}), 128))
|
|
876
875
|
], 2),
|
|
877
|
-
r.showComparePrice && Object.keys(r.comparePriceBySku[(x = r.row.original.sku) == null ? void 0 : x._id] ?? {}).length > 0 ? (S(), T("tr",
|
|
876
|
+
r.showComparePrice && Object.keys(r.comparePriceBySku[(x = r.row.original.sku) == null ? void 0 : x._id] ?? {}).length > 0 ? (S(), T("tr", so, [
|
|
878
877
|
n("td", {
|
|
879
878
|
colspan: r.row.getVisibleCells().length
|
|
880
879
|
}, [
|
|
881
880
|
y(Ft, {
|
|
882
881
|
prices: r.comparePriceBySku[(t = r.row.original.sku) == null ? void 0 : t._id]
|
|
883
882
|
}, null, 8, ["prices"])
|
|
884
|
-
], 8,
|
|
883
|
+
], 8, oo)
|
|
885
884
|
])) : j("", !0)
|
|
886
885
|
], 64);
|
|
887
886
|
};
|
|
888
887
|
}
|
|
889
|
-
}),
|
|
888
|
+
}), no = {
|
|
890
889
|
key: 0,
|
|
891
890
|
class: "flex flex-col gap-8"
|
|
892
|
-
},
|
|
891
|
+
}, lo = { class: "flex flex-col gap-4" }, ro = { class: "flex items-center gap-4" }, io = {
|
|
893
892
|
key: 0,
|
|
894
893
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
|
|
895
|
-
},
|
|
894
|
+
}, uo = /* @__PURE__ */ ce({
|
|
896
895
|
__name: "NetSuiteField",
|
|
897
896
|
props: {
|
|
898
897
|
required: { type: Boolean },
|
|
@@ -904,7 +903,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
904
903
|
},
|
|
905
904
|
emits: ["netsuite:ready"],
|
|
906
905
|
setup(g, { emit: w }) {
|
|
907
|
-
const r = Ue(), p = g, x = w, { t } =
|
|
906
|
+
const r = Ue(), p = g, x = w, { t } = Ut(), f = q(!1), F = q();
|
|
908
907
|
Ye(() => {
|
|
909
908
|
var u, k, a, i;
|
|
910
909
|
let e = {
|
|
@@ -962,11 +961,11 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
962
961
|
});
|
|
963
962
|
return (e, u) => {
|
|
964
963
|
const k = I("FmLabel"), a = I("FmIcon"), i = I("FmField"), h = I("FmTooltip");
|
|
965
|
-
return s(r).isEnabled && p.required ? (S(), T("div",
|
|
964
|
+
return s(r).isEnabled && p.required ? (S(), T("div", no, [
|
|
966
965
|
y(k, {
|
|
967
966
|
label: `NetSuite ${s(t)("inventory.transfer.form.netsuite.subsidiary")}`
|
|
968
967
|
}, null, 8, ["label"]),
|
|
969
|
-
n("div",
|
|
968
|
+
n("div", lo, [
|
|
970
969
|
y(h, {
|
|
971
970
|
"z-index": 51,
|
|
972
971
|
placement: "left",
|
|
@@ -980,7 +979,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
980
979
|
default: A(() => {
|
|
981
980
|
var _;
|
|
982
981
|
return [
|
|
983
|
-
n("div",
|
|
982
|
+
n("div", ro, [
|
|
984
983
|
y(a, {
|
|
985
984
|
name: "lock_outline",
|
|
986
985
|
size: "sm",
|
|
@@ -997,21 +996,21 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
997
996
|
]),
|
|
998
997
|
_: 1
|
|
999
998
|
}, 8, ["disabled"]),
|
|
1000
|
-
f.value ? (S(), T("div",
|
|
999
|
+
f.value ? (S(), T("div", io, M(v.value), 1)) : j("", !0)
|
|
1001
1000
|
])
|
|
1002
1001
|
])) : j("", !0);
|
|
1003
1002
|
};
|
|
1004
1003
|
}
|
|
1005
|
-
}),
|
|
1004
|
+
}), co = { class: "flex flex-col gap-4" }, mo = { class: "flex items-center gap-8 overflow-x-auto pb-12" }, po = { class: "flex flex-col gap-16" }, fo = { class: "flex flex-col gap-24" }, vo = { class: "flex flex-col gap-8" }, yo = { class: "flex flex-col gap-4" }, bo = { class: "flex items-center gap-4" }, go = { class: "flex flex-col gap-8" }, _o = { class: "flex flex-col gap-4" }, ho = { class: "flex items-center gap-4" }, ko = {
|
|
1006
1005
|
key: 3,
|
|
1007
1006
|
class: "p-16 border border-fm-color-neutral-gray-300 fm-corner-radius-md flex flex-col"
|
|
1008
|
-
},
|
|
1007
|
+
}, xo = {
|
|
1009
1008
|
key: 0,
|
|
1010
1009
|
class: "flex-1 flex gap-8 h-48 xs:flex-col xs:pt-16 sm:flex-col sm:pt-16"
|
|
1011
|
-
},
|
|
1010
|
+
}, Co = { class: "flex-1" }, So = { class: "flex-1" }, wo = {
|
|
1012
1011
|
key: 1,
|
|
1013
1012
|
class: "flex items-center gap-4"
|
|
1014
|
-
},
|
|
1013
|
+
}, Fo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, $o = { class: "flex flex-col gap-16" }, Io = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, To = { class: "flex gap-8" }, Do = { key: 0 }, Vo = /* @__PURE__ */ ce({
|
|
1015
1014
|
__name: "TransferForm2",
|
|
1016
1015
|
props: {
|
|
1017
1016
|
modelValue: {},
|
|
@@ -1080,7 +1079,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1080
1079
|
m.value && H.value && x("form:ready");
|
|
1081
1080
|
});
|
|
1082
1081
|
const B = N(
|
|
1083
|
-
() => F.currentLocation.type ===
|
|
1082
|
+
() => F.currentLocation.type === Nt.restaurant
|
|
1084
1083
|
);
|
|
1085
1084
|
F.watchLocation(async () => {
|
|
1086
1085
|
location && (t.supplier || (t.supplier = e.suppliers.find((o) => o) ?? t.supplier));
|
|
@@ -1139,14 +1138,14 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1139
1138
|
set(o) {
|
|
1140
1139
|
t.remark = o;
|
|
1141
1140
|
}
|
|
1142
|
-
}), { backdatePo: d, backdateSwitch: b, backdateModel: R, backdateTimeModel: X } =
|
|
1141
|
+
}), { backdatePo: d, backdateSwitch: b, backdateModel: R, backdateTimeModel: X } = Ms({
|
|
1143
1142
|
getEffectiveAt() {
|
|
1144
1143
|
return t.effectiveAt;
|
|
1145
1144
|
},
|
|
1146
1145
|
setEffectiveAt(o) {
|
|
1147
1146
|
t.effectiveAt = o;
|
|
1148
1147
|
}
|
|
1149
|
-
}), { comparePricesToggle: Z, comparePriceFetching: he, comparePriceBySku: ke } =
|
|
1148
|
+
}), { comparePricesToggle: Z, comparePriceFetching: he, comparePriceBySku: ke } = eo(), ie = q();
|
|
1150
1149
|
w({
|
|
1151
1150
|
validateInputs: () => {
|
|
1152
1151
|
var o, m;
|
|
@@ -1163,7 +1162,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1163
1162
|
});
|
|
1164
1163
|
const we = N(() => ({
|
|
1165
1164
|
updateItem: (o) => {
|
|
1166
|
-
const m =
|
|
1165
|
+
const m = Bt.parse(o);
|
|
1167
1166
|
t.items = t.items.map((E) => E.id && E.id !== o.id || !E.id && E.sku._id !== o.sku._id ? E : m);
|
|
1168
1167
|
},
|
|
1169
1168
|
deleteItem: (o) => {
|
|
@@ -1171,7 +1170,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1171
1170
|
(m) => m.id ? m.id !== o.id : m.sku._id !== o.sku._id
|
|
1172
1171
|
);
|
|
1173
1172
|
}
|
|
1174
|
-
})), Ne =
|
|
1173
|
+
})), Ne = _s({
|
|
1175
1174
|
updateItem: (o) => we.value.updateItem(o),
|
|
1176
1175
|
deleteItem: (o) => we.value.deleteItem(o),
|
|
1177
1176
|
get supplier() {
|
|
@@ -1226,7 +1225,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1226
1225
|
Q.open({
|
|
1227
1226
|
title: f("inventory.transfer.form.items.selectItem"),
|
|
1228
1227
|
closeButton: !0,
|
|
1229
|
-
contentComponent:
|
|
1228
|
+
contentComponent: jt,
|
|
1230
1229
|
contentComponentProps: {
|
|
1231
1230
|
modelValue: me,
|
|
1232
1231
|
items: le,
|
|
@@ -1309,8 +1308,8 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1309
1308
|
return (o, m) => {
|
|
1310
1309
|
var ve, Ae;
|
|
1311
1310
|
const E = I("FmChip"), H = I("FmLabel"), le = I("FmIcon"), me = I("FmField"), W = I("FmTooltip"), re = I("FmSelect"), Fe = I("FmTextField"), He = I("FmTextarea"), Re = I("FmSwitch"), z = I("FmDatePicker"), te = I("FmTimePicker"), ae = I("FmFormGroup"), se = I("FmButton"), ue = I("FmTable"), pe = I("FmForm");
|
|
1312
|
-
return S(), T("div",
|
|
1313
|
-
n("div",
|
|
1311
|
+
return S(), T("div", co, [
|
|
1312
|
+
n("div", mo, [
|
|
1314
1313
|
(ve = p.modelValue) != null && ve.template ? (S(), J(E, {
|
|
1315
1314
|
key: 0,
|
|
1316
1315
|
variant: o.disabled ? "warning" : void 0,
|
|
@@ -1325,7 +1324,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1325
1324
|
}, null, 8, ["label"]),
|
|
1326
1325
|
o.lastClosingDate ? (S(), J(E, {
|
|
1327
1326
|
key: 1,
|
|
1328
|
-
label: `${s(f)("inventory.transfer.form.lastClosing")}: ${s(Ge)(o.lastClosingDate)} ${s(
|
|
1327
|
+
label: `${s(f)("inventory.transfer.form.lastClosing")}: ${s(Ge)(o.lastClosingDate)} ${s(zt)(o.lastClosingDate)}`,
|
|
1329
1328
|
icon: "calendar_month",
|
|
1330
1329
|
compact: ""
|
|
1331
1330
|
}, null, 8, ["label"])) : j("", !0)
|
|
@@ -1341,14 +1340,14 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1341
1340
|
default: A(() => {
|
|
1342
1341
|
var ye, at, nt, lt, rt, it, ut, dt;
|
|
1343
1342
|
return [
|
|
1344
|
-
n("div",
|
|
1345
|
-
n("div",
|
|
1343
|
+
n("div", po, [
|
|
1344
|
+
n("div", fo, [
|
|
1346
1345
|
(ye = p.modelValue) != null && ye.template ? (S(), T(de, { key: 0 }, [
|
|
1347
|
-
n("div",
|
|
1346
|
+
n("div", vo, [
|
|
1348
1347
|
y(H, {
|
|
1349
1348
|
label: s(f)("inventory.transfer.form.type.title")
|
|
1350
1349
|
}, null, 8, ["label"]),
|
|
1351
|
-
n("div",
|
|
1350
|
+
n("div", yo, [
|
|
1352
1351
|
y(W, {
|
|
1353
1352
|
"z-index": 51,
|
|
1354
1353
|
placement: "left",
|
|
@@ -1360,7 +1359,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1360
1359
|
default: A(() => [
|
|
1361
1360
|
y(me, null, {
|
|
1362
1361
|
default: A(() => [
|
|
1363
|
-
n("div",
|
|
1362
|
+
n("div", bo, [
|
|
1364
1363
|
y(le, {
|
|
1365
1364
|
name: "lock_outline",
|
|
1366
1365
|
size: "sm",
|
|
@@ -1384,11 +1383,11 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1384
1383
|
}, null, 2)
|
|
1385
1384
|
])
|
|
1386
1385
|
]),
|
|
1387
|
-
n("div",
|
|
1386
|
+
n("div", go, [
|
|
1388
1387
|
y(H, {
|
|
1389
1388
|
label: K.value === s(ne).PURCHASE ? s(f)("inventory.transfer.form.purchaseFrom") : s(f)("inventory.transfer.form.transferFrom")
|
|
1390
1389
|
}, null, 8, ["label"]),
|
|
1391
|
-
n("div",
|
|
1390
|
+
n("div", _o, [
|
|
1392
1391
|
y(W, {
|
|
1393
1392
|
"z-index": 51,
|
|
1394
1393
|
placement: "left",
|
|
@@ -1402,7 +1401,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1402
1401
|
default: A(() => {
|
|
1403
1402
|
var V;
|
|
1404
1403
|
return [
|
|
1405
|
-
n("div",
|
|
1404
|
+
n("div", ho, [
|
|
1406
1405
|
y(le, {
|
|
1407
1406
|
name: "lock_outline",
|
|
1408
1407
|
size: "sm",
|
|
@@ -1436,7 +1435,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1436
1435
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1437
1436
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1438
1437
|
])
|
|
1439
|
-
}, M(s(
|
|
1438
|
+
}, M(s(Lt)(K.value)), 3)
|
|
1440
1439
|
]),
|
|
1441
1440
|
_: 1
|
|
1442
1441
|
}, 8, ["label", "modelValue", "items", "rules"]),
|
|
@@ -1485,7 +1484,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1485
1484
|
"onUpdate:modelValue": m[3] || (m[3] = (V) => P.value = V),
|
|
1486
1485
|
class: G([o.disabled ? "text-fm-color-typo-disabled " : ""])
|
|
1487
1486
|
}, null, 8, ["label", "modelValue", "class"]),
|
|
1488
|
-
_.value ? (S(), J(
|
|
1487
|
+
_.value ? (S(), J(uo, {
|
|
1489
1488
|
key: 2,
|
|
1490
1489
|
required: s(t).template != null,
|
|
1491
1490
|
disabled: o.disabled,
|
|
@@ -1499,7 +1498,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1499
1498
|
h.value = !0;
|
|
1500
1499
|
})
|
|
1501
1500
|
}, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : j("", !0),
|
|
1502
|
-
s(u).enableBackdatePo ? (S(), T("div",
|
|
1501
|
+
s(u).enableBackdatePo ? (S(), T("div", ko, [
|
|
1503
1502
|
n("div", {
|
|
1504
1503
|
class: G([
|
|
1505
1504
|
"flex",
|
|
@@ -1519,14 +1518,14 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1519
1518
|
n("div", {
|
|
1520
1519
|
class: G({ hidden: i.value, "w-16": !i.value })
|
|
1521
1520
|
}, null, 2),
|
|
1522
|
-
s(b) ? (S(), T("div",
|
|
1523
|
-
n("div",
|
|
1521
|
+
s(b) ? (S(), T("div", xo, [
|
|
1522
|
+
n("div", Co, [
|
|
1524
1523
|
y(z, {
|
|
1525
1524
|
modelValue: s(R),
|
|
1526
1525
|
"onUpdate:modelValue": m[6] || (m[6] = (V) => xe(R) ? R.value = V : null)
|
|
1527
1526
|
}, null, 8, ["modelValue"])
|
|
1528
1527
|
]),
|
|
1529
|
-
n("div",
|
|
1528
|
+
n("div", So, [
|
|
1530
1529
|
y(te, {
|
|
1531
1530
|
modelValue: s(X),
|
|
1532
1531
|
"onUpdate:modelValue": m[7] || (m[7] = (V) => xe(X) ? X.value = V : null)
|
|
@@ -1538,20 +1537,20 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1538
1537
|
key: 0,
|
|
1539
1538
|
modelValue: s(d),
|
|
1540
1539
|
"onUpdate:modelValue": m[8] || (m[8] = (V) => xe(d) ? d.value = V : null),
|
|
1541
|
-
rules: [s(
|
|
1540
|
+
rules: [s(Ht)(new Date(o.lastClosingDate), /* @__PURE__ */ new Date())]
|
|
1542
1541
|
}, null, 8, ["modelValue", "rules"])) : j("", !0),
|
|
1543
|
-
B.value && !o.lastClosingDate ? (S(), T("div",
|
|
1542
|
+
B.value && !o.lastClosingDate ? (S(), T("div", wo, [
|
|
1544
1543
|
y(le, {
|
|
1545
1544
|
name: "error",
|
|
1546
1545
|
size: "sm",
|
|
1547
1546
|
class: "text-fm-color-typo-warning"
|
|
1548
1547
|
}),
|
|
1549
|
-
n("span",
|
|
1548
|
+
n("span", Fo, M(s(f)("inventory.transfer.form.backdate.error")), 1)
|
|
1550
1549
|
])) : j("", !0)
|
|
1551
1550
|
])) : j("", !0)
|
|
1552
1551
|
])
|
|
1553
1552
|
]),
|
|
1554
|
-
n("div",
|
|
1553
|
+
n("div", $o, [
|
|
1555
1554
|
y(ae, {
|
|
1556
1555
|
"model-value": s(t).items,
|
|
1557
1556
|
rules: [s(qe)(1)]
|
|
@@ -1565,8 +1564,8 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1565
1564
|
}
|
|
1566
1565
|
])
|
|
1567
1566
|
}, [
|
|
1568
|
-
n("div",
|
|
1569
|
-
n("div",
|
|
1567
|
+
n("div", Io, M(s(f)("inventory.transfer.form.items.title")), 1),
|
|
1568
|
+
n("div", To, [
|
|
1570
1569
|
y(se, {
|
|
1571
1570
|
disabled: o.disabled,
|
|
1572
1571
|
label: s(f)("inventory.transfer.form.items.addItem"),
|
|
@@ -1578,7 +1577,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1578
1577
|
onClick: m[9] || (m[9] = (V) => ze()),
|
|
1579
1578
|
size: "md"
|
|
1580
1579
|
}, null, 8, ["disabled", "label"]),
|
|
1581
|
-
y(
|
|
1580
|
+
y(Js, {
|
|
1582
1581
|
"template-id": s(t).template || void 0,
|
|
1583
1582
|
"template-items": Le.value,
|
|
1584
1583
|
"po-items": s(t).items,
|
|
@@ -1591,7 +1590,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1591
1590
|
}, null, 8, ["template-id", "template-items", "po-items"])
|
|
1592
1591
|
])
|
|
1593
1592
|
], 2),
|
|
1594
|
-
K.value === s(ne).PURCHASE && D.value && s(u).enableTotalCost && ((at = o.modelValue) != null && at.items.length) ? (S(), T("div",
|
|
1593
|
+
K.value === s(ne).PURCHASE && D.value && s(u).enableTotalCost && ((at = o.modelValue) != null && at.items.length) ? (S(), T("div", Do, [
|
|
1595
1594
|
y(Re, {
|
|
1596
1595
|
label: s(he) ? s(f)("inventory.transfer.form.items.fetchingData") : s(f)("inventory.transfer.form.items.comparePriceHistory"),
|
|
1597
1596
|
"prepend-icon": "compare_arrows",
|
|
@@ -1620,7 +1619,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1620
1619
|
"table-row": A((V) => {
|
|
1621
1620
|
var oe, Ee, ct, mt;
|
|
1622
1621
|
return [
|
|
1623
|
-
y(
|
|
1622
|
+
y(ao, {
|
|
1624
1623
|
"compare-price-by-sku": s(ke),
|
|
1625
1624
|
"show-compare-price": K.value === s(ne).PURCHASE && s(Z),
|
|
1626
1625
|
row: V,
|
|
@@ -1638,7 +1637,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1638
1637
|
key: s(t).items.map((oe) => oe.sku._id).join(".")
|
|
1639
1638
|
}, {
|
|
1640
1639
|
default: A((oe) => [
|
|
1641
|
-
y(
|
|
1640
|
+
y(Os, {
|
|
1642
1641
|
"compare-price-by-sku": s(ke),
|
|
1643
1642
|
"show-compare-price": K.value === s(ne).PURCHASE && s(Z),
|
|
1644
1643
|
row: V,
|
|
@@ -1658,7 +1657,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1658
1657
|
]);
|
|
1659
1658
|
};
|
|
1660
1659
|
}
|
|
1661
|
-
}),
|
|
1660
|
+
}), Po = { class: "flex items-center" }, Ro = { class: "fm-typo-en-title-md-800" }, Ao = { class: "flex gap-4" }, Eo = /* @__PURE__ */ ce({
|
|
1662
1661
|
__name: "TransferDialog",
|
|
1663
1662
|
props: {
|
|
1664
1663
|
mode: {},
|
|
@@ -1817,7 +1816,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1817
1816
|
}
|
|
1818
1817
|
function U() {
|
|
1819
1818
|
var R, X;
|
|
1820
|
-
const d =
|
|
1819
|
+
const d = Qt.validatePurchaseOrderItems({
|
|
1821
1820
|
skusById: v.skuById ?? {},
|
|
1822
1821
|
items: l.value.items ?? []
|
|
1823
1822
|
}), b = Object.values(d).flat();
|
|
@@ -1842,12 +1841,12 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1842
1841
|
"max-width": 900
|
|
1843
1842
|
}, {
|
|
1844
1843
|
"side-sheet-header": A(() => [
|
|
1845
|
-
n("div",
|
|
1846
|
-
n("div",
|
|
1844
|
+
n("div", Po, [
|
|
1845
|
+
n("div", Ro, M(B.value), 1)
|
|
1847
1846
|
])
|
|
1848
1847
|
]),
|
|
1849
1848
|
default: A(() => [
|
|
1850
|
-
(S(), J(
|
|
1849
|
+
(S(), J(Vo, {
|
|
1851
1850
|
class: "w-full",
|
|
1852
1851
|
ref_key: "formRef",
|
|
1853
1852
|
ref: Q,
|
|
@@ -1863,7 +1862,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1863
1862
|
}, null, 8, ["modelValue", "disabled", "suppliers", "skus", "last-closing-date"]))
|
|
1864
1863
|
]),
|
|
1865
1864
|
"side-sheet-footer": A(() => [
|
|
1866
|
-
n("div",
|
|
1865
|
+
n("div", Ao, [
|
|
1867
1866
|
y(R, {
|
|
1868
1867
|
loading: k.value,
|
|
1869
1868
|
disabled: D.value,
|
|
@@ -1883,8 +1882,8 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1883
1882
|
};
|
|
1884
1883
|
}
|
|
1885
1884
|
});
|
|
1886
|
-
function
|
|
1887
|
-
const [w, r, p, ...x] =
|
|
1885
|
+
function Oo(g) {
|
|
1886
|
+
const [w, 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));
|
|
1888
1887
|
if (F.length)
|
|
1889
1888
|
throw new Error(
|
|
1890
1889
|
`Missing headers (${F.join()}). Excel file does not come from the template.`
|
|
@@ -1901,12 +1900,12 @@ function Mo(g) {
|
|
|
1901
1900
|
};
|
|
1902
1901
|
});
|
|
1903
1902
|
}
|
|
1904
|
-
function
|
|
1903
|
+
function Mo(g) {
|
|
1905
1904
|
const w = g.SheetNames;
|
|
1906
1905
|
try {
|
|
1907
1906
|
return w.reduce(
|
|
1908
1907
|
(p, x) => {
|
|
1909
|
-
const t = new Array(), f = g.Sheets[x], F = et(), $ =
|
|
1908
|
+
const t = new Array(), f = g.Sheets[x], F = et(), $ = Oo(f), v = [];
|
|
1910
1909
|
for (const { index: u, data: k } of $) {
|
|
1911
1910
|
k.scanned_code === "" && t.push(`Row ${u + 1}: Scanned code is empty`), k.item_name === "" && t.push(`Row ${u + 1}: Item name is empty`), k.uom === "" && t.push(`Row ${u + 1}: UOM is empty`), k["transfer_quantity(uom)"] === "" && t.push(`Row ${u + 1}: Transfer quantity is empty`);
|
|
1912
1911
|
const a = F.skus.find((_) => _.code === k.scanned_code);
|
|
@@ -1953,7 +1952,7 @@ function qo(g) {
|
|
|
1953
1952
|
};
|
|
1954
1953
|
}
|
|
1955
1954
|
}
|
|
1956
|
-
const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, zo = {
|
|
1955
|
+
const qo = exports.FfCalculator, Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, zo = {
|
|
1957
1956
|
key: 0,
|
|
1958
1957
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
1959
1958
|
}, Lo = { key: 0 }, Ho = {
|
|
@@ -2027,7 +2026,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2027
2026
|
}, 1032, ["content"])
|
|
2028
2027
|
]),
|
|
2029
2028
|
n("div", null, [
|
|
2030
|
-
n("span", Ko, M(s(
|
|
2029
|
+
n("span", Ko, M(s(qo).toFormatString({
|
|
2031
2030
|
value: e.quantity
|
|
2032
2031
|
})), 1),
|
|
2033
2032
|
Ie(" " + M(e.measurement ? e.measurement.abbrev : e.sku.unit.abbrev), 1)
|
|
@@ -2145,10 +2144,10 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2145
2144
|
try {
|
|
2146
2145
|
x.value = !0;
|
|
2147
2146
|
const [c] = await Promise.all([
|
|
2148
|
-
|
|
2147
|
+
Xt(l),
|
|
2149
2148
|
// fake buffer
|
|
2150
2149
|
new Promise((B) => setTimeout(B, 1e3))
|
|
2151
|
-
]), D =
|
|
2150
|
+
]), D = Mo(c);
|
|
2152
2151
|
if (D.invalidExcel) {
|
|
2153
2152
|
k.value.push(
|
|
2154
2153
|
D.invalidExcelMessage ?? _("inventory.ingredient.import.fileError.invalidExcel")
|
|
@@ -2221,7 +2220,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2221
2220
|
]),
|
|
2222
2221
|
n("div", ea, M(s(_)("inventory.formField.loading")), 1)
|
|
2223
2222
|
])) : (S(), T(de, { key: 1 }, [
|
|
2224
|
-
y(
|
|
2223
|
+
y(Kt, {
|
|
2225
2224
|
"max-file-size": 5,
|
|
2226
2225
|
class: G({
|
|
2227
2226
|
"w-full": !0,
|
|
@@ -2440,7 +2439,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2440
2439
|
}), ca = { class: "flex flex-col py-8" }, ma = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pa = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, fa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, va = {
|
|
2441
2440
|
key: 0,
|
|
2442
2441
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
2443
|
-
}, ya = { class: "pt-8" }, yt = "ReceiveRequestViewSearchCriteria",
|
|
2442
|
+
}, ya = { class: "pt-8" }, yt = "ReceiveRequestViewSearchCriteria", Va = /* @__PURE__ */ ce({
|
|
2444
2443
|
__name: "ReceiveRequestView",
|
|
2445
2444
|
setup(g) {
|
|
2446
2445
|
const { t: w } = _e(), r = Te();
|
|
@@ -2550,7 +2549,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2550
2549
|
if (O === "export")
|
|
2551
2550
|
return a();
|
|
2552
2551
|
}
|
|
2553
|
-
const { breakpoints: C } = st(), l = N(() => C.value.xs || C.value.sm), c = N(() => l.value ? 10 : 20), D =
|
|
2552
|
+
const { breakpoints: C } = st(), l = N(() => C.value.xs || C.value.sm), c = N(() => l.value ? 10 : 20), D = Zt(), B = N(() => [
|
|
2554
2553
|
{
|
|
2555
2554
|
label: w("inventory.transfer.receiveRequest.actions.create"),
|
|
2556
2555
|
value: "create",
|
|
@@ -2614,10 +2613,10 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2614
2613
|
}), Y = q(null), K = N(() => {
|
|
2615
2614
|
if (!Y.value)
|
|
2616
2615
|
return e.purchaseOrders.value;
|
|
2617
|
-
const O =
|
|
2616
|
+
const O = Wt.build(Y.value);
|
|
2618
2617
|
return e.purchaseOrders.value.filter((U) => {
|
|
2619
2618
|
var P, d, b, R;
|
|
2620
|
-
return
|
|
2619
|
+
return Gt(
|
|
2621
2620
|
{
|
|
2622
2621
|
netsuiteTransactionNumber: (d = (P = U.netSuite) == null ? void 0 : P.additionalInfo) == null ? void 0 : d.transactionnumber,
|
|
2623
2622
|
netsuiteOrderNo: (b = U.netSuite) == null ? void 0 : b.refNo,
|
|
@@ -2630,7 +2629,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2630
2629
|
});
|
|
2631
2630
|
return (O, U) => {
|
|
2632
2631
|
const P = I("FmTable");
|
|
2633
|
-
return S(), J(
|
|
2632
|
+
return S(), J(Jt, {
|
|
2634
2633
|
title: s(w)("inventory.transfer.receiveRequest.title2"),
|
|
2635
2634
|
actions: B.value,
|
|
2636
2635
|
"onClick:action": _
|
|
@@ -2647,7 +2646,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2647
2646
|
}
|
|
2648
2647
|
])
|
|
2649
2648
|
}, [
|
|
2650
|
-
y(
|
|
2649
|
+
y(es, {
|
|
2651
2650
|
"date-range-query": "",
|
|
2652
2651
|
"date-range": i.value,
|
|
2653
2652
|
"onUpdate:dateRange": U[0] || (U[0] = (R) => i.value = R),
|
|
@@ -2714,7 +2713,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2714
2713
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
2715
2714
|
], 2),
|
|
2716
2715
|
(S(), J(Tt, { to: "body" }, [
|
|
2717
|
-
y(
|
|
2716
|
+
y(Eo, Ze(s(e).transferDialogProps.value, {
|
|
2718
2717
|
onSubmitted: s(e).fetchData
|
|
2719
2718
|
}), null, 16, ["onSubmitted"]),
|
|
2720
2719
|
y(os, Ze({
|
|
@@ -2735,5 +2734,5 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2735
2734
|
}
|
|
2736
2735
|
});
|
|
2737
2736
|
export {
|
|
2738
|
-
|
|
2737
|
+
Va as default
|
|
2739
2738
|
};
|