@feedmepos/mf-inventory-portal 1.2.41 → 1.2.42-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-BIte52Pp.js → App-tCZXxWWi.js} +3 -3
- package/dist/{ApprovalView-JfMRinbO.js → ApprovalView-DsoqQiwe.js} +5 -5
- package/dist/{BindingsDialog-vWWVE53r.js → BindingsDialog-BCXWR50h.js} +8 -8
- package/dist/{BindingsPicker-CaioRGQF.js → BindingsPicker-B3O_g_Nv.js} +3 -3
- package/dist/{BindingsTable-C7wQYr4Q.js → BindingsTable-C9WLnkpX.js} +3 -3
- package/dist/{ClosingDraftView-BQUPmOGf.js → ClosingDraftView-SgUfLfsI.js} +8 -8
- package/dist/{ClosingHistoryView-DJCPMxxe.js → ClosingHistoryView-DZnzhSNn.js} +22 -22
- package/dist/{ClosingTemplateView-2G5nlEZD.js → ClosingTemplateView-VKu9x3Nz.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-52SJyur7.js → DeliveryOrderPrintPreview-CD_43MIv.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D4y509uw.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DbVm-oVE.js} +59 -60
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bu4F9apP.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UocERxk1.js} +2 -2
- package/dist/{FmMultiselectDialog-DFjTvhrL.js → FmMultiselectDialog-BnSC4X04.js} +1 -1
- package/dist/{FmMultiselectDialog-ynZ3ZEkp.js → FmMultiselectDialog-CsohyGSW.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CHZcrzs1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BiRrQ1MQ.js} +3 -3
- package/dist/{ImportView-B7cWiUlq.js → ImportView-uqB1qMsv.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DLLVwbc_.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CfypjWW9.js} +1 -1
- package/dist/{IngredientGroupView-BheK-hr7.js → IngredientGroupView-eN4sBErO.js} +5 -5
- package/dist/{IngredientsView-CcBD0nYz.js → IngredientsView-DQvn_4YD.js} +14 -14
- package/dist/{IntegrationView-BjSMrWJi.js → IntegrationView-DCy2Ovro.js} +12 -12
- package/dist/{InventoryBindingForm-CA0jI2fl.js → InventoryBindingForm-Bi_8m5gH.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BREhgetj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CO_qBo1J.js} +14 -14
- package/dist/{InventoryBindingSummary-BwTziKzM.js → InventoryBindingSummary-BGFGNEaq.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C3U2CRwm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CTzDO5jB.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Oz2AyEGP.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bcs3g9F2.js} +2 -2
- package/dist/{PublishView-TMhQAsyu.js → PublishView-BX8Ed4Fw.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DuYNXbd4.js → PurchaseOrderPrintPreview-D6N8SLTM.js} +9 -9
- package/dist/ReceiveRequestView-CbP7cF9S.js +2873 -0
- package/dist/{RecipeView-DppUQeYL.js → RecipeView-qjmtVVz0.js} +8 -8
- package/dist/{StockView-DAm5kNok.js → StockView-CKjuCvQc.js} +344 -341
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BkGdp_SI.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BpsE9HjF.js} +1 -1
- package/dist/{SupplierView-DYBw03Op.js → SupplierView-0Wkmi0vZ.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DGb1ngHq.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-js9xKiOh.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CiAORJrZ.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CFQjYlPf.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bng7t5aA.js → TransferDetails.vue_vue_type_script_setup_true_lang-EHUIhMvO.js} +430 -430
- package/dist/{TransferTemplateView-BsSwtFY0.js → TransferTemplateView-B686QVLm.js} +354 -354
- package/dist/{UnitView-sCwSm5jh.js → UnitView-D3TwY-Rl.js} +6 -6
- package/dist/{WarehouseView-CU5qLsQL.js → WarehouseView-wuSCGpc4.js} +5 -5
- package/dist/{WastageTemplateView-DiqGE7E3.js → WastageTemplateView-BhVG1haN.js} +14 -14
- package/dist/{app-CRAhcbhd.js → app-lUdYxPdT.js} +2372 -2303
- package/dist/app.js +7 -7
- package/dist/{closing-template-DYislCMF.js → closing-template-5nZX2GD3.js} +1 -1
- package/dist/{date2-C-xZ8cqf.js → date2-BPDWKAmI.js} +1 -1
- package/dist/{dayjs.min-BLcebhHP.js → dayjs.min-CRgiNB25.js} +21 -21
- package/dist/{decimal-UKannZrQ.js → decimal-xfLGGBXv.js} +2 -2
- package/dist/{defineDeepModel-D8ScMZZw.js → defineDeepModel-D_Oxy2Kx.js} +1 -1
- package/dist/{duplicate-template-De-74YH6.js → duplicate-template-Blu_HX7A.js} +1 -1
- package/dist/feature-BQk-YWoV.js +25699 -0
- package/dist/{format-time-from-id-Cop0w9qb.js → format-time-from-id-DUZwcLw9.js} +1 -1
- package/dist/{format-unit-display-1G-lIy-O.js → format-unit-display-D-X5mzYF.js} +245 -246
- package/dist/helper/object.d.ts +21 -0
- package/dist/helper/reactivity.d.ts +11 -0
- package/dist/helper/reactivity.spec.d.ts +1 -0
- package/dist/{import-export.helper-DwtwMGUg.js → import-export.helper-BgbvcSvd.js} +5 -5
- package/dist/{index-mHuFfoTd.js → index-BaMcL6nD.js} +9 -9
- package/dist/{index-CZVxWvXs.js → index-BvxQIPJI.js} +3 -3
- package/dist/{index-D0Jbqka0.js → index-tnlv1Cb_.js} +1 -1
- package/dist/{lodash-ChFp_-Yp.js → lodash-C9Qka4SS.js} +1 -1
- package/dist/{netsuite-51c6h4mk.js → netsuite-Dns3RQor.js} +70 -70
- package/dist/{purchase-order-template-BmmBT4iS.js → purchase-order-template-Yfp5lQ6o.js} +1 -1
- package/dist/{rules-BleXdYUs.js → rules-2gDRiI3y.js} +3 -3
- package/dist/{stock-B-nJZjoG.js → stock-D3amnnvm.js} +1 -1
- package/dist/{stock-6SYODLp6.js → stock-DMwTxyEy.js} +3 -3
- package/dist/{supplier-BuYvvMKA.js → supplier-Bi2nswlc.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Bh5T8TmW.js → use-ingredient-select-dialog-B3j2244S.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Dh0hVzGV.js → use-inventory-binding-dialog-cEzQyw4F.js} +2 -2
- package/dist/{use-template-enabled-locations-2-pEIG0Sd8.js → use-template-enabled-locations-2-CnbMSpm9.js} +2 -2
- package/dist/views/receive-request/components/netsuite/NetSuitePanel.vue.d.ts +3 -2
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +3 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +23 -2554
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +6 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +22 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +3 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +6 -6
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
- package/dist/views/receive-request/helper/get-transfer-type.d.ts +1 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +3 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +3 -2
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +4 -3
- package/dist/{vue-i18n-DRHpfOaU.js → vue-i18n-D6IE7fks.js} +459 -459
- package/dist/{xlsx-DzVz917g.js → xlsx-By0V1CHo.js} +398 -398
- package/dist/{xlsx.util-D6AoBHGt.js → xlsx.util-DH2bvm7W.js} +1 -1
- package/package.json +3 -3
- package/dist/ReceiveRequestView-CHBSuE63.js +0 -2841
- package/dist/feature-D_iKVPEM.js +0 -20162
- package/dist/views/receive-request/constants/purchase-order-transaction-type.d.ts +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as B, onUnmounted as D, defineComponent as w, watch as L, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as g, createElementVNode as v, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
|
|
2
|
-
import { u as K, a as $, R as e, m as _, g as a, b as V } from "./app-
|
|
2
|
+
import { u as K, a as $, R as e, m as _, g as a, b as V } from "./app-lUdYxPdT.js";
|
|
3
3
|
import { useCoreStore as U, useI18n as k } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as O, useRoute as j } from "vue-router";
|
|
5
|
-
import { u as H } from "./feature-
|
|
6
|
-
import { u as z } from "./netsuite-
|
|
5
|
+
import { u as H } from "./feature-BQk-YWoV.js";
|
|
6
|
+
import { u as z } from "./netsuite-Dns3RQor.js";
|
|
7
7
|
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
8
8
|
import { u as Y } from "./googlemap-Dm8ERVai.js";
|
|
9
9
|
function q() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as k, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
|
|
2
|
-
import { u as De, m as b } from "./app-
|
|
3
|
-
import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as be, P as q, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { d as Z } from "./date2-
|
|
2
|
+
import { u as De, m as b } from "./app-lUdYxPdT.js";
|
|
3
|
+
import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UocERxk1.js";
|
|
4
|
+
import { u as be, P as q, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-EHUIhMvO.js";
|
|
5
|
+
import { d as Z } from "./date2-BPDWKAmI.js";
|
|
6
6
|
import { u as Se, _ as xe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
7
7
|
import { _ as ke, F as O } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
8
8
|
import { useBreakpoints as qe } from "@feedmepos/ui-library";
|
|
9
9
|
import { useI18n as we } from "@feedmepos/mf-common";
|
|
10
10
|
import { N as Pe, H as Ne } from "./app-uBuHtW8m.js";
|
|
11
|
-
import { u as Te } from "./netsuite-
|
|
11
|
+
import { u as Te } from "./netsuite-Dns3RQor.js";
|
|
12
12
|
const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Fe = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L,
|
|
1
|
+
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CO_qBo1J.js";
|
|
3
|
+
import { a as L, ah as S } from "./app-lUdYxPdT.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -10,10 +10,10 @@ const U = {
|
|
|
10
10
|
}, D = /* @__PURE__ */ C({
|
|
11
11
|
__name: "BindingsDialog",
|
|
12
12
|
setup(N) {
|
|
13
|
-
const p = L(),
|
|
13
|
+
const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
|
|
14
14
|
async function y() {
|
|
15
15
|
await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
|
|
16
|
-
|
|
16
|
+
d.value = !1, s.value = e;
|
|
17
17
|
}).onMessage("props:inventory-bindings:validate", () => {
|
|
18
18
|
var e;
|
|
19
19
|
(e = f.value) == null || e.validateInputs();
|
|
@@ -48,12 +48,12 @@ const U = {
|
|
|
48
48
|
const f = o();
|
|
49
49
|
return (e, n) => {
|
|
50
50
|
const g = l("FmButton"), B = l("FmForm"), h = l("FmCircularProgress");
|
|
51
|
-
return i(),
|
|
51
|
+
return i(), c("div", {
|
|
52
52
|
class: "bg-white",
|
|
53
53
|
ref_key: "resizeableRef",
|
|
54
54
|
ref: m
|
|
55
55
|
}, [
|
|
56
|
-
|
|
56
|
+
d.value ? (i(), c("div", E, [
|
|
57
57
|
a(h, { size: "md" }),
|
|
58
58
|
n[2] || (n[2] = P("div", null, "Loading bindings dialog...", -1))
|
|
59
59
|
])) : (i(), I(B, {
|
|
@@ -70,7 +70,7 @@ const U = {
|
|
|
70
70
|
"iframe-mode": "",
|
|
71
71
|
"onClick:pickInventoryBindings": k
|
|
72
72
|
}, null, 8, ["model-value"]),
|
|
73
|
-
r.value ? z("", !0) : (i(),
|
|
73
|
+
r.value ? z("", !0) : (i(), c("div", U, [
|
|
74
74
|
a(g, {
|
|
75
75
|
type: "button",
|
|
76
76
|
variant: "tertiary",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { a as M } from "./FmMultiselectDialog-
|
|
3
|
-
import { a as x,
|
|
2
|
+
import { a as M } from "./FmMultiselectDialog-CsohyGSW.js";
|
|
3
|
+
import { a as x, ah as z } from "./app-lUdYxPdT.js";
|
|
4
4
|
const F = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex flex-col gap-16"
|
|
@@ -9,7 +9,7 @@ const F = {
|
|
|
9
9
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
10
|
}, A = /* @__PURE__ */ S({
|
|
11
11
|
__name: "BindingsPicker",
|
|
12
|
-
setup(
|
|
12
|
+
setup(h) {
|
|
13
13
|
const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
|
|
14
14
|
label: s.name,
|
|
15
15
|
sublabel: s.code,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { F as b, a as P,
|
|
3
|
-
import "./dayjs.min-
|
|
2
|
+
import { F as b, a as P, ah as R } from "./app-lUdYxPdT.js";
|
|
3
|
+
import "./dayjs.min-CRgiNB25.js";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "@feedmepos/mf-common";
|
|
7
7
|
import "./app-uBuHtW8m.js";
|
|
8
|
-
import "./lodash-
|
|
8
|
+
import "./lodash-C9Qka4SS.js";
|
|
9
9
|
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|
|
10
10
|
__name: "binding-ui",
|
|
11
11
|
props: {
|
|
@@ -2,17 +2,17 @@ import { defineComponent as Ee, ref as Y, computed as V, onMounted as qe, resolv
|
|
|
2
2
|
import { F as vt, u as Pt, _ as Rt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
3
|
import { useCoreStore as Mt, useI18n as gt } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as We, useDialog as Vt, useProxiedModel as Lt, components as be, useBreakpoints as Nt } from "@feedmepos/ui-library";
|
|
5
|
-
import { o as Et, u as ze,
|
|
5
|
+
import { o as Et, u as ze, H as O, s as M, I as yt, J as he, A as Qe, v as Me, c as zt, a as Ht } from "./app-lUdYxPdT.js";
|
|
6
6
|
import { defineStore as bt, storeToRefs as Ot } from "pinia";
|
|
7
|
-
import { d as Le, e as ht, f as Yt, a as ke } from "./date2-
|
|
8
|
-
import { R as Kt, f as Ze, a as Ge, t as Qt, d as Be, o as kt, p as xt, m as Dt, l as Gt } from "./rules-
|
|
9
|
-
import { b as qt, d as Wt } from "./xlsx.util-
|
|
10
|
-
import { u as At } from "./stock-
|
|
11
|
-
import { u as Je } from "./stock-
|
|
7
|
+
import { d as Le, e as ht, f as Yt, a as ke } from "./date2-BPDWKAmI.js";
|
|
8
|
+
import { R as Kt, f as Ze, a as Ge, t as Qt, d as Be, o as kt, p as xt, m as Dt, l as Gt } from "./rules-2gDRiI3y.js";
|
|
9
|
+
import { b as qt, d as Wt } from "./xlsx.util-DH2bvm7W.js";
|
|
10
|
+
import { u as At } from "./stock-DMwTxyEy.js";
|
|
11
|
+
import { u as Je } from "./stock-D3amnnvm.js";
|
|
12
12
|
import { D as dt, R as Pe } from "./row-action.enum-BcW_L_nE.js";
|
|
13
13
|
import { c as Zt, _ as Jt, F as Re } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
14
|
-
import { f as Xt } from "./format-time-from-id-
|
|
15
|
-
import { _ as ea } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { f as Xt } from "./format-time-from-id-DUZwcLw9.js";
|
|
15
|
+
import { _ as ea } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UocERxk1.js";
|
|
16
16
|
import { E as ta } from "./empty-placeholder-wf6-BWE8.js";
|
|
17
17
|
const He = Et((s, o) => {
|
|
18
18
|
function e() {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as j, ref as f, computed as k, resolveComponent as w, openBlock as d, createElementBlock as y, createVNode as p, withModifiers as oe, withCtx as R, createElementVNode as n, toDisplayString as s, unref as a, Fragment as M, createTextVNode as H, createBlock as B, createCommentVNode as V, renderList as le, normalizeClass as ae, h as ne, onMounted as se, Teleport as ie } from "vue";
|
|
2
2
|
import { F as ce, _ as re } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as me } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { useI18n as z, useCoreStore as ue } from "@feedmepos/mf-common";
|
|
4
|
+
import { D as G, A as S, u as de } from "./app-lUdYxPdT.js";
|
|
5
|
+
import { _ as me } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UocERxk1.js";
|
|
6
6
|
import { useSnackbar as J, useDialog as ve } from "@feedmepos/ui-library";
|
|
7
|
-
import { u as ye } from "./stock-
|
|
7
|
+
import { u as ye } from "./stock-D3amnnvm.js";
|
|
8
8
|
const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col gap-16" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _e = { class: "flex flex-col gap-8" }, be = { class: "fm-typo-en-body-md-600" }, he = { class: "flex flex-col gap-8" }, ke = { class: "fm-typo-en-body-md-600" }, xe = { class: "flex items-center gap-8 mb-8" }, De = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "text-red-500 text-sm mt-2"
|
|
11
11
|
}, Ve = { class: "fm-typo-en-body-sm-400" }, we = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "flex flex-col gap-8"
|
|
14
|
-
}, Se = { class: "fm-typo-en-body-md-600" },
|
|
14
|
+
}, Se = { class: "fm-typo-en-body-md-600" }, Ae = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, Ce = { class: "flex items-center justify-between" }, Fe = { class: "fm-typo-en-body-sm-600" }, Re = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Be = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Le = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
17
17
|
}, Te = {
|
|
@@ -26,11 +26,11 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
26
26
|
}, Ee = {
|
|
27
27
|
key: 1,
|
|
28
28
|
class: "flex gap-8 ml-auto"
|
|
29
|
-
}, Ie = /* @__PURE__ */
|
|
29
|
+
}, Ie = /* @__PURE__ */ j({
|
|
30
30
|
__name: "RecalculationDialog",
|
|
31
31
|
emits: ["submitted"],
|
|
32
32
|
setup(Q, { expose: b, emit: L }) {
|
|
33
|
-
const
|
|
33
|
+
const A = L, { t: l } = z(), T = ye(), O = G(), x = J(), v = f(!1), u = f(""), i = f(""), g = f(!1), C = f([]), c = f(!1), D = f([]), r = f(!1), m = k(() => C.value.map((e) => {
|
|
34
34
|
const o = S(e._id), _ = new Date(o);
|
|
35
35
|
return {
|
|
36
36
|
label: `${_.toLocaleDateString()} ${_.toLocaleTimeString()}`,
|
|
@@ -39,7 +39,7 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
39
39
|
})), h = k(() => u.value ? m.value.filter((e) => e.value > u.value) : []), F = k({
|
|
40
40
|
get: () => {
|
|
41
41
|
if (g.value && i.value) {
|
|
42
|
-
const e =
|
|
42
|
+
const e = C.value.find((o) => S(o._id) === i.value);
|
|
43
43
|
return (e == null ? void 0 : e._id) || i.value;
|
|
44
44
|
}
|
|
45
45
|
return i.value;
|
|
@@ -82,7 +82,7 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
82
82
|
c.value = !0;
|
|
83
83
|
try {
|
|
84
84
|
const e = await O.getLastNClosings(30);
|
|
85
|
-
|
|
85
|
+
C.value = e;
|
|
86
86
|
} catch (e) {
|
|
87
87
|
console.error("Error fetching recent closings:", e), x.open({
|
|
88
88
|
title: l("common.error"),
|
|
@@ -112,7 +112,7 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
112
112
|
title: l("common.success"),
|
|
113
113
|
message: "Stock recalculation has been scheduled successfully",
|
|
114
114
|
type: "success"
|
|
115
|
-
}), await U(), v.value = !1,
|
|
115
|
+
}), await U(), v.value = !1, A("submitted");
|
|
116
116
|
} catch (e) {
|
|
117
117
|
console.error("Error scheduling recalculation:", e), x.open({
|
|
118
118
|
title: l("common.error"),
|
|
@@ -171,7 +171,7 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
171
171
|
N.value ? V("", !0) : (d(), y(M, { key: 0 }, [
|
|
172
172
|
n("div", _e, [
|
|
173
173
|
n("p", be, [
|
|
174
|
-
|
|
174
|
+
H(s(a(l)("inventory.stock.recalculation.openingDate")) + " ", 1),
|
|
175
175
|
o[8] || (o[8] = n("span", { class: "text-fm-color-system-error-300" }, "*", -1))
|
|
176
176
|
]),
|
|
177
177
|
o[9] || (o[9] = n("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mb-4" }, " Showing the last 30 closing records. Select the opening date to start recalculation. ", -1)),
|
|
@@ -186,7 +186,7 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
186
186
|
]),
|
|
187
187
|
n("div", he, [
|
|
188
188
|
n("p", ke, [
|
|
189
|
-
|
|
189
|
+
H(s(a(l)("inventory.stock.recalculation.untilDate")) + " ", 1),
|
|
190
190
|
o[10] || (o[10] = n("span", { class: "text-fm-color-system-error-300" }, "*", -1))
|
|
191
191
|
]),
|
|
192
192
|
n("div", xe, [
|
|
@@ -233,12 +233,12 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
233
233
|
], 64)),
|
|
234
234
|
D.value.length > 0 ? (d(), y("div", we, [
|
|
235
235
|
n("p", Se, s(a(l)("inventory.stock.recalculation.recentRequests")), 1),
|
|
236
|
-
n("div",
|
|
236
|
+
n("div", Ae, [
|
|
237
237
|
(d(!0), y(M, null, le(D.value, (t) => (d(), y("div", {
|
|
238
238
|
key: t._id,
|
|
239
239
|
class: "p-12 border border-fm-color-border-primary rounded-8 flex flex-col gap-4"
|
|
240
240
|
}, [
|
|
241
|
-
n("div",
|
|
241
|
+
n("div", Ce, [
|
|
242
242
|
n("div", Fe, s(a(l)("inventory.stock.recalculation.requestedAt")) + ": " + s(new Date(t.createdAt).toLocaleString()), 1),
|
|
243
243
|
n("div", {
|
|
244
244
|
class: ae(["fm-typo-en-body-xs-600 px-8 py-4 rounded-4", {
|
|
@@ -263,11 +263,11 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
263
263
|
]);
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
}), Ne = { class: "flex flex-col gap-16 p-16" }, Ge = /* @__PURE__ */
|
|
266
|
+
}), Ne = { class: "flex flex-col gap-16 p-16" }, Ge = /* @__PURE__ */ j({
|
|
267
267
|
__name: "ClosingHistoryView",
|
|
268
268
|
setup(Q) {
|
|
269
269
|
var D;
|
|
270
|
-
const { t: b } =
|
|
270
|
+
const { t: b } = z(), L = G(), A = de(), l = ue(), T = ve(), O = J(), x = f([]), v = f(!1), u = k(() => [
|
|
271
271
|
{
|
|
272
272
|
label: b("inventory.stock.recalculation.title", "Stock Recalculation"),
|
|
273
273
|
value: "recalculation",
|
|
@@ -306,7 +306,7 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const C = [
|
|
310
310
|
...(D = l.sessionUser.value) != null && D.role.isAdmin ? [
|
|
311
311
|
{
|
|
312
312
|
accessorKey: "_id",
|
|
@@ -339,7 +339,7 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
339
339
|
}
|
|
340
340
|
];
|
|
341
341
|
async function c() {
|
|
342
|
-
if (
|
|
342
|
+
if (A.currentLocationDBName) {
|
|
343
343
|
v.value = !0;
|
|
344
344
|
try {
|
|
345
345
|
const r = await L.getLastNClosings(30);
|
|
@@ -352,8 +352,8 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
return se(async () => {
|
|
355
|
-
|
|
356
|
-
}),
|
|
355
|
+
A.currentLocationDBName && await c();
|
|
356
|
+
}), A.watchLocation(c), (r, m) => {
|
|
357
357
|
const h = w("FmTable");
|
|
358
358
|
return d(), B(re, {
|
|
359
359
|
actions: u.value,
|
|
@@ -370,7 +370,7 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, pe = { class: "flex flex-col
|
|
|
370
370
|
p(h, {
|
|
371
371
|
loading: v.value,
|
|
372
372
|
"row-data": x.value,
|
|
373
|
-
"column-defs":
|
|
373
|
+
"column-defs": C
|
|
374
374
|
}, null, 8, ["loading", "row-data"])
|
|
375
375
|
]),
|
|
376
376
|
(d(), B(ie, { to: "body" }, [
|
|
@@ -4,23 +4,23 @@ import { useI18n as W, useCoreStore as de } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useDialog as pe, useDialogChild as Ze, useSnackbar as ce, FmButtonVariant as oe, components as Y, FmAdvancedSort as et, useProxiedModel as tt, useBreakpoints as nt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Ve, storeToRefs as Ue } from "pinia";
|
|
6
6
|
import { F as G } from "./form-mode.enum-BKiNVH6A.js";
|
|
7
|
-
import { a as me } from "./closing-template-
|
|
8
|
-
import { u as fe, c as Ne, a as ve, n as ot } from "./app-
|
|
9
|
-
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-
|
|
7
|
+
import { a as me } from "./closing-template-5nZX2GD3.js";
|
|
8
|
+
import { u as fe, c as Ne, a as ve, n as ot } from "./app-lUdYxPdT.js";
|
|
9
|
+
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-DH2bvm7W.js";
|
|
10
10
|
import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
|
|
11
|
-
import { f as Be, a as le } from "./date2-
|
|
11
|
+
import { f as Be, a as le } from "./date2-BPDWKAmI.js";
|
|
12
12
|
import { D as se, R as z } from "./row-action.enum-BcW_L_nE.js";
|
|
13
13
|
import { c as at, F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
14
|
-
import { f as rt } from "./format-time-from-id-
|
|
15
|
-
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as ct } from "./netsuite-
|
|
17
|
-
import { u as mt } from "./duplicate-template-
|
|
18
|
-
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { R as dt, A as pt } from "./rules-
|
|
20
|
-
import { u as ft } from "./use-ingredient-select-dialog-
|
|
21
|
-
import { d as vt } from "./defineDeepModel-
|
|
22
|
-
import { u as gt } from "./use-template-enabled-locations-2-
|
|
23
|
-
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { f as rt } from "./format-time-from-id-DUZwcLw9.js";
|
|
15
|
+
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CFQjYlPf.js";
|
|
16
|
+
import { u as ct } from "./netsuite-Dns3RQor.js";
|
|
17
|
+
import { u as mt } from "./duplicate-template-Blu_HX7A.js";
|
|
18
|
+
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UocERxk1.js";
|
|
19
|
+
import { R as dt, A as pt } from "./rules-2gDRiI3y.js";
|
|
20
|
+
import { u as ft } from "./use-ingredient-select-dialog-B3j2244S.js";
|
|
21
|
+
import { d as vt } from "./defineDeepModel-D_Oxy2Kx.js";
|
|
22
|
+
import { u as gt } from "./use-template-enabled-locations-2-CnbMSpm9.js";
|
|
23
|
+
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-js9xKiOh.js";
|
|
24
24
|
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
25
25
|
const ue = Ve(
|
|
26
26
|
"closingTemplateTable",
|
package/dist/{DeliveryOrderPrintPreview-52SJyur7.js → DeliveryOrderPrintPreview-CD_43MIv.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as _, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as g } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { L as y } from "./app-lUdYxPdT.js";
|
|
4
4
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "subtitle"
|
|
8
|
-
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" },
|
|
8
|
+
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, L = { class: "purchase-body" }, U = { class: "text-left" }, B = { class: "text-left" }, H = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-right" }, j = { key: 0 }, z = {
|
|
9
9
|
key: 1,
|
|
10
10
|
style: { "padding-top": "30px" }
|
|
11
|
-
}, G = { valign: "bottom" },
|
|
11
|
+
}, G = { valign: "bottom" }, Q = { class: "header" }, K = { class: "caption" }, W = {
|
|
12
12
|
class: "text-left",
|
|
13
13
|
style: { width: "20%" }
|
|
14
14
|
}, X = { class: "text-left" }, Y = {
|
|
@@ -107,7 +107,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
107
107
|
])
|
|
108
108
|
])
|
|
109
109
|
]),
|
|
110
|
-
t("div",
|
|
110
|
+
t("div", L, [
|
|
111
111
|
t("table", null, [
|
|
112
112
|
l[19] || (l[19] = t("thead", { class: "item-header" }, [
|
|
113
113
|
t("tr", null, [
|
|
@@ -127,9 +127,9 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
127
127
|
], -1)),
|
|
128
128
|
t("tbody", null, [
|
|
129
129
|
t("tr", null, [
|
|
130
|
-
t("td",
|
|
131
|
-
t("td",
|
|
132
|
-
t("td",
|
|
130
|
+
t("td", U, e(s.value.orderNumber), 1),
|
|
131
|
+
t("td", B, e(s.value.ref), 1),
|
|
132
|
+
t("td", H, e(s.value.supplier.phoneNumber), 1)
|
|
133
133
|
])
|
|
134
134
|
])
|
|
135
135
|
]),
|
|
@@ -179,8 +179,8 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
179
179
|
t("table", null, [
|
|
180
180
|
t("tr", G, [
|
|
181
181
|
t("td", null, [
|
|
182
|
-
t("div",
|
|
183
|
-
t("div",
|
|
182
|
+
t("div", Q, "Ref: " + e(r.ref), 1),
|
|
183
|
+
t("div", K, e(r.createdAt), 1),
|
|
184
184
|
t("div", null, "Remark: " + e(r.remark), 1)
|
|
185
185
|
])
|
|
186
186
|
])
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { u as
|
|
4
|
-
import { P as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
function Y(e, r, a) {
|
|
1
|
+
import { I as O, u as D, t as C, Q as A, U as E, y as w } from "./app-lUdYxPdT.js";
|
|
2
|
+
import { a as L, t as R } from "./rules-2gDRiI3y.js";
|
|
3
|
+
import { u as z } from "./supplier-Bi2nswlc.js";
|
|
4
|
+
import { computed as f, defineComponent as H, mergeModels as j, useModel as q, ref as x, resolveComponent as V, openBlock as P, createElementBlock as U, normalizeStyle as W, createElementVNode as I, createVNode as $, withCtx as Q, createBlock as g, createCommentVNode as N, Fragment as Y, renderList as J, unref as M } from "vue";
|
|
5
|
+
import { F as K } from "./FmMultiselectDialog-CsohyGSW.js";
|
|
6
|
+
function X(e, r, a) {
|
|
8
7
|
var o;
|
|
9
8
|
if (!!r.measurement === !!a && ((o = r.measurement) == null ? void 0 : o.id) === a)
|
|
10
9
|
return r;
|
|
@@ -20,33 +19,33 @@ function Y(e, r, a) {
|
|
|
20
19
|
costPerUnit: r.costPerUnit
|
|
21
20
|
};
|
|
22
21
|
}
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
const
|
|
22
|
+
function ne(e, r, a, u) {
|
|
23
|
+
var T, _, s;
|
|
24
|
+
const l = (s = (_ = (T = u == null ? void 0 : u.supplier) == null ? void 0 : T.supplyItems) == null ? void 0 : _.find(
|
|
26
25
|
(t) => t.skuId === e._id
|
|
27
26
|
)) == null ? void 0 : s.defaultCost;
|
|
28
27
|
if (u != null && u.manualTotalCost)
|
|
29
28
|
return {
|
|
30
29
|
cost: u.manualTotalCost,
|
|
31
30
|
skuDefaultCost: e.defaultCost ?? void 0,
|
|
32
|
-
supplierOverrideCost:
|
|
31
|
+
supplierOverrideCost: l ?? void 0
|
|
33
32
|
};
|
|
34
|
-
const n = e.defaultCost ?
|
|
33
|
+
const n = e.defaultCost ? X(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +L(p) / +L(o == null ? void 0 : o.measurement.conversion) : +L(p) : void 0, b = v ? a ? v * +L(a.conversion) : v : void 0, h = b ? +L(r) * b : void 0;
|
|
35
34
|
return {
|
|
36
35
|
cost: h ? {
|
|
37
|
-
...
|
|
38
|
-
currency:
|
|
36
|
+
...R(h ?? 0, 2),
|
|
37
|
+
currency: O()
|
|
39
38
|
} : {
|
|
40
39
|
amount: 0,
|
|
41
40
|
precision: 0,
|
|
42
|
-
currency:
|
|
41
|
+
currency: O()
|
|
43
42
|
},
|
|
44
43
|
skuDefaultCost: e.defaultCost ?? void 0,
|
|
45
|
-
supplierOverrideCost:
|
|
44
|
+
supplierOverrideCost: l ?? void 0
|
|
46
45
|
};
|
|
47
46
|
}
|
|
48
47
|
function k(e) {
|
|
49
|
-
const r =
|
|
48
|
+
const r = E.safeParse(e);
|
|
50
49
|
if (r.success) return r.data;
|
|
51
50
|
throw new Error("Invalid supplier data");
|
|
52
51
|
}
|
|
@@ -69,23 +68,23 @@ function S(e) {
|
|
|
69
68
|
preparationTime: e.preparationTime
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
|
-
function
|
|
73
|
-
const
|
|
71
|
+
function re(e, r, a = !1, u = !1) {
|
|
72
|
+
const l = z(), n = D();
|
|
74
73
|
n.watchLocation(async () => {
|
|
75
74
|
var y;
|
|
76
|
-
await
|
|
75
|
+
await l.readSuppliers();
|
|
77
76
|
const s = e();
|
|
78
77
|
if ((y = s.supplier) != null && y._id) return;
|
|
79
|
-
const t = u ?
|
|
78
|
+
const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (a ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
|
|
80
79
|
r({
|
|
81
80
|
...s,
|
|
82
|
-
supplier: t ? k(t) :
|
|
81
|
+
supplier: t ? k(t) : i ? S(i) : s.supplier
|
|
83
82
|
});
|
|
84
83
|
});
|
|
85
84
|
const o = f(
|
|
86
85
|
() => {
|
|
87
86
|
var s, t;
|
|
88
|
-
return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ?
|
|
87
|
+
return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? C.enum.transfer : C.enum.purchase;
|
|
89
88
|
}
|
|
90
89
|
), p = f({
|
|
91
90
|
get() {
|
|
@@ -94,8 +93,8 @@ function ae(e, r, a = !1, u = !1) {
|
|
|
94
93
|
},
|
|
95
94
|
set(s) {
|
|
96
95
|
const t = e() ?? {};
|
|
97
|
-
if (o.value ===
|
|
98
|
-
const F = (u ?
|
|
96
|
+
if (o.value === C.enum.purchase) {
|
|
97
|
+
const F = (u ? l.suppliers : l.businessSuppliers).find((B) => B._id === s);
|
|
99
98
|
r({
|
|
100
99
|
...t,
|
|
101
100
|
supplier: F ? k(F) : t.supplier
|
|
@@ -110,24 +109,24 @@ function ae(e, r, a = !1, u = !1) {
|
|
|
110
109
|
supplier: y ? S(y) : t.supplier
|
|
111
110
|
});
|
|
112
111
|
}
|
|
113
|
-
}), v = f(() =>
|
|
112
|
+
}), v = f(() => l.locationSuppliers.map(k)), b = f(() => l.businessSuppliers.map(k)), h = f(() => {
|
|
114
113
|
const s = [...v.value], t = [...b.value];
|
|
115
114
|
return u ? [...t, ...s] : t;
|
|
116
115
|
}), c = f(() => {
|
|
117
116
|
var m;
|
|
118
|
-
const s = ((m = n._currentLocation) == null ? void 0 : m.type) ===
|
|
117
|
+
const s = ((m = n._currentLocation) == null ? void 0 : m.type) === A.warehouse;
|
|
119
118
|
return (a ? n.allLocations.filter(
|
|
120
|
-
(
|
|
121
|
-
) : n.allLocations).filter((
|
|
122
|
-
}),
|
|
123
|
-
if (o.value ===
|
|
124
|
-
const t = v.value.map((
|
|
125
|
-
label:
|
|
126
|
-
value:
|
|
127
|
-
})), m = b.value.map((
|
|
128
|
-
label:
|
|
119
|
+
(i) => i.doc._id !== n.currentLocation.doc._id
|
|
120
|
+
) : n.allLocations).filter((i) => s || i.acceptRequest).map(S);
|
|
121
|
+
}), T = f(() => {
|
|
122
|
+
if (o.value === C.enum.purchase) {
|
|
123
|
+
const t = v.value.map((i) => ({
|
|
124
|
+
label: i.name,
|
|
125
|
+
value: i._id
|
|
126
|
+
})), m = b.value.map((i) => ({
|
|
127
|
+
label: i.name,
|
|
129
128
|
sublabel: "Business supplier",
|
|
130
|
-
value:
|
|
129
|
+
value: i._id
|
|
131
130
|
}));
|
|
132
131
|
return u ? [...t, ...m] : m;
|
|
133
132
|
}
|
|
@@ -137,10 +136,10 @@ function ae(e, r, a = !1, u = !1) {
|
|
|
137
136
|
value: t._id
|
|
138
137
|
}));
|
|
139
138
|
}), _ = f(() => {
|
|
140
|
-
var
|
|
141
|
-
const s = (y = (
|
|
142
|
-
if (o.value ===
|
|
143
|
-
const d =
|
|
139
|
+
var i, y;
|
|
140
|
+
const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
|
|
141
|
+
if (o.value === C.enum.purchase) {
|
|
142
|
+
const d = l.suppliers.find((F) => F._id === s);
|
|
144
143
|
return d ? k(d) : null;
|
|
145
144
|
}
|
|
146
145
|
const m = n.allLocations.find((d) => d.doc._id);
|
|
@@ -148,16 +147,16 @@ function ae(e, r, a = !1, u = !1) {
|
|
|
148
147
|
});
|
|
149
148
|
return {
|
|
150
149
|
transferLocationModel: p,
|
|
151
|
-
transferLocationOptions:
|
|
150
|
+
transferLocationOptions: T,
|
|
152
151
|
locationOptionsTypePurchase: h,
|
|
153
152
|
locationOptionsTypePurchaseLocationLevel: v,
|
|
154
153
|
locationOptionsTypeTransfer: c,
|
|
155
154
|
selectedLocation: _
|
|
156
155
|
};
|
|
157
156
|
}
|
|
158
|
-
const Z = { class: "overflow-y-auto h-full pb-8" },
|
|
157
|
+
const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ H({
|
|
159
158
|
__name: "FmFilterableMenuOptions",
|
|
160
|
-
props: /* @__PURE__ */
|
|
159
|
+
props: /* @__PURE__ */ j({
|
|
161
160
|
modelValue: {},
|
|
162
161
|
maxHeight: {},
|
|
163
162
|
width: {},
|
|
@@ -170,15 +169,15 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ z({
|
|
|
170
169
|
}),
|
|
171
170
|
emits: ["update:search"],
|
|
172
171
|
setup(e) {
|
|
173
|
-
const r = e, a =
|
|
174
|
-
() => new
|
|
172
|
+
const r = e, a = q(e, "search"), u = f(
|
|
173
|
+
() => new K(r.items, ["label", "sublabel"], {
|
|
175
174
|
caseSensitive: !1,
|
|
176
175
|
sort: !0
|
|
177
176
|
})
|
|
178
|
-
),
|
|
177
|
+
), l = f(() => u.value.search(a.value)), n = x();
|
|
179
178
|
return console.log({ stickyRef: n }), (o, p) => {
|
|
180
|
-
const v =
|
|
181
|
-
return
|
|
179
|
+
const v = V("FmButton"), b = V("FmTextField"), h = V("FmMenuItem");
|
|
180
|
+
return P(), U("div", {
|
|
182
181
|
class: "relative",
|
|
183
182
|
style: W({ width: o.width })
|
|
184
183
|
}, [
|
|
@@ -192,8 +191,8 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ z({
|
|
|
192
191
|
"onUpdate:modelValue": p[1] || (p[1] = (c) => a.value = c),
|
|
193
192
|
placeholder: "Filter options"
|
|
194
193
|
}, {
|
|
195
|
-
append:
|
|
196
|
-
a.value ? (
|
|
194
|
+
append: Q(() => [
|
|
195
|
+
a.value ? (P(), g(v, {
|
|
197
196
|
key: 0,
|
|
198
197
|
variant: "tertiary",
|
|
199
198
|
"prepend-icon": "close",
|
|
@@ -204,18 +203,18 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ z({
|
|
|
204
203
|
}, 8, ["modelValue"])
|
|
205
204
|
], 512),
|
|
206
205
|
I("div", Z, [
|
|
207
|
-
(
|
|
208
|
-
key:
|
|
206
|
+
(P(!0), U(Y, null, J(l.value, (c, T) => (P(), g(h, {
|
|
207
|
+
key: T,
|
|
209
208
|
label: c.label,
|
|
210
209
|
sublabel: c.sublabel,
|
|
211
|
-
"model-value":
|
|
212
|
-
onClick: () => o.handleItemChange(
|
|
210
|
+
"model-value": M(w)(o.modelValue, c.value),
|
|
211
|
+
onClick: () => o.handleItemChange(M(w)(o.modelValue, c.value), c),
|
|
213
212
|
onVnodeMounted: (_) => {
|
|
214
213
|
var s, t;
|
|
215
|
-
return
|
|
214
|
+
return M(w)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
216
215
|
}
|
|
217
216
|
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
218
|
-
|
|
217
|
+
l.value.length ? N("", !0) : (P(), g(h, {
|
|
219
218
|
key: 0,
|
|
220
219
|
disabled: "",
|
|
221
220
|
label: "No options available"
|
|
@@ -226,7 +225,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ z({
|
|
|
226
225
|
}
|
|
227
226
|
});
|
|
228
227
|
export {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
228
|
+
ae as _,
|
|
229
|
+
ne as c,
|
|
230
|
+
re as u
|
|
232
231
|
};
|