@feedmepos/mf-inventory-portal 1.2.51-dev.1 → 1.2.51
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-bY_YcLwH.js → App-BJ_vKOR1.js} +70 -75
- package/dist/{ApprovalView-vzIiBqt2.js → ApprovalView-B_prTTtl.js} +34 -34
- package/dist/{BindingsDialog-DCh2ORem.js → BindingsDialog-BPuKgJIk.js} +2 -2
- package/dist/{BindingsPicker-DcNG03p-.js → BindingsPicker-Dv_cmEil.js} +2 -2
- package/dist/{BindingsTable-B_Yaq-z3.js → BindingsTable-BNSfYRfq.js} +4 -4
- package/dist/{ClosingDraftView-C0T8cWEB.js → ClosingDraftView-C78tcaJ3.js} +399 -413
- package/dist/{ClosingHistoryView-DkKAjh7T.js → ClosingHistoryView-DY8liEk3.js} +27 -27
- package/dist/{ClosingTemplateView-DpH1EyW5.js → ClosingTemplateView-pJXEcrjO.js} +17 -18
- package/dist/{DeliveryOrderPrintPreview-B2ecLaLu.js → DeliveryOrderPrintPreview-Bu_l-kxu.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dgibb-Fh.js +231 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js} +12 -12
- package/dist/{FmMultiselectDialog-DGUwruxs.js → FmMultiselectDialog-C3iCMK5I.js} +1 -1
- package/dist/FmMultiselectDialog-CDONDKxE.js +598 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CRTG3VFo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js} +3 -3
- package/dist/{ImportView-Bk4Z7nGh.js → ImportView-JrenRgiI.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BEJ19Uej.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CSdxodp6.js} +1 -1
- package/dist/{IngredientGroupView-8GHMMOux.js → IngredientGroupView-aDFq_ZDh.js} +107 -108
- package/dist/{IngredientsView-DbmODx-v.js → IngredientsView-DSh3UqDg.js} +125 -126
- package/dist/{IntegrationView-DC0O_Lk4.js → IntegrationView-KhZ78uxM.js} +80 -80
- package/dist/{InventoryBindingForm-ln0q25n_.js → InventoryBindingForm-DZu0CZYh.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YuCn0irA.js} +21 -21
- package/dist/{InventoryBindingSummary-BlNXhS4v.js → InventoryBindingSummary-DZxLhZ_-.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BY_mXqPr.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DAwpZY3n.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BhNjwE3X.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CPDxwz-V.js} +2 -2
- package/dist/{PublishView-5GkTzxbi.js → PublishView-CLnQ7NBN.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Dj5lJ5Ou.js → PurchaseOrderPrintPreview-DiBztBma.js} +1 -1
- package/dist/ReceiveRequestView-_TOSnDGJ.js +2913 -0
- package/dist/{RecipeView-OLPRwnVx.js → RecipeView-BPIMvoTw.js} +82 -83
- package/dist/{StockView-TcA5zJqr.js → StockView-CI8MUJay.js} +112 -113
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DZ6TDkKR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DEBHEMkh.js} +1 -1
- package/dist/{SupplierView-77qI9YCg.js → SupplierView-COihDMNY.js} +27 -28
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D-c0Ayis.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +162 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D8vbPlie.js} +13 -13
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js → TransferDetails.vue_vue_type_script_setup_true_lang-BVuuw11z.js} +659 -658
- package/dist/{TransferTemplateView-CI0U36Tr.js → TransferTemplateView-B2NNfrEq.js} +81 -82
- package/dist/{UnitView-fNFFUNlb.js → UnitView-ZsbM07hw.js} +19 -20
- package/dist/{WarehouseView-BAXgnZnO.js → WarehouseView-Cd5RFu5v.js} +20 -21
- package/dist/{WastageTemplateView-C5qCXWqZ.js → WastageTemplateView-DpikyyZW.js} +164 -165
- package/dist/api/netsuite.d.ts +0 -8
- package/dist/{app-CddcvygU.js → app-CySQTQxj.js} +4410 -4513
- package/dist/app-uBuHtW8m.js +8127 -0
- package/dist/app.d.ts +0 -52
- package/dist/app.js +1 -1
- package/dist/{closing-template-DxdLqlb1.js → closing-template-DXGjC5AG.js} +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -8
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -5
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +2 -0
- package/dist/{date2-CVZy20Q_.js → date2-BWoUn1K_.js} +1 -1
- package/dist/{dayjs.min-NrRtjg32.js → dayjs.min-cMW8olEu.js} +26 -26
- package/dist/{decimal-Du3Grkk9.js → decimal-8BRzZQU6.js} +2 -2
- package/dist/{defineDeepModel-DgRoiQBp.js → defineDeepModel-AsUZ-DyW.js} +1 -1
- package/dist/{duplicate-template-DvnZ4BW6.js → duplicate-template-CyHfZR3S.js} +1 -1
- package/dist/{feature-CTA18HlL.js → feature-Dm0FnWf9.js} +6178 -8906
- package/dist/{format-time-from-id-6kt1RMWs.js → format-time-from-id-C9lmv5BP.js} +1 -1
- package/dist/{format-unit-display-mVJ-nuJe.js → format-unit-display-BV8pJisO.js} +11 -11
- package/dist/{import-export.helper-DWwlJy7N.js → import-export.helper-Djxw_H5S.js} +5 -5
- package/dist/{index-By-jyWOP.js → index-8hCa5_Gb.js} +1 -1
- package/dist/{index-BfcdagSF.js → index-D6u3kywf.js} +1 -1
- package/dist/{index-BEcj1jGd.js → index-DidYtgNc.js} +3 -3
- package/dist/{lodash-D0COOw3m.js → lodash-CW_Ea6mA.js} +1 -1
- package/dist/netsuite-BEto-z0v.js +5131 -0
- package/dist/{purchase-order-template-CJCmABzP.js → purchase-order-template-BTzjcgrO.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{rules-hQBVd1Mn.js → rules-DkVWS5mF.js} +9 -9
- package/dist/{stock-4xGaezEy.js → stock-CHw8pI8V.js} +3 -3
- package/dist/{stock-B6QW-S14.js → stock-D8hLHgeN.js} +1 -1
- package/dist/stores/feature.d.ts +2 -4
- package/dist/stores/integration/netsuite.d.ts +0 -5
- package/dist/style.css +1 -1
- package/dist/{supplier-C-dmFnqw.js → supplier-Dv83IfQr.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DgYSZDN8.js → use-ingredient-select-dialog-CJjd4g-6.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CnYcA_Fo.js → use-inventory-binding-dialog-D4g79p5S.js} +2 -2
- package/dist/{use-template-enabled-locations-2-B_aZrMUU.js → use-template-enabled-locations-2-Cg2iqQdq.js} +2 -2
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +22 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +0 -714
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/{vue-i18n-BCEDBY4T.js → vue-i18n-kUcLfpvT.js} +563 -563
- package/dist/{xlsx-CJsXiiEq.js → xlsx-BjeMbhDF.js} +398 -398
- package/dist/{xlsx.util-CSudzOii.js → xlsx.util-9eMlJfd9.js} +1 -1
- package/package.json +5 -5
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CI4z5XYQ.js +0 -188
- package/dist/FmMultiselectDialog-BviFuAM5.js +0 -618
- package/dist/ReceiveRequestView-BAYczSpW.js +0 -2913
- package/dist/SurchargeView-CxW2ZZ8a.js +0 -460
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +0 -84
- package/dist/api/surcharge.d.ts +0 -31
- package/dist/app-DiX-EfV6.js +0 -8167
- package/dist/component-DpCUABT3.js +0 -82
- package/dist/netsuite-3LgQ5ztL.js +0 -5402
- package/dist/stores/surcharge.d.ts +0 -18
- package/dist/surcharge-Db4IiSEQ.js +0 -71
- package/dist/views/surcharge/SurchargeView.vue.d.ts +0 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as ae, onMounted as
|
|
1
|
+
import { defineComponent as ae, onMounted as Te, computed as N, ref as H, watch as Fe, inject as ot, resolveComponent as V, openBlock as S, createElementBlock as L, createElementVNode as e, createVNode as c, withCtx as B, renderSlot as _e, withDirectives as Ue, normalizeClass as re, vModelText as qe, reactive as st, h as Q, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as xe, renderList as Qe, createBlock as ne, mergeProps as Ye, createTextVNode as le, mergeModels as Pe, useModel as nt, isRef as He, Teleport as lt, normalizeProps as at, guardReactiveProps as rt } from "vue";
|
|
2
2
|
import { u as it, _ as ut } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
3
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
|
-
import { f as dt, t as mt, u as
|
|
5
|
-
import { R as
|
|
6
|
-
import { a as We, s as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { components as ue, useSnackbar as
|
|
9
|
-
import { defineStore as
|
|
4
|
+
import { f as dt, t as mt, u as Le, a as pt } from "./format-unit-display-BV8pJisO.js";
|
|
5
|
+
import { R as Ne } from "./row-action.enum-BcW_L_nE.js";
|
|
6
|
+
import { a as We, s as Ee, t as X, u as Ge, v as ct, k as ye } from "./app-CySQTQxj.js";
|
|
7
|
+
import { _ as ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js";
|
|
8
|
+
import { components as ue, useSnackbar as yt, useProxiedModel as Ke, useBreakpoints as vt } from "@feedmepos/ui-library";
|
|
9
|
+
import { defineStore as bt, storeToRefs as ze } from "pinia";
|
|
10
10
|
import { F as de } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import { u as he, t as je, I as
|
|
12
|
-
import { d as Ze } from "./defineDeepModel-
|
|
13
|
-
import { _ as
|
|
14
|
-
import {
|
|
15
|
-
import { u as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { u as
|
|
21
|
-
import { u as At } from "./purchase-order-template-
|
|
22
|
-
import { f as Rt } from "./format-time-from-id-
|
|
23
|
-
import { f as Bt } from "./date2-
|
|
11
|
+
import { u as he, t as je, I as gt, b as ht, n as _t, a as se, c as xt, R as ke, g as be, d as ve, A as we, M as kt, e as wt } from "./rules-DkVWS5mF.js";
|
|
12
|
+
import { d as Ze } from "./defineDeepModel-AsUZ-DyW.js";
|
|
13
|
+
import { _ as Tt, F as Ft, a as Ct, b as It } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js";
|
|
14
|
+
import { u as ge } from "./feature-Dm0FnWf9.js";
|
|
15
|
+
import { c as Mt, u as $t, _ as St } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dgibb-Fh.js";
|
|
16
|
+
import { u as Je } from "./netsuite-BEto-z0v.js";
|
|
17
|
+
import { u as Ot } from "./supplier-Dv83IfQr.js";
|
|
18
|
+
import { u as Dt } from "./use-ingredient-select-dialog-CJjd4g-6.js";
|
|
19
|
+
import { F as ee, _ as Xe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js";
|
|
20
|
+
import { u as Vt } from "./use-template-enabled-locations-2-Cg2iqQdq.js";
|
|
21
|
+
import { u as At } from "./purchase-order-template-BTzjcgrO.js";
|
|
22
|
+
import { f as Rt } from "./format-time-from-id-C9lmv5BP.js";
|
|
23
|
+
import { f as Bt } from "./date2-BWoUn1K_.js";
|
|
24
24
|
const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Pt = { class: "flex-1" }, Lt = { class: "flex items-center" }, Nt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
|
|
25
25
|
__name: "FmMinMaxInput",
|
|
26
26
|
props: {
|
|
@@ -59,8 +59,8 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Pt = { c
|
|
|
59
59
|
helperState: {}
|
|
60
60
|
},
|
|
61
61
|
setup(f) {
|
|
62
|
-
const h = f, y = Ze("modelValue"), a =
|
|
63
|
-
|
|
62
|
+
const h = f, y = Ze("modelValue"), a = gt();
|
|
63
|
+
Te(() => {
|
|
64
64
|
const { min: p, max: b } = y ?? {};
|
|
65
65
|
if (!(!p || !b) && p.precision !== b.precision) {
|
|
66
66
|
const w = Math.max(p.precision, b.precision), i = he(p, w), g = he(b, w);
|
|
@@ -72,13 +72,13 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Pt = { c
|
|
|
72
72
|
return Math.max((p == null ? void 0 : p.precision) ?? 0, (b == null ? void 0 : b.precision) ?? 0, h.precision ?? 0);
|
|
73
73
|
}), s = (p) => {
|
|
74
74
|
if (!p) return "";
|
|
75
|
-
const b =
|
|
76
|
-
return
|
|
75
|
+
const b = ht(p), w = r.value, i = he(b, w);
|
|
76
|
+
return _t(
|
|
77
77
|
+se(i),
|
|
78
78
|
i.precision
|
|
79
79
|
);
|
|
80
80
|
}, u = H(s(y.min)), _ = H(s(y.max));
|
|
81
|
-
|
|
81
|
+
Fe([u, _], ([p, b]) => {
|
|
82
82
|
const w = y ?? {}, i = a(p), g = a(b), O = r.value;
|
|
83
83
|
if (p !== "" && i === !0) {
|
|
84
84
|
const $ = je(+p, O);
|
|
@@ -115,10 +115,10 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Pt = { c
|
|
|
115
115
|
c(i, { focused: R.value }, {
|
|
116
116
|
default: B(() => [
|
|
117
117
|
e("div", Lt, [
|
|
118
|
-
|
|
118
|
+
_e(p.$slots, "prepend"),
|
|
119
119
|
b[6] || (b[6] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Min.", -1)),
|
|
120
120
|
e("div", Nt, [
|
|
121
|
-
|
|
121
|
+
Ue(e("input", {
|
|
122
122
|
type: "text",
|
|
123
123
|
ref_key: "minInputRef",
|
|
124
124
|
ref: d,
|
|
@@ -131,13 +131,13 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Pt = { c
|
|
|
131
131
|
"text-fm-color-typo-disabled": o.value
|
|
132
132
|
})
|
|
133
133
|
}, null, 34), [
|
|
134
|
-
[
|
|
134
|
+
[qe, u.value]
|
|
135
135
|
])
|
|
136
136
|
]),
|
|
137
137
|
b[7] || (b[7] = e("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
138
138
|
b[8] || (b[8] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Max.", -1)),
|
|
139
139
|
e("div", Et, [
|
|
140
|
-
|
|
140
|
+
Ue(e("input", {
|
|
141
141
|
type: "text",
|
|
142
142
|
ref_key: "maxInputRef",
|
|
143
143
|
ref: m,
|
|
@@ -150,10 +150,10 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Pt = { c
|
|
|
150
150
|
"text-fm-color-typo-disabled": o.value
|
|
151
151
|
})
|
|
152
152
|
}, null, 34), [
|
|
153
|
-
[
|
|
153
|
+
[qe, _.value]
|
|
154
154
|
])
|
|
155
155
|
]),
|
|
156
|
-
|
|
156
|
+
_e(p.$slots, "append")
|
|
157
157
|
])
|
|
158
158
|
]),
|
|
159
159
|
_: 3
|
|
@@ -182,13 +182,13 @@ function Qt(f, h) {
|
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
function Yt(f) {
|
|
185
|
-
const h =
|
|
185
|
+
const h = xt(f), y = se(f);
|
|
186
186
|
return function(r) {
|
|
187
187
|
const s = !(r != null && r.min) || h(r.min) === !0, u = !(r != null && r.max) || h(r.max) === !0;
|
|
188
188
|
return !s && !u ? `Min & max must be a multiple of ${y}` : s ? u ? !0 : `Max must be a multiple of ${y}` : `Min must be a multiple of ${y}`;
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
const et =
|
|
191
|
+
const et = bt("netsuite-custom-field-helper", () => {
|
|
192
192
|
const f = Je();
|
|
193
193
|
function h(y, a, r, s, u) {
|
|
194
194
|
var v, o, d;
|
|
@@ -215,19 +215,18 @@ const et = gt("netsuite-custom-field-helper", () => {
|
|
|
215
215
|
var Y = /* @__PURE__ */ ((f) => (f.Code = "Code", f.Name = "Name", f.DefaultAmount = "DefaultAmount", f.Limit = "Limit", f.Step = "Step", f.Cost = "Cost", f.Delete = "Delete", f))(Y || {});
|
|
216
216
|
function Ht(f, h = {}) {
|
|
217
217
|
const { t: y } = me(), a = We(), r = ge(), s = st({}), u = et();
|
|
218
|
-
|
|
218
|
+
Te(() => {
|
|
219
219
|
for (const v of f.items) {
|
|
220
220
|
if (!v.totalCost)
|
|
221
221
|
continue;
|
|
222
|
-
const { cost: o } =
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
222
|
+
const { cost: o } = Mt(
|
|
223
|
+
v.sku,
|
|
224
|
+
v.quantity,
|
|
225
|
+
v.measurement,
|
|
226
|
+
{
|
|
227
227
|
supplier: f.supplier
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
}), d = v.totalCost ?? _e.reset();
|
|
228
|
+
}
|
|
229
|
+
), d = v.totalCost ?? Ee.reset();
|
|
231
230
|
o ? s[v.sku._id] = o.amount !== d.amount || o.precision !== d.precision : s[v.sku._id] = !0;
|
|
232
231
|
}
|
|
233
232
|
});
|
|
@@ -257,7 +256,7 @@ function Ht(f, h = {}) {
|
|
|
257
256
|
},
|
|
258
257
|
helperText: o.sku.code,
|
|
259
258
|
key: o.sku._id,
|
|
260
|
-
rules: [
|
|
259
|
+
rules: [ke()],
|
|
261
260
|
labelMark: "required"
|
|
262
261
|
})
|
|
263
262
|
]);
|
|
@@ -288,7 +287,7 @@ function Ht(f, h = {}) {
|
|
|
288
287
|
},
|
|
289
288
|
helperText: o.sku.name,
|
|
290
289
|
key: o.sku._id,
|
|
291
|
-
rules: [
|
|
290
|
+
rules: [ke()],
|
|
292
291
|
labelMark: "required"
|
|
293
292
|
})
|
|
294
293
|
]);
|
|
@@ -305,7 +304,7 @@ function Ht(f, h = {}) {
|
|
|
305
304
|
var p;
|
|
306
305
|
return ((p = o.measurement) == null ? void 0 : p.id) === U.id;
|
|
307
306
|
}), T = o.sku.unit._id !== d.unit._id || !m || o.measurement && !k;
|
|
308
|
-
return Q(
|
|
307
|
+
return Q(Tt, {
|
|
309
308
|
style: {
|
|
310
309
|
flex: "1 1 0%"
|
|
311
310
|
},
|
|
@@ -333,9 +332,9 @@ function Ht(f, h = {}) {
|
|
|
333
332
|
);
|
|
334
333
|
},
|
|
335
334
|
rules: [
|
|
336
|
-
|
|
335
|
+
Ft(o.quantityStep),
|
|
337
336
|
...+se(o.quantity) ? [
|
|
338
|
-
|
|
337
|
+
Ct(
|
|
339
338
|
+se(
|
|
340
339
|
o.minimumQuantity ?? {
|
|
341
340
|
amount: 1,
|
|
@@ -345,7 +344,7 @@ function Ht(f, h = {}) {
|
|
|
345
344
|
)
|
|
346
345
|
)
|
|
347
346
|
] : [],
|
|
348
|
-
|
|
347
|
+
It(
|
|
349
348
|
o.maximumQuantity ? +se(o.maximumQuantity) : 1 / 0
|
|
350
349
|
),
|
|
351
350
|
function(p) {
|
|
@@ -402,7 +401,7 @@ function Ht(f, h = {}) {
|
|
|
402
401
|
cell(v) {
|
|
403
402
|
const o = v.row.original;
|
|
404
403
|
return Q(ue.FmTextField, {
|
|
405
|
-
modelValue: se(o.quantityStep ??
|
|
404
|
+
modelValue: se(o.quantityStep ?? Ee.reset(), !1),
|
|
406
405
|
key: o.sku._id,
|
|
407
406
|
"onUpdate:modelValue": (d) => {
|
|
408
407
|
f.updateItem({
|
|
@@ -411,11 +410,11 @@ function Ht(f, h = {}) {
|
|
|
411
410
|
});
|
|
412
411
|
},
|
|
413
412
|
rules: [
|
|
414
|
-
|
|
413
|
+
we({
|
|
415
414
|
amount: 1,
|
|
416
415
|
precision: be(o.sku.unit, o.measurement)
|
|
417
416
|
}),
|
|
418
|
-
|
|
417
|
+
kt(o.sku.unit, o.measurement)
|
|
419
418
|
]
|
|
420
419
|
});
|
|
421
420
|
},
|
|
@@ -610,14 +609,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
610
609
|
return (y, a) => (S(), L(pe, null, [
|
|
611
610
|
e("tr", {
|
|
612
611
|
class: "hover:bg-fm-color-opacity-sm border-b border-fm-color-neutral-gray-100",
|
|
613
|
-
style:
|
|
612
|
+
style: xe({ backgroundColor: y.errorMessage ? "#ffd6d6" : void 0 })
|
|
614
613
|
}, [
|
|
615
614
|
(S(!0), L(pe, null, Qe(y.row.getVisibleCells(), (r) => {
|
|
616
615
|
var s, u, _, M, v;
|
|
617
616
|
return S(), L("td", {
|
|
618
617
|
key: r.id,
|
|
619
618
|
class: re(["text-fm-color-typo-primary", ((s = h(r)) == null ? void 0 : s.cellClass) ?? "px-16", "py-2"]),
|
|
620
|
-
style:
|
|
619
|
+
style: xe({
|
|
621
620
|
width: (u = h(r)) != null && u.width ? (_ = h(r)) == null ? void 0 : _.width : r.column.getSize() !== 0 ? `${r.column.getSize()}px` : void 0,
|
|
622
621
|
maxWidth: (M = h(r)) == null ? void 0 : M.maxWidth,
|
|
623
622
|
textAlign: ((v = h(r)) == null ? void 0 : v.textAlign) ?? "left"
|
|
@@ -651,8 +650,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
651
650
|
},
|
|
652
651
|
emits: ["update:disabled"],
|
|
653
652
|
setup(f, { expose: h, emit: y }) {
|
|
654
|
-
const a = f, r = y, s = Ze(), { t: u } = me(), _ = H({}), M = Ge(), v = We(), o =
|
|
655
|
-
|
|
653
|
+
const a = f, r = y, s = Ze(), { t: u } = me(), _ = H({}), M = Ge(), v = We(), o = Ot(), d = ge(), m = Je(), k = et();
|
|
654
|
+
Fe(
|
|
656
655
|
() => s.purchaseOrder.items.length,
|
|
657
656
|
() => {
|
|
658
657
|
_.value = {};
|
|
@@ -660,7 +659,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
660
659
|
), M.watchLocation(async () => {
|
|
661
660
|
location && (s.purchaseOrder.supplier || (s.purchaseOrder.supplier = o.suppliers.find((n) => n) ?? s.purchaseOrder.supplier));
|
|
662
661
|
});
|
|
663
|
-
const T =
|
|
662
|
+
const T = $t(
|
|
664
663
|
() => s.purchaseOrder,
|
|
665
664
|
(n) => {
|
|
666
665
|
s.purchaseOrder = {
|
|
@@ -700,7 +699,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
700
699
|
promptSelectLocations: w,
|
|
701
700
|
columnDefs: i,
|
|
702
701
|
rowData: g
|
|
703
|
-
} =
|
|
702
|
+
} = Vt({
|
|
704
703
|
getLocations() {
|
|
705
704
|
return s.locations;
|
|
706
705
|
},
|
|
@@ -786,7 +785,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
786
785
|
});
|
|
787
786
|
}
|
|
788
787
|
})
|
|
789
|
-
), E = N(() => te.columnDefs.value), { promptSelectIngredients: q } =
|
|
788
|
+
), E = N(() => te.columnDefs.value), { promptSelectIngredients: q } = Dt();
|
|
790
789
|
async function Z() {
|
|
791
790
|
const l = v.skus.map((D) => ({
|
|
792
791
|
label: D.name,
|
|
@@ -859,7 +858,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
859
858
|
"label-mark": "required",
|
|
860
859
|
modelValue: t(s).name,
|
|
861
860
|
"onUpdate:modelValue": l[0] || (l[0] = (C) => t(s).name = C),
|
|
862
|
-
rules: [t(
|
|
861
|
+
rules: [t(ke)()]
|
|
863
862
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
864
863
|
c(P, {
|
|
865
864
|
label: t(u)("inventory.transfer.form.type.title"),
|
|
@@ -879,7 +878,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
879
878
|
sublabel: t(T).locationOptionsTypeTransfer.value.length ? void 0 : t(u)("inventory.transfer.form.noLocationAvailable")
|
|
880
879
|
}
|
|
881
880
|
],
|
|
882
|
-
rules: [t(
|
|
881
|
+
rules: [t(we)(1)(U.value)]
|
|
883
882
|
}, {
|
|
884
883
|
default: B(() => [
|
|
885
884
|
e("span", {
|
|
@@ -887,7 +886,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
887
886
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
888
887
|
n.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
889
888
|
])
|
|
890
|
-
}, I(t(
|
|
889
|
+
}, I(t(ct)(R.value)), 3)
|
|
891
890
|
]),
|
|
892
891
|
_: 1
|
|
893
892
|
}, 8, ["label", "model-value", "items", "rules"]),
|
|
@@ -900,7 +899,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
900
899
|
"menu-wrapper": B((C) => {
|
|
901
900
|
var j;
|
|
902
901
|
return [
|
|
903
|
-
c(
|
|
902
|
+
c(St, Ye(C, {
|
|
904
903
|
items: U.value,
|
|
905
904
|
"model-value": (j = n.modelValue.purchaseOrder.supplier) == null ? void 0 : j._id
|
|
906
905
|
}), null, 16, ["items", "model-value"])
|
|
@@ -1036,7 +1035,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1036
1035
|
}, 8, ["column-defs", "row-data", "page-size"])),
|
|
1037
1036
|
c(A, {
|
|
1038
1037
|
"model-value": t(s).purchaseOrder.items.length,
|
|
1039
|
-
rules: [t(
|
|
1038
|
+
rules: [t(we)(1)]
|
|
1040
1039
|
}, null, 8, ["model-value", "rules"])
|
|
1041
1040
|
])
|
|
1042
1041
|
];
|
|
@@ -1091,7 +1090,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1091
1090
|
])
|
|
1092
1091
|
]),
|
|
1093
1092
|
default: B(() => [
|
|
1094
|
-
|
|
1093
|
+
_e(u.$slots, "dialog-content", {}, () => [
|
|
1095
1094
|
le(I(y.confirmMessage || "Are you sure you want to proceed?"), 1)
|
|
1096
1095
|
])
|
|
1097
1096
|
]),
|
|
@@ -1102,7 +1101,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1102
1101
|
}
|
|
1103
1102
|
}), Io = { class: "flex items-center" }, Mo = { class: "fm-typo-en-title-md-800" }, $o = { class: "flex gap-4" }, So = /* @__PURE__ */ ae({
|
|
1104
1103
|
__name: "TransferTemplateDialog",
|
|
1105
|
-
props: /* @__PURE__ */
|
|
1104
|
+
props: /* @__PURE__ */ Pe({
|
|
1106
1105
|
mode: {},
|
|
1107
1106
|
modelValue: {},
|
|
1108
1107
|
show: { type: Boolean }
|
|
@@ -1110,10 +1109,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1110
1109
|
disabled: { type: Boolean },
|
|
1111
1110
|
disabledModifiers: {}
|
|
1112
1111
|
}),
|
|
1113
|
-
emits: /* @__PURE__ */
|
|
1112
|
+
emits: /* @__PURE__ */ Pe(["update:show", "submitted"], ["update:disabled"]),
|
|
1114
1113
|
setup(f, { expose: h, emit: y }) {
|
|
1115
1114
|
var w;
|
|
1116
|
-
const a = f, r = y, s = At(), u =
|
|
1115
|
+
const a = f, r = y, s = At(), u = yt(), { t: _ } = me(), M = Ke(a, "show");
|
|
1117
1116
|
function v() {
|
|
1118
1117
|
return {
|
|
1119
1118
|
_id: "",
|
|
@@ -1145,7 +1144,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1145
1144
|
};
|
|
1146
1145
|
}
|
|
1147
1146
|
const o = H(a.modelValue ?? v()), d = H(((w = a.modelValue) == null ? void 0 : w._id) ?? `${Math.random()}`);
|
|
1148
|
-
|
|
1147
|
+
Fe(
|
|
1149
1148
|
() => a.show,
|
|
1150
1149
|
(i) => {
|
|
1151
1150
|
var g;
|
|
@@ -1411,7 +1410,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1411
1410
|
]),
|
|
1412
1411
|
e("div", ls, [
|
|
1413
1412
|
e("div", as, I(x.code), 1),
|
|
1414
|
-
x.totalCost && t(r).enableTotalCost ? (S(), L("div", rs, " (" + I(t(
|
|
1413
|
+
x.totalCost && t(r).enableTotalCost ? (S(), L("div", rs, " (" + I(t(wt)(x.totalCost)) + ") ", 1)) : oe("", !0)
|
|
1415
1414
|
]),
|
|
1416
1415
|
t(mt)(x) ? (S(), L("div", is, [
|
|
1417
1416
|
c(U, {
|
|
@@ -1466,14 +1465,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1466
1465
|
}), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, zs = /* @__PURE__ */ ae({
|
|
1467
1466
|
__name: "TransferTemplateView",
|
|
1468
1467
|
setup(f) {
|
|
1469
|
-
const { t: h } = me(), { createTemplate: y, viewTemplate: a, importTemplates: r, exportTemplates: s } =
|
|
1470
|
-
|
|
1468
|
+
const { t: h } = me(), { createTemplate: y, viewTemplate: a, importTemplates: r, exportTemplates: s } = Le(), { templateDialogProps: u, templateDetailsProps: _ } = ze(Le()), M = pt(), { loading: v, templates: o } = ze(M), d = H(!1), m = it(), k = Ge(), { breakpoints: T } = vt();
|
|
1469
|
+
Te(M.fetchTemplates);
|
|
1471
1470
|
const R = N(
|
|
1472
1471
|
() => d.value || v.value || !k._currentLocation
|
|
1473
1472
|
), U = N(() => o.value), p = H(""), b = N(() => T.value.xs || T.value.sm), w = N(() => b.value ? 10 : 20);
|
|
1474
1473
|
function i($) {
|
|
1475
1474
|
switch ($) {
|
|
1476
|
-
case
|
|
1475
|
+
case Ne.Add:
|
|
1477
1476
|
return y();
|
|
1478
1477
|
case "refresh":
|
|
1479
1478
|
return M.fetchTemplates();
|
|
@@ -1489,7 +1488,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1489
1488
|
const O = N(() => [
|
|
1490
1489
|
{
|
|
1491
1490
|
label: h("inventory.closing.template.create.title"),
|
|
1492
|
-
value:
|
|
1491
|
+
value: Ne.Add,
|
|
1493
1492
|
isPrimary: !0,
|
|
1494
1493
|
prependIcon: "add"
|
|
1495
1494
|
},
|
|
@@ -1529,13 +1528,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1529
1528
|
}
|
|
1530
1529
|
])
|
|
1531
1530
|
}, [
|
|
1532
|
-
c(
|
|
1531
|
+
c(ft, {
|
|
1533
1532
|
searchable: "",
|
|
1534
1533
|
search: p.value,
|
|
1535
1534
|
"onUpdate:search": x[0] || (x[0] = (E) => p.value = E)
|
|
1536
1535
|
}, null, 8, ["search"]),
|
|
1537
1536
|
(S(), ne(W, {
|
|
1538
|
-
style:
|
|
1537
|
+
style: xe(t(m).tableHeight),
|
|
1539
1538
|
"column-defs": t(M).columnDefs,
|
|
1540
1539
|
"row-data": U.value,
|
|
1541
1540
|
"search-value": p.value,
|
|
@@ -1550,7 +1549,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1550
1549
|
onRowClick: (q) => t(a)(q)
|
|
1551
1550
|
}, {
|
|
1552
1551
|
default: B((q) => {
|
|
1553
|
-
var Z, n, l, F, P, z, G, D, A, K, J, C, j, ie, Ie, Me, $e, Se, Oe,
|
|
1552
|
+
var Z, n, l, F, P, z, G, D, A, K, J, C, j, ie, Ce, Ie, Me, $e, Se, Oe, ce, De, Ve, Ae, Re, fe, Be;
|
|
1554
1553
|
return [
|
|
1555
1554
|
e("div", cs, [
|
|
1556
1555
|
e("div", fs, [
|
|
@@ -1569,22 +1568,22 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1569
1568
|
e("div", bs, [
|
|
1570
1569
|
c(t(ee), {
|
|
1571
1570
|
render: (j = (C = (J = q.supplier) == null ? void 0 : J.column) == null ? void 0 : C.columnDef) == null ? void 0 : j.cell,
|
|
1572
|
-
props: (
|
|
1571
|
+
props: (Ce = (ie = q.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Ce.call(ie)
|
|
1573
1572
|
}, null, 8, ["render", "props"])
|
|
1574
1573
|
]),
|
|
1575
|
-
e("div", null, I((
|
|
1574
|
+
e("div", null, I((Ie = E.original.locations) != null && Ie.length ? `Enabled for ${(Me = E.original.locations) == null ? void 0 : Me.length} outlets` : "Enabled for all outlets"), 1),
|
|
1576
1575
|
e("div", gs, I(E.original.purchaseOrder.items.length ? E.original.purchaseOrder.items.map((tt) => tt.name).join(", ") : "No items"), 1),
|
|
1577
1576
|
e("div", hs, [
|
|
1578
1577
|
c(t(ee), {
|
|
1579
|
-
render: (
|
|
1580
|
-
props: (
|
|
1578
|
+
render: (Oe = (Se = ($e = q.ref) == null ? void 0 : $e.column) == null ? void 0 : Se.columnDef) == null ? void 0 : Oe.cell,
|
|
1579
|
+
props: (De = (ce = q.ref) == null ? void 0 : ce.getContext) == null ? void 0 : De.call(ce)
|
|
1581
1580
|
}, null, 8, ["render", "props"])
|
|
1582
1581
|
])
|
|
1583
1582
|
]),
|
|
1584
1583
|
e("div", null, [
|
|
1585
1584
|
c(t(ee), {
|
|
1586
|
-
render: (
|
|
1587
|
-
props: (
|
|
1585
|
+
render: (Re = (Ae = (Ve = q.type) == null ? void 0 : Ve.column) == null ? void 0 : Ae.columnDef) == null ? void 0 : Re.cell,
|
|
1586
|
+
props: (Be = (fe = q.type) == null ? void 0 : fe.getContext) == null ? void 0 : Be.call(fe)
|
|
1588
1587
|
}, null, 8, ["render", "props"])
|
|
1589
1588
|
])
|
|
1590
1589
|
])
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { defineComponent as O, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as K, renderList as G, toDisplayString as h, createCommentVNode as Q, ref as I, watch as oe, resolveComponent as $, createBlock as T, withCtx as A, createVNode as f, unref as i, isRef as le, normalizeClass as me, normalizeStyle as ce, Teleport as pe, normalizeProps as ve, guardReactiveProps as fe } from "vue";
|
|
2
|
-
import { a as Y, S as ye, c as ie,
|
|
2
|
+
import { a as Y, S as ye, c as ie, s as be, j as se, u as ge } from "./app-CySQTQxj.js";
|
|
3
3
|
import { useDialog as ue, useSnackbar as Z, useProxiedModel as ae, useBreakpoints as xe } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as _e, _ as he } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as U } from "./form-mode.enum-BKiNVH6A.js";
|
|
6
6
|
import { defineStore as Ve, storeToRefs as Ue } from "pinia";
|
|
7
7
|
import { D as re, R as q } from "./row-action.enum-BcW_L_nE.js";
|
|
8
|
-
import { c as we } from "./
|
|
8
|
+
import { c as we, _ as Ce, F as Se } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js";
|
|
9
9
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
10
|
-
import { u as
|
|
11
|
-
import { R as H, A as
|
|
12
|
-
import { F as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import {
|
|
16
|
-
import { u as Me } from "./netsuite-3LgQ5ztL.js";
|
|
10
|
+
import { u as Fe, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
11
|
+
import { R as H, A as Ee, a as W, d as $e, h as Ie } from "./rules-DkVWS5mF.js";
|
|
12
|
+
import { F as Ae } from "./decimal-8BRzZQU6.js";
|
|
13
|
+
import { _ as De } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DAwpZY3n.js";
|
|
14
|
+
import { _ as Re } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js";
|
|
15
|
+
import { u as Me } from "./netsuite-BEto-z0v.js";
|
|
17
16
|
const Pe = { class: "flex flex-col gap-8" }, Te = {
|
|
18
17
|
key: 0,
|
|
19
18
|
class: "flex flex-col"
|
|
@@ -383,7 +382,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
383
382
|
label: i(a)("inventory.unit.precision"),
|
|
384
383
|
modelValue: t.value,
|
|
385
384
|
"onUpdate:modelValue": o[2] || (o[2] = (x) => t.value = x),
|
|
386
|
-
rules: [i(
|
|
385
|
+
rules: [i(Ee)(0)]
|
|
387
386
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
388
387
|
])
|
|
389
388
|
]),
|
|
@@ -436,7 +435,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
436
435
|
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
437
436
|
])
|
|
438
437
|
]),
|
|
439
|
-
f(
|
|
438
|
+
f(De, {
|
|
440
439
|
disabled: e.disabled,
|
|
441
440
|
class: "col-span-3",
|
|
442
441
|
label: i(a)("inventory.unit.measurement.conversion"),
|
|
@@ -444,13 +443,13 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
444
443
|
"onUpdate:modelValue": (k) => u.value = u.value.map(
|
|
445
444
|
(P, L) => L === _ ? {
|
|
446
445
|
...P,
|
|
447
|
-
conversion: i(
|
|
448
|
-
i(
|
|
446
|
+
conversion: i(Ae).toPrecision(
|
|
447
|
+
i($e)(k),
|
|
449
448
|
t.value
|
|
450
449
|
)
|
|
451
450
|
} : P
|
|
452
451
|
),
|
|
453
|
-
rules: [i(
|
|
452
|
+
rules: [i(Ie)(0)],
|
|
454
453
|
step: +i(W)({ amount: 1, precision: t.value }),
|
|
455
454
|
"helper-text": i(a)("inventory.unit.measurement.conversionHelper", {
|
|
456
455
|
measurementSymbol: e.modelValue.measurements[_].name || " measurement unit",
|
|
@@ -590,7 +589,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
590
589
|
}, 8, ["model-value", "header"]);
|
|
591
590
|
};
|
|
592
591
|
}
|
|
593
|
-
}), it = { class: "flex flex-col py-8" }, ut = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
592
|
+
}), it = { class: "flex flex-col py-8" }, ut = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, St = /* @__PURE__ */ O({
|
|
594
593
|
__name: "UnitView",
|
|
595
594
|
setup(S) {
|
|
596
595
|
const c = Y(), g = ge(), m = Me();
|
|
@@ -602,7 +601,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
602
601
|
return m.isEnabled ? void 0 : d();
|
|
603
602
|
}
|
|
604
603
|
}
|
|
605
|
-
const y = I(""), F = I(!1), E = b(() => F.value || r.value), { breakpoints: e } = xe(), o = b(() => e.value.xs || e.value.sm), V = b(() => o.value ? 10 : 20), R =
|
|
604
|
+
const y = I(""), F = I(!1), E = b(() => F.value || r.value), { breakpoints: e } = xe(), o = b(() => e.value.xs || e.value.sm), V = b(() => o.value ? 10 : 20), R = Fe(), C = b(() => [
|
|
606
605
|
...m.isEnabled ? [] : [
|
|
607
606
|
{
|
|
608
607
|
label: l("inventory.unit.create.title"),
|
|
@@ -614,7 +613,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
614
613
|
]);
|
|
615
614
|
return (M, D) => {
|
|
616
615
|
const B = $("FmTable");
|
|
617
|
-
return v(), T(
|
|
616
|
+
return v(), T(ke, {
|
|
618
617
|
title: i(l)("inventory.unit.title"),
|
|
619
618
|
actions: C.value,
|
|
620
619
|
"onClick:action": u
|
|
@@ -644,7 +643,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
644
643
|
"page-size": V.value
|
|
645
644
|
}, {
|
|
646
645
|
"list-row": A((x) => [
|
|
647
|
-
f(
|
|
646
|
+
f(Ce, {
|
|
648
647
|
row: x,
|
|
649
648
|
onRowClick: i(n)
|
|
650
649
|
}, {
|
|
@@ -653,7 +652,7 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
653
652
|
return [
|
|
654
653
|
s("div", it, [
|
|
655
654
|
s("div", ut, [
|
|
656
|
-
f(i(
|
|
655
|
+
f(i(Se), {
|
|
657
656
|
render: (L = (P = (k = _.name) == null ? void 0 : k.column) == null ? void 0 : P.columnDef) == null ? void 0 : L.cell,
|
|
658
657
|
props: (ee = (N = _.name) == null ? void 0 : N.getContext) == null ? void 0 : ee.call(N)
|
|
659
658
|
}, null, 8, ["render", "props"])
|
|
@@ -678,5 +677,5 @@ const Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Qe
|
|
|
678
677
|
}
|
|
679
678
|
});
|
|
680
679
|
export {
|
|
681
|
-
|
|
680
|
+
St as default
|
|
682
681
|
};
|