@feedmepos/mf-inventory-portal 1.1.9 → 1.2.0-dev.3
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-D1UJ8NY1.js → App-CvnYXQ_H.js} +1 -1
- package/dist/{ApprovalView-Cf6tfPo1.js → ApprovalView-Brt_cfLI.js} +22 -22
- package/dist/{BindingsDialog-C4XnyllW.js → BindingsDialog-BBCRbm60.js} +2 -2
- package/dist/{BindingsPicker-BW4-JT2R.js → BindingsPicker-D3cfis0-.js} +1 -1
- package/dist/{BindingsTable-DtDFatll.js → BindingsTable-BuHEtiqI.js} +1 -1
- package/dist/{ClosingDraftView-TtsNry0r.js → ClosingDraftView-fLxuV9T9.js} +2 -2
- package/dist/{ClosingTemplateView-NbwT6bOk.js → ClosingTemplateView-BJRZQ_9d.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-ujSpOCKj.js → DeliveryOrderPrintPreview-CKLGVFoJ.js} +8 -8
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-AGOtUG41.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-6h2ZF1IM.js} +12 -12
- package/dist/{FmMultiselectDialog-c2e1Pisp.js → FmMultiselectDialog-uEoXq-hv.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BNxA-pQp.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CSNDv3kk.js} +25 -25
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-HkmovqY5.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CeZBz1eT.js} +1 -1
- package/dist/{IngredientGroupView-CnSZ_jFk.js → IngredientGroupView-BhsEp63p.js} +2 -2
- package/dist/{IngredientsView-DjWSaEi8.js → IngredientsView-D3aehOrb.js} +4 -4
- package/dist/{IntegrationView-CJJKfJDQ.js → IntegrationView-Ds4_pk0y.js} +83 -83
- package/dist/{InventoryBindingForm-DhnOLZJo.js → InventoryBindingForm-CVaSaP-L.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CgLA6KH7.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsJObBbP.js} +3 -3
- package/dist/{InventoryBindingSummary-_DhLtjfm.js → InventoryBindingSummary-4dCMV0Je.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BzlWBYz0.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BWTfN1Nc.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DRlFOUlD.js → PremiumBadge.vue_vue_type_script_setup_true_lang-lKPfAldc.js} +7 -7
- package/dist/{PublishView-DjA8RTiy.js → PublishView-BW1IjgqP.js} +4 -4
- package/dist/{PurchaseOrderPrintPreview-Bzdm9Vd-.js → PurchaseOrderPrintPreview-DupzzHHn.js} +7 -7
- package/dist/{ReceiveRequestView-CJ7oiJBQ.js → ReceiveRequestView-CZMDH6oI.js} +60 -60
- package/dist/{RecipeView--lcBWmZ3.js → RecipeView-BJ1JyMWl.js} +3 -3
- package/dist/StockView-C0h2udKi.js +2080 -0
- package/dist/{SupplierView-BN1P0pgR.js → SupplierView-nRrJO3aS.js} +3 -3
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CWXS6_zv.js +2310 -0
- package/dist/{TransferTemplateView-P25c3cZ-.js → TransferTemplateView-BmGAvcDy.js} +64 -64
- package/dist/{UnitView-Umy1Vy0Y.js → UnitView-CFayjoeC.js} +3 -3
- package/dist/{WarehouseView-DNDIdR4i.js → WarehouseView-Dw74JEJ4.js} +1 -1
- package/dist/api/stock.d.ts +2 -0
- package/dist/{app-CgzMLhAo.js → app-Cjc33Hak.js} +18639 -17803
- package/dist/app.d.ts +726 -6
- package/dist/app.js +1 -1
- package/dist/{decimal-D_3mwNtr.js → decimal-DkctM_2I.js} +1 -1
- package/dist/{format-unit-display-Bu29MSxm.js → format-unit-display-BWs5lTJP.js} +17 -17
- package/dist/{index-D-fVJxc8.js → index-C64jubVC.js} +1 -1
- package/dist/{index-BE8jrI3O.js → index-IbY1gBGq.js} +1 -1
- package/dist/{stock-JVbFNtIv.js → stock-BhsZeZQ6.js} +35 -27
- package/dist/style.css +1 -1
- package/dist/{supplier-nx8WElIW.js → supplier-D-CggzHd.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CX9_4vk_.js → use-ingredient-select-dialog-C03zsmuo.js} +1 -1
- package/dist/{use-inventory-binding-dialog-BfVLQDzr.js → use-inventory-binding-dialog-D3Chc97P.js} +1 -1
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +18 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +6 -2
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.vue.d.ts +94 -0
- package/dist/views/stock/components/dialog/AmendAdjustmentFormProps.d.ts +3 -0
- package/package.json +4 -4
- package/dist/StockView-BGNukBaV.js +0 -1856
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CiK1nGyN.js +0 -2272
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as Q, ref as z, computed as r, resolveComponent as s, openBlock as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as Q, ref as z, computed as r, resolveComponent as s, openBlock as B, createBlock as I, unref as v, createSlots as X, withCtx as c, createElementVNode as h, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
|
|
2
|
+
import { aB as oe, u as ne, a as ae, a$ as se, B as le, _ as ie, a4 as H } from "./app-Cjc33Hak.js";
|
|
3
3
|
import { useBreakpoints as re, useDialog as ce, useSnackbar as ue, components as R } from "@feedmepos/ui-library";
|
|
4
4
|
const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, fe = /* @__PURE__ */ Q({
|
|
5
5
|
__name: "PublishView",
|
|
@@ -133,7 +133,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
133
133
|
];
|
|
134
134
|
return (e, o) => {
|
|
135
135
|
const a = s("FmChip"), m = s("FlexRender"), p = s("TableActionableRow"), G = s("FmTable"), J = s("FmCollapsibleTabs"), O = s("FmBottomSheet");
|
|
136
|
-
return
|
|
136
|
+
return B(), I(ie, {
|
|
137
137
|
title: v(t)("inventory.publish.title"),
|
|
138
138
|
actions: q.value,
|
|
139
139
|
"onClick:action": E
|
|
@@ -183,7 +183,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
183
183
|
_: 1
|
|
184
184
|
}, 8, ["style", "row-data", "loading", "page-size"])
|
|
185
185
|
], 2),
|
|
186
|
-
(
|
|
186
|
+
(B(), I(te, { to: "body" }, [
|
|
187
187
|
n(O, {
|
|
188
188
|
"dismiss-away": "",
|
|
189
189
|
modelValue: w.value,
|
package/dist/{PurchaseOrderPrintPreview-Bzdm9Vd-.js → PurchaseOrderPrintPreview-DupzzHHn.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as b, computed as m, ref as x, onMounted as f, openBlock as u, createElementBlock as n, createElementVNode as t, toDisplayString as e, normalizeStyle as g, createTextVNode as i, Fragment as o, createCommentVNode as p, renderList as v } from "vue";
|
|
2
2
|
import { useRoute as w } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" }, N = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" },
|
|
3
|
+
import { aA as y, ao as k } from "./app-Cjc33Hak.js";
|
|
4
|
+
const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" }, N = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, B = { class: "text-right" }, H = { class: "text-right" }, I = { style: { "padding-top": "30px" } }, M = { valign: "bottom" }, z = { class: "header" }, J = { class: "caption" }, Q = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
7
7
|
}, j = { class: "text-left" }, G = {
|
|
@@ -107,15 +107,15 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
107
107
|
t("td", L, e(r.code), 1),
|
|
108
108
|
t("td", U, e(r.description), 1),
|
|
109
109
|
t("td", V, e(r.quantity), 1),
|
|
110
|
-
t("td",
|
|
111
|
-
t("td",
|
|
110
|
+
t("td", B, e(r.unit), 1),
|
|
111
|
+
t("td", H, e(r.cost ? r.cost : "N/A"), 1)
|
|
112
112
|
]))), 128))
|
|
113
113
|
])
|
|
114
114
|
])
|
|
115
115
|
]),
|
|
116
116
|
l[14] || (l[14] = t("hr", null, null, -1)),
|
|
117
117
|
t("div", null, "Remark: " + e(s.value.remark), 1),
|
|
118
|
-
t("div",
|
|
118
|
+
t("div", I, [
|
|
119
119
|
l[11] || (l[11] = t("hr", null, null, -1)),
|
|
120
120
|
l[12] || (l[12] = i(" Delivery History: ")),
|
|
121
121
|
(u(!0), n(o, null, v(s.value.deliveryOrders, (r, a) => (u(), n("div", {
|
|
@@ -123,9 +123,9 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
123
123
|
style: { padding: "10px 30px" }
|
|
124
124
|
}, [
|
|
125
125
|
t("table", null, [
|
|
126
|
-
t("tr",
|
|
126
|
+
t("tr", M, [
|
|
127
127
|
t("td", null, [
|
|
128
|
-
t("div",
|
|
128
|
+
t("div", z, "Ref: " + e(r.ref), 1),
|
|
129
129
|
t("div", J, e(r.createdAt), 1),
|
|
130
130
|
t("div", null, "Remark: " + e(r.remark), 1)
|
|
131
131
|
])
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { reactive as gt, 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
|
|
2
|
-
import { b as Ue, Q as
|
|
3
|
-
import { u as st, 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-
|
|
1
|
+
import { reactive as gt, 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 W, normalizeStyle as _t, 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 Ge, c as We, m as Me, j as Ce, aa as Qe, T as Pt, ay as Rt, A as qe, M as At, n as ht, ah as Je, G as fe, aq as Et, az as Ot, aA as Mt, a5 as qt, aB as Ut, K as kt, u as et, a as tt, aC as Nt, aD as Bt, a9 as zt, a0 as Lt, aE as Ht, E as xt, a2 as jt, e as Oe, aF as Qt, x as Yt, y as Kt, z as Xt, aG as je, ab as ft, B as Zt, N as Gt, H as Wt, _ as Jt, C as es, W as vt } from "./app-Cjc33Hak.js";
|
|
3
|
+
import { u as st, a as ts, P as Xe, b as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CWXS6_zv.js";
|
|
4
|
+
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-lKPfAldc.js";
|
|
5
5
|
import { u as is } from "./useTabStorage-BkIVScW_.js";
|
|
6
6
|
import { useBreakpoints as ot, 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-BWs5lTJP.js";
|
|
8
|
+
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CSNDv3kk.js";
|
|
9
|
+
import { c as $e, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-6h2ZF1IM.js";
|
|
10
10
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as at } from "./supplier-
|
|
11
|
+
import "./FmMultiselectDialog-uEoXq-hv.js";
|
|
12
|
+
import { u as at } from "./supplier-D-CggzHd.js";
|
|
13
13
|
import { _ as bs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
14
|
import "./array-Ca8T3f_G.js";
|
|
15
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 || {});
|
|
@@ -22,7 +22,7 @@ const gs = () => (_e(), L(
|
|
|
22
22
|
`Total (${ht()})`
|
|
23
23
|
));
|
|
24
24
|
function _s(g) {
|
|
25
|
-
const { t: w } = _e(), r = gt({}), { breakpoints: p } = ot(), x =
|
|
25
|
+
const { t: w } = _e(), r = gt({}), { breakpoints: p } = ot(), x = We(), t = Ue();
|
|
26
26
|
Ye(() => {
|
|
27
27
|
for (const v of g.items) {
|
|
28
28
|
if (!v.totalCost)
|
|
@@ -34,7 +34,7 @@ function _s(g) {
|
|
|
34
34
|
{
|
|
35
35
|
supplier: g.supplier
|
|
36
36
|
}
|
|
37
|
-
), u = v.totalCost ??
|
|
37
|
+
), u = v.totalCost ?? Ge.reset();
|
|
38
38
|
e ? r[v.sku._id] = e.amount !== u.amount || e.precision !== u.precision : r[v.sku._id] = !0;
|
|
39
39
|
}
|
|
40
40
|
}), ge([() => g.supplier], ([v]) => {
|
|
@@ -612,7 +612,7 @@ const qs = {
|
|
|
612
612
|
}, null, 8, zs)
|
|
613
613
|
]));
|
|
614
614
|
}
|
|
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" },
|
|
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" }, Gs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ws = { class: "flex gap-1" }, Js = /* @__PURE__ */ ce({
|
|
616
616
|
__name: "ForecastStock",
|
|
617
617
|
props: {
|
|
618
618
|
templateId: {},
|
|
@@ -762,12 +762,12 @@ const qs = {
|
|
|
762
762
|
size: "sm",
|
|
763
763
|
class: "text-fm-color-system-warning-300"
|
|
764
764
|
}),
|
|
765
|
-
n("div",
|
|
765
|
+
n("div", Gs, M(s($)("inventory.transfer.form.items.forecastStock.replace")), 1)
|
|
766
766
|
])
|
|
767
767
|
]),
|
|
768
768
|
_: 1
|
|
769
769
|
}, 8, ["modelValue", "label", "rules"]),
|
|
770
|
-
n("div",
|
|
770
|
+
n("div", Ws, [
|
|
771
771
|
i[4] || (i[4] = n("div", { class: "grow" }, null, -1)),
|
|
772
772
|
y(h, {
|
|
773
773
|
label: s($)("common.cancel"),
|
|
@@ -849,7 +849,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
849
849
|
var x, t;
|
|
850
850
|
return S(), T(de, null, [
|
|
851
851
|
n("tr", {
|
|
852
|
-
class:
|
|
852
|
+
class: W(["border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm", {
|
|
853
853
|
"bg-fm-color-neutral-gray-100": r.row.getIsSelected()
|
|
854
854
|
}])
|
|
855
855
|
}, [
|
|
@@ -857,7 +857,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
857
857
|
var F, $, v, e;
|
|
858
858
|
return S(), T("td", {
|
|
859
859
|
key: f.id,
|
|
860
|
-
class:
|
|
860
|
+
class: W(["h-[56px] text-fm-color-typo-primary", ((F = w(f)) == null ? void 0 : F.cellClass) ?? "px-16"]),
|
|
861
861
|
style: _t({
|
|
862
862
|
width: ($ = w(f)) == null ? void 0 : $.width,
|
|
863
863
|
maxWidth: (v = w(f)) == null ? void 0 : v.maxWidth,
|
|
@@ -986,7 +986,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
986
986
|
color: e.disabled ? "neutral-gray-200" : "neutral-gray-400"
|
|
987
987
|
}, null, 8, ["color"]),
|
|
988
988
|
n("div", {
|
|
989
|
-
class:
|
|
989
|
+
class: W([e.disabled ? "text-fm-color-typo-disabled" : ""])
|
|
990
990
|
}, M((_ = $.value) == null ? void 0 : _.fullName), 3)
|
|
991
991
|
])
|
|
992
992
|
];
|
|
@@ -1022,7 +1022,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1022
1022
|
},
|
|
1023
1023
|
emits: ["validation-success", "form:ready"],
|
|
1024
1024
|
setup(g, { expose: w, emit: r }) {
|
|
1025
|
-
const p = g, x = r, t = kt(), { t: f } = _e(), F = et(), $ = tt(), v = Ue(), e = at(), u =
|
|
1025
|
+
const p = g, x = r, t = kt(), { t: f } = _e(), F = et(), $ = tt(), v = Ue(), e = at(), u = We(), k = wt(), { breakpoints: a } = ot(), i = N(() => a.value.xs || a.value.sm), h = gt({
|
|
1026
1026
|
value: !1
|
|
1027
1027
|
}), _ = q(!1), C = q(0), l = q([]), c = N(
|
|
1028
1028
|
() => {
|
|
@@ -1038,26 +1038,26 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1038
1038
|
if (D.value) {
|
|
1039
1039
|
const H = (m = o.purchaseOrder) == null ? void 0 : m.supplier.internal;
|
|
1040
1040
|
if (H && (H == "restaurant" || H == "warehouse")) {
|
|
1041
|
-
const le = (E = o.purchaseOrder) == null ? void 0 : E.supplier._id, me = `${H}_${le}`,
|
|
1041
|
+
const le = (E = o.purchaseOrder) == null ? void 0 : E.supplier._id, me = `${H}_${le}`, G = F.allLocations.find(
|
|
1042
1042
|
(re) => re.type === H && re.dbName === me
|
|
1043
1043
|
);
|
|
1044
|
-
if (
|
|
1044
|
+
if (G) {
|
|
1045
1045
|
const re = {
|
|
1046
1046
|
...o.purchaseOrder.supplier,
|
|
1047
|
-
name:
|
|
1048
|
-
contactName:
|
|
1049
|
-
email:
|
|
1050
|
-
phoneNumber:
|
|
1051
|
-
registrationNumber:
|
|
1052
|
-
address:
|
|
1047
|
+
name: G.doc.profile.name,
|
|
1048
|
+
contactName: G.doc.profile.name,
|
|
1049
|
+
email: G.doc.profile.email,
|
|
1050
|
+
phoneNumber: G.doc.profile.phoneNo,
|
|
1051
|
+
registrationNumber: G.doc.profile.regNo,
|
|
1052
|
+
address: G.doc.profile.address
|
|
1053
1053
|
};
|
|
1054
1054
|
t.supplier = re;
|
|
1055
1055
|
}
|
|
1056
1056
|
} else {
|
|
1057
1057
|
const le = e.suppliers.find(
|
|
1058
1058
|
(me) => {
|
|
1059
|
-
var
|
|
1060
|
-
return me._id === ((
|
|
1059
|
+
var G;
|
|
1060
|
+
return me._id === ((G = o.purchaseOrder.supplier) == null ? void 0 : G._id);
|
|
1061
1061
|
}
|
|
1062
1062
|
);
|
|
1063
1063
|
t.supplier = le ?? t.supplier;
|
|
@@ -1193,8 +1193,8 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1193
1193
|
}
|
|
1194
1194
|
}), Be = N(() => Ne.columnDefs.value);
|
|
1195
1195
|
function ze() {
|
|
1196
|
-
var
|
|
1197
|
-
const o = (Fe = (re = (
|
|
1196
|
+
var G, re, Fe, He, Re;
|
|
1197
|
+
const o = (Fe = (re = (G = c.value) == null ? void 0 : G.purchaseOrder) == null ? void 0 : re.items) == null ? void 0 : Fe.groupBy((z) => z.sku._id), m = v.isEnabled ? v.getAvailableItems((Re = (He = t.netSuite) == null ? void 0 : He.subsidiary) == null ? void 0 : Re.id) : [], E = o != null && o.size ? $.skus.filter((z) => o.has(z._id)) : $.skus, H = v.isEnabled ? E.filter((z) => {
|
|
1198
1198
|
var ae, se, ue, pe;
|
|
1199
1199
|
const te = (se = (ae = c.value) == null ? void 0 : ae.purchaseOrder) == null ? void 0 : se.items.find(
|
|
1200
1200
|
(ve) => ve.sku._id === z._id
|
|
@@ -1307,7 +1307,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1307
1307
|
});
|
|
1308
1308
|
return (o, m) => {
|
|
1309
1309
|
var ve, Ae;
|
|
1310
|
-
const E = I("FmChip"), H = I("FmLabel"), le = I("FmIcon"), me = I("FmField"),
|
|
1310
|
+
const E = I("FmChip"), H = I("FmLabel"), le = I("FmIcon"), me = I("FmField"), G = 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
1311
|
return S(), T("div", co, [
|
|
1312
1312
|
n("div", mo, [
|
|
1313
1313
|
(ve = p.modelValue) != null && ve.template ? (S(), J(E, {
|
|
@@ -1348,7 +1348,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1348
1348
|
label: s(f)("inventory.transfer.form.type.title")
|
|
1349
1349
|
}, null, 8, ["label"]),
|
|
1350
1350
|
n("div", yo, [
|
|
1351
|
-
y(
|
|
1351
|
+
y(G, {
|
|
1352
1352
|
"z-index": 51,
|
|
1353
1353
|
placement: "left",
|
|
1354
1354
|
disabled: o.disabled
|
|
@@ -1366,7 +1366,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1366
1366
|
color: o.disabled ? "neutral-gray-200" : "neutral-gray-400"
|
|
1367
1367
|
}, null, 8, ["color"]),
|
|
1368
1368
|
n("div", {
|
|
1369
|
-
class:
|
|
1369
|
+
class: W({ "text-fm-color-typo-disabled": o.disabled })
|
|
1370
1370
|
}, M(s(f)(`inventory.transfer.form.type.${K.value.toLocaleLowerCase("en-us")}`)), 3)
|
|
1371
1371
|
])
|
|
1372
1372
|
]),
|
|
@@ -1376,7 +1376,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1376
1376
|
_: 1
|
|
1377
1377
|
}, 8, ["disabled"]),
|
|
1378
1378
|
n("div", {
|
|
1379
|
-
class:
|
|
1379
|
+
class: W([
|
|
1380
1380
|
"fm-typo-en-body-sm-400",
|
|
1381
1381
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"
|
|
1382
1382
|
])
|
|
@@ -1388,7 +1388,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1388
1388
|
label: K.value === s(ne).PURCHASE ? s(f)("inventory.transfer.form.purchaseFrom") : s(f)("inventory.transfer.form.transferFrom")
|
|
1389
1389
|
}, null, 8, ["label"]),
|
|
1390
1390
|
n("div", _o, [
|
|
1391
|
-
y(
|
|
1391
|
+
y(G, {
|
|
1392
1392
|
"z-index": 51,
|
|
1393
1393
|
placement: "left",
|
|
1394
1394
|
disabled: o.disabled
|
|
@@ -1408,7 +1408,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1408
1408
|
color: o.disabled ? "neutral-gray-200" : "neutral-gray-400"
|
|
1409
1409
|
}, null, 8, ["color"]),
|
|
1410
1410
|
n("div", {
|
|
1411
|
-
class:
|
|
1411
|
+
class: W({ "text-fm-color-typo-disabled": o.disabled })
|
|
1412
1412
|
}, M((V = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : V.label), 3)
|
|
1413
1413
|
])
|
|
1414
1414
|
];
|
|
@@ -1431,7 +1431,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1431
1431
|
}, {
|
|
1432
1432
|
default: A(() => [
|
|
1433
1433
|
n("span", {
|
|
1434
|
-
class:
|
|
1434
|
+
class: W([
|
|
1435
1435
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1436
1436
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1437
1437
|
])
|
|
@@ -1460,7 +1460,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1460
1460
|
var V;
|
|
1461
1461
|
return [
|
|
1462
1462
|
n("span", {
|
|
1463
|
-
class:
|
|
1463
|
+
class: W([
|
|
1464
1464
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1465
1465
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1466
1466
|
])
|
|
@@ -1482,7 +1482,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1482
1482
|
"max-length": 240,
|
|
1483
1483
|
modelValue: P.value,
|
|
1484
1484
|
"onUpdate:modelValue": m[3] || (m[3] = (V) => P.value = V),
|
|
1485
|
-
class:
|
|
1485
|
+
class: W([o.disabled ? "text-fm-color-typo-disabled " : ""])
|
|
1486
1486
|
}, null, 8, ["label", "modelValue", "class"]),
|
|
1487
1487
|
_.value ? (S(), J(uo, {
|
|
1488
1488
|
key: 2,
|
|
@@ -1500,7 +1500,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1500
1500
|
}, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : j("", !0),
|
|
1501
1501
|
s(u).enableBackdatePo ? (S(), T("div", ko, [
|
|
1502
1502
|
n("div", {
|
|
1503
|
-
class:
|
|
1503
|
+
class: W([
|
|
1504
1504
|
"flex",
|
|
1505
1505
|
{
|
|
1506
1506
|
"flex-col": i.value
|
|
@@ -1516,7 +1516,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1516
1516
|
disabled: B.value && !o.lastClosingDate || o.disabled
|
|
1517
1517
|
}, null, 8, ["modelValue", "label", "sublabel", "disabled"]),
|
|
1518
1518
|
n("div", {
|
|
1519
|
-
class:
|
|
1519
|
+
class: W({ hidden: i.value, "w-16": !i.value })
|
|
1520
1520
|
}, null, 2),
|
|
1521
1521
|
s(b) ? (S(), T("div", xo, [
|
|
1522
1522
|
n("div", Co, [
|
|
@@ -1556,7 +1556,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1556
1556
|
rules: [s(qe)(1)]
|
|
1557
1557
|
}, null, 8, ["model-value", "rules"]),
|
|
1558
1558
|
n("div", {
|
|
1559
|
-
class:
|
|
1559
|
+
class: W([
|
|
1560
1560
|
"flex gap-16",
|
|
1561
1561
|
{
|
|
1562
1562
|
"flex-col items-start": i.value,
|
|
@@ -1927,7 +1927,7 @@ function Mo(g) {
|
|
|
1927
1927
|
sku: a,
|
|
1928
1928
|
code: k.scanned_code,
|
|
1929
1929
|
name: k.item_name,
|
|
1930
|
-
quantity:
|
|
1930
|
+
quantity: Ge.fromNumber(Number(k["transfer_quantity(uom)"])),
|
|
1931
1931
|
measurement: h
|
|
1932
1932
|
});
|
|
1933
1933
|
}
|
|
@@ -1956,7 +1956,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1956
1956
|
key: 0,
|
|
1957
1957
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
1958
1958
|
}, zo = { key: 0 }, Lo = {
|
|
1959
|
-
class: /* @__PURE__ */
|
|
1959
|
+
class: /* @__PURE__ */ W(["fm-typo-en-body-lg-600"])
|
|
1960
1960
|
}, Ho = { class: "flex-1" }, jo = { class: "flex-auto line-clamp-2 text-ellipsis break-all fm-typo-en-body-sm-400" }, Qo = { class: "flex-auto line-clamp-2 text-ellipsis break-all" }, Yo = { class: "text-fm-color-typo-primary" }, Ko = { class: "ml-auto" }, Xo = { key: 0 }, Zo = /* @__PURE__ */ ce({
|
|
1961
1961
|
__name: "XilnexResult",
|
|
1962
1962
|
props: {
|
|
@@ -1975,14 +1975,14 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1975
1975
|
return S(), T("div", qo, [
|
|
1976
1976
|
n("div", {
|
|
1977
1977
|
onClick: x,
|
|
1978
|
-
class:
|
|
1978
|
+
class: W({
|
|
1979
1979
|
"cursor-pointer": t.errors.length
|
|
1980
1980
|
})
|
|
1981
1981
|
}, [
|
|
1982
1982
|
n("div", Uo, [
|
|
1983
1983
|
n("div", No, [
|
|
1984
1984
|
n("div", {
|
|
1985
|
-
class:
|
|
1985
|
+
class: W({
|
|
1986
1986
|
"text-fm-color-system-error-300": t.errors.length
|
|
1987
1987
|
})
|
|
1988
1988
|
}, [
|
|
@@ -2026,7 +2026,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2026
2026
|
}, 1032, ["content"])
|
|
2027
2027
|
]),
|
|
2028
2028
|
n("div", null, [
|
|
2029
|
-
n("span", Yo, M(s(
|
|
2029
|
+
n("span", Yo, M(s(Ge).toFormatString({
|
|
2030
2030
|
value: e.quantity
|
|
2031
2031
|
})), 1),
|
|
2032
2032
|
Ie(" " + M(e.measurement ? e.measurement.abbrev : e.sku.unit.abbrev), 1)
|
|
@@ -2044,7 +2044,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2044
2044
|
], 2),
|
|
2045
2045
|
p.value ? (S(), T("div", {
|
|
2046
2046
|
key: 0,
|
|
2047
|
-
class:
|
|
2047
|
+
class: W(["flex flex-col gap-4 pl-8 fm-typo-en-body-sm-400", {
|
|
2048
2048
|
"text-fm-color-typo-secondary": !t.errors.length,
|
|
2049
2049
|
"text-fm-color-system-error-300": t.errors.length
|
|
2050
2050
|
}])
|
|
@@ -2058,7 +2058,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2058
2058
|
]);
|
|
2059
2059
|
};
|
|
2060
2060
|
}
|
|
2061
|
-
}),
|
|
2061
|
+
}), Go = { class: "flex flex-col gap-24" }, Wo = {
|
|
2062
2062
|
key: 0,
|
|
2063
2063
|
class: "flex items-center gap-8"
|
|
2064
2064
|
}, Jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ea = { class: "flex flex-col gap-8" }, ta = { class: "line-clamp-2 text-ellipsis break-all" }, sa = {
|
|
@@ -2181,7 +2181,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2181
2181
|
ref: h
|
|
2182
2182
|
}, {
|
|
2183
2183
|
default: A(() => [
|
|
2184
|
-
n("div",
|
|
2184
|
+
n("div", Go, [
|
|
2185
2185
|
y(D, {
|
|
2186
2186
|
modelValue: v.value,
|
|
2187
2187
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => v.value = d),
|
|
@@ -2211,7 +2211,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2211
2211
|
label: "Transfer time",
|
|
2212
2212
|
rules: [s(Me)()]
|
|
2213
2213
|
}, null, 8, ["modelValue", "rules"]),
|
|
2214
|
-
t.value ? (S(), T("div",
|
|
2214
|
+
t.value ? (S(), T("div", Wo, [
|
|
2215
2215
|
n("div", null, [
|
|
2216
2216
|
y(Y, {
|
|
2217
2217
|
size: "md",
|
|
@@ -2222,7 +2222,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2222
2222
|
])) : (S(), T(de, { key: 1 }, [
|
|
2223
2223
|
y(Kt, {
|
|
2224
2224
|
"max-file-size": 5,
|
|
2225
|
-
class:
|
|
2225
|
+
class: W({
|
|
2226
2226
|
"w-full": !0,
|
|
2227
2227
|
"h-[200px]": !r.value
|
|
2228
2228
|
}),
|
|
@@ -2242,7 +2242,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2242
2242
|
}),
|
|
2243
2243
|
n("div", ea, [
|
|
2244
2244
|
n("div", {
|
|
2245
|
-
class:
|
|
2245
|
+
class: W([
|
|
2246
2246
|
"fm-corner-radius-md p-16 flex items-center gap-16",
|
|
2247
2247
|
{
|
|
2248
2248
|
"border border-fm-color-neutral-gray-100": x.value,
|
|
@@ -2262,7 +2262,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2262
2262
|
color: i.value ? "system-error-300" : void 0
|
|
2263
2263
|
}, null, 8, ["name", "color"])),
|
|
2264
2264
|
n("div", {
|
|
2265
|
-
class:
|
|
2265
|
+
class: W([
|
|
2266
2266
|
"fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center",
|
|
2267
2267
|
{
|
|
2268
2268
|
"text-fm-color-typo-disabled": x.value,
|
|
@@ -2450,7 +2450,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2450
2450
|
});
|
|
2451
2451
|
const p = N(
|
|
2452
2452
|
() => !k._currentLocation || e.loading.value
|
|
2453
|
-
), x = is(), t =
|
|
2453
|
+
), x = is(), t = We(), f = Ue();
|
|
2454
2454
|
function F() {
|
|
2455
2455
|
const O = {
|
|
2456
2456
|
name: "",
|
|
@@ -2613,10 +2613,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2613
2613
|
}), Y = q(null), K = N(() => {
|
|
2614
2614
|
if (!Y.value)
|
|
2615
2615
|
return e.purchaseOrders.value;
|
|
2616
|
-
const O =
|
|
2616
|
+
const O = Gt.build(Y.value);
|
|
2617
2617
|
return e.purchaseOrders.value.filter((U) => {
|
|
2618
2618
|
var P, d, b, R;
|
|
2619
|
-
return
|
|
2619
|
+
return Wt(
|
|
2620
2620
|
{
|
|
2621
2621
|
netsuiteTransactionNumber: (d = (P = U.netSuite) == null ? void 0 : P.additionalInfo) == null ? void 0 : d.transactionnumber,
|
|
2622
2622
|
netsuiteOrderNo: (b = U.netSuite) == null ? void 0 : b.refNo,
|
|
@@ -2638,7 +2638,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2638
2638
|
var d, b;
|
|
2639
2639
|
return [
|
|
2640
2640
|
n("div", {
|
|
2641
|
-
class:
|
|
2641
|
+
class: W([
|
|
2642
2642
|
"flex flex-col gap-8 max-h-full",
|
|
2643
2643
|
{
|
|
2644
2644
|
"p-0": l.value,
|
|
@@ -2675,7 +2675,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2675
2675
|
onRowClick: s(e).promptShowTransferDetails
|
|
2676
2676
|
}, {
|
|
2677
2677
|
default: A((X) => {
|
|
2678
|
-
var Z, he, ke, ie, we, Ne, Be, ze, De, Le, Ve, Pe, o, m, E, H, le, me,
|
|
2678
|
+
var Z, he, ke, ie, we, Ne, Be, ze, De, Le, Ve, Pe, o, m, E, H, le, me, G, re;
|
|
2679
2679
|
return [
|
|
2680
2680
|
n("div", da, [
|
|
2681
2681
|
n("div", ca, [
|
|
@@ -2700,7 +2700,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2700
2700
|
n("div", va, [
|
|
2701
2701
|
y(s(fe), {
|
|
2702
2702
|
render: (me = (le = (H = X.status) == null ? void 0 : H.column) == null ? void 0 : le.columnDef) == null ? void 0 : me.cell,
|
|
2703
|
-
props: (re = (
|
|
2703
|
+
props: (re = (G = X.status) == null ? void 0 : G.getContext) == null ? void 0 : re.call(G)
|
|
2704
2704
|
}, null, 8, ["render", "props"])
|
|
2705
2705
|
])
|
|
2706
2706
|
])
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as K, ref as E, onMounted as re, resolveComponent as $, openBlock as F, createElementBlock as B, Fragment as ie, createElementVNode as h, toDisplayString as ue, createVNode as g, createCommentVNode as O, computed as k, watch as ce, createBlock as N, withCtx as P, unref as b, isRef as ee, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
|
|
2
|
-
import { a as A, e as V, f as Q, S as ye, h as ge, D as te, i as Y, j as U, F as H, m as be, U as _e, A as we, c as Re, q as ne, r as he, v as xe, s as Se, u as Ve, B as Ce, _ as Ee, C as Fe, E as $e, G as oe } from "./app-
|
|
2
|
+
import { a as A, e as V, f as Q, S as ye, h as ge, D as te, i as Y, j as U, F as H, m as be, U as _e, A as we, c as Re, q as ne, r as he, v as xe, s as Se, u as Ve, B as Ce, _ as Ee, C as Fe, E as $e, G as oe } from "./app-Cjc33Hak.js";
|
|
3
3
|
import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as Ie } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as De, _ as Ae } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
-
import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-CeZBz1eT.js";
|
|
6
6
|
import { defineStore as Be, storeToRefs as Pe } from "pinia";
|
|
7
7
|
import { useI18n as q } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsJObBbP.js";
|
|
9
9
|
import { _ as Ue } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
10
10
|
const Me = {
|
|
11
11
|
key: 0,
|