@feedmepos/mf-inventory-portal 1.8.0-dev.17 → 1.8.0-dev.19
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-CRmKXhRV.js → App-BXDscpMf.js} +9 -9
- package/dist/{ApprovalView-tDkNN-Cd.js → ApprovalView-CbP2H_8q.js} +9 -9
- package/dist/{BindingsDialog-DrB0U9F6.js → BindingsDialog-C7OFDUAr.js} +2 -2
- package/dist/{BindingsPicker-tjjgijNe.js → BindingsPicker-BQjHQWPl.js} +2 -2
- package/dist/{BindingsTable-D7EGgWxE.js → BindingsTable-grJZdI5F.js} +10 -10
- package/dist/{BulkReceiveRequestPage-B7GEE9qI.js → BulkReceiveRequestPage-jZtPq5XF.js} +21 -21
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-B4j6Acmo.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DOgwkHnO.js} +1 -1
- package/dist/{ClosingDraftView-DH0eBMZ8.js → ClosingDraftView-UmNAyX_s.js} +19 -19
- package/dist/{ClosingHistoryView-FmdYCiLI.js → ClosingHistoryView-CZcOYK98.js} +7 -7
- package/dist/{ClosingTemplateView-BGmFG2-y.js → ClosingTemplateView-CP2-ib2S.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DHboInU_.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DYZjiuAH.js} +1 -1
- package/dist/{DefaultView-CsNlHUlf.js → DefaultView-DOa4PWSU.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CMe2DpP1.js → DeliveryOrderPrintPreview-DtFuSUby.js} +9 -9
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-Yen9u78U.js → EmailDialog.vue_vue_type_script_setup_true_lang-CxsxIwZm.js} +23 -23
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BJy8_H2s.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-B3mPB7-O.js} +1 -1
- package/dist/{FeatureCapabilityGate-DN8b1697.js → FeatureCapabilityGate-Dp_SfIlO.js} +28 -28
- package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-DmNFZYam.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-O58GGptu.js} +1 -1
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-2zOATqzb.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CCrEBis5.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CVBUkN02.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-YGOFZ7uY.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BuE-1qd6.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-F36jHbKZ.js} +2 -2
- package/dist/{FmMultiselectDialog-LI5ekHzQ.js → FmMultiselectDialog-BDCQmCSh.js} +2 -2
- package/dist/{FmMultiselectDialog-C3B8pd2Z.js → FmMultiselectDialog-Dd9oKz5m.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DQZ7aJGJ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CUmlLKDV.js} +5 -5
- package/dist/{ImportView-DYoeJLdr.js → ImportView-CbRrxlrW.js} +6 -6
- package/dist/{IngredientsView-u3KHfALO.js → IngredientsView-Bcxo5AlS.js} +366 -364
- package/dist/{IntegrationExplorerView-Bl0Z8sxM.js → IntegrationExplorerView-C2jsPi_3.js} +6 -6
- package/dist/{IntegrationPlatformView-CybBB3RA.js → IntegrationPlatformView-Cr7Fyt4p.js} +2 -2
- package/dist/{IntegrationView-Dxy7QhCp.js → IntegrationView-BTcnK-_q.js} +14 -14
- package/dist/{InventoryBindingForm-DyUvyOsa.js → InventoryBindingForm-e1rSW4FA.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dmch1sfA.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BjDz4LFE.js} +4 -4
- package/dist/{InventoryBindingSummary-DwY3vUf_.js → InventoryBindingSummary-CAGMRuy4.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B2UtnJtf.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-eygCK9vN.js} +2 -2
- package/dist/{ProductionRunDetailPage-Cdi4hv3E.js → ProductionRunDetailPage-CQz-U7Sw.js} +145 -144
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-D5jlF5x4.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BtnKFZy2.js} +1652 -1710
- package/dist/{ProductionRunPage-RcbHy0Mj.js → ProductionRunPage-BZnmoyLo.js} +40 -39
- package/dist/{PublishView-CyJ_rE-5.js → PublishView-BJFoRmsD.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-ZlbV3YfE.js → PurchaseOrderPrintPreview-BQExGk_A.js} +13 -13
- package/dist/{ReceiveRequestView-BKz8N6yK.js → ReceiveRequestView-C4XUYhl5.js} +13 -13
- package/dist/{RecipeView-D3IEyQoK.js → RecipeView-Bd5--ENI.js} +16 -16
- package/dist/{SettingsView-A0eozTq3.js → SettingsView-BDogzqxV.js} +7 -7
- package/dist/StockView-BCWwamwk.js +2756 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CD11VzXa.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Ce82k1-V.js} +1 -1
- package/dist/{SupplierView-Cg60vwsj.js → SupplierView-DRSh4m07.js} +13 -13
- package/dist/{SurchargeView-Dxvg-RnC.js → SurchargeView-gNIDCY22.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DDLGEaa2.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DrP1vAZX.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DfYoaT5a.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Cxpc2Wtp.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D3wClK8t.js → TransferDetails.vue_vue_type_script_setup_true_lang-D4kpyIAQ.js} +809 -788
- package/dist/{TransferTemplateView-DfCJzLHt.js → TransferTemplateView-adEB_aZg.js} +19 -19
- package/dist/{UnitCostHistoryView-BkNnwNUc.js → UnitCostHistoryView-ClgafUAg.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-Clufqvr_.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpN-7H9P.js} +4 -4
- package/dist/{UnitView-D_agG3Kd.js → UnitView-DU-Kim1r.js} +35 -30
- package/dist/{WarehouseView-DE_CaJCb.js → WarehouseView-Dw1xkcrx.js} +8 -8
- package/dist/{WastageTemplateView-r3b6angy.js → WastageTemplateView-CQj821yg.js} +15 -15
- package/dist/{app-CLTXsVH_.js → app--e70sT_h.js} +23677 -25029
- package/dist/app.d.ts +5 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-yP6QT_6M.js → closing-template-i0bDCk-x.js} +1 -1
- package/dist/components/FeatureCapabilityGate.vue.d.ts +1 -0
- package/dist/{date2-9jq_OKuv.js → date2-CXI-d_rQ.js} +1 -1
- package/dist/{dayjs.min-CAxu5-hQ.js → dayjs.min-Ivf4HAC3.js} +1 -1
- package/dist/{decimal-BhGvDuWQ.js → decimal-d3XWw4d_.js} +2 -2
- package/dist/defineDeepModel-DrQmqGvi.js +19 -0
- package/dist/{duplicate-template-X72Zob-u.js → duplicate-template-yVd6JWGz.js} +1 -1
- package/dist/{feature-CC2pF6VK.js → feature-CBrHj9bO.js} +2 -2
- package/dist/{format-time-from-id-DhZOfLN4.js → format-time-from-id-DpFUCBGw.js} +1 -1
- package/dist/{format-unit-display-BalKqHYj.js → format-unit-display-CICNepRU.js} +12 -12
- package/dist/helper/menu-usage-module.d.ts +2 -1
- package/dist/{id-to-date-Cb9v4BtX.js → id-to-date-BicEvFx1.js} +1 -1
- package/dist/{import-export.helper-9D5DLoaq.js → import-export.helper-Cy-nm8Ao.js} +5 -5
- package/dist/{index-B0T8iGU6.js → index-BfY6L-3r.js} +1 -1
- package/dist/{index-CnjRz458.js → index-CiWNQMAX.js} +3 -3
- package/dist/{index-DqV626Os.js → index-W7Q7cZGV.js} +934 -890
- package/dist/{lz-string-CK_kK0b8.js → lz-string-ClJ0qg4U.js} +1 -1
- package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
- package/dist/{netsuite-explorer-BugWV6N7.js → netsuite-explorer-BWrO3KfB.js} +1 -1
- package/dist/{netsuite-Czq6x14E.js → netsuite-jSt2nlwO.js} +247 -262
- package/dist/{predefined-templates-D5qjNE4o.js → predefined-templates-DKiqLY6F.js} +1 -1
- package/dist/production-run-list-DR1WsaBR.js +61 -0
- package/dist/{purchase-order-template-Bc0QP-bq.js → purchase-order-template-D-NkhbNh.js} +1 -1
- package/dist/{recalculationUtils-CJknKvb-.js → recalculationUtils-Bbe1w-wj.js} +1 -1
- package/dist/{row-action.enum-Cz1k6Kht.js → row-action.enum-C8JhgYiR.js} +1 -1
- package/dist/{rules-BQscySfb.js → rules-CrAeAKSS.js} +3 -3
- package/dist/stock-B27nWQ5z.js +78 -0
- package/dist/{stock--68mu-M1.js → stock-x072pQVW.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-U06ZrnoC.js → supplier-sh98cdAW.js} +2 -2
- package/dist/{surcharge-B5DGPlf5.js → surcharge-DsF53Jiz.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DfBYytl6.js → uom-rules-DuYrxEZK.js} +1 -1
- package/dist/{use-ingredient-select-dialog-BRTxaEaQ.js → use-ingredient-select-dialog-DZJPaYJX.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DQDv8yOS.js → use-inventory-binding-dialog-CEr-Nctj.js} +2 -2
- package/dist/{use-template-enabled-locations-DzQVNhev.js → use-template-enabled-locations-h-1Om4op.js} +2 -2
- package/dist/{use-transfer-locations-CGvKssyQ.js → use-transfer-locations-CuCYcO6G.js} +2 -2
- package/dist/{useHrmPermission-BkOtYcLu.js → useHrmPermission-Db-rrPU-.js} +1 -1
- package/dist/{useNavigationMenu-korDNdFf.js → useNavigationMenu-DJCT15IW.js} +4 -4
- package/dist/{useSseClient-BjoRcYKu.js → useSseClient-B2_SvHJ2.js} +1 -1
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1 -1
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +3 -1
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +4 -4
- package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +8 -8
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +14 -14
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +1 -1
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +6 -6
- package/dist/views/production-run/shared/model/production-run-list.d.ts +1 -1
- 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 +9 -9
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +16 -16
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +16 -2
- package/dist/views/unit/composables/use-unit-form.spec.d.ts +1 -0
- package/dist/{vue-hPU91AHR.js → vue-Co39mHJn.js} +2 -2
- package/dist/{vue-i18n-VFYpKHHB.js → vue-i18n-C2pkD_vQ.js} +365 -365
- package/dist/{xlsx.util-VlHt05TU.js → xlsx.util-CLUjDX2E.js} +2 -2
- package/package.json +6 -6
- package/dist/StockView-DrxkHTH4.js +0 -2651
- package/dist/defineDeepModel-Czbczabc.js +0 -19
- package/dist/menu-usage-module-BdjYEk3s.js +0 -57
- package/dist/stock-DCz3ZTmd.js +0 -74
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { ref as P, defineComponent as xe, computed as g, resolveComponent as
|
|
2
|
-
import { a as Fe, c as wt, S as Lt, g as dt, e as ut, f as jt, h as ct, i as mt, j as pt, k as vt, u as Wt, l as qt } from "./app
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ref as P, defineComponent as xe, computed as g, resolveComponent as C, createElementBlock as V, openBlock as p, Fragment as ee, createCommentVNode as L, createVNode as r, unref as o, withModifiers as Rt, withCtx as x, createElementVNode as n, renderList as de, createBlock as Y, toDisplayString as $, normalizeClass as ie, h as Z, mergeModels as st, onMounted as Dt, watch as _t, useModel as Ot, createTextVNode as xt, isRef as rt, createSlots as kt, normalizeStyle as Bt, Teleport as it, normalizeProps as Nt, guardReactiveProps as zt } from "vue";
|
|
2
|
+
import { a as Fe, c as wt, S as Lt, g as dt, e as ut, f as jt, h as ct, i as mt, j as pt, k as vt, u as Wt, l as qt } from "./app--e70sT_h.js";
|
|
3
|
+
import { p as Ht } from "./production-run-list-DR1WsaBR.js";
|
|
4
|
+
import { useDialog as Ke, useSnackbar as Ae, components as ze, useProxiedModel as ft, useDialogChild as Yt, useBreakpoints as Kt } from "@feedmepos/ui-library";
|
|
5
|
+
import { i as Gt, _ as Jt, m as Qt } from "./menu-usage-module-Bq_KLsO4.js";
|
|
5
6
|
import { F as j } from "./form-mode.enum-BKiNVH6A.js";
|
|
6
7
|
import { useI18n as pe, useCoreStore as Ge } from "@feedmepos/mf-common";
|
|
7
|
-
import { defineStore as
|
|
8
|
-
import { D as yt, R as Pe } from "./row-action.enum-
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as Ee, _ as
|
|
11
|
-
import { F as
|
|
12
|
-
import { u as
|
|
13
|
-
import { A as
|
|
14
|
-
import { g as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as qe, u as
|
|
17
|
-
import { u as Tt } from "./feature-
|
|
18
|
-
import { _ as ke } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { d as Re, g as
|
|
20
|
-
import { _ as
|
|
8
|
+
import { defineStore as Xt, storeToRefs as Zt } from "pinia";
|
|
9
|
+
import { D as yt, R as Pe } from "./row-action.enum-C8JhgYiR.js";
|
|
10
|
+
import { c as en } from "./component-BmLAdDiY.js";
|
|
11
|
+
import { u as Ee, _ as tn } from "./netsuite-jSt2nlwO.js";
|
|
12
|
+
import { F as Oe } from "./FmAdminBadge-DlplQOHb.js";
|
|
13
|
+
import { u as nn, _ as on } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
14
|
+
import { A as De, t as ln, a as an, R as Le, U as sn, M as rn, g as dn } from "./rules-CrAeAKSS.js";
|
|
15
|
+
import { g as un, _ as je, S as We, a as cn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Ce82k1-V.js";
|
|
16
|
+
import { _ as mn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BjDz4LFE.js";
|
|
17
|
+
import { _ as qe, u as pn } from "./FmMultiselectDialog-Dd9oKz5m.js";
|
|
18
|
+
import { u as Tt } from "./feature-CBrHj9bO.js";
|
|
19
|
+
import { _ as ke } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-B3mPB7-O.js";
|
|
20
|
+
import { d as Re, g as vn, e as fn, a as yn } from "./import-export.helper-Cy-nm8Ao.js";
|
|
21
|
+
import { _ as gn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js";
|
|
21
22
|
import { _ as Ce } from "./FmLockableField.vue_vue_type_script_setup_true_lang-FCg4K7y8.js";
|
|
22
|
-
import { F as
|
|
23
|
-
import { u as Vt } from "./purchase-order-template-
|
|
24
|
-
import { u as It, a as St } from "./closing-template-
|
|
25
|
-
import { _ as
|
|
23
|
+
import { F as bn, a as He } from "./FmMultiselectDialog-BDCQmCSh.js";
|
|
24
|
+
import { u as Vt } from "./purchase-order-template-D-NkhbNh.js";
|
|
25
|
+
import { u as It, a as St } from "./closing-template-i0bDCk-x.js";
|
|
26
|
+
import { _ as hn } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
|
|
26
27
|
import { F as gt } from "./index-eGvSlWMU.js";
|
|
27
|
-
import { r as
|
|
28
|
-
import { F as
|
|
29
|
-
import { _ as
|
|
30
|
-
import { P as
|
|
31
|
-
const Ye =
|
|
32
|
-
const h = Ke(), k = Ae(), d = Fe(), _ = P(!1), { t:
|
|
28
|
+
import { r as _n } from "./xlsx.util-CLUjDX2E.js";
|
|
29
|
+
import { F as xn } from "./FmDroppableField-J0tG_U3w.js";
|
|
30
|
+
import { _ as kn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-F36jHbKZ.js";
|
|
31
|
+
import { P as wn, J as Tn } from "./app-C39bYJmq.js";
|
|
32
|
+
const Ye = Xt("ingredientForm", function() {
|
|
33
|
+
const h = Ke(), k = Ae(), d = Fe(), _ = P(!1), { t: S } = pe(), A = P();
|
|
33
34
|
function U() {
|
|
34
35
|
const a = {
|
|
35
36
|
sku: {},
|
|
@@ -46,8 +47,8 @@ const Ye = Qt("ingredientForm", function() {
|
|
|
46
47
|
sku: wt(a),
|
|
47
48
|
mode: j.UPDATE,
|
|
48
49
|
show: !0,
|
|
49
|
-
"onUpdate:show"(
|
|
50
|
-
A.value.show =
|
|
50
|
+
"onUpdate:show"(s) {
|
|
51
|
+
A.value.show = s;
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
A.value = c;
|
|
@@ -61,19 +62,20 @@ const Ye = Qt("ingredientForm", function() {
|
|
|
61
62
|
type: "success"
|
|
62
63
|
});
|
|
63
64
|
} catch (c) {
|
|
64
|
-
if (c instanceof Lt &&
|
|
65
|
+
if (c instanceof Lt && Gt(c)) {
|
|
65
66
|
h.open({
|
|
66
67
|
title: "Cannot delete ingredient",
|
|
67
|
-
contentComponent:
|
|
68
|
+
contentComponent: Jt,
|
|
68
69
|
contentComponentProps: {
|
|
69
70
|
subject: (a == null ? void 0 : a.name) ?? "",
|
|
70
|
-
items: c.errorResponse.errors.map((
|
|
71
|
+
items: c.errorResponse.errors.map((s) => {
|
|
71
72
|
var f;
|
|
72
73
|
return {
|
|
73
74
|
chain: [
|
|
74
75
|
{
|
|
75
|
-
itemName:
|
|
76
|
-
|
|
76
|
+
itemName: s.module === "productionRun" && s.runNo != null ? Ht({ runName: s.name, runNo: s.runNo }, S("inventory.production.run.list.untitled")) : s.name,
|
|
77
|
+
locationName: s.locationName,
|
|
78
|
+
moduleKey: (f = s.message) != null && f.startsWith("modules.") ? Qt(s.message) : s.module
|
|
77
79
|
}
|
|
78
80
|
]
|
|
79
81
|
};
|
|
@@ -97,16 +99,16 @@ const Ye = Qt("ingredientForm", function() {
|
|
|
97
99
|
}
|
|
98
100
|
function u(a) {
|
|
99
101
|
h.open({
|
|
100
|
-
title:
|
|
102
|
+
title: S("inventory.ingredient.delete.title", [(a == null ? void 0 : a.name) ?? ""]),
|
|
101
103
|
closeButton: !1,
|
|
102
|
-
message:
|
|
104
|
+
message: S("inventory.ingredient.delete.message"),
|
|
103
105
|
primaryActions: {
|
|
104
|
-
text:
|
|
106
|
+
text: S("common.delete"),
|
|
105
107
|
close: !0,
|
|
106
108
|
variant: "destructive"
|
|
107
109
|
},
|
|
108
110
|
secondaryActions: {
|
|
109
|
-
text:
|
|
111
|
+
text: S("common.cancel"),
|
|
110
112
|
close: !0
|
|
111
113
|
}
|
|
112
114
|
}).onPrimary(() => i(a));
|
|
@@ -118,16 +120,16 @@ const Ye = Qt("ingredientForm", function() {
|
|
|
118
120
|
ingredientDialogProps: A,
|
|
119
121
|
ingredientViewLoading: _
|
|
120
122
|
};
|
|
121
|
-
}),
|
|
123
|
+
}), Vn = {
|
|
122
124
|
key: 0,
|
|
123
125
|
class: "flex items-center gap-8"
|
|
124
|
-
},
|
|
126
|
+
}, In = { class: "flex flex-col gap-1" }, Sn = { class: "fm-typo-en-heading-lg-600" }, Cn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, An = {
|
|
125
127
|
key: 0,
|
|
126
128
|
class: "fm-typo-en-body-md-400 text-fm-color-system-warning-300"
|
|
127
|
-
},
|
|
129
|
+
}, En = {
|
|
128
130
|
key: 1,
|
|
129
131
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
130
|
-
},
|
|
132
|
+
}, $n = { class: "flex flex-col gap-2 mt-4" }, Mn = { class: "flex items-center gap-2 fm-typo-en-body-md-400" }, Un = { class: "flex flex-wrap gap-2" }, Pn = { class: "flex flex-col" }, Rn = { class: "flex flex-col bg-fm-color-bg-secondary font-mono p-4 rounded-md" }, Dn = { class: "text-fm-color-typo-tertiary flex-shrink-0 fm-typo-en-body-md-400 whitespace-pre flex items-center" }, On = { class: "px-2 py-1 rounded-md bg-blue-200 border-2 border-blue-400" }, Bn = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Nn = /* @__PURE__ */ xe({
|
|
131
133
|
__name: "ItemSubsidiaryTreeDialog",
|
|
132
134
|
props: {
|
|
133
135
|
skuId: {},
|
|
@@ -135,26 +137,26 @@ const Ye = Qt("ingredientForm", function() {
|
|
|
135
137
|
itemCode: {}
|
|
136
138
|
},
|
|
137
139
|
setup(W) {
|
|
138
|
-
const h = W, { t: k } = pe(), d = Ge(), _ = Ee(),
|
|
139
|
-
var
|
|
140
|
-
return ((
|
|
140
|
+
const h = W, { t: k } = pe(), d = Ge(), _ = Ee(), S = P(!1), A = g(() => {
|
|
141
|
+
var s;
|
|
142
|
+
return ((s = d.sessionUser.value) == null ? void 0 : s.role.isAdmin) ?? !1;
|
|
141
143
|
}), U = g(() => _.getSkuSubsidiaries(h.skuId)), l = g(() => {
|
|
142
|
-
const
|
|
144
|
+
const s = /* @__PURE__ */ new Set();
|
|
143
145
|
function f(F) {
|
|
144
146
|
for (const m of F)
|
|
145
|
-
m.isAssigned && (
|
|
147
|
+
m.isAssigned && (s.add(m.id), U.value.includeChildren && w(m)), m.children && m.children.length > 0 && f(m.children);
|
|
146
148
|
}
|
|
147
149
|
function w(F) {
|
|
148
150
|
if (F.children)
|
|
149
151
|
for (const m of F.children)
|
|
150
|
-
|
|
152
|
+
s.add(m.id), w(m);
|
|
151
153
|
}
|
|
152
|
-
return f(U.value.subsidiaryTree),
|
|
154
|
+
return f(U.value.subsidiaryTree), s;
|
|
153
155
|
});
|
|
154
|
-
function i(
|
|
156
|
+
function i(s, f = [], w = !1) {
|
|
155
157
|
const F = [];
|
|
156
|
-
return
|
|
157
|
-
const R =
|
|
158
|
+
return s.forEach((m, O) => {
|
|
159
|
+
const R = O === s.length - 1, ve = [...f, R];
|
|
158
160
|
let ne = "";
|
|
159
161
|
for (let te = 0; te < f.length; te++)
|
|
160
162
|
ne += f[te] ? " " : "│ ";
|
|
@@ -174,53 +176,53 @@ const Ye = Qt("ingredientForm", function() {
|
|
|
174
176
|
}
|
|
175
177
|
}), F;
|
|
176
178
|
}
|
|
177
|
-
function u(
|
|
179
|
+
function u(s, f = []) {
|
|
178
180
|
const w = /* @__PURE__ */ new Set();
|
|
179
|
-
for (const F of
|
|
181
|
+
for (const F of s) {
|
|
180
182
|
const m = [...f, F.id];
|
|
181
|
-
F.isAssigned === !0 && m.forEach((
|
|
183
|
+
F.isAssigned === !0 && m.forEach((O) => w.add(O)), F.children && F.children.length > 0 && u(F.children, m).forEach((R) => w.add(R));
|
|
182
184
|
}
|
|
183
185
|
return w;
|
|
184
186
|
}
|
|
185
|
-
function a(
|
|
186
|
-
return
|
|
187
|
+
function a(s, f) {
|
|
188
|
+
return s.map((w) => f.has(w.id) || w.isAssigned === !0 ? {
|
|
187
189
|
...w,
|
|
188
190
|
// Recursively filter children
|
|
189
191
|
children: w.children ? a(w.children, f) : []
|
|
190
192
|
} : null).filter(Boolean);
|
|
191
193
|
}
|
|
192
194
|
const c = g(() => {
|
|
193
|
-
let
|
|
194
|
-
if ((!
|
|
195
|
-
const f = u(
|
|
196
|
-
|
|
195
|
+
let s = U.value.subsidiaryTree;
|
|
196
|
+
if ((!s || s.length === 0) && (s = _.getBusinessSubsidiaryTree()), !A.value) {
|
|
197
|
+
const f = u(s);
|
|
198
|
+
s = a(s, f);
|
|
197
199
|
}
|
|
198
|
-
return i(
|
|
200
|
+
return i(s, []);
|
|
199
201
|
});
|
|
200
|
-
return (
|
|
201
|
-
const w =
|
|
202
|
+
return (s, f) => {
|
|
203
|
+
const w = C("FmButton"), F = C("FmDialog");
|
|
202
204
|
return p(), V(ee, null, [
|
|
203
|
-
o(_).isEnabled ? (p(), V("div",
|
|
204
|
-
|
|
205
|
+
o(_).isEnabled ? (p(), V("div", Vn, [
|
|
206
|
+
r(w, {
|
|
205
207
|
"prepend-icon": "info",
|
|
206
208
|
variant: "tertiary",
|
|
207
|
-
onClick: f[0] || (f[0] = Rt((m) =>
|
|
209
|
+
onClick: f[0] || (f[0] = Rt((m) => S.value = !0, ["stop"]))
|
|
208
210
|
})
|
|
209
211
|
])) : L("", !0),
|
|
210
|
-
|
|
211
|
-
modelValue:
|
|
212
|
-
"onUpdate:modelValue": f[1] || (f[1] = (m) =>
|
|
212
|
+
r(F, {
|
|
213
|
+
modelValue: S.value,
|
|
214
|
+
"onUpdate:modelValue": f[1] || (f[1] = (m) => S.value = m),
|
|
213
215
|
"close-button": "",
|
|
214
216
|
dismissAway: ""
|
|
215
217
|
}, {
|
|
216
218
|
"dialog-header": x(() => [
|
|
217
|
-
n("div",
|
|
218
|
-
n("div",
|
|
219
|
-
n("p",
|
|
220
|
-
n("p",
|
|
221
|
-
A.value ? (p(), V("p",
|
|
222
|
-
n("div",
|
|
223
|
-
n("div",
|
|
219
|
+
n("div", In, [
|
|
220
|
+
n("div", Sn, $(o(k)("inventory.integration.netsuite.subsidiaryHierarchy.title")), 1),
|
|
221
|
+
n("p", Cn, " Name: " + $(h.itemName), 1),
|
|
222
|
+
n("p", Fn, " Code: " + $(h.itemCode), 1),
|
|
223
|
+
A.value ? (p(), V("p", An, " All subsidiaries are shown since you are an admin. ")) : (p(), V("p", En, " Only showing subsidiaries in your business path and bound subsidiaries. ")),
|
|
224
|
+
n("div", $n, [
|
|
225
|
+
n("div", Mn, [
|
|
224
226
|
f[2] || (f[2] = n("span", { class: "font-semibold" }, "Include Children Subsidiaries:", -1)),
|
|
225
227
|
n("span", {
|
|
226
228
|
class: ie(
|
|
@@ -228,12 +230,12 @@ const Ye = Qt("ingredientForm", function() {
|
|
|
228
230
|
)
|
|
229
231
|
}, $(U.value.includeChildren ? "Yes" : "No"), 3)
|
|
230
232
|
]),
|
|
231
|
-
n("div",
|
|
233
|
+
n("div", Un, [
|
|
232
234
|
f[4] || (f[4] = n("div", { class: "flex items-center gap-2 px-2 py-1 bg-fm-color-bg-brand-secondary rounded-md" }, [
|
|
233
235
|
n("span", { class: "w-3 h-3 rounded-sm bg-green-400" }),
|
|
234
236
|
n("span", { class: "fm-typo-en-body-sm-400" }, "Directly Bound")
|
|
235
237
|
], -1)),
|
|
236
|
-
|
|
238
|
+
r(Oe, null, {
|
|
237
239
|
default: x(() => f[3] || (f[3] = [
|
|
238
240
|
n("div", { class: "flex items-center gap-2 px-2 py-1 rounded-md" }, [
|
|
239
241
|
n("span", { class: "w-3 h-3 rounded-sm bg-blue-400" }),
|
|
@@ -247,14 +249,14 @@ const Ye = Qt("ingredientForm", function() {
|
|
|
247
249
|
])
|
|
248
250
|
]),
|
|
249
251
|
default: x(() => [
|
|
250
|
-
n("div",
|
|
251
|
-
n("div",
|
|
252
|
+
n("div", Pn, [
|
|
253
|
+
n("div", Rn, [
|
|
252
254
|
(p(!0), V(ee, null, de(c.value, (m) => (p(), V("div", {
|
|
253
255
|
key: m.id,
|
|
254
256
|
class: "flex items-stretch"
|
|
255
257
|
}, [
|
|
256
|
-
n("span",
|
|
257
|
-
m.isParentIncludedChild ? (p(), Y(
|
|
258
|
+
n("span", Dn, $(m.prefix), 1),
|
|
259
|
+
m.isParentIncludedChild ? (p(), Y(Oe, {
|
|
258
260
|
key: 0,
|
|
259
261
|
class: "flex-1"
|
|
260
262
|
}, {
|
|
@@ -287,9 +289,9 @@ const Ye = Qt("ingredientForm", function() {
|
|
|
287
289
|
};
|
|
288
290
|
}
|
|
289
291
|
});
|
|
290
|
-
function
|
|
292
|
+
function zn() {
|
|
291
293
|
var l;
|
|
292
|
-
const { updateIngredient: W, deleteIngredient: h } = Ye(), k = Fe(), d = Ee(), { t: _ } = pe(),
|
|
294
|
+
const { updateIngredient: W, deleteIngredient: h } = Ye(), k = Fe(), d = Ee(), { t: _ } = pe(), S = Ge();
|
|
293
295
|
async function A(i, u) {
|
|
294
296
|
const a = wt(u);
|
|
295
297
|
if (i === Pe.Edit) {
|
|
@@ -302,10 +304,10 @@ function Nn() {
|
|
|
302
304
|
}
|
|
303
305
|
}
|
|
304
306
|
return { columnDefs: [
|
|
305
|
-
...(l =
|
|
307
|
+
...(l = S.sessionUser.value) != null && l.role.isAdmin ? [
|
|
306
308
|
{
|
|
307
309
|
accessorKey: "_id",
|
|
308
|
-
header: () => Z(
|
|
310
|
+
header: () => Z(Oe, {}, () => "ID"),
|
|
309
311
|
size: 200
|
|
310
312
|
}
|
|
311
313
|
] : [],
|
|
@@ -322,7 +324,7 @@ function Nn() {
|
|
|
322
324
|
size: 300,
|
|
323
325
|
cell(i) {
|
|
324
326
|
const u = i.row.original, a = k.skuBindingFlattenCache[u._id], c = a == null ? void 0 : a.inventoryBindings.some(
|
|
325
|
-
(
|
|
327
|
+
(s) => "error" in s && s.reason === "circularDependency"
|
|
326
328
|
);
|
|
327
329
|
return Z("div", { class: "flex items-center w-full gap-4" }, [
|
|
328
330
|
c ? Z(
|
|
@@ -398,7 +400,7 @@ function Nn() {
|
|
|
398
400
|
},
|
|
399
401
|
a.join(", ")
|
|
400
402
|
),
|
|
401
|
-
Z(
|
|
403
|
+
Z(Nn, { skuId: u._id, itemName: u.name, itemCode: u.code })
|
|
402
404
|
]);
|
|
403
405
|
},
|
|
404
406
|
enableSorting: !1,
|
|
@@ -408,7 +410,7 @@ function Nn() {
|
|
|
408
410
|
id: "action",
|
|
409
411
|
header: "",
|
|
410
412
|
cell(i) {
|
|
411
|
-
return
|
|
413
|
+
return en(
|
|
412
414
|
[yt[Pe.Edit], yt[Pe.Delete]],
|
|
413
415
|
(u) => {
|
|
414
416
|
A(u, i.row.original);
|
|
@@ -433,7 +435,7 @@ function bt(W) {
|
|
|
433
435
|
}
|
|
434
436
|
return `${W.unit.name} (${W.unit.abbrev})`;
|
|
435
437
|
}
|
|
436
|
-
const
|
|
438
|
+
const Ln = /* @__PURE__ */ xe({
|
|
437
439
|
__name: "ConvertForm",
|
|
438
440
|
props: {
|
|
439
441
|
modelValue: {},
|
|
@@ -449,43 +451,43 @@ const zn = /* @__PURE__ */ xe({
|
|
|
449
451
|
}), _ = g(() => {
|
|
450
452
|
var c;
|
|
451
453
|
return (c = k.rootValue) == null ? void 0 : c._id;
|
|
452
|
-
}),
|
|
454
|
+
}), S = h, { t: A } = pe(), U = g({
|
|
453
455
|
get() {
|
|
454
456
|
return !!k.modelValue;
|
|
455
457
|
},
|
|
456
458
|
set(c) {
|
|
457
|
-
c ?
|
|
459
|
+
c ? S("update:modelValue", {
|
|
458
460
|
measurement: null,
|
|
459
461
|
inventoryBindings: []
|
|
460
|
-
}) :
|
|
462
|
+
}) : S("update:modelValue", null);
|
|
461
463
|
}
|
|
462
|
-
}), l = g(() =>
|
|
464
|
+
}), l = g(() => un(d.value));
|
|
463
465
|
function i(c) {
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
+
const s = k.modelValue ?? {};
|
|
467
|
+
s.measurement = c ? `${c}` : null, S("update:modelValue", s);
|
|
466
468
|
}
|
|
467
469
|
function u(c) {
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
+
const s = k.modelValue ?? {};
|
|
471
|
+
s.inventoryBindings = c, S("update:modelValue", s);
|
|
470
472
|
}
|
|
471
473
|
const a = g(() => {
|
|
472
474
|
if (!k.modelValue) return null;
|
|
473
475
|
const c = k.modelValue;
|
|
474
|
-
return c.measurement ? l.value.find((
|
|
476
|
+
return c.measurement ? l.value.find((s) => s.value === c.measurement) ?? null : l.value.find((s) => s.value === null) ?? null;
|
|
475
477
|
});
|
|
476
|
-
return (c,
|
|
477
|
-
const f =
|
|
478
|
+
return (c, s) => {
|
|
479
|
+
const f = C("FmSwitch"), w = C("FmSelect"), F = C("FmCard");
|
|
478
480
|
return p(), Y(F, {
|
|
479
481
|
variant: "outlined",
|
|
480
482
|
class: "p-16 flex flex-col gap-16"
|
|
481
483
|
}, {
|
|
482
484
|
default: x(() => {
|
|
483
|
-
var m,
|
|
485
|
+
var m, O;
|
|
484
486
|
return [
|
|
485
|
-
|
|
487
|
+
r(f, {
|
|
486
488
|
value: "",
|
|
487
489
|
"model-value": U.value,
|
|
488
|
-
"onUpdate:modelValue":
|
|
490
|
+
"onUpdate:modelValue": s[0] || (s[0] = (R) => U.value = R),
|
|
489
491
|
label: o(A)("inventory.ingredient.convertible.title"),
|
|
490
492
|
sublabel: o(A)("inventory.ingredient.convertible.subtitle"),
|
|
491
493
|
labelPlacement: "right",
|
|
@@ -493,7 +495,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
493
495
|
}, null, 8, ["model-value", "label", "sublabel", "disabled"]),
|
|
494
496
|
U.value ? (p(), V(ee, { key: 0 }, [
|
|
495
497
|
n("div", null, [
|
|
496
|
-
|
|
498
|
+
r(w, {
|
|
497
499
|
label: o(A)("inventory.ingredient.convertible.convertTo"),
|
|
498
500
|
modelValue: (m = a.value) == null ? void 0 : m.value,
|
|
499
501
|
"onUpdate:modelValue": i,
|
|
@@ -501,12 +503,12 @@ const zn = /* @__PURE__ */ xe({
|
|
|
501
503
|
disabled: c.readonly
|
|
502
504
|
}, null, 8, ["label", "modelValue", "items", "disabled"])
|
|
503
505
|
]),
|
|
504
|
-
|
|
506
|
+
r(mn, {
|
|
505
507
|
id: _.value,
|
|
506
|
-
"model-value": ((
|
|
508
|
+
"model-value": ((O = c.modelValue) == null ? void 0 : O.inventoryBindings) ?? [],
|
|
507
509
|
"onUpdate:modelValue": u,
|
|
508
510
|
"exclude-binding-id": _.value,
|
|
509
|
-
rules: [o(
|
|
511
|
+
rules: [o(De)(1)],
|
|
510
512
|
readonly: c.readonly,
|
|
511
513
|
"allow-recipe-decimal": ""
|
|
512
514
|
}, null, 8, ["id", "model-value", "exclude-binding-id", "rules", "readonly"])
|
|
@@ -517,31 +519,31 @@ const zn = /* @__PURE__ */ xe({
|
|
|
517
519
|
});
|
|
518
520
|
};
|
|
519
521
|
}
|
|
520
|
-
}),
|
|
522
|
+
}), jn = { class: "flex gap-8" }, Wn = { class: "flex-1" }, qn = { class: "flex-1" }, Hn = { class: "flex flex-col gap-5" }, Yn = { class: "flex flex-col gap-32" }, Kn = { class: "flex items-center gap-8" }, Gn = { class: "flex items-center gap-8" }, Jn = { class: "flex items-center gap-8" }, Qn = { class: "text-fm-color-typo-secondary" }, Xn = { class: "text-fm-color-typo-secondary whitespace-nowrap" }, Zn = {
|
|
521
523
|
key: 1,
|
|
522
524
|
class: "border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
|
|
523
|
-
},
|
|
525
|
+
}, eo = { class: "flex flex-col" }, to = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, no = {
|
|
524
526
|
key: 2,
|
|
525
527
|
class: "border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
|
|
526
|
-
},
|
|
528
|
+
}, oo = { class: "flex flex-col gap-12" }, lo = { class: "flex flex-col gap-4" }, ao = { class: "flex items-center gap-8" }, so = { class: "fm-typo-en-title-sm-600" }, ro = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, io = { class: "flex flex-col gap-4" }, uo = { class: "flex fm-corner-radius-md border-1 border-fm-color-neutral-gray-200" }, co = { class: "flex-1 p-12 flex flex-col gap-8" }, mo = { class: "mx-auto" }, po = { class: "flex flex-col" }, vo = { class: "fm-typo-en-body-sm-600 translate-y-4" }, fo = { class: "flex-1 p-12 flex flex-col gap-8" }, yo = { class: "mx-auto" }, go = { class: "flex flex-col" }, bo = { class: "fm-typo-en-body-sm-600 translate-y-4" }, ho = { class: "flex-1 p-12 flex flex-col gap-8" }, _o = { class: "mx-auto" }, xo = { class: "flex flex-col" }, ko = { class: "fm-typo-en-body-sm-600 translate-y-4" }, wo = {
|
|
527
529
|
key: 3,
|
|
528
530
|
class: "flex flex-col gap-12"
|
|
529
|
-
},
|
|
531
|
+
}, To = { class: "flex flex-col" }, Vo = { class: "flex items-center justify-between" }, Io = { class: "flex items-center gap-8" }, So = { class: "fm-typo-en-title-sm-600" }, Co = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Fo = {
|
|
530
532
|
key: 0,
|
|
531
533
|
class: "flex flex-col gap-8"
|
|
532
|
-
},
|
|
534
|
+
}, Ao = { class: "flex flex-wrap gap-8" }, Eo = {
|
|
533
535
|
key: 4,
|
|
534
536
|
class: "flex flex-col gap-12"
|
|
535
|
-
},
|
|
537
|
+
}, $o = { class: "flex flex-col" }, Mo = { class: "flex items-center justify-between" }, Uo = { class: "flex items-center gap-8" }, Po = { class: "fm-typo-en-title-sm-600" }, Ro = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Do = {
|
|
536
538
|
key: 0,
|
|
537
539
|
class: "flex flex-col gap-8"
|
|
538
540
|
}, Oo = { class: "flex flex-wrap gap-8" }, Bo = {
|
|
539
541
|
key: 5,
|
|
540
542
|
class: "flex flex-col gap-12"
|
|
541
|
-
},
|
|
543
|
+
}, No = { class: "flex flex-col" }, zo = { class: "flex items-center justify-between" }, Lo = { class: "flex items-center gap-8" }, jo = { class: "fm-typo-en-title-sm-600" }, Wo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, qo = {
|
|
542
544
|
key: 0,
|
|
543
545
|
class: "flex flex-col gap-8"
|
|
544
|
-
},
|
|
546
|
+
}, Ho = { class: "flex flex-wrap gap-8" }, Yo = /* @__PURE__ */ xe({
|
|
545
547
|
__name: "IngredientForm",
|
|
546
548
|
props: /* @__PURE__ */ st({
|
|
547
549
|
mode: {},
|
|
@@ -559,9 +561,9 @@ const zn = /* @__PURE__ */ xe({
|
|
|
559
561
|
var Xe;
|
|
560
562
|
const { t: d } = pe(), _ = Ke();
|
|
561
563
|
Ae();
|
|
562
|
-
const
|
|
564
|
+
const S = Vt(), A = It(), U = St(), l = W, i = k, u = Fe(), a = Ge(), c = Tt(), s = Ee(), f = g(() => s.isEnabled);
|
|
563
565
|
P(void 0);
|
|
564
|
-
const w = P([]), F = P([]), m = P([]),
|
|
566
|
+
const w = P([]), F = P([]), m = P([]), O = P(!1);
|
|
565
567
|
function R(e) {
|
|
566
568
|
if (e.length === 0) return;
|
|
567
569
|
const t = e[0], b = l.modelValue ?? {
|
|
@@ -569,7 +571,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
569
571
|
};
|
|
570
572
|
b.unit || (b.unit = t, i("update:modelValue", b));
|
|
571
573
|
}
|
|
572
|
-
|
|
574
|
+
Dt(() => {
|
|
573
575
|
R(u.units), l.mode === j.CREATE && (c.mustUsePoTemplate && ne(), c.enableWastageTemplate && ue(), c.enableClosingTemplate && oe());
|
|
574
576
|
}), _t([() => u.units], ([e]) => {
|
|
575
577
|
R(e);
|
|
@@ -578,18 +580,18 @@ const zn = /* @__PURE__ */ xe({
|
|
|
578
580
|
i("click:submit");
|
|
579
581
|
}
|
|
580
582
|
async function ne() {
|
|
581
|
-
w.value = [],
|
|
583
|
+
w.value = [], O.value = !0;
|
|
582
584
|
try {
|
|
583
|
-
const [e] = await Promise.all([
|
|
585
|
+
const [e] = await Promise.all([S.readTemplates()]).delayed(1e3);
|
|
584
586
|
w.value = e;
|
|
585
587
|
} catch (e) {
|
|
586
588
|
console.log("Something went wrong when fetching templates:", e);
|
|
587
589
|
} finally {
|
|
588
|
-
|
|
590
|
+
O.value = !1;
|
|
589
591
|
}
|
|
590
592
|
}
|
|
591
593
|
async function ue() {
|
|
592
|
-
F.value = [],
|
|
594
|
+
F.value = [], O.value = !0;
|
|
593
595
|
try {
|
|
594
596
|
const [e] = await Promise.all([A.readTemplates()]).delayed(
|
|
595
597
|
1e3
|
|
@@ -598,11 +600,11 @@ const zn = /* @__PURE__ */ xe({
|
|
|
598
600
|
} catch (e) {
|
|
599
601
|
console.log("Something went wrong when fetching wastage templates:", e);
|
|
600
602
|
} finally {
|
|
601
|
-
|
|
603
|
+
O.value = !1;
|
|
602
604
|
}
|
|
603
605
|
}
|
|
604
606
|
async function oe() {
|
|
605
|
-
m.value = [],
|
|
607
|
+
m.value = [], O.value = !0;
|
|
606
608
|
try {
|
|
607
609
|
const [e] = await Promise.all([U.listTemplates()]).delayed(
|
|
608
610
|
1e3
|
|
@@ -611,7 +613,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
611
613
|
} catch (e) {
|
|
612
614
|
console.log("Something went wrong when fetching closing templates:", e);
|
|
613
615
|
} finally {
|
|
614
|
-
|
|
616
|
+
O.value = !1;
|
|
615
617
|
}
|
|
616
618
|
}
|
|
617
619
|
const le = g({
|
|
@@ -651,10 +653,10 @@ const zn = /* @__PURE__ */ xe({
|
|
|
651
653
|
get() {
|
|
652
654
|
var t, b;
|
|
653
655
|
const e = (b = (t = l.modelValue) == null ? void 0 : t.defaultCost) == null ? void 0 : b.costPerUnit;
|
|
654
|
-
return e ? +
|
|
656
|
+
return e ? +an(e) : 0;
|
|
655
657
|
},
|
|
656
658
|
set(e) {
|
|
657
|
-
var b, I, H,
|
|
659
|
+
var b, I, H, B;
|
|
658
660
|
const t = l.modelValue ? {
|
|
659
661
|
...l.modelValue
|
|
660
662
|
} : {};
|
|
@@ -664,7 +666,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
664
666
|
precision: 2,
|
|
665
667
|
currency: ((b = dt(a.currentCountry.value)) == null ? void 0 : b.currency) ?? "MYR"
|
|
666
668
|
},
|
|
667
|
-
measurement: (
|
|
669
|
+
measurement: (B = (H = (I = l.modelValue) == null ? void 0 : I.unit) == null ? void 0 : H.measurements) == null ? void 0 : B.find(
|
|
668
670
|
(se) => {
|
|
669
671
|
var re;
|
|
670
672
|
return se.id === ((re = l.modelValue) == null ? void 0 : re.trackingMeasurement);
|
|
@@ -672,7 +674,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
672
674
|
)
|
|
673
675
|
}), t.defaultCost.costPerUnit = {
|
|
674
676
|
...t.defaultCost.costPerUnit,
|
|
675
|
-
...
|
|
677
|
+
...ln(+e, 4)
|
|
676
678
|
}, i("update:modelValue", t);
|
|
677
679
|
}
|
|
678
680
|
}), ye = g(() => {
|
|
@@ -682,8 +684,8 @@ const zn = /* @__PURE__ */ xe({
|
|
|
682
684
|
_id: e._id,
|
|
683
685
|
measurement: (b = l.modelValue) == null ? void 0 : b.trackingMeasurement,
|
|
684
686
|
name: ((I = e.measurements.find((H) => {
|
|
685
|
-
var
|
|
686
|
-
return H.id === ((
|
|
687
|
+
var B;
|
|
688
|
+
return H.id === ((B = l.modelValue) == null ? void 0 : B.trackingMeasurement);
|
|
687
689
|
})) == null ? void 0 : I.name) ?? e.name
|
|
688
690
|
} : null;
|
|
689
691
|
}), we = g(
|
|
@@ -698,21 +700,21 @@ const zn = /* @__PURE__ */ xe({
|
|
|
698
700
|
value: { _id: t },
|
|
699
701
|
displayAsSection: !1
|
|
700
702
|
},
|
|
701
|
-
...I.map(({ id: H, name:
|
|
702
|
-
label: `${
|
|
703
|
+
...I.map(({ id: H, name: B, abbrev: se }) => ({
|
|
704
|
+
label: `${B} (${se})`,
|
|
703
705
|
value: { _id: t, measurement: H },
|
|
704
706
|
displayAsSection: !1
|
|
705
707
|
}))
|
|
706
708
|
])
|
|
707
|
-
), y =
|
|
708
|
-
() => new
|
|
709
|
+
), y = Ot(W, "search"), M = g(
|
|
710
|
+
() => new bn(we.value, ["label", "value"], {
|
|
709
711
|
caseSensitive: !1,
|
|
710
712
|
sort: !0
|
|
711
713
|
})
|
|
712
714
|
), G = g(() => M.value.search(y.value));
|
|
713
715
|
function E(e) {
|
|
714
|
-
var t, b, I, H,
|
|
715
|
-
return ((b = (t = l.modelValue) == null ? void 0 : t.unit) == null ? void 0 : b._id) === ((I = e.value) == null ? void 0 : I._id) && ((H = l.modelValue) == null ? void 0 : H.trackingMeasurement) === ((
|
|
716
|
+
var t, b, I, H, B;
|
|
717
|
+
return ((b = (t = l.modelValue) == null ? void 0 : t.unit) == null ? void 0 : b._id) === ((I = e.value) == null ? void 0 : I._id) && ((H = l.modelValue) == null ? void 0 : H.trackingMeasurement) === ((B = e.value) == null ? void 0 : B.measurement);
|
|
716
718
|
}
|
|
717
719
|
function v(e) {
|
|
718
720
|
var se, re;
|
|
@@ -720,17 +722,17 @@ const zn = /* @__PURE__ */ xe({
|
|
|
720
722
|
const { _id: t, measurement: b } = e, I = b || void 0, H = u.units.find((Se) => Se._id === t);
|
|
721
723
|
if (!H)
|
|
722
724
|
return;
|
|
723
|
-
const
|
|
724
|
-
|
|
725
|
+
const B = l.modelValue ?? {};
|
|
726
|
+
B.unit = H, B.trackingMeasurement = I, B.convert && (B.convert.measurement = I || null), B.defaultCost = {
|
|
725
727
|
measurement: H.measurements.find((Se) => Se.id === I),
|
|
726
728
|
costPerUnit: {
|
|
727
|
-
...((se =
|
|
729
|
+
...((se = B.defaultCost) == null ? void 0 : se.costPerUnit) ?? {
|
|
728
730
|
amount: 0,
|
|
729
731
|
precision: 2,
|
|
730
732
|
currency: ((re = dt(a.currentCountry.value)) == null ? void 0 : re.currency) ?? "MYR"
|
|
731
733
|
}
|
|
732
734
|
}
|
|
733
|
-
}, i("update:modelValue",
|
|
735
|
+
}, i("update:modelValue", B);
|
|
734
736
|
}
|
|
735
737
|
const N = g({
|
|
736
738
|
get() {
|
|
@@ -788,7 +790,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
788
790
|
(t = (e = q.value) == null ? void 0 : e.resetInputs) == null || t.call(e);
|
|
789
791
|
}
|
|
790
792
|
});
|
|
791
|
-
const
|
|
793
|
+
const D = P(!1), K = g(
|
|
792
794
|
() => {
|
|
793
795
|
var e, t, b;
|
|
794
796
|
return (e = l.modelValue) != null && e._id ? ((b = u.menu.bindedBySkuId[(t = l.modelValue) == null ? void 0 : t._id]) == null ? void 0 : b.filter(
|
|
@@ -817,13 +819,13 @@ const zn = /* @__PURE__ */ xe({
|
|
|
817
819
|
}
|
|
818
820
|
const be = g(
|
|
819
821
|
() => {
|
|
820
|
-
var e, t, b, I, H,
|
|
822
|
+
var e, t, b, I, H, B;
|
|
821
823
|
return ((I = (b = (t = (e = l.modelValue) == null ? void 0 : e.unit) == null ? void 0 : t.measurements) == null ? void 0 : b.find(
|
|
822
824
|
(se) => {
|
|
823
825
|
var re;
|
|
824
826
|
return se.id === ((re = l.modelValue) == null ? void 0 : re.trackingMeasurement);
|
|
825
827
|
}
|
|
826
|
-
)) == null ? void 0 : I.abbrev) ?? ((
|
|
828
|
+
)) == null ? void 0 : I.abbrev) ?? ((B = (H = l.modelValue) == null ? void 0 : H.unit) == null ? void 0 : B.abbrev);
|
|
827
829
|
}
|
|
828
830
|
), he = g({
|
|
829
831
|
get() {
|
|
@@ -941,7 +943,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
941
943
|
};
|
|
942
944
|
}
|
|
943
945
|
return (e, t) => {
|
|
944
|
-
const b =
|
|
946
|
+
const b = C("FmTextField"), I = C("FmLabel"), H = C("FmField"), B = C("FmIcon"), se = C("FmMenuHeader"), re = C("FmMenuDivider"), Se = C("FmMenuItem"), $t = C("FmMenu"), Ze = C("FmFormGroup"), Mt = C("FmSelect"), et = C("FmSwitch"), tt = C("FmStepperField"), Be = C("FmButton"), Ne = C("FmChip"), Ut = C("FmForm");
|
|
945
947
|
return p(), Y(Ut, {
|
|
946
948
|
disabled: e.disabled,
|
|
947
949
|
ref_key: "formRef",
|
|
@@ -952,9 +954,9 @@ const zn = /* @__PURE__ */ xe({
|
|
|
952
954
|
default: x(() => {
|
|
953
955
|
var nt, ot, lt, at;
|
|
954
956
|
return [
|
|
955
|
-
n("div",
|
|
956
|
-
n("div",
|
|
957
|
-
|
|
957
|
+
n("div", jn, [
|
|
958
|
+
n("div", Wn, [
|
|
959
|
+
r(Ce, {
|
|
958
960
|
"tooltip-message": "This field is managed by NetSuite",
|
|
959
961
|
"tooltip-z-index": 50,
|
|
960
962
|
label: o(d)("inventory.ingredient.code"),
|
|
@@ -964,19 +966,19 @@ const zn = /* @__PURE__ */ xe({
|
|
|
964
966
|
disabled: e.disabled
|
|
965
967
|
}, {
|
|
966
968
|
default: x(() => [
|
|
967
|
-
|
|
969
|
+
r(b, {
|
|
968
970
|
label: o(d)("inventory.ingredient.code"),
|
|
969
971
|
"model-value": le.value,
|
|
970
972
|
"onUpdate:modelValue": t[0] || (t[0] = (T) => le.value = T),
|
|
971
|
-
rules: [o(Le)(), o(
|
|
973
|
+
rules: [o(Le)(), o(sn)($e.value, Me.value)],
|
|
972
974
|
"label-mark": "required"
|
|
973
975
|
}, null, 8, ["label", "model-value", "rules"])
|
|
974
976
|
]),
|
|
975
977
|
_: 1
|
|
976
978
|
}, 8, ["label", "model-value", "locked", "disabled"])
|
|
977
979
|
]),
|
|
978
|
-
n("div",
|
|
979
|
-
|
|
980
|
+
n("div", qn, [
|
|
981
|
+
r(Ce, {
|
|
980
982
|
"tooltip-message": "This field is managed by NetSuite",
|
|
981
983
|
"tooltip-z-index": 50,
|
|
982
984
|
label: o(d)("inventory.ingredient.name"),
|
|
@@ -986,7 +988,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
986
988
|
disabled: e.disabled
|
|
987
989
|
}, {
|
|
988
990
|
default: x(() => [
|
|
989
|
-
|
|
991
|
+
r(b, {
|
|
990
992
|
label: o(d)("inventory.ingredient.name"),
|
|
991
993
|
"model-value": ae.value,
|
|
992
994
|
"onUpdate:modelValue": t[2] || (t[2] = (T) => ae.value = T),
|
|
@@ -998,7 +1000,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
998
1000
|
}, 8, ["label", "model-value", "locked", "disabled"])
|
|
999
1001
|
])
|
|
1000
1002
|
]),
|
|
1001
|
-
|
|
1003
|
+
r(Ce, {
|
|
1002
1004
|
"tooltip-message": "This field is managed by NetSuite",
|
|
1003
1005
|
"tooltip-z-index": 50,
|
|
1004
1006
|
label: o(d)("inventory.ingredient.unit"),
|
|
@@ -1008,20 +1010,20 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1008
1010
|
disabled: e.disabled
|
|
1009
1011
|
}, {
|
|
1010
1012
|
default: x(() => [
|
|
1011
|
-
|
|
1013
|
+
r(Ze, {
|
|
1012
1014
|
"model-value": ye.value,
|
|
1013
1015
|
rules: [o(Le)()],
|
|
1014
1016
|
"label-mark": "required"
|
|
1015
1017
|
}, {
|
|
1016
1018
|
label: x(() => [
|
|
1017
|
-
|
|
1019
|
+
r(I, {
|
|
1018
1020
|
label: o(d)("inventory.ingredient.unit")
|
|
1019
1021
|
}, null, 8, ["label"])
|
|
1020
1022
|
]),
|
|
1021
1023
|
default: x(({ invalid: T }) => [
|
|
1022
|
-
|
|
1024
|
+
r($t, null, {
|
|
1023
1025
|
"menu-button": x(() => [
|
|
1024
|
-
|
|
1026
|
+
r(H, {
|
|
1025
1027
|
class: ie([
|
|
1026
1028
|
"fm-typo-en-body-lg-400",
|
|
1027
1029
|
{
|
|
@@ -1042,14 +1044,14 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1042
1044
|
}, 1032, ["class", "invalid"])
|
|
1043
1045
|
]),
|
|
1044
1046
|
default: x(() => [
|
|
1045
|
-
n("div",
|
|
1046
|
-
|
|
1047
|
+
n("div", Hn, [
|
|
1048
|
+
r(b, {
|
|
1047
1049
|
modelValue: y.value,
|
|
1048
1050
|
"onUpdate:modelValue": t[4] || (t[4] = (X) => y.value = X),
|
|
1049
1051
|
placeholder: "Filter options"
|
|
1050
1052
|
}, {
|
|
1051
1053
|
prepend: x(() => [
|
|
1052
|
-
|
|
1054
|
+
r(B, { name: "search" })
|
|
1053
1055
|
]),
|
|
1054
1056
|
_: 1
|
|
1055
1057
|
}, 8, ["modelValue"]),
|
|
@@ -1059,15 +1061,15 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1059
1061
|
}, [
|
|
1060
1062
|
(p(!0), V(ee, null, de(G.value, (X, Pt) => (p(), V(ee, { key: Pt }, [
|
|
1061
1063
|
X.displayAsSection ? (p(), V(ee, { key: 0 }, [
|
|
1062
|
-
|
|
1064
|
+
r(se, {
|
|
1063
1065
|
label: X.label
|
|
1064
1066
|
}, null, 8, ["label"]),
|
|
1065
|
-
|
|
1067
|
+
r(re)
|
|
1066
1068
|
], 64)) : (p(), Y(Se, {
|
|
1067
1069
|
key: 1,
|
|
1068
1070
|
label: X.label,
|
|
1069
1071
|
"model-value": E(X),
|
|
1070
|
-
onClick: (
|
|
1072
|
+
onClick: (bl) => v(X.value),
|
|
1071
1073
|
"x-should-scroll-into": `${E(X)}`
|
|
1072
1074
|
}, null, 8, ["label", "model-value", "onClick", "x-should-scroll-into"]))
|
|
1073
1075
|
], 64))), 128))
|
|
@@ -1082,8 +1084,8 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1082
1084
|
]),
|
|
1083
1085
|
_: 1
|
|
1084
1086
|
}, 8, ["label", "helper-text", "model-value", "locked", "disabled"]),
|
|
1085
|
-
n("div",
|
|
1086
|
-
|
|
1087
|
+
n("div", Yn, [
|
|
1088
|
+
r(Ce, {
|
|
1087
1089
|
"tooltip-message": "This field is managed by NetSuite",
|
|
1088
1090
|
"tooltip-z-index": 50,
|
|
1089
1091
|
label: o(d)("inventory.ingredient.valuationMethod.title"),
|
|
@@ -1092,11 +1094,11 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1092
1094
|
disabled: e.disabled
|
|
1093
1095
|
}, {
|
|
1094
1096
|
label: x(() => [
|
|
1095
|
-
n("div",
|
|
1096
|
-
|
|
1097
|
+
n("div", Kn, [
|
|
1098
|
+
r(I, {
|
|
1097
1099
|
label: o(d)("inventory.ingredient.valuationMethod.title")
|
|
1098
1100
|
}, null, 8, ["label"]),
|
|
1099
|
-
|
|
1101
|
+
r(ke, {
|
|
1100
1102
|
tier: "premium",
|
|
1101
1103
|
category: "premium",
|
|
1102
1104
|
"feature-key": "total-cost"
|
|
@@ -1104,7 +1106,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1104
1106
|
])
|
|
1105
1107
|
]),
|
|
1106
1108
|
default: x(() => [
|
|
1107
|
-
|
|
1109
|
+
r(Mt, {
|
|
1108
1110
|
class: "col-span-2",
|
|
1109
1111
|
label: o(d)("inventory.ingredient.valuationMethod.title"),
|
|
1110
1112
|
"model-value": ce.value,
|
|
@@ -1114,7 +1116,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1114
1116
|
]),
|
|
1115
1117
|
_: 1
|
|
1116
1118
|
}, 8, ["label", "model-value", "locked", "disabled"]),
|
|
1117
|
-
|
|
1119
|
+
r(Ce, {
|
|
1118
1120
|
"tooltip-message": "This field is managed by NetSuite",
|
|
1119
1121
|
"tooltip-z-index": 50,
|
|
1120
1122
|
"model-value": `${o(jt)()} ${fe.value}`,
|
|
@@ -1123,11 +1125,11 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1123
1125
|
disabled: e.disabled
|
|
1124
1126
|
}, {
|
|
1125
1127
|
label: x(() => [
|
|
1126
|
-
n("div",
|
|
1127
|
-
|
|
1128
|
+
n("div", Gn, [
|
|
1129
|
+
r(I, {
|
|
1128
1130
|
label: o(d)("inventory.ingredient.pricePerUnit")
|
|
1129
1131
|
}, null, 8, ["label"]),
|
|
1130
|
-
|
|
1132
|
+
r(ke, {
|
|
1131
1133
|
tier: "premium",
|
|
1132
1134
|
category: "premium",
|
|
1133
1135
|
"feature-key": "total-cost"
|
|
@@ -1135,14 +1137,14 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1135
1137
|
])
|
|
1136
1138
|
]),
|
|
1137
1139
|
default: x(() => [
|
|
1138
|
-
|
|
1140
|
+
r(b, {
|
|
1139
1141
|
"model-value": fe.value,
|
|
1140
1142
|
"onUpdate:modelValue": t[6] || (t[6] = (T) => fe.value = T),
|
|
1141
|
-
rules: [o(
|
|
1143
|
+
rules: [o(De)(0), o(rn)(4)]
|
|
1142
1144
|
}, {
|
|
1143
1145
|
label: x(() => [
|
|
1144
|
-
n("div",
|
|
1145
|
-
|
|
1146
|
+
n("div", Jn, [
|
|
1147
|
+
r(I, {
|
|
1146
1148
|
label: o(d)("inventory.ingredient.pricePerUnit")
|
|
1147
1149
|
}, null, 8, ["label"])
|
|
1148
1150
|
])
|
|
@@ -1150,11 +1152,11 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1150
1152
|
prepend: x(() => {
|
|
1151
1153
|
var T, X;
|
|
1152
1154
|
return [
|
|
1153
|
-
n("div",
|
|
1155
|
+
n("div", Qn, $(o(ct)(((T = o(a).currentCountry) == null ? void 0 : T.value) ?? o(mt)) === "MYR" ? "RM" : o(ct)(((X = o(a).currentCountry) == null ? void 0 : X.value) ?? o(mt))), 1)
|
|
1154
1156
|
];
|
|
1155
1157
|
}),
|
|
1156
1158
|
append: x(() => [
|
|
1157
|
-
n("div",
|
|
1159
|
+
n("div", Xn, " / " + $(be.value), 1)
|
|
1158
1160
|
]),
|
|
1159
1161
|
_: 1
|
|
1160
1162
|
}, 8, ["model-value", "rules"])
|
|
@@ -1162,80 +1164,80 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1162
1164
|
_: 1
|
|
1163
1165
|
}, 8, ["model-value", "locked", "append-text", "disabled"])
|
|
1164
1166
|
]),
|
|
1165
|
-
!f.value || N.value ? (p(), Y(
|
|
1167
|
+
!f.value || N.value ? (p(), Y(Ln, {
|
|
1166
1168
|
key: 0,
|
|
1167
1169
|
"model-value": N.value,
|
|
1168
1170
|
"onUpdate:modelValue": t[7] || (t[7] = (T) => N.value = T),
|
|
1169
1171
|
"root-value": e.modelValue,
|
|
1170
1172
|
readonly: f.value
|
|
1171
1173
|
}, null, 8, ["model-value", "root-value", "readonly"])) : L("", !0),
|
|
1172
|
-
e.mode !== o(j).CREATE ? (p(), V("div",
|
|
1173
|
-
|
|
1174
|
+
e.mode !== o(j).CREATE ? (p(), V("div", Zn, [
|
|
1175
|
+
r(et, {
|
|
1174
1176
|
label: o(d)("inventory.ingredient.status.inactive"),
|
|
1175
1177
|
"model-value": te.value,
|
|
1176
1178
|
"onUpdate:modelValue": t[8] || (t[8] = (T) => te.value = T),
|
|
1177
1179
|
"label-placement": "right",
|
|
1178
1180
|
disabled: f.value
|
|
1179
1181
|
}, null, 8, ["label", "model-value", "disabled"]),
|
|
1180
|
-
n("div",
|
|
1181
|
-
n("div",
|
|
1182
|
+
n("div", eo, [
|
|
1183
|
+
n("div", to, $(o(d)("inventory.ingredient.status.preventFromOrder")), 1)
|
|
1182
1184
|
])
|
|
1183
1185
|
])) : L("", !0),
|
|
1184
|
-
e.mode !== o(j).CREATE ? (p(), V("div",
|
|
1186
|
+
e.mode !== o(j).CREATE ? (p(), V("div", no, [
|
|
1185
1187
|
n("div", null, [
|
|
1186
|
-
|
|
1188
|
+
r(et, {
|
|
1187
1189
|
label: o(d)("inventory.ingredient.bindedItems.title"),
|
|
1188
|
-
modelValue:
|
|
1189
|
-
"onUpdate:modelValue": t[9] || (t[9] = (T) =>
|
|
1190
|
+
modelValue: D.value,
|
|
1191
|
+
"onUpdate:modelValue": t[9] || (t[9] = (T) => D.value = T),
|
|
1190
1192
|
"label-placement": "right"
|
|
1191
1193
|
}, null, 8, ["label", "modelValue"])
|
|
1192
1194
|
]),
|
|
1193
|
-
|
|
1195
|
+
D.value && K.value.length ? (p(), Y(qe, {
|
|
1194
1196
|
key: 0,
|
|
1195
1197
|
name: o(d)("inventory.ingredient.bindedItems.ingredient"),
|
|
1196
1198
|
bindings: K.value
|
|
1197
1199
|
}, null, 8, ["name", "bindings"])) : L("", !0),
|
|
1198
|
-
|
|
1200
|
+
D.value && z.value.length ? (p(), Y(qe, {
|
|
1199
1201
|
key: 1,
|
|
1200
1202
|
name: o(d)("inventory.ingredient.bindedItems.recipe"),
|
|
1201
1203
|
bindings: z.value
|
|
1202
1204
|
}, null, 8, ["name", "bindings"])) : L("", !0),
|
|
1203
|
-
|
|
1205
|
+
D.value && ge.value.length ? (p(), Y(qe, {
|
|
1204
1206
|
key: 2,
|
|
1205
1207
|
name: o(d)("inventory.ingredient.bindedItems.menu"),
|
|
1206
1208
|
bindings: ge.value
|
|
1207
1209
|
}, null, 8, ["name", "bindings"])) : L("", !0)
|
|
1208
1210
|
])) : L("", !0),
|
|
1209
|
-
n("div",
|
|
1210
|
-
n("div",
|
|
1211
|
-
n("div",
|
|
1212
|
-
n("div",
|
|
1213
|
-
|
|
1211
|
+
n("div", oo, [
|
|
1212
|
+
n("div", lo, [
|
|
1213
|
+
n("div", ao, [
|
|
1214
|
+
n("div", so, $(o(d)("inventory.ingredient.threshold.title")), 1),
|
|
1215
|
+
r(ke, {
|
|
1214
1216
|
tier: "standard",
|
|
1215
1217
|
category: "beta"
|
|
1216
1218
|
})
|
|
1217
1219
|
]),
|
|
1218
|
-
n("div",
|
|
1220
|
+
n("div", ro, $(o(d)("inventory.ingredient.threshold.subtitle")), 1)
|
|
1219
1221
|
]),
|
|
1220
|
-
n("div",
|
|
1221
|
-
|
|
1222
|
+
n("div", io, [
|
|
1223
|
+
r(Ze, {
|
|
1222
1224
|
"model-value": { low: he.value, mid: me.value },
|
|
1223
1225
|
rules: [Et()]
|
|
1224
1226
|
}, null, 8, ["model-value", "rules"]),
|
|
1225
|
-
n("div",
|
|
1226
|
-
n("div",
|
|
1227
|
-
n("div",
|
|
1228
|
-
|
|
1227
|
+
n("div", uo, [
|
|
1228
|
+
n("div", co, [
|
|
1229
|
+
n("div", mo, [
|
|
1230
|
+
r(je, {
|
|
1229
1231
|
days: he.value,
|
|
1230
1232
|
level: o(We).low
|
|
1231
1233
|
}, null, 8, ["days", "level"])
|
|
1232
1234
|
]),
|
|
1233
|
-
n("div",
|
|
1234
|
-
n("div",
|
|
1235
|
-
|
|
1235
|
+
n("div", po, [
|
|
1236
|
+
n("div", vo, $(o(d)("inventory.ingredient.threshold.whenRemaining")), 1),
|
|
1237
|
+
r(tt, {
|
|
1236
1238
|
modelValue: he.value,
|
|
1237
1239
|
"onUpdate:modelValue": t[10] || (t[10] = (T) => he.value = T),
|
|
1238
|
-
rules: [o(
|
|
1240
|
+
rules: [o(De)(0)]
|
|
1239
1241
|
}, {
|
|
1240
1242
|
append: x(() => t[13] || (t[13] = [
|
|
1241
1243
|
n("div", {
|
|
@@ -1256,19 +1258,19 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1256
1258
|
style: { transform: "translate(-50%, -50%)", left: "50%", top: "24px" }
|
|
1257
1259
|
}, " < ")
|
|
1258
1260
|
], -1)),
|
|
1259
|
-
n("div",
|
|
1260
|
-
n("div",
|
|
1261
|
-
|
|
1261
|
+
n("div", fo, [
|
|
1262
|
+
n("div", yo, [
|
|
1263
|
+
r(je, {
|
|
1262
1264
|
days: me.value,
|
|
1263
1265
|
level: o(We).mid
|
|
1264
1266
|
}, null, 8, ["days", "level"])
|
|
1265
1267
|
]),
|
|
1266
|
-
n("div",
|
|
1267
|
-
n("div",
|
|
1268
|
-
|
|
1268
|
+
n("div", go, [
|
|
1269
|
+
n("div", bo, $(o(d)("inventory.ingredient.threshold.whenRemaining")), 1),
|
|
1270
|
+
r(tt, {
|
|
1269
1271
|
modelValue: me.value,
|
|
1270
1272
|
"onUpdate:modelValue": t[11] || (t[11] = (T) => me.value = T),
|
|
1271
|
-
rules: [o(
|
|
1273
|
+
rules: [o(De)(0)]
|
|
1272
1274
|
}, {
|
|
1273
1275
|
append: x(() => t[14] || (t[14] = [
|
|
1274
1276
|
n("div", {
|
|
@@ -1289,32 +1291,32 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1289
1291
|
style: { transform: "translate(-50%, -50%)", left: "50%", top: "24px" }
|
|
1290
1292
|
}, " < ")
|
|
1291
1293
|
], -1)),
|
|
1292
|
-
n("div",
|
|
1293
|
-
n("div",
|
|
1294
|
-
|
|
1294
|
+
n("div", ho, [
|
|
1295
|
+
n("div", _o, [
|
|
1296
|
+
r(je, {
|
|
1295
1297
|
days: me.value + 1,
|
|
1296
1298
|
level: o(We).high
|
|
1297
1299
|
}, null, 8, ["days", "level"])
|
|
1298
1300
|
]),
|
|
1299
|
-
n("div",
|
|
1300
|
-
n("div",
|
|
1301
|
+
n("div", xo, [
|
|
1302
|
+
n("div", ko, $(o(d)("inventory.ingredient.threshold.stockIsStaple")), 1)
|
|
1301
1303
|
])
|
|
1302
1304
|
])
|
|
1303
1305
|
])
|
|
1304
1306
|
])
|
|
1305
1307
|
]),
|
|
1306
|
-
o(c).mustUsePoTemplate && e.mode === o(j).CREATE ? (p(), V("div",
|
|
1307
|
-
n("div",
|
|
1308
|
-
n("div",
|
|
1309
|
-
n("div",
|
|
1310
|
-
n("div",
|
|
1311
|
-
|
|
1308
|
+
o(c).mustUsePoTemplate && e.mode === o(j).CREATE ? (p(), V("div", wo, [
|
|
1309
|
+
n("div", To, [
|
|
1310
|
+
n("div", Vo, [
|
|
1311
|
+
n("div", Io, [
|
|
1312
|
+
n("div", So, $(o(d)("inventory.ingredient.purchaseOrderTemplates.title")), 1),
|
|
1313
|
+
r(ke, {
|
|
1312
1314
|
tier: "premium",
|
|
1313
1315
|
category: "premium",
|
|
1314
1316
|
"feature-key": "purchase-order-template"
|
|
1315
1317
|
})
|
|
1316
1318
|
]),
|
|
1317
|
-
|
|
1319
|
+
r(Be, {
|
|
1318
1320
|
variant: "secondary",
|
|
1319
1321
|
"text-color": "primary",
|
|
1320
1322
|
"border-color": "primary",
|
|
@@ -1322,10 +1324,10 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1322
1324
|
onClick: Ct
|
|
1323
1325
|
})
|
|
1324
1326
|
]),
|
|
1325
|
-
n("div",
|
|
1327
|
+
n("div", Co, $(o(d)("inventory.ingredient.purchaseOrderTemplates.description")), 1)
|
|
1326
1328
|
]),
|
|
1327
|
-
Ve.value.length > 0 ? (p(), V("div",
|
|
1328
|
-
n("div",
|
|
1329
|
+
Ve.value.length > 0 ? (p(), V("div", Fo, [
|
|
1330
|
+
n("div", Ao, [
|
|
1329
1331
|
(p(!0), V(ee, null, de(Ve.value, (T) => (p(), Y(Ne, {
|
|
1330
1332
|
key: T.value,
|
|
1331
1333
|
label: T.label,
|
|
@@ -1335,18 +1337,18 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1335
1337
|
])
|
|
1336
1338
|
])) : L("", !0)
|
|
1337
1339
|
])) : L("", !0),
|
|
1338
|
-
o(c).enableWastageTemplate && e.mode === o(j).CREATE ? (p(), V("div",
|
|
1339
|
-
n("div",
|
|
1340
|
-
n("div",
|
|
1341
|
-
n("div",
|
|
1342
|
-
n("div",
|
|
1343
|
-
|
|
1340
|
+
o(c).enableWastageTemplate && e.mode === o(j).CREATE ? (p(), V("div", Eo, [
|
|
1341
|
+
n("div", $o, [
|
|
1342
|
+
n("div", Mo, [
|
|
1343
|
+
n("div", Uo, [
|
|
1344
|
+
n("div", Po, $(o(d)("inventory.ingredient.wastageTemplates.title")), 1),
|
|
1345
|
+
r(ke, {
|
|
1344
1346
|
tier: "premium",
|
|
1345
1347
|
category: "premium",
|
|
1346
1348
|
"feature-key": "wastage-template"
|
|
1347
1349
|
})
|
|
1348
1350
|
]),
|
|
1349
|
-
|
|
1351
|
+
r(Be, {
|
|
1350
1352
|
variant: "secondary",
|
|
1351
1353
|
"text-color": "primary",
|
|
1352
1354
|
"border-color": "primary",
|
|
@@ -1354,9 +1356,9 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1354
1356
|
onClick: Ft
|
|
1355
1357
|
})
|
|
1356
1358
|
]),
|
|
1357
|
-
n("div",
|
|
1359
|
+
n("div", Ro, $(o(d)("inventory.ingredient.wastageTemplates.description")), 1)
|
|
1358
1360
|
]),
|
|
1359
|
-
Ie.value.length > 0 ? (p(), V("div",
|
|
1361
|
+
Ie.value.length > 0 ? (p(), V("div", Do, [
|
|
1360
1362
|
n("div", Oo, [
|
|
1361
1363
|
(p(!0), V(ee, null, de(Ie.value, (T) => (p(), Y(Ne, {
|
|
1362
1364
|
key: T.value,
|
|
@@ -1368,17 +1370,17 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1368
1370
|
])) : L("", !0)
|
|
1369
1371
|
])) : L("", !0),
|
|
1370
1372
|
o(c).enableClosingTemplate && e.mode === o(j).CREATE ? (p(), V("div", Bo, [
|
|
1371
|
-
n("div",
|
|
1372
|
-
n("div",
|
|
1373
|
-
n("div",
|
|
1374
|
-
n("div",
|
|
1375
|
-
|
|
1373
|
+
n("div", No, [
|
|
1374
|
+
n("div", zo, [
|
|
1375
|
+
n("div", Lo, [
|
|
1376
|
+
n("div", jo, $(o(d)("inventory.ingredient.closingTemplates.title")), 1),
|
|
1377
|
+
r(ke, {
|
|
1376
1378
|
tier: "premium",
|
|
1377
1379
|
category: "premium",
|
|
1378
1380
|
"feature-key": "closing-template"
|
|
1379
1381
|
})
|
|
1380
1382
|
]),
|
|
1381
|
-
|
|
1383
|
+
r(Be, {
|
|
1382
1384
|
variant: "secondary",
|
|
1383
1385
|
"text-color": "primary",
|
|
1384
1386
|
"border-color": "primary",
|
|
@@ -1386,10 +1388,10 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1386
1388
|
onClick: At
|
|
1387
1389
|
})
|
|
1388
1390
|
]),
|
|
1389
|
-
n("div",
|
|
1391
|
+
n("div", Wo, $(o(d)("inventory.ingredient.closingTemplates.description")), 1)
|
|
1390
1392
|
]),
|
|
1391
|
-
Qe.value.length > 0 ? (p(), V("div",
|
|
1392
|
-
n("div",
|
|
1393
|
+
Qe.value.length > 0 ? (p(), V("div", qo, [
|
|
1394
|
+
n("div", Ho, [
|
|
1393
1395
|
(p(!0), V(ee, null, de(Qe.value, (T) => (p(), Y(Ne, {
|
|
1394
1396
|
key: T.value,
|
|
1395
1397
|
label: T.label,
|
|
@@ -1400,7 +1402,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1400
1402
|
])) : L("", !0)
|
|
1401
1403
|
])) : L("", !0),
|
|
1402
1404
|
n("div", null, [
|
|
1403
|
-
|
|
1405
|
+
r(gn, {
|
|
1404
1406
|
entity: "inventorySku",
|
|
1405
1407
|
modelValue: Q.value,
|
|
1406
1408
|
"onUpdate:modelValue": t[12] || (t[12] = (T) => Q.value = T)
|
|
@@ -1412,10 +1414,10 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1412
1414
|
}, 8, ["disabled"]);
|
|
1413
1415
|
};
|
|
1414
1416
|
}
|
|
1415
|
-
}),
|
|
1417
|
+
}), Ko = { class: "flex flex-col gap-32" }, Go = {
|
|
1416
1418
|
key: 0,
|
|
1417
1419
|
class: "flex justify-between items-center"
|
|
1418
|
-
},
|
|
1420
|
+
}, Jo = { class: "flex gap-4" }, Qo = /* @__PURE__ */ xe({
|
|
1419
1421
|
__name: "IngredientDialog",
|
|
1420
1422
|
props: {
|
|
1421
1423
|
show: { type: Boolean },
|
|
@@ -1424,7 +1426,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1424
1426
|
},
|
|
1425
1427
|
emits: ["update:show"],
|
|
1426
1428
|
setup(W) {
|
|
1427
|
-
const h = W, k = Fe(), d = Tt(), _ = Ee(),
|
|
1429
|
+
const h = W, k = Fe(), d = Tt(), _ = Ee(), S = Vt(), A = It(), U = St(), l = Ae(), { t: i } = pe(), u = ft(h, "show"), a = ft(h, "sku"), c = P([]), s = P([]), f = P([]), w = g(
|
|
1428
1430
|
() => {
|
|
1429
1431
|
var y;
|
|
1430
1432
|
return _.isEnabled && _.netSuiteItemBySkuId.has((y = h.sku) == null ? void 0 : y._id);
|
|
@@ -1449,13 +1451,13 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1449
1451
|
return i("common.add");
|
|
1450
1452
|
}
|
|
1451
1453
|
return "";
|
|
1452
|
-
}),
|
|
1454
|
+
}), O = P(), R = P(!1);
|
|
1453
1455
|
async function ve() {
|
|
1454
1456
|
R.value = !0;
|
|
1455
1457
|
try {
|
|
1456
1458
|
await k.createSku(a.value);
|
|
1457
1459
|
const y = k.skuByCode[a.value.code];
|
|
1458
|
-
d.enablePoTemplate && c.value.length > 0 && await ue(y), d.enableWastageTemplate &&
|
|
1460
|
+
d.enablePoTemplate && c.value.length > 0 && await ue(y), d.enableWastageTemplate && s.value.length > 0 && await oe(y), d.enableClosingTemplate && f.value.length > 0 && await le(y), u.value = !1, l.open({
|
|
1459
1461
|
title: i("inventory.common.success"),
|
|
1460
1462
|
message: i("inventory.ingredient.create.success", { name: a.value.name }),
|
|
1461
1463
|
type: "success"
|
|
@@ -1492,7 +1494,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1492
1494
|
var M, G, E, v;
|
|
1493
1495
|
try {
|
|
1494
1496
|
for (const N of c.value) {
|
|
1495
|
-
const J = await
|
|
1497
|
+
const J = await S.getTemplate(N);
|
|
1496
1498
|
if (!J) {
|
|
1497
1499
|
console.warn(`Template with ID ${N} not found`);
|
|
1498
1500
|
continue;
|
|
@@ -1500,7 +1502,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1500
1502
|
if (!J.purchaseOrder.items.find(
|
|
1501
1503
|
(Q) => Q.sku._id === y._id
|
|
1502
1504
|
)) {
|
|
1503
|
-
const Q = { amount: 1, precision:
|
|
1505
|
+
const Q = { amount: 1, precision: dn(y.unit) }, q = {
|
|
1504
1506
|
sku: y,
|
|
1505
1507
|
name: y.name,
|
|
1506
1508
|
code: y.code,
|
|
@@ -1508,16 +1510,16 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1508
1510
|
minimumQuantity: Q,
|
|
1509
1511
|
quantityStep: Q,
|
|
1510
1512
|
measurement: ((G = (M = y.unit) == null ? void 0 : M.measurements) == null ? void 0 : G[0]) || null
|
|
1511
|
-
},
|
|
1513
|
+
}, D = {
|
|
1512
1514
|
...J,
|
|
1513
1515
|
purchaseOrder: {
|
|
1514
1516
|
...J.purchaseOrder,
|
|
1515
1517
|
items: [...J.purchaseOrder.items, q]
|
|
1516
1518
|
}
|
|
1517
1519
|
};
|
|
1518
|
-
(((E =
|
|
1520
|
+
(((E = D.purchaseOrder.supplier) == null ? void 0 : E.internal) === vt.enum.warehouse || ((v = D.purchaseOrder.supplier) == null ? void 0 : v.internal) === vt.enum.restaurant) && (D.purchaseOrder.items = D.purchaseOrder.items.map(
|
|
1519
1521
|
({ totalCost: K, ...z }) => z
|
|
1520
|
-
)), await
|
|
1522
|
+
)), await S.updateTemplate(D), await new Promise((K) => setTimeout(K, 1e3));
|
|
1521
1523
|
}
|
|
1522
1524
|
}
|
|
1523
1525
|
} catch (N) {
|
|
@@ -1530,7 +1532,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1530
1532
|
}
|
|
1531
1533
|
async function oe(y) {
|
|
1532
1534
|
try {
|
|
1533
|
-
for (const M of
|
|
1535
|
+
for (const M of s.value) {
|
|
1534
1536
|
const G = await A.getTemplate(M);
|
|
1535
1537
|
if (!G) {
|
|
1536
1538
|
console.warn(`Wastage Template with ID ${M} not found`);
|
|
@@ -1586,7 +1588,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1586
1588
|
}
|
|
1587
1589
|
function te() {
|
|
1588
1590
|
var y, M;
|
|
1589
|
-
(M = (y =
|
|
1591
|
+
(M = (y = O.value) == null ? void 0 : y.validateInputs) == null || M.call(y);
|
|
1590
1592
|
}
|
|
1591
1593
|
function ae() {
|
|
1592
1594
|
switch (h.mode) {
|
|
@@ -1602,13 +1604,13 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1602
1604
|
c.value = y;
|
|
1603
1605
|
}
|
|
1604
1606
|
function ye(y) {
|
|
1605
|
-
|
|
1607
|
+
s.value = y;
|
|
1606
1608
|
}
|
|
1607
1609
|
function we(y) {
|
|
1608
1610
|
f.value = y;
|
|
1609
1611
|
}
|
|
1610
1612
|
return (y, M) => {
|
|
1611
|
-
const G =
|
|
1613
|
+
const G = C("FmChip"), E = C("FmButton"), v = C("FmSideSheet");
|
|
1612
1614
|
return p(), Y(v, {
|
|
1613
1615
|
"model-value": o(u),
|
|
1614
1616
|
"onUpdate:modelValue": M[3] || (M[3] = (N) => rt(u) ? u.value = N : null),
|
|
@@ -1618,13 +1620,13 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1618
1620
|
"max-width": 500
|
|
1619
1621
|
}, {
|
|
1620
1622
|
"side-sheet-footer": x(() => [
|
|
1621
|
-
n("div",
|
|
1622
|
-
|
|
1623
|
+
n("div", Jo, [
|
|
1624
|
+
r(E, {
|
|
1623
1625
|
loading: R.value,
|
|
1624
1626
|
label: m.value,
|
|
1625
1627
|
onClick: te
|
|
1626
1628
|
}, null, 8, ["loading", "label"]),
|
|
1627
|
-
|
|
1629
|
+
r(E, {
|
|
1628
1630
|
disabled: R.value,
|
|
1629
1631
|
label: o(i)("common.close"),
|
|
1630
1632
|
variant: "tertiary",
|
|
@@ -1633,28 +1635,28 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1633
1635
|
])
|
|
1634
1636
|
]),
|
|
1635
1637
|
default: x(() => [
|
|
1636
|
-
n("div",
|
|
1637
|
-
w.value ? (p(), V("div",
|
|
1638
|
-
|
|
1638
|
+
n("div", Ko, [
|
|
1639
|
+
w.value ? (p(), V("div", Go, [
|
|
1640
|
+
r(G, {
|
|
1639
1641
|
label: "Managed by Netsuite",
|
|
1640
1642
|
compact: ""
|
|
1641
1643
|
}),
|
|
1642
|
-
|
|
1644
|
+
r(tn, {
|
|
1643
1645
|
readonly: "",
|
|
1644
1646
|
sku: y.sku,
|
|
1645
1647
|
settingOptions: o(_).skuSettingOptions
|
|
1646
1648
|
}, null, 8, ["sku", "settingOptions"])
|
|
1647
1649
|
])) : L("", !0),
|
|
1648
|
-
|
|
1650
|
+
r(Yo, {
|
|
1649
1651
|
class: "w-full",
|
|
1650
1652
|
ref_key: "hasValidationExpose",
|
|
1651
|
-
ref:
|
|
1653
|
+
ref: O,
|
|
1652
1654
|
modelValue: o(a),
|
|
1653
1655
|
"onUpdate:modelValue": M[0] || (M[0] = (N) => rt(a) ? a.value = N : null),
|
|
1654
1656
|
mode: y.mode,
|
|
1655
1657
|
disabled: R.value,
|
|
1656
1658
|
purchaseOrderTemplateIds: c.value,
|
|
1657
|
-
wastageTemplateIds:
|
|
1659
|
+
wastageTemplateIds: s.value,
|
|
1658
1660
|
closingTemplateIds: f.value,
|
|
1659
1661
|
"onClick:submit": M[1] || (M[1] = (N) => ae()),
|
|
1660
1662
|
"onUpdate:purchaseOrderTemplateIds": fe,
|
|
@@ -1667,10 +1669,10 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1667
1669
|
}, 8, ["model-value", "header"]);
|
|
1668
1670
|
};
|
|
1669
1671
|
}
|
|
1670
|
-
}),
|
|
1672
|
+
}), Xo = { class: "flex items-center gap-12 pl-8" }, Zo = { class: "flex flex-col" }, el = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, tl = {
|
|
1671
1673
|
key: 0,
|
|
1672
1674
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
1673
|
-
},
|
|
1675
|
+
}, nl = { key: 0 }, ht = /* @__PURE__ */ xe({
|
|
1674
1676
|
__name: "ImportIngredientItem",
|
|
1675
1677
|
props: {
|
|
1676
1678
|
type: {},
|
|
@@ -1680,28 +1682,28 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1680
1682
|
},
|
|
1681
1683
|
setup(W) {
|
|
1682
1684
|
return (h, k) => {
|
|
1683
|
-
const d =
|
|
1684
|
-
return p(), V("div",
|
|
1685
|
+
const d = C("FmIcon"), _ = C("FmTooltip");
|
|
1686
|
+
return p(), V("div", Xo, [
|
|
1685
1687
|
k[0] || (k[0] = n("div", null, "•", -1)),
|
|
1686
|
-
n("div",
|
|
1687
|
-
n("div",
|
|
1688
|
+
n("div", Zo, [
|
|
1689
|
+
n("div", el, [
|
|
1688
1690
|
n("div", {
|
|
1689
1691
|
class: ie({
|
|
1690
1692
|
"text-fm-color-system-error-300": h.errors.length
|
|
1691
1693
|
})
|
|
1692
1694
|
}, [
|
|
1693
1695
|
xt($(h.name) + " ", 1),
|
|
1694
|
-
h.type === "create" ? (p(), V("span",
|
|
1696
|
+
h.type === "create" ? (p(), V("span", tl, "(new)")) : L("", !0)
|
|
1695
1697
|
], 2),
|
|
1696
|
-
h.errors.length ? (p(), V("div",
|
|
1697
|
-
|
|
1698
|
+
h.errors.length ? (p(), V("div", nl, [
|
|
1699
|
+
r(_, { "z-index": 50 }, {
|
|
1698
1700
|
content: x(() => [
|
|
1699
1701
|
n("ol", null, [
|
|
1700
|
-
(p(!0), V(ee, null, de(h.errors, (
|
|
1702
|
+
(p(!0), V(ee, null, de(h.errors, (S, A) => (p(), V("li", { key: A }, $(S), 1))), 128))
|
|
1701
1703
|
])
|
|
1702
1704
|
]),
|
|
1703
1705
|
default: x(() => [
|
|
1704
|
-
|
|
1706
|
+
r(d, {
|
|
1705
1707
|
name: "error",
|
|
1706
1708
|
size: "sm",
|
|
1707
1709
|
color: "system-error-300"
|
|
@@ -1724,54 +1726,54 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1724
1726
|
]);
|
|
1725
1727
|
};
|
|
1726
1728
|
}
|
|
1727
|
-
}),
|
|
1729
|
+
}), ol = { class: "flex flex-col gap-24" }, ll = { class: "fm-typo-en-body-md-400" }, al = { class: "flex flex-col gap-8" }, sl = { class: "line-clamp-2 text-ellipsis break-all" }, rl = {
|
|
1728
1730
|
key: 2,
|
|
1729
1731
|
class: "shrink-0"
|
|
1730
|
-
},
|
|
1732
|
+
}, il = {
|
|
1731
1733
|
key: 0,
|
|
1732
1734
|
class: "flex flex-col"
|
|
1733
|
-
},
|
|
1735
|
+
}, dl = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, ul = {
|
|
1734
1736
|
key: 0,
|
|
1735
1737
|
class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
|
|
1736
|
-
},
|
|
1738
|
+
}, cl = { class: "fm-typo-en-body-lg-600" }, ml = /* @__PURE__ */ xe({
|
|
1737
1739
|
__name: "ImportIngredients",
|
|
1738
1740
|
setup(W) {
|
|
1739
|
-
const h = P(null), k =
|
|
1740
|
-
() => !!
|
|
1741
|
+
const h = P(null), k = Yt(), d = Ae(), _ = P(!1), S = P(new Array()), A = P([]), U = P([]), l = g(
|
|
1742
|
+
() => !!S.value.length || A.value.some((c) => c.errors.length) || U.value.some((c) => c.errors.length)
|
|
1741
1743
|
), i = g(
|
|
1742
1744
|
() => !!A.value.length || !!U.value.length
|
|
1743
1745
|
), { t: u } = pe();
|
|
1744
1746
|
async function a(c) {
|
|
1745
|
-
|
|
1747
|
+
S.value = [], A.value = [], U.value = [];
|
|
1746
1748
|
try {
|
|
1747
1749
|
_.value = !0;
|
|
1748
|
-
const [
|
|
1749
|
-
|
|
1750
|
+
const [s] = await Promise.all([
|
|
1751
|
+
_n(c),
|
|
1750
1752
|
// fake buffer
|
|
1751
1753
|
new Promise((F) => setTimeout(F, 1e3))
|
|
1752
|
-
]), f =
|
|
1754
|
+
]), f = s.SheetNames.find((F) => F);
|
|
1753
1755
|
if (!f) {
|
|
1754
|
-
|
|
1756
|
+
S.value.push(u("inventory.ingredient.import.fileError.noSheet"));
|
|
1755
1757
|
return;
|
|
1756
1758
|
}
|
|
1757
|
-
const w =
|
|
1759
|
+
const w = vn(s.Sheets[f]);
|
|
1758
1760
|
if (w.invalidExcel) {
|
|
1759
|
-
|
|
1761
|
+
S.value.push(w.invalidExcelMessage ?? u("inventory.ingredient.import.fileError.invalidExcel"));
|
|
1760
1762
|
return;
|
|
1761
1763
|
}
|
|
1762
1764
|
if (A.value = w.importCreateResult, U.value = w.importUpdateResult, !A.value.length && !U.value.length) {
|
|
1763
|
-
|
|
1765
|
+
S.value.push(u("inventory.ingredient.import.fileError.noData"));
|
|
1764
1766
|
return;
|
|
1765
1767
|
}
|
|
1766
1768
|
k.emitData(w);
|
|
1767
|
-
} catch (
|
|
1769
|
+
} catch (s) {
|
|
1768
1770
|
d.open({
|
|
1769
1771
|
title: u("inventory.ingredient.import.fileError.unableToRead"),
|
|
1770
|
-
message:
|
|
1772
|
+
message: s == null ? void 0 : s.message,
|
|
1771
1773
|
type: "error"
|
|
1772
|
-
}), console.error("Error in reading file",
|
|
1774
|
+
}), console.error("Error in reading file", s);
|
|
1773
1775
|
} finally {
|
|
1774
|
-
|
|
1776
|
+
S.value.length && d.open({
|
|
1775
1777
|
title: u("inventory.ingredient.import.fileError.invalidExcel"),
|
|
1776
1778
|
type: "error"
|
|
1777
1779
|
}), _.value = !1;
|
|
@@ -1779,24 +1781,24 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1779
1781
|
}
|
|
1780
1782
|
return _t(h, (c) => {
|
|
1781
1783
|
c && a(c);
|
|
1782
|
-
}), (c,
|
|
1783
|
-
const f =
|
|
1784
|
-
return p(), V("div",
|
|
1785
|
-
n("div",
|
|
1786
|
-
|
|
1784
|
+
}), (c, s) => {
|
|
1785
|
+
const f = C("FmCircularProgress"), w = C("FmIcon"), F = C("FmButton");
|
|
1786
|
+
return p(), V("div", ol, [
|
|
1787
|
+
n("div", ll, $(o(u)("inventory.ingredient.import.uploadDescription")), 1),
|
|
1788
|
+
r(xn, {
|
|
1787
1789
|
class: ie({
|
|
1788
1790
|
"w-full": !0,
|
|
1789
1791
|
"h-[200px]": !h.value
|
|
1790
1792
|
}),
|
|
1791
1793
|
accept: ".xlsx",
|
|
1792
|
-
onFileUpload:
|
|
1794
|
+
onFileUpload: s[0] || (s[0] = (m) => h.value = m),
|
|
1793
1795
|
label: o(u)("inventory.ingredient.import.uploadTemplate"),
|
|
1794
1796
|
"button-label": o(u)("inventory.ingredient.import.selectFile")
|
|
1795
1797
|
}, kt({ _: 2 }, [
|
|
1796
1798
|
h.value ? {
|
|
1797
1799
|
name: "default",
|
|
1798
1800
|
fn: x(({ openFileDialog: m }) => [
|
|
1799
|
-
n("div",
|
|
1801
|
+
n("div", al, [
|
|
1800
1802
|
n("div", {
|
|
1801
1803
|
class: ie([
|
|
1802
1804
|
"fm-corner-radius-md p-16 flex items-center gap-16",
|
|
@@ -1826,10 +1828,10 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1826
1828
|
}
|
|
1827
1829
|
])
|
|
1828
1830
|
}, [
|
|
1829
|
-
n("div",
|
|
1831
|
+
n("div", sl, $(h.value.name), 1)
|
|
1830
1832
|
], 2),
|
|
1831
|
-
_.value ? L("", !0) : (p(), V("div",
|
|
1832
|
-
|
|
1833
|
+
_.value ? L("", !0) : (p(), V("div", rl, [
|
|
1834
|
+
r(F, {
|
|
1833
1835
|
label: o(u)("inventory.ingredient.import.replaceFile"),
|
|
1834
1836
|
variant: l.value ? "destructive" : "secondary",
|
|
1835
1837
|
"prepend-icon": l.value ? void 0 : "autorenew",
|
|
@@ -1837,17 +1839,17 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1837
1839
|
}, null, 8, ["label", "variant", "prepend-icon", "onClick"])
|
|
1838
1840
|
]))
|
|
1839
1841
|
], 2),
|
|
1840
|
-
|
|
1841
|
-
(p(!0), V(ee, null, de(
|
|
1842
|
+
S.value.length ? (p(), V("div", il, [
|
|
1843
|
+
(p(!0), V(ee, null, de(S.value, (O, R) => (p(), V("div", {
|
|
1842
1844
|
key: R,
|
|
1843
1845
|
class: "flex gap-8 items-center"
|
|
1844
1846
|
}, [
|
|
1845
|
-
|
|
1847
|
+
r(w, {
|
|
1846
1848
|
name: "error",
|
|
1847
1849
|
size: "sm",
|
|
1848
1850
|
color: "system-error-300"
|
|
1849
1851
|
}),
|
|
1850
|
-
n("div",
|
|
1852
|
+
n("div", dl, $(O), 1)
|
|
1851
1853
|
]))), 128))
|
|
1852
1854
|
])) : L("", !0)
|
|
1853
1855
|
])
|
|
@@ -1855,8 +1857,8 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1855
1857
|
key: "0"
|
|
1856
1858
|
} : void 0
|
|
1857
1859
|
]), 1032, ["class", "label", "button-label"]),
|
|
1858
|
-
i.value ? (p(), V("div",
|
|
1859
|
-
n("div",
|
|
1860
|
+
i.value ? (p(), V("div", ul, [
|
|
1861
|
+
n("div", cl, $(o(u)("inventory.ingredient.import.summary")), 1),
|
|
1860
1862
|
(p(!0), V(ee, null, de(A.value, (m) => (p(), Y(ht, {
|
|
1861
1863
|
key: m.sku._id,
|
|
1862
1864
|
code: m.sku.code,
|
|
@@ -1875,10 +1877,10 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1875
1877
|
]);
|
|
1876
1878
|
};
|
|
1877
1879
|
}
|
|
1878
|
-
}),
|
|
1880
|
+
}), pl = {
|
|
1879
1881
|
key: 0,
|
|
1880
1882
|
class: "flex items-center gap-1"
|
|
1881
|
-
},
|
|
1883
|
+
}, vl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fl = { class: "flex flex-col py-8" }, yl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Jl = /* @__PURE__ */ xe({
|
|
1882
1884
|
__name: "IngredientsView",
|
|
1883
1885
|
setup(W) {
|
|
1884
1886
|
const h = Fe(), k = Ee(), d = g(() => [
|
|
@@ -1910,13 +1912,13 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1910
1912
|
type: "string"
|
|
1911
1913
|
}
|
|
1912
1914
|
]
|
|
1913
|
-
}),
|
|
1915
|
+
}), S = g(
|
|
1914
1916
|
() => new Set(k.getAvailableItems(k.businessSubsidiaryId))
|
|
1915
1917
|
), A = g(() => {
|
|
1916
1918
|
if (!_.value)
|
|
1917
1919
|
return h.skus;
|
|
1918
|
-
const E =
|
|
1919
|
-
return h.skus.filter((v) => k.isEnabled && ne.value &&
|
|
1920
|
+
const E = wn.build(_.value);
|
|
1921
|
+
return h.skus.filter((v) => k.isEnabled && ne.value && S.value && !S.value.has(v._id) ? !1 : Tn(
|
|
1920
1922
|
{
|
|
1921
1923
|
skuCode: v.code,
|
|
1922
1924
|
skuUnitAbbrev: v.unit.abbrev,
|
|
@@ -1924,7 +1926,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1924
1926
|
},
|
|
1925
1927
|
E
|
|
1926
1928
|
));
|
|
1927
|
-
}), U = Wt(), l = Ke(), i =
|
|
1929
|
+
}), U = Wt(), l = Ke(), i = pn(), u = Ae(), { t: a } = pe(), { createIngredient: c, updateIngredient: s } = Ye(), { ingredientDialogProps: f, ingredientViewLoading: w } = Zt(Ye()), { columnDefs: F } = zn();
|
|
1928
1930
|
function m(E) {
|
|
1929
1931
|
switch (E) {
|
|
1930
1932
|
case "add":
|
|
@@ -1937,7 +1939,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1937
1939
|
return y(A.value);
|
|
1938
1940
|
}
|
|
1939
1941
|
}
|
|
1940
|
-
const
|
|
1942
|
+
const O = P(""), R = P(!1), ve = g(() => R.value || w.value), ne = P(!0), { breakpoints: ue } = Kt(), oe = g(() => ue.value.xs || ue.value.sm), le = g(() => oe.value ? 10 : 20), te = nn(), ae = P(!1), fe = [
|
|
1941
1943
|
{
|
|
1942
1944
|
value: "import",
|
|
1943
1945
|
label: a("common.import")
|
|
@@ -1975,7 +1977,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1975
1977
|
{ label: a("inventory.ingredient.export.exportFiltered"), value: "export-filtered", mobileOnly: !0 }
|
|
1976
1978
|
]);
|
|
1977
1979
|
function y(E) {
|
|
1978
|
-
const v =
|
|
1980
|
+
const v = fn(E);
|
|
1979
1981
|
u.open({
|
|
1980
1982
|
title: a("inventory.ingredient.export.success"),
|
|
1981
1983
|
message: a("inventory.ingredient.export.filename", [v]),
|
|
@@ -1985,7 +1987,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
1985
1987
|
function M() {
|
|
1986
1988
|
l.open({
|
|
1987
1989
|
title: a("inventory.ingredient.import.title"),
|
|
1988
|
-
contentComponent:
|
|
1990
|
+
contentComponent: ml,
|
|
1989
1991
|
overlay: !0,
|
|
1990
1992
|
closeButton: !0,
|
|
1991
1993
|
primaryActions: {
|
|
@@ -2026,7 +2028,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
2026
2028
|
return;
|
|
2027
2029
|
}
|
|
2028
2030
|
l.close(), G(E);
|
|
2029
|
-
}).onTertiary(
|
|
2031
|
+
}).onTertiary(yn);
|
|
2030
2032
|
}
|
|
2031
2033
|
async function G(E) {
|
|
2032
2034
|
R.value = !0;
|
|
@@ -2047,19 +2049,19 @@ const zn = /* @__PURE__ */ xe({
|
|
|
2047
2049
|
for (const q of v.chunk(100)) {
|
|
2048
2050
|
ce();
|
|
2049
2051
|
try {
|
|
2050
|
-
const
|
|
2052
|
+
const D = await h.importSkus({
|
|
2051
2053
|
create: q.filter((K) => K.type === "create").map((K) => K.sku),
|
|
2052
2054
|
update: q.filter((K) => K.type === "update").map((K) => K.sku)
|
|
2053
2055
|
});
|
|
2054
|
-
Q.push(...
|
|
2055
|
-
} catch (
|
|
2056
|
+
Q.push(...D.errors);
|
|
2057
|
+
} catch (D) {
|
|
2056
2058
|
Q.push(
|
|
2057
2059
|
...q.map((K) => {
|
|
2058
2060
|
const z = {
|
|
2059
2061
|
module: qt.enum.sku,
|
|
2060
2062
|
_id: K.sku._id,
|
|
2061
2063
|
name: K.sku.name,
|
|
2062
|
-
message: (
|
|
2064
|
+
message: (D == null ? void 0 : D.stack) ?? D
|
|
2063
2065
|
};
|
|
2064
2066
|
return {
|
|
2065
2067
|
data: K.sku,
|
|
@@ -2083,7 +2085,7 @@ const zn = /* @__PURE__ */ xe({
|
|
|
2083
2085
|
Z(
|
|
2084
2086
|
"div",
|
|
2085
2087
|
{ class: "fm-typo-en-body-lg-400" },
|
|
2086
|
-
`${q.error.map((
|
|
2088
|
+
`${q.error.map((D) => (D == null ? void 0 : D.message) ?? "Unknown error").join(", ")}`
|
|
2087
2089
|
)
|
|
2088
2090
|
])
|
|
2089
2091
|
)
|
|
@@ -2100,27 +2102,27 @@ const zn = /* @__PURE__ */ xe({
|
|
|
2100
2102
|
}
|
|
2101
2103
|
}
|
|
2102
2104
|
return (E, v) => {
|
|
2103
|
-
const N =
|
|
2104
|
-
return p(), Y(
|
|
2105
|
+
const N = C("FmButton"), J = C("FmMenuItem"), ce = C("FmMenu"), Q = C("FmSwitch"), q = C("FmTable"), D = C("FmCollapsibleTabs"), K = C("FmBottomSheet");
|
|
2106
|
+
return p(), Y(on, {
|
|
2105
2107
|
title: o(a)("inventory.ingredient.title"),
|
|
2106
2108
|
actions: we.value,
|
|
2107
2109
|
"onClick:action": m
|
|
2108
2110
|
}, {
|
|
2109
2111
|
"header-end": x(() => [
|
|
2110
|
-
|
|
2112
|
+
r(ce, { "close-on-click": !0 }, {
|
|
2111
2113
|
"menu-button": x(() => [
|
|
2112
|
-
|
|
2114
|
+
r(N, {
|
|
2113
2115
|
label: o(a)("common.export"),
|
|
2114
2116
|
"bg-color": "neutral-gray-100",
|
|
2115
2117
|
"text-color": "neutral-gray-400"
|
|
2116
2118
|
}, null, 8, ["label"])
|
|
2117
2119
|
]),
|
|
2118
2120
|
default: x(() => [
|
|
2119
|
-
|
|
2121
|
+
r(J, {
|
|
2120
2122
|
label: o(a)("inventory.ingredient.export.exportAll"),
|
|
2121
2123
|
onClick: v[0] || (v[0] = (z) => y())
|
|
2122
2124
|
}, null, 8, ["label"]),
|
|
2123
|
-
|
|
2125
|
+
r(J, {
|
|
2124
2126
|
label: o(a)("inventory.ingredient.export.exportFiltered"),
|
|
2125
2127
|
onClick: v[1] || (v[1] = (z) => y(A.value))
|
|
2126
2128
|
}, null, 8, ["label"])
|
|
@@ -2138,22 +2140,22 @@ const zn = /* @__PURE__ */ xe({
|
|
|
2138
2140
|
}
|
|
2139
2141
|
])
|
|
2140
2142
|
}, [
|
|
2141
|
-
|
|
2143
|
+
r(kn, {
|
|
2142
2144
|
searchable: "",
|
|
2143
|
-
search:
|
|
2144
|
-
"onUpdate:search": v[3] || (v[3] = (z) =>
|
|
2145
|
+
search: O.value,
|
|
2146
|
+
"onUpdate:search": v[3] || (v[3] = (z) => O.value = z),
|
|
2145
2147
|
filterable: "",
|
|
2146
2148
|
"filter-attributes": d.value,
|
|
2147
2149
|
filter: _.value,
|
|
2148
2150
|
"onUpdate:filter": v[4] || (v[4] = (z) => _.value = z)
|
|
2149
2151
|
}, {
|
|
2150
2152
|
default: x(() => [
|
|
2151
|
-
o(k).isEnabled ? (p(), V("div",
|
|
2152
|
-
n("span",
|
|
2153
|
-
|
|
2154
|
-
|
|
2153
|
+
o(k).isEnabled ? (p(), V("div", pl, [
|
|
2154
|
+
n("span", vl, $(o(a)("inventory.integration.netsuite.subsidiaryHierarchy.filtering")), 1),
|
|
2155
|
+
r(cn),
|
|
2156
|
+
r(Oe, null, {
|
|
2155
2157
|
default: x(() => [
|
|
2156
|
-
|
|
2158
|
+
r(Q, {
|
|
2157
2159
|
modelValue: ne.value,
|
|
2158
2160
|
"onUpdate:modelValue": v[2] || (v[2] = (z) => ne.value = z)
|
|
2159
2161
|
}, null, 8, ["modelValue"])
|
|
@@ -2166,35 +2168,35 @@ const zn = /* @__PURE__ */ xe({
|
|
|
2166
2168
|
}, 8, ["search", "filter-attributes", "filter"]),
|
|
2167
2169
|
(p(), Y(q, {
|
|
2168
2170
|
key: JSON.stringify(_.value),
|
|
2169
|
-
style:
|
|
2171
|
+
style: Bt(o(te).tableHeight),
|
|
2170
2172
|
"column-defs": o(F),
|
|
2171
2173
|
"row-data": A.value,
|
|
2172
|
-
"search-value":
|
|
2174
|
+
"search-value": O.value,
|
|
2173
2175
|
columnVisibility: {
|
|
2174
2176
|
netsuiteSubsidiary: o(k).isEnabled
|
|
2175
2177
|
},
|
|
2176
2178
|
loading: (!o(U)._currentLocation || ve.value) && o(k).isReady,
|
|
2177
2179
|
"loading-text": o(a)("inventory.common.loading"),
|
|
2178
|
-
onRowClick: v[5] || (v[5] = (z) => o(
|
|
2180
|
+
onRowClick: v[5] || (v[5] = (z) => o(s)(z.original)),
|
|
2179
2181
|
"page-size": le.value
|
|
2180
2182
|
}, {
|
|
2181
2183
|
"list-row": x((z) => [
|
|
2182
|
-
|
|
2184
|
+
r(hn, {
|
|
2183
2185
|
row: z,
|
|
2184
|
-
onRowClick: o(
|
|
2186
|
+
onRowClick: o(s)
|
|
2185
2187
|
}, kt({
|
|
2186
2188
|
default: x((ge) => {
|
|
2187
2189
|
var $e, Me, Ue, be, he, me, Te, Ve, _e, Ie;
|
|
2188
2190
|
return [
|
|
2189
|
-
n("div",
|
|
2190
|
-
n("div",
|
|
2191
|
-
|
|
2191
|
+
n("div", fl, [
|
|
2192
|
+
n("div", yl, [
|
|
2193
|
+
r(o(gt), {
|
|
2192
2194
|
render: (Ue = (Me = ($e = ge.code) == null ? void 0 : $e.column) == null ? void 0 : Me.columnDef) == null ? void 0 : Ue.cell,
|
|
2193
2195
|
props: (he = (be = ge.code) == null ? void 0 : be.getContext) == null ? void 0 : he.call(be)
|
|
2194
2196
|
}, null, 8, ["render", "props"])
|
|
2195
2197
|
]),
|
|
2196
|
-
n("div",
|
|
2197
|
-
|
|
2198
|
+
n("div", gl, [
|
|
2199
|
+
r(o(gt), {
|
|
2198
2200
|
render: (Ve = (Te = (me = ge.name) == null ? void 0 : me.column) == null ? void 0 : Te.columnDef) == null ? void 0 : Ve.cell,
|
|
2199
2201
|
props: (Ie = (_e = ge.name) == null ? void 0 : _e.getContext) == null ? void 0 : Ie.call(_e)
|
|
2200
2202
|
}, null, 8, ["render", "props"])
|
|
@@ -2217,16 +2219,16 @@ const zn = /* @__PURE__ */ xe({
|
|
|
2217
2219
|
}, 8, ["style", "column-defs", "row-data", "search-value", "columnVisibility", "loading", "loading-text", "page-size"]))
|
|
2218
2220
|
], 2),
|
|
2219
2221
|
(p(), Y(it, { to: "body" }, [
|
|
2220
|
-
|
|
2222
|
+
r(Qo, Nt(zt(o(f))), null, 16)
|
|
2221
2223
|
])),
|
|
2222
2224
|
(p(), Y(it, { to: "body" }, [
|
|
2223
|
-
|
|
2225
|
+
r(K, {
|
|
2224
2226
|
"dismiss-away": "",
|
|
2225
2227
|
modelValue: ae.value,
|
|
2226
2228
|
"onUpdate:modelValue": v[7] || (v[7] = (z) => ae.value = z)
|
|
2227
2229
|
}, {
|
|
2228
2230
|
default: x(() => [
|
|
2229
|
-
|
|
2231
|
+
r(D, {
|
|
2230
2232
|
class: "pb-8",
|
|
2231
2233
|
items: fe,
|
|
2232
2234
|
"onUpdate:modelValue": v[6] || (v[6] = (z) => ye(z))
|
|
@@ -2242,5 +2244,5 @@ const zn = /* @__PURE__ */ xe({
|
|
|
2242
2244
|
}
|
|
2243
2245
|
});
|
|
2244
2246
|
export {
|
|
2245
|
-
|
|
2247
|
+
Jl as default
|
|
2246
2248
|
};
|