@feedmepos/mf-inventory-portal 0.0.23-dev.42 → 0.0.23-dev.43
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-Cr-n7HVf.js → App-C8wsA5dN.js} +6 -7
- package/dist/{ApprovalView-BYHDmt9W.js → ApprovalView-ZV8rwQp1.js} +20 -20
- package/dist/{BindingsDialog-CI0nYM1_.js → BindingsDialog-Sbtijb1i.js} +2 -2
- package/dist/{BindingsPicker-BVzF3C8O.js → BindingsPicker-wnlrCohJ.js} +3 -3
- package/dist/{BindingsTable-B21_9L2o.js → BindingsTable-BZCI3MS6.js} +1 -1
- package/dist/{ClosingDraftView-k2Vsz8-W.js → ClosingDraftView-DyKbXVev.js} +47 -47
- package/dist/{ClosingTemplateView-BLda7tYC.js → ClosingTemplateView-DJr6D7iw.js} +21 -21
- package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-B1mRTbf9.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUiVV1lj.js} +7 -7
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js → FmUnitInput.vue_vue_type_script_setup_true_lang-qU9EBVED.js} +37 -37
- package/dist/{IngredientGroupView-CgZ4YT3i.js → IngredientGroupView-BWeMME4-.js} +1 -1
- package/dist/{IngredientsView-tPERrF9O.js → IngredientsView-BRxpBv77.js} +14 -15
- package/dist/{IntegrationView-CoF_rdWv.js → IntegrationView-DZqL0Ekt.js} +1 -1
- package/dist/{InventoryBindingForm-BSnofTIL.js → InventoryBindingForm-C2zDhhfZ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js} +51 -51
- package/dist/{InventoryBindingSummary-qm9ZUFny.js → InventoryBindingSummary-CJP0sf4N.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dplylu1K.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CC1nuQKm.js} +6 -6
- package/dist/{PurchaseOrderPrintPreview-CIWiq2NB.js → PurchaseOrderPrintPreview-C5afxprc.js} +5 -5
- package/dist/{ReceiveRequestView-Dgt3FeGb.js → ReceiveRequestView-DzbcqmMA.js} +19 -20
- package/dist/{RecipeView-CzWlx1Xv.js → RecipeView-8koCeNhZ.js} +25 -25
- package/dist/{StockView-IPXGJNN8.js → StockView-C3Ef3mQz.js} +121 -122
- package/dist/{SupplierView-DuL3NXc0.js → SupplierView-BHuYKWgW.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js → TransferDetails.vue_vue_type_script_setup_true_lang-8rCAz5GA.js} +137 -137
- package/dist/{TransferTemplateView-BEaRafuO.js → TransferTemplateView-u1u-VV-i.js} +81 -82
- package/dist/{UnitView-Cwo0mthQ.js → UnitView-ucQ_K9ot.js} +14 -14
- package/dist/{WarehouseView-DzjQrpyv.js → WarehouseView-CCwLKR3J.js} +33 -33
- package/dist/{app-CpuFfqWF.js → app-BvW6mdJl.js} +12411 -11415
- package/dist/app.js +1 -1
- package/dist/{decimal-bSGrDlvd.js → decimal-hD6H0C0M.js} +1 -1
- package/dist/{format-unit-display-D4gi2D-O.js → format-unit-display-BfYIFIft.js} +60 -60
- package/dist/{index-Cn1ato-l.js → index-BQUuh_Xy.js} +88 -88
- package/dist/{index-COeURijn.js → index-y9SmouGG.js} +3 -3
- package/dist/{stock-B1Rchi6n.js → stock-CHW2fGsm.js} +3 -3
- package/dist/stores/feature.d.ts +34 -2
- package/dist/stores/location.d.ts +1 -1
- package/dist/{supplier-CeY_Gro-.js → supplier-CCUVm2qD.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BXqY40wn.js → use-inventory-binding-dialog-B8Cgp_x2.js} +1 -1
- package/package.json +1 -1
- package/dist/feature-D8aRYGen.js +0 -962
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ref as x, onUnmounted as F, defineComponent as h, watch as y, onMounted as G, computed as g, resolveComponent as R, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as U, createCommentVNode as M } from "vue";
|
|
2
|
-
import { u as k, a as D, b as H, R as e, g as a,
|
|
3
|
-
import { useCoreStore as A, useI18n as
|
|
2
|
+
import { u as k, a as D, b as H, R as e, c as B, g as a, d as W } from "./app-BvW6mdJl.js";
|
|
3
|
+
import { useCoreStore as A, useI18n as O } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as C, useRoute as K } from "vue-router";
|
|
5
|
-
import { u as O } from "./feature-D8aRYGen.js";
|
|
6
5
|
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
7
6
|
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
8
7
|
import "./array-hChJVZLE.js";
|
|
@@ -41,7 +40,7 @@ const q = {
|
|
|
41
40
|
}, X = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Y = { class: "fm-typo-en-title-lg-600" }, Z = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ee = { class: "flex gap-16" }, te = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, oe = { href: "https://feedme.ai/form" }, ne = /* @__PURE__ */ h({
|
|
42
41
|
__name: "InventoryView",
|
|
43
42
|
setup(l) {
|
|
44
|
-
const n = k(), i = D(), u = H(), s = A(), c = C(), o = z(), b =
|
|
43
|
+
const n = k(), i = D(), u = H(), s = A(), c = C(), o = z(), b = B(), { t: d } = O();
|
|
45
44
|
y(
|
|
46
45
|
[() => s.sessionUser.value, () => s.currentBusiness.value],
|
|
47
46
|
([t, r]) => {
|
|
@@ -97,7 +96,7 @@ const q = {
|
|
|
97
96
|
}), re = { class: "h-full flex flex-col overflow-auto py-16" }, se = /* @__PURE__ */ h({
|
|
98
97
|
__name: "NavigationTab",
|
|
99
98
|
setup(l) {
|
|
100
|
-
const n = K(), i = C(), u = A(), s =
|
|
99
|
+
const n = K(), i = C(), u = A(), s = B(), c = $(), { t: o } = O();
|
|
101
100
|
y([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
|
|
102
101
|
(t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
|
|
103
102
|
});
|
|
@@ -242,7 +241,7 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
|
242
241
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
243
242
|
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
244
243
|
});
|
|
245
|
-
const
|
|
244
|
+
const de = /* @__PURE__ */ h({
|
|
246
245
|
__name: "App",
|
|
247
246
|
setup(l) {
|
|
248
247
|
const n = A(), i = Q(), u = W();
|
|
@@ -269,5 +268,5 @@ const fe = /* @__PURE__ */ h({
|
|
|
269
268
|
}
|
|
270
269
|
});
|
|
271
270
|
export {
|
|
272
|
-
|
|
271
|
+
de as default
|
|
273
272
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as
|
|
2
|
-
import { u as me,
|
|
3
|
-
import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { useBreakpoints as
|
|
5
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as ue, mergeProps as pe } from "vue";
|
|
2
|
+
import { u as me, av as v, aF as de, a8 as K, z as fe, _ as ve, B as _e, E as he, G as _ } from "./app-BvW6mdJl.js";
|
|
3
|
+
import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-8rCAz5GA.js";
|
|
4
|
+
import { useBreakpoints as xe } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as ye } from "@feedmepos/mf-common";
|
|
6
6
|
const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
|
-
}, Te = { class: "pt-8" },
|
|
9
|
+
}, Te = { class: "pt-8" }, Ye = /* @__PURE__ */ ae({
|
|
10
10
|
__name: "ApprovalView",
|
|
11
11
|
setup(Ce) {
|
|
12
12
|
const o = De("approval"), { columnDefs: Q } = ge("approval", o), W = me();
|
|
@@ -35,7 +35,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const h = g(""), { breakpoints: R } =
|
|
38
|
+
const h = g(""), { breakpoints: R } = xe(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = ye(), B = b(() => [
|
|
39
39
|
{
|
|
40
40
|
label: k("common.refresh"),
|
|
41
41
|
value: "refresh"
|
|
@@ -49,12 +49,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
49
49
|
}
|
|
50
50
|
return (c, l) => {
|
|
51
51
|
const ee = re("FmTable");
|
|
52
|
-
return
|
|
52
|
+
return x(), J(ve, {
|
|
53
53
|
title: e(k)("inventory.transfer.approval.title"),
|
|
54
54
|
actions: B.value,
|
|
55
55
|
"onClick:action": I
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
57
|
+
default: y(() => [
|
|
58
58
|
s("div", {
|
|
59
59
|
class: ne([
|
|
60
60
|
"flex flex-col gap-8 max-h-full",
|
|
@@ -79,13 +79,13 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
79
79
|
onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
|
|
80
80
|
"page-size": X.value
|
|
81
81
|
}, {
|
|
82
|
-
"list-row":
|
|
82
|
+
"list-row": y((r) => [
|
|
83
83
|
n(he, {
|
|
84
84
|
row: r,
|
|
85
85
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
86
86
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
var O, S, T, i, C, z, M,
|
|
87
|
+
default: y((t) => {
|
|
88
|
+
var O, S, T, i, C, z, F, M, u, $, V, p, Y, m, q, E, L, N, P, d, j, A, H, G, f, U;
|
|
89
89
|
return [
|
|
90
90
|
s("div", we, [
|
|
91
91
|
s("div", Re, [
|
|
@@ -96,12 +96,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
96
96
|
]),
|
|
97
97
|
s("div", ke, [
|
|
98
98
|
n(e(_), {
|
|
99
|
-
render: (
|
|
100
|
-
props: (
|
|
99
|
+
render: (M = (F = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : F.columnDef) == null ? void 0 : M.cell,
|
|
100
|
+
props: ($ = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : $.call(u)
|
|
101
101
|
}, null, 8, ["render", "props"])
|
|
102
102
|
]),
|
|
103
|
-
s("div", Oe, le((
|
|
104
|
-
(
|
|
103
|
+
s("div", Oe, le((q = (m = (Y = (p = (V = r.original.purchaseOrder) == null ? void 0 : V.items) == null ? void 0 : p.map) == null ? void 0 : Y.call(p, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
|
|
104
|
+
(E = r.original.purchaseOrder) != null && E.ref ? (x(), ce("div", Se, [
|
|
105
105
|
n(e(_), {
|
|
106
106
|
render: (P = (N = (L = t.purchaseOrder_ref) == null ? void 0 : L.column) == null ? void 0 : N.columnDef) == null ? void 0 : P.cell,
|
|
107
107
|
props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
|
|
@@ -109,8 +109,8 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
109
109
|
])) : ie("", !0),
|
|
110
110
|
s("div", Te, [
|
|
111
111
|
n(e(_), {
|
|
112
|
-
render: (
|
|
113
|
-
props: (
|
|
112
|
+
render: (G = (H = (A = t.purchaseOrder_status) == null ? void 0 : A.column) == null ? void 0 : H.columnDef) == null ? void 0 : G.cell,
|
|
113
|
+
props: (U = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : U.call(f)
|
|
114
114
|
}, null, 8, ["render", "props"])
|
|
115
115
|
])
|
|
116
116
|
])
|
|
@@ -122,7 +122,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
122
122
|
_: 1
|
|
123
123
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
124
124
|
], 2),
|
|
125
|
-
(
|
|
125
|
+
(x(), J(ue, { to: "body" }, [
|
|
126
126
|
n(be, pe(e(o).transferDetailsProps.value, {
|
|
127
127
|
onSubmitted: e(o).fetchData
|
|
128
128
|
}), null, 16, ["onSubmitted"])
|
|
@@ -134,5 +134,5 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
export {
|
|
137
|
-
|
|
137
|
+
Ye as default
|
|
138
138
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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 L } from "vue";
|
|
2
|
-
import { _ as P } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as V, aL as S } from "./app-
|
|
2
|
+
import { _ as P } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js";
|
|
3
|
+
import { a as V, aL as S } from "./app-BvW6mdJl.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,12 +1,12 @@
|
|
|
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, aL as x,
|
|
2
|
+
import { a as M, aL as x, J as z } from "./app-BvW6mdJl.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
6
6
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
9
|
-
},
|
|
9
|
+
}, N = /* @__PURE__ */ S({
|
|
10
10
|
__name: "BindingsPicker",
|
|
11
11
|
setup(L) {
|
|
12
12
|
const d = M(), 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) => ({
|
|
@@ -119,5 +119,5 @@ const F = {
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
N as default
|
|
123
123
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as L } from "vue";
|
|
2
|
-
import { F as v, a as x, aL as E } from "./app-
|
|
2
|
+
import { F as v, a as x, aL as E } from "./app-BvW6mdJl.js";
|
|
3
3
|
import { components as F } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ye, ref as O, resolveComponent as E, openBlock as _, createBlock as ne, withCtx as N, createElementVNode as o, createTextVNode as ge, toDisplayString as L, unref as h, createVNode as D, h as $, computed as M, onMounted as He, watch as ze, isRef as _e, createElementBlock as F, Fragment as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as ye, ref as O, resolveComponent as E, openBlock as _, createBlock as ne, withCtx as N, createElementVNode as o, createTextVNode as ge, toDisplayString as L, unref as h, createVNode as D, h as $, computed as M, onMounted as He, watch as ze, isRef as _e, createElementBlock as F, Fragment as W, createCommentVNode as le, normalizeClass as ie, renderList as ue, normalizeStyle as we, Teleport as Ee, mergeProps as Le } from "vue";
|
|
2
|
+
import { X as Ne, u as be, af as q, m as Oe, K as he, j as C, t as Ve, L as ce, q as Ke, r as Ye, s as Ge, ag as ke, ah as je, a3 as Ce, ai as Se, aj as oe, a9 as qe, ae as X, V as Be, D as De, i as de, h as Ze, f as We, a as Xe, z as Je, _ as Qe, B as et, E as tt, G as me } from "./app-BvW6mdJl.js";
|
|
3
3
|
import { useCoreStore as at, useI18n as Fe } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ae, useDialog as nt, useProxiedModel as ot, components as ae, useBreakpoints as st } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Re, storeToRefs as rt } from "pinia";
|
|
6
|
-
import { u as $e } from "./stock-
|
|
6
|
+
import { u as $e } from "./stock-CHW2fGsm.js";
|
|
7
7
|
import { E as lt } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const Te = Ne((n, d) => {
|
|
9
9
|
function e() {
|
|
@@ -187,8 +187,8 @@ function yt(n, d) {
|
|
|
187
187
|
(y) => y.id,
|
|
188
188
|
(y) => y.balance
|
|
189
189
|
), u = [...n.items, ...n.negativeStockItems ?? []], m = u.map((y) => {
|
|
190
|
-
var
|
|
191
|
-
const K = ((
|
|
190
|
+
var J;
|
|
191
|
+
const K = ((J = e.get(y.sku._id)) == null ? void 0 : J[0]) ?? mt;
|
|
192
192
|
return pt(y, K);
|
|
193
193
|
}), g = vt(u), l = at().currentBusiness.value, b = gt(g), R = [
|
|
194
194
|
["Business name:", l == null ? void 0 : l.name],
|
|
@@ -341,7 +341,7 @@ const bt = Re(
|
|
|
341
341
|
e.closeDraftDialog(), l();
|
|
342
342
|
}
|
|
343
343
|
function P(r, s) {
|
|
344
|
-
switch (s =
|
|
344
|
+
switch (s = We(s), r) {
|
|
345
345
|
case de.Details:
|
|
346
346
|
return e.viewDraft(s);
|
|
347
347
|
case de.Export:
|
|
@@ -365,7 +365,7 @@ const bt = Re(
|
|
|
365
365
|
},
|
|
366
366
|
{
|
|
367
367
|
id: "updatedAt",
|
|
368
|
-
accessorFn: (r) =>
|
|
368
|
+
accessorFn: (r) => X(r.updatedAt),
|
|
369
369
|
header: () => "Updated at",
|
|
370
370
|
enableSorting: !0,
|
|
371
371
|
size: 200
|
|
@@ -463,7 +463,7 @@ const bt = Re(
|
|
|
463
463
|
value: q.enum.rejectDraft
|
|
464
464
|
}
|
|
465
465
|
];
|
|
466
|
-
return
|
|
466
|
+
return Ze(
|
|
467
467
|
[
|
|
468
468
|
...v,
|
|
469
469
|
...s.status === oe.enum.DRAFT ? U : []
|
|
@@ -512,7 +512,7 @@ const bt = Re(
|
|
|
512
512
|
}, Vt = { class: "flex-1 flex flex-col items-center" }, Kt = {
|
|
513
513
|
class: "py-12 flex flex-col gap-4 flex-1",
|
|
514
514
|
name: "delivery details"
|
|
515
|
-
}, Yt = { class: "flex flex-col gap-8" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, qt = { class: "flex flex-col gap-4" },
|
|
515
|
+
}, Yt = { class: "flex flex-col gap-8" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, qt = { class: "flex flex-col gap-4" }, Zt = { class: "flex gap-8" }, Wt = /* @__PURE__ */ ye({
|
|
516
516
|
__name: "ClosingDraftDialog",
|
|
517
517
|
props: {
|
|
518
518
|
show: { type: Boolean },
|
|
@@ -520,7 +520,7 @@ const bt = Re(
|
|
|
520
520
|
},
|
|
521
521
|
emits: ["submitted"],
|
|
522
522
|
setup(n, { emit: d }) {
|
|
523
|
-
const e = n, u = $e(), m = pe(), g = ot(e, "show"), x = O(!1), l = O(new Array()), b = Se(), R = Ae(), P =
|
|
523
|
+
const e = n, u = $e(), m = pe(), g = ot(e, "show"), x = O(!1), l = O(new Array()), b = Se(), R = Ae(), P = Xe(), T = d, r = M(() => {
|
|
524
524
|
var a, t;
|
|
525
525
|
return [
|
|
526
526
|
...((a = e.draft) == null ? void 0 : a.items) ?? [],
|
|
@@ -536,7 +536,7 @@ const bt = Re(
|
|
|
536
536
|
He(w), ze(
|
|
537
537
|
() => e.show,
|
|
538
538
|
(a) => {
|
|
539
|
-
a && (
|
|
539
|
+
a && (Z.value = te[0], w());
|
|
540
540
|
}
|
|
541
541
|
);
|
|
542
542
|
const U = ce(0), S = ce(100);
|
|
@@ -736,9 +736,9 @@ const bt = Re(
|
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
];
|
|
739
|
-
}),
|
|
740
|
-
var G,
|
|
741
|
-
const t = (G = B.value.get(a._id)) == null ? void 0 : G[0], i = ((
|
|
739
|
+
}), J = M(() => K.value.map((a) => a.size ?? 0).reduce((a, t) => a + t)), se = M(() => s.value.map((a) => {
|
|
740
|
+
var G, Q;
|
|
741
|
+
const t = (G = B.value.get(a._id)) == null ? void 0 : G[0], i = ((Q = V.value.get(a._id)) == null ? void 0 : Q[0]) ?? U;
|
|
742
742
|
if (!t)
|
|
743
743
|
return {
|
|
744
744
|
code: a.code,
|
|
@@ -772,12 +772,12 @@ const bt = Re(
|
|
|
772
772
|
var t, i, f;
|
|
773
773
|
if (!e.draft) return [];
|
|
774
774
|
const a = e.draft.approvedAt ? {
|
|
775
|
-
action: `Approve at ${
|
|
775
|
+
action: `Approve at ${X(e.draft.approvedAt)}`,
|
|
776
776
|
// actionAt: props.draft.approvedAt,
|
|
777
777
|
actionBy: e.draft.approvedBy,
|
|
778
778
|
remark: e.draft.approveRemark
|
|
779
779
|
} : (t = e.draft.rejectionHistory) == null ? void 0 : t.computeFirst((c) => ({
|
|
780
|
-
action: `Reject at ${
|
|
780
|
+
action: `Reject at ${X(c.rejectedAt)}`,
|
|
781
781
|
// actionAt: e.rejectedAt,
|
|
782
782
|
actionBy: c.rejectedBy,
|
|
783
783
|
remark: c.rejectRemark
|
|
@@ -789,7 +789,7 @@ const bt = Re(
|
|
|
789
789
|
},
|
|
790
790
|
{
|
|
791
791
|
label: "Created at",
|
|
792
|
-
value:
|
|
792
|
+
value: X(e.draft.createdAt)
|
|
793
793
|
},
|
|
794
794
|
{
|
|
795
795
|
label: "Created by",
|
|
@@ -797,7 +797,7 @@ const bt = Re(
|
|
|
797
797
|
},
|
|
798
798
|
{
|
|
799
799
|
label: "Updated at",
|
|
800
|
-
value:
|
|
800
|
+
value: X(e.draft.updatedAt)
|
|
801
801
|
},
|
|
802
802
|
{
|
|
803
803
|
label: "Updated by",
|
|
@@ -805,7 +805,7 @@ const bt = Re(
|
|
|
805
805
|
},
|
|
806
806
|
{
|
|
807
807
|
label: "Effective at",
|
|
808
|
-
value:
|
|
808
|
+
value: X(e.draft.effectiveAt ?? e.draft.updatedAt)
|
|
809
809
|
},
|
|
810
810
|
e.draft.remark ? {
|
|
811
811
|
label: "Remark",
|
|
@@ -833,13 +833,13 @@ const bt = Re(
|
|
|
833
833
|
label: "Action history",
|
|
834
834
|
value: "history"
|
|
835
835
|
}
|
|
836
|
-
],
|
|
836
|
+
], Z = O(te[0]), Y = M(() => {
|
|
837
837
|
var t, i, f, c;
|
|
838
838
|
return [
|
|
839
839
|
...(((t = e.draft) == null ? void 0 : t.rejectionHistory) ?? []).map(
|
|
840
840
|
(p) => ({
|
|
841
841
|
header: "Reject",
|
|
842
|
-
date:
|
|
842
|
+
date: X(p.rejectedAt),
|
|
843
843
|
info: [
|
|
844
844
|
{
|
|
845
845
|
label: "Rejected by",
|
|
@@ -855,7 +855,7 @@ const bt = Re(
|
|
|
855
855
|
...(i = e.draft) != null && i.approvedBy ? [
|
|
856
856
|
{
|
|
857
857
|
header: "Approve",
|
|
858
|
-
date: e.draft.approvedAt ?
|
|
858
|
+
date: e.draft.approvedAt ? X(e.draft.approvedAt) : "",
|
|
859
859
|
info: [
|
|
860
860
|
{
|
|
861
861
|
label: "Approved by",
|
|
@@ -879,7 +879,7 @@ const bt = Re(
|
|
|
879
879
|
].filter((j) => j).join(" ");
|
|
880
880
|
});
|
|
881
881
|
return (a, t) => {
|
|
882
|
-
const i = E("FmButtonGroup"), f = E("FmMenuDivider"), c = E("FmCard"), p = E("FmButton"), I = E("FmCircularProgress"), j = E("FmTable"), G = E("FmSpacer"),
|
|
882
|
+
const i = E("FmButtonGroup"), f = E("FmMenuDivider"), c = E("FmCard"), p = E("FmButton"), I = E("FmCircularProgress"), j = E("FmTable"), G = E("FmSpacer"), Q = E("FmTooltip"), H = E("FmSideSheet");
|
|
883
883
|
return _(), ne(H, {
|
|
884
884
|
"dismiss-away": "",
|
|
885
885
|
"max-width": 900,
|
|
@@ -890,9 +890,9 @@ const bt = Re(
|
|
|
890
890
|
"side-sheet-footer": N(() => {
|
|
891
891
|
var A, k;
|
|
892
892
|
return [
|
|
893
|
-
o("div",
|
|
894
|
-
((A = e.draft) == null ? void 0 : A.status) === h(oe).enum.DRAFT ? (_(), F(
|
|
895
|
-
re.value ? (_(), ne(
|
|
893
|
+
o("div", Zt, [
|
|
894
|
+
((A = e.draft) == null ? void 0 : A.status) === h(oe).enum.DRAFT ? (_(), F(W, { key: 0 }, [
|
|
895
|
+
re.value ? (_(), ne(Q, {
|
|
896
896
|
key: 0,
|
|
897
897
|
"z-index": 51
|
|
898
898
|
}, {
|
|
@@ -933,11 +933,11 @@ const bt = Re(
|
|
|
933
933
|
o("div", null, [
|
|
934
934
|
D(i, {
|
|
935
935
|
items: te,
|
|
936
|
-
modelValue:
|
|
937
|
-
"onUpdate:modelValue": t[0] || (t[0] = (A) =>
|
|
936
|
+
modelValue: Z.value,
|
|
937
|
+
"onUpdate:modelValue": t[0] || (t[0] = (A) => Z.value = A)
|
|
938
938
|
}, null, 8, ["modelValue"])
|
|
939
939
|
]),
|
|
940
|
-
|
|
940
|
+
Z.value.value === "overview" ? (_(), F(W, { key: 0 }, [
|
|
941
941
|
D(c, {
|
|
942
942
|
variant: "outlined",
|
|
943
943
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
@@ -954,7 +954,7 @@ const bt = Re(
|
|
|
954
954
|
])
|
|
955
955
|
]),
|
|
956
956
|
D(f),
|
|
957
|
-
(_(!0), F(
|
|
957
|
+
(_(!0), F(W, null, ue(ee.value, (z, ve) => (_(), F("div", {
|
|
958
958
|
class: "flex flex-col gap-4",
|
|
959
959
|
key: ve
|
|
960
960
|
}, [
|
|
@@ -993,7 +993,7 @@ const bt = Re(
|
|
|
993
993
|
t[11] || (t[11] = o("div", { class: "h-80" }, null, -1))
|
|
994
994
|
])) : (_(), F("div", Ft, [
|
|
995
995
|
o("div", {
|
|
996
|
-
style: we({ width: `${
|
|
996
|
+
style: we({ width: `${J.value}px` })
|
|
997
997
|
}, [
|
|
998
998
|
D(j, {
|
|
999
999
|
"column-defs": K.value,
|
|
@@ -1003,9 +1003,9 @@ const bt = Re(
|
|
|
1003
1003
|
]))
|
|
1004
1004
|
])
|
|
1005
1005
|
], 64)) : le("", !0),
|
|
1006
|
-
|
|
1006
|
+
Z.value.value === "history" ? (_(), F("div", Rt, [
|
|
1007
1007
|
Y.value.length ? (_(), F("div", Mt, [
|
|
1008
|
-
(_(!0), F(
|
|
1008
|
+
(_(!0), F(W, null, ue(Y.value, (A, k) => (_(), F(W, { key: k }, [
|
|
1009
1009
|
o("div", Pt, [
|
|
1010
1010
|
o("div", It, [
|
|
1011
1011
|
o("div", Ut, [
|
|
@@ -1058,13 +1058,13 @@ const bt = Re(
|
|
|
1058
1058
|
}, {
|
|
1059
1059
|
default: N(() => [
|
|
1060
1060
|
o("div", Yt, [
|
|
1061
|
-
(_(!0), F(
|
|
1061
|
+
(_(!0), F(W, null, ue(A.info, (z, ve) => (_(), F("div", {
|
|
1062
1062
|
key: ve,
|
|
1063
1063
|
class: "flex flex-col gap-4"
|
|
1064
1064
|
}, [
|
|
1065
1065
|
o("div", Gt, L(z == null ? void 0 : z.label), 1),
|
|
1066
1066
|
o("div", qt, [
|
|
1067
|
-
(_(!0), F(
|
|
1067
|
+
(_(!0), F(W, null, ue(z == null ? void 0 : z.values, (Ie, Ue) => (_(), F("div", {
|
|
1068
1068
|
key: Ue,
|
|
1069
1069
|
class: "fm-typo-en-body-lg-600"
|
|
1070
1070
|
}, L(Ie), 1))), 128))
|
|
@@ -1097,10 +1097,10 @@ const bt = Re(
|
|
|
1097
1097
|
}, 8, ["model-value"]);
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
|
-
}),
|
|
1100
|
+
}), Xt = { class: "flex-1 flex flex-col gap-8" }, Jt = { class: "flex flex-col" }, Qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ea = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ta = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, aa = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, ua = /* @__PURE__ */ ye({
|
|
1101
1101
|
__name: "ClosingDraftView",
|
|
1102
1102
|
setup(n) {
|
|
1103
|
-
const { t: d } = Fe(), { viewDraft: e } = pe(), { viewClosingDraftProps: u, viewClosingDraftShow: m } = rt(pe()), g = be(), x = bt(), l =
|
|
1103
|
+
const { t: d } = Fe(), { viewDraft: e } = pe(), { viewClosingDraftProps: u, viewClosingDraftShow: m } = rt(pe()), g = be(), x = bt(), l = Je(), { breakpoints: b } = st();
|
|
1104
1104
|
g.watchLocation(x.fetchDrafts);
|
|
1105
1105
|
const R = M(() => x.loading), P = O(""), T = M(() => b.value.xs || b.value.sm), r = M(() => T.value ? 10 : 20);
|
|
1106
1106
|
function s(S) {
|
|
@@ -1127,8 +1127,8 @@ const bt = Re(
|
|
|
1127
1127
|
]);
|
|
1128
1128
|
return (S, w) => {
|
|
1129
1129
|
const V = E("FmTable");
|
|
1130
|
-
return _(), F(
|
|
1131
|
-
D(
|
|
1130
|
+
return _(), F(W, null, [
|
|
1131
|
+
D(Qe, {
|
|
1132
1132
|
title: h(d)("inventory.closing.draft.title"),
|
|
1133
1133
|
actions: U.value,
|
|
1134
1134
|
"onClick:action": s
|
|
@@ -1164,19 +1164,19 @@ const bt = Re(
|
|
|
1164
1164
|
onRowClick: (y) => h(e)(y)
|
|
1165
1165
|
}, {
|
|
1166
1166
|
default: N((y) => {
|
|
1167
|
-
var K,
|
|
1167
|
+
var K, J, se, ee, te, Z, Y, re, a, t, i, f, c, p, I, j, G, Q, H, A;
|
|
1168
1168
|
return [
|
|
1169
|
-
o("div",
|
|
1170
|
-
o("div",
|
|
1171
|
-
o("div",
|
|
1169
|
+
o("div", Xt, [
|
|
1170
|
+
o("div", Jt, [
|
|
1171
|
+
o("div", Qt, [
|
|
1172
1172
|
D(h(me), {
|
|
1173
|
-
render: (se = (
|
|
1173
|
+
render: (se = (J = (K = y._id) == null ? void 0 : K.column) == null ? void 0 : J.columnDef) == null ? void 0 : se.cell,
|
|
1174
1174
|
props: (te = (ee = y._id) == null ? void 0 : ee.getContext) == null ? void 0 : te.call(ee)
|
|
1175
1175
|
}, null, 8, ["render", "props"])
|
|
1176
1176
|
]),
|
|
1177
1177
|
o("div", ea, [
|
|
1178
1178
|
D(h(me), {
|
|
1179
|
-
render: (re = (Y = (
|
|
1179
|
+
render: (re = (Y = (Z = y.name) == null ? void 0 : Z.column) == null ? void 0 : Y.columnDef) == null ? void 0 : re.cell,
|
|
1180
1180
|
props: (t = (a = y.name) == null ? void 0 : a.getContext) == null ? void 0 : t.call(a)
|
|
1181
1181
|
}, null, 8, ["render", "props"])
|
|
1182
1182
|
]),
|
|
@@ -1193,7 +1193,7 @@ const bt = Re(
|
|
|
1193
1193
|
]),
|
|
1194
1194
|
o("div", null, [
|
|
1195
1195
|
D(h(me), {
|
|
1196
|
-
render: (
|
|
1196
|
+
render: (Q = (G = (j = y.status) == null ? void 0 : j.column) == null ? void 0 : G.columnDef) == null ? void 0 : Q.cell,
|
|
1197
1197
|
props: (A = (H = y.status) == null ? void 0 : H.getContext) == null ? void 0 : A.call(H)
|
|
1198
1198
|
}, null, 8, ["render", "props"])
|
|
1199
1199
|
])
|
|
@@ -1210,7 +1210,7 @@ const bt = Re(
|
|
|
1210
1210
|
_: 1
|
|
1211
1211
|
}, 8, ["title", "actions"]),
|
|
1212
1212
|
(_(), ne(Ee, { to: "body" }, [
|
|
1213
|
-
D(
|
|
1213
|
+
D(Wt, Le(h(u), {
|
|
1214
1214
|
show: h(m),
|
|
1215
1215
|
"onUpdate:show": w[2] || (w[2] = (B) => _e(m) ? m.value = B : null),
|
|
1216
1216
|
onSubmitted: w[3] || (w[3] = () => (m.value = !1, h(x).fetchDrafts()))
|