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