@feedmepos/mf-inventory-portal 1.2.55-dev.1 → 1.2.56-dev.1
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-Dr4bSbWV.js → App-Dlnr4iYC.js} +3 -3
- package/dist/{ApprovalView-BrUi6das.js → ApprovalView-Txmz-hCz.js} +5 -5
- package/dist/{BindingsDialog-DtsEDaFx.js → BindingsDialog-BXnuWCaK.js} +5 -5
- package/dist/{BindingsPicker-BDSimsxV.js → BindingsPicker-CO2_vfjx.js} +3 -3
- package/dist/{BindingsTable-ArpmNkQm.js → BindingsTable-amypZb8r.js} +5 -5
- package/dist/{ClosingDraftView-D7qz1YGt.js → ClosingDraftView-Kegm5V38.js} +629 -622
- package/dist/{ClosingHistoryView-ND9smQRb.js → ClosingHistoryView-D9VXx7c6.js} +36 -36
- package/dist/{ClosingTemplateView--1tzOPIu.js → ClosingTemplateView-PYKa8KDQ.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-Ctv1Qp_a.js → DeliveryOrderPrintPreview-BBUliD2T.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lA-iPoWZ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DhJjC8RN.js} +17 -17
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UJewH4Il.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0z-41dr.js} +2 -2
- package/dist/{FmMultiselectDialog-Br5_D-b5.js → FmMultiselectDialog-CswtC1AP.js} +16 -16
- package/dist/{FmMultiselectDialog-BrJlUxMZ.js → FmMultiselectDialog-DTYS42tQ.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BvIdnKjl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DXkTWOFj.js} +11 -11
- package/dist/{ImportView-fEnHrPWZ.js → ImportView-DvECDSkN.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVELkyVY.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Dg0gQJFw.js} +1 -1
- package/dist/{IngredientGroupView-B1owkM3C.js → IngredientGroupView-PYLW-jdb.js} +5 -5
- package/dist/{IngredientsView-BTKXnnw5.js → IngredientsView-fzMFu5Kd.js} +14 -14
- package/dist/{IntegrationView-C2jarXxh.js → IntegrationView-BJraR9yF.js} +12 -12
- package/dist/{InventoryBindingForm-Gq8XfKbC.js → InventoryBindingForm-BCLg-OVi.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BVkTXQvA.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BAoFz9Xy.js} +14 -14
- package/dist/{InventoryBindingSummary-CqQu65hi.js → InventoryBindingSummary-BaihKVNj.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DIukT297.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sxY8hdeR.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2aU4Ij2.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BhOwDBiq.js} +2 -2
- package/dist/{PublishView-CBYg-KST.js → PublishView-BMmcC0Vq.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-C_jrGksW.js → PurchaseOrderPrintPreview-BWl9FIys.js} +11 -11
- package/dist/{ReceiveRequestView-iawt5dnN.js → ReceiveRequestView-Cn5w0cDy.js} +19 -19
- package/dist/RecipeView-BW5KCmkx.js +1557 -0
- package/dist/{StockView-oSkKCORB.js → StockView-oxOQh8eg.js} +116 -116
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BJ3gnpTq.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-JGzokQMQ.js} +1 -1
- package/dist/{SupplierView-tipIYgX7.js → SupplierView-TSbv1g43.js} +11 -11
- package/dist/{SurchargeView-CW1lsyEC.js → SurchargeView-CZDaMAk2.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-B3FZqxjr.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BH90OuDB.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D86rTw7c.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D0geyvW9.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-cGzs-dHw.js → TransferDetails.vue_vue_type_script_setup_true_lang-Dxm9e7s0.js} +72 -72
- package/dist/{TransferTemplateView-dSJSgnil.js → TransferTemplateView-Ds4UfF6z.js} +15 -15
- package/dist/{UnitView-VHi5WMrF.js → UnitView-DNfslwNA.js} +6 -6
- package/dist/{WarehouseView-DLZaux-w.js → WarehouseView-DkcPy1mF.js} +5 -5
- package/dist/{WastageTemplateView-KyvwCkdu.js → WastageTemplateView-CP_sQsdU.js} +60 -60
- package/dist/api/inventory.d.ts +126 -36
- package/dist/api/netsuite.d.ts +8 -1
- package/dist/{app-Cq2T5z21.js → app-Do7d9F2j.js} +7340 -6379
- package/dist/app.d.ts +200 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-TwdeC6qT.js → closing-template-BidraMN0.js} +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
- package/dist/{date2-Dunl1OWI.js → date2-xmQqiCBU.js} +1 -1
- package/dist/{dayjs.min-D_81k3gd.js → dayjs.min-C2InbamH.js} +16 -16
- package/dist/{decimal-B9DLzi9Y.js → decimal-BHD_uD50.js} +2 -2
- package/dist/{defineDeepModel-B15nBS96.js → defineDeepModel-CoBQILOz.js} +1 -1
- package/dist/{duplicate-template-BSxFsv2u.js → duplicate-template-BfJ6g_ux.js} +1 -1
- package/dist/{feature-KwyjpPTq.js → feature-BsP8KV0O.js} +94 -89
- package/dist/{format-time-from-id-BfL9V23H.js → format-time-from-id-CLLM4KoK.js} +1 -1
- package/dist/{format-unit-display-BfSLhflE.js → format-unit-display-BLtS1XcY.js} +10 -10
- package/dist/{import-export.helper-TUsgMxew.js → import-export.helper-DQvkoWnj.js} +7 -7
- package/dist/{index-C2H5HeFF.js → index-CUm44l1O.js} +1 -1
- package/dist/{index-DTnKa-sF.js → index-CrS7Yig1.js} +1471 -1412
- package/dist/{index-CXtJlhZZ.js → index-p8EMSeUp.js} +3 -3
- package/dist/{lodash-DRR2nS2T.js → lodash-BNImU2Ov.js} +1 -1
- package/dist/{netsuite-CAFiEoX5.js → netsuite-DpB7HK5Q.js} +60 -60
- package/dist/{purchase-order-template-CSJXceBK.js → purchase-order-template-DgbM99CO.js} +1 -1
- package/dist/{rules-BdFLL1aa.js → rules-CmGXcEkE.js} +18 -18
- package/dist/{stock-B80FaSS2.js → stock-C1-SWNBT.js} +1 -1
- package/dist/{stock-CgsgvX9b.js → stock-CUjopFIE.js} +3 -3
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +8 -1
- package/dist/stores/inventory.d.ts +119 -30
- package/dist/{supplier-BsycjnD1.js → supplier-BLGyTOqT.js} +2 -2
- package/dist/{surcharge-BH6kETCu.js → surcharge-BA-bc8RT.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B2cFOc3t.js → use-ingredient-select-dialog-BDMeEnJC.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CKUtJDHW.js → use-inventory-binding-dialog-CmAOk0d6.js} +2 -2
- package/dist/{use-template-enabled-locations-2-tPL4lEZ_.js → use-template-enabled-locations-2-DSQY7vNB.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +64 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +192 -24
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
- package/dist/{vue-i18n-BhCaMx-9.js → vue-i18n-CIhYwCeG.js} +321 -321
- package/dist/{xlsx-DJaY2xSF.js → xlsx-BcQjo8NU.js} +398 -398
- package/dist/{xlsx.util-CZq_uKdw.js → xlsx.util-GOcrvAJZ.js} +1 -1
- package/package.json +1 -1
- package/dist/RecipeView-Dv5BTxLT.js +0 -646
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as B, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Re } from "vue";
|
|
2
|
-
import { o as Pe, p as Ue, q as Ee, c as G, r as Ne, S as Le, u as Ie } from "./app-
|
|
2
|
+
import { o as Pe, p as Ue, q as Ee, c as G, r as Ne, S as Le, u as Ie } from "./app-Do7d9F2j.js";
|
|
3
3
|
import { useCoreStore as Fe, useI18n as O } from "@feedmepos/mf-common";
|
|
4
4
|
import { D as _e, R as J } from "./row-action.enum-BcW_L_nE.js";
|
|
5
5
|
import { c as qe } from "./component-DpCUABT3.js";
|
|
6
6
|
import { u as Be, _ as ze } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
7
7
|
import { F as U } from "./form-mode.enum-BKiNVH6A.js";
|
|
8
8
|
import { useDialogChild as je, useDialog as Ce, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
9
|
-
import { R as L } from "./rules-
|
|
9
|
+
import { R as L } from "./rules-CmGXcEkE.js";
|
|
10
10
|
import { c as se, u as re } from "./googlemap-Dm8ERVai.js";
|
|
11
|
-
import { d as Ge } from "./index-
|
|
11
|
+
import { d as Ge } from "./index-CUm44l1O.js";
|
|
12
12
|
import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
import { _ as He } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
14
|
-
import { u as Ye } from "./feature-
|
|
14
|
+
import { u as Ye } from "./feature-BsP8KV0O.js";
|
|
15
15
|
import { _ as Ze, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
16
|
-
import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0z-41dr.js";
|
|
17
17
|
const X = Pe((v, h) => {
|
|
18
18
|
const b = Fe();
|
|
19
19
|
return {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as D, h as P, defineComponent as G, resolveComponent as E, openBlock as I, createElementBlock as A, createElementVNode as y, normalizeClass as Y, createTextVNode as Z, toDisplayString as F, unref as x, createCommentVNode as z, createVNode as C, createBlock as O, Fragment as K, renderList as X, computed as U, watch as pe, createSlots as Ue, withCtx as j, isRef as Le, normalizeStyle as Qe, Teleport as Xe, normalizeProps as Ze, guardReactiveProps as et, mergeProps as je } from "vue";
|
|
2
2
|
import { u as tt, _ as nt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
3
|
import { useI18n as J, useCoreStore as Ne } from "@feedmepos/mf-common";
|
|
4
4
|
import { D as ce, R as B } from "./row-action.enum-BcW_L_nE.js";
|
|
5
|
-
import { _ as st } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as st } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0z-41dr.js";
|
|
6
6
|
import { useDialog as ee, useDialogChild as ot, useSnackbar as te, FmButtonVariant as Q, components as H, useProxiedModel as Be, useBreakpoints as at } from "@feedmepos/ui-library";
|
|
7
7
|
import { defineStore as ze, storeToRefs as Oe } from "pinia";
|
|
8
8
|
import { _ as lt, F as me } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
9
|
-
import { u as he, c as We, a as ne,
|
|
9
|
+
import { u as he, c as We, a as ne, I as N, n as rt, G as fe } from "./app-Do7d9F2j.js";
|
|
10
10
|
import { F as q } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
11
|
import { c as it } from "./component-DpCUABT3.js";
|
|
12
|
-
import { f as ut } from "./format-time-from-id-
|
|
13
|
-
import { u as se } from "./closing-template-
|
|
14
|
-
import { _ as ct } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { t as ve, a as He, d as Ke, s as Ye, r as mt } from "./xlsx.util-
|
|
16
|
-
import { f as dt, a as de } from "./date2-
|
|
17
|
-
import { u as pt } from "./netsuite-
|
|
12
|
+
import { f as ut } from "./format-time-from-id-CLLM4KoK.js";
|
|
13
|
+
import { u as se } from "./closing-template-BidraMN0.js";
|
|
14
|
+
import { _ as ct } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D0geyvW9.js";
|
|
15
|
+
import { t as ve, a as He, d as Ke, s as Ye, r as mt } from "./xlsx.util-GOcrvAJZ.js";
|
|
16
|
+
import { f as dt, a as de } from "./date2-xmQqiCBU.js";
|
|
17
|
+
import { u as pt } from "./netsuite-DpB7HK5Q.js";
|
|
18
18
|
import { F as ft } from "./FmDroppableField-J0xUsOTV.js";
|
|
19
|
-
import { u as vt } from "./duplicate-template-
|
|
20
|
-
import { A as yt, R as Ge } from "./rules-
|
|
21
|
-
import { d as ht } from "./defineDeepModel-
|
|
22
|
-
import { u as gt } from "./use-template-enabled-locations-2-
|
|
23
|
-
import { a as bt } from "./FmMultiselectDialog-
|
|
24
|
-
import { _ as _t } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { u as vt } from "./duplicate-template-BfJ6g_ux.js";
|
|
20
|
+
import { A as yt, R as Ge } from "./rules-CmGXcEkE.js";
|
|
21
|
+
import { d as ht } from "./defineDeepModel-CoBQILOz.js";
|
|
22
|
+
import { u as gt } from "./use-template-enabled-locations-2-DSQY7vNB.js";
|
|
23
|
+
import { a as bt } from "./FmMultiselectDialog-CswtC1AP.js";
|
|
24
|
+
import { _ as _t } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-BH90OuDB.js";
|
|
25
25
|
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
26
26
|
const oe = ze(
|
|
27
27
|
"wastageTable",
|
|
28
28
|
function() {
|
|
29
|
-
const { t: l } = J(), i = ee(), v = ye(), p =
|
|
29
|
+
const { t: l } = J(), i = ee(), v = ye(), p = D({}), r = D(new Array()), m = D(!1), o = he(), t = se(), s = D({}), u = D();
|
|
30
30
|
async function b() {
|
|
31
31
|
if (o._currentLocation)
|
|
32
32
|
try {
|
|
@@ -184,7 +184,7 @@ const oe = ze(
|
|
|
184
184
|
header: () => l("inventory.adjustment.template.table.status"),
|
|
185
185
|
enableSorting: !1,
|
|
186
186
|
cell(a) {
|
|
187
|
-
const d = a.row.original, e = d._rev, c = a.row.original.locations || o.locations, $ = c.filter((h) => !!(s.value[h.dbName] || []).find((
|
|
187
|
+
const d = a.row.original, e = d._rev, c = a.row.original.locations || o.locations, $ = c.filter((h) => !!(s.value[h.dbName] || []).find((M) => M._id === d._id && M._rev === e)).length === c.length;
|
|
188
188
|
return P(
|
|
189
189
|
"div",
|
|
190
190
|
{
|
|
@@ -624,7 +624,7 @@ function Ft(f) {
|
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
const At = { class: "flex" }, Rt = { class: "flex flex-col flex-1" },
|
|
627
|
+
const At = { class: "flex" }, Rt = { class: "flex flex-col flex-1" }, Mt = { class: "flex flex-col" }, Dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, Et = {
|
|
628
628
|
key: 0,
|
|
629
629
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
630
630
|
}, Pt = { key: 0 }, jt = { class: "ml-auto" }, Vt = { key: 0 }, Ve = /* @__PURE__ */ G({
|
|
@@ -637,7 +637,7 @@ const At = { class: "flex" }, Rt = { class: "flex flex-col flex-1" }, Dt = { cla
|
|
|
637
637
|
errors: {}
|
|
638
638
|
},
|
|
639
639
|
setup(f) {
|
|
640
|
-
const l = f, { t: i } = J(), v =
|
|
640
|
+
const l = f, { t: i } = J(), v = D(!1), p = () => {
|
|
641
641
|
l.errors.length && (v.value = !v.value);
|
|
642
642
|
};
|
|
643
643
|
return (r, m) => {
|
|
@@ -652,8 +652,8 @@ const At = { class: "flex" }, Rt = { class: "flex flex-col flex-1" }, Dt = { cla
|
|
|
652
652
|
}]),
|
|
653
653
|
onClick: p
|
|
654
654
|
}, [
|
|
655
|
-
y("div",
|
|
656
|
-
y("div",
|
|
655
|
+
y("div", Mt, [
|
|
656
|
+
y("div", Dt, [
|
|
657
657
|
y("div", {
|
|
658
658
|
class: Y({
|
|
659
659
|
"text-fm-color-system-error-300": r.errors.length
|
|
@@ -720,7 +720,7 @@ const At = { class: "flex" }, Rt = { class: "flex flex-col flex-1" }, Dt = { cla
|
|
|
720
720
|
}, Gt = { class: "fm-typo-en-body-lg-600" }, Jt = /* @__PURE__ */ G({
|
|
721
721
|
__name: "AdjustmentTemplateImport",
|
|
722
722
|
setup(f) {
|
|
723
|
-
const l =
|
|
723
|
+
const l = D(null), i = ot(), v = te(), p = D(!1), r = D(!1), m = D(new Array()), o = D([]), t = D([]), s = U(
|
|
724
724
|
() => !!m.value.length || o.value.some((T) => T.errors.length) || t.value.some((T) => T.errors.length)
|
|
725
725
|
), u = U(
|
|
726
726
|
() => !!o.value.length || !!t.value.length
|
|
@@ -876,7 +876,7 @@ const At = { class: "flex" }, Rt = { class: "flex flex-col flex-1" }, Dt = { cla
|
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
878
|
}), ye = ze("wastageTemplateAction", () => {
|
|
879
|
-
const { t: f } = J(), l = ee(), i = te(), v = se(), p = vt(), r = oe(), { loading: m } = Oe(r), o =
|
|
879
|
+
const { t: f } = J(), l = ee(), i = te(), v = se(), p = vt(), r = oe(), { loading: m } = Oe(r), o = D({});
|
|
880
880
|
function t() {
|
|
881
881
|
o.value = {
|
|
882
882
|
mode: q.CREATE,
|
|
@@ -1033,7 +1033,7 @@ const At = { class: "flex" }, Rt = { class: "flex flex-col flex-1" }, Dt = { cla
|
|
|
1033
1033
|
}
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
|
-
const T =
|
|
1036
|
+
const T = D({});
|
|
1037
1037
|
function w(e) {
|
|
1038
1038
|
T.value = {
|
|
1039
1039
|
template: e,
|
|
@@ -1143,7 +1143,7 @@ const At = { class: "flex" }, Rt = { class: "flex flex-col flex-1" }, Dt = { cla
|
|
|
1143
1143
|
m.value = !1, r.fetchTemplates();
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
const a =
|
|
1146
|
+
const a = D({});
|
|
1147
1147
|
function d() {
|
|
1148
1148
|
a.value = {
|
|
1149
1149
|
show: !0,
|
|
@@ -1425,7 +1425,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1425
1425
|
},
|
|
1426
1426
|
emits: ["update:modelValue"],
|
|
1427
1427
|
setup(f, { expose: l, emit: i }) {
|
|
1428
|
-
const v = f, p =
|
|
1428
|
+
const v = f, p = D(v.modelValue), { t: r } = J(), m = i, o = ne(), t = ee(), s = D(), u = D("");
|
|
1429
1429
|
l({
|
|
1430
1430
|
validateInputs: () => {
|
|
1431
1431
|
var _, n;
|
|
@@ -1467,22 +1467,22 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1467
1467
|
function k() {
|
|
1468
1468
|
var $;
|
|
1469
1469
|
const _ = o.skus.map((h) => {
|
|
1470
|
-
var S,
|
|
1470
|
+
var S, M;
|
|
1471
1471
|
return {
|
|
1472
1472
|
type: "sku",
|
|
1473
1473
|
name: h.name,
|
|
1474
1474
|
description: h.code,
|
|
1475
1475
|
data: h,
|
|
1476
|
-
searchKeys: (S = h.customAttributes) != null && S.tag ? [(
|
|
1476
|
+
searchKeys: (S = h.customAttributes) != null && S.tag ? [(M = h.customAttributes) == null ? void 0 : M.tag] : void 0
|
|
1477
1477
|
};
|
|
1478
1478
|
}), n = o.recipes.map((h) => {
|
|
1479
|
-
var S,
|
|
1479
|
+
var S, M;
|
|
1480
1480
|
return {
|
|
1481
1481
|
type: "recipe",
|
|
1482
1482
|
name: h.name,
|
|
1483
1483
|
description: "",
|
|
1484
1484
|
data: h,
|
|
1485
|
-
searchKeys: (S = h.customAttributes) != null && S.tag ? [(
|
|
1485
|
+
searchKeys: (S = h.customAttributes) != null && S.tag ? [(M = h.customAttributes) == null ? void 0 : M.tag] : void 0
|
|
1486
1486
|
};
|
|
1487
1487
|
}), a = (($ = o.menu.cache) == null ? void 0 : $.modules.item.map((h) => ({
|
|
1488
1488
|
type: "menu",
|
|
@@ -1490,10 +1490,10 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1490
1490
|
description: `${h.code}`,
|
|
1491
1491
|
data: h
|
|
1492
1492
|
}))) ?? [], d = [..._, ...n, ...a].map((h) => {
|
|
1493
|
-
var
|
|
1493
|
+
var M;
|
|
1494
1494
|
const S = [h.type == "sku" ? "Ingredient" : h.type == "recipe" ? "Recipe" : "Menu"];
|
|
1495
1495
|
if (h.type == "sku" || h.type == "recipe") {
|
|
1496
|
-
const V = (
|
|
1496
|
+
const V = (M = h.data.customAttributes) == null ? void 0 : M.tag;
|
|
1497
1497
|
V && S.push(V);
|
|
1498
1498
|
}
|
|
1499
1499
|
return {
|
|
@@ -1537,7 +1537,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1537
1537
|
variant: "tertiary"
|
|
1538
1538
|
}
|
|
1539
1539
|
}).onPrimary((h) => {
|
|
1540
|
-
const S = p.value ?? [],
|
|
1540
|
+
const S = p.value ?? [], M = h.map((L) => {
|
|
1541
1541
|
const V = S.find((ae) => ae.id === L.data._id);
|
|
1542
1542
|
return V ? {
|
|
1543
1543
|
...V
|
|
@@ -1549,7 +1549,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1549
1549
|
disabledMeasurements: []
|
|
1550
1550
|
};
|
|
1551
1551
|
});
|
|
1552
|
-
|
|
1552
|
+
M.sort((L, V) => L.name.localeCompare(V.name)), console.log(p.value), p.value = M, m("update:modelValue", w.value);
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
1555
|
return (_, n) => {
|
|
@@ -1634,7 +1634,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1634
1634
|
setLocations(t) {
|
|
1635
1635
|
i.locations = t;
|
|
1636
1636
|
}
|
|
1637
|
-
}), o =
|
|
1637
|
+
}), o = D();
|
|
1638
1638
|
return l({
|
|
1639
1639
|
validateInputs: () => {
|
|
1640
1640
|
var t, s;
|
|
@@ -1716,7 +1716,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1716
1716
|
items: []
|
|
1717
1717
|
};
|
|
1718
1718
|
}
|
|
1719
|
-
const u =
|
|
1719
|
+
const u = D(v.modelValue ?? s()), b = D(((d = v.modelValue) == null ? void 0 : d._id) ?? `${Math.random()}`);
|
|
1720
1720
|
pe(
|
|
1721
1721
|
() => v.show,
|
|
1722
1722
|
(e) => {
|
|
@@ -1724,7 +1724,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1724
1724
|
e && (u.value = v.modelValue ?? s(), b.value = ((c = v.modelValue) == null ? void 0 : c._id) ?? `${Math.random()}`);
|
|
1725
1725
|
}
|
|
1726
1726
|
);
|
|
1727
|
-
const g =
|
|
1727
|
+
const g = D(!1), T = U(() => {
|
|
1728
1728
|
switch (v.mode) {
|
|
1729
1729
|
case q.READ:
|
|
1730
1730
|
return "";
|
|
@@ -1734,7 +1734,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1734
1734
|
return o("inventory.adjustment.template.update.title");
|
|
1735
1735
|
}
|
|
1736
1736
|
return "";
|
|
1737
|
-
}), w =
|
|
1737
|
+
}), w = D();
|
|
1738
1738
|
l({
|
|
1739
1739
|
validateInputs: () => {
|
|
1740
1740
|
var e, c;
|
|
@@ -1810,7 +1810,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1810
1810
|
const R = E("FmMenuDivider"), $ = E("FmCard"), h = E("FmButton"), S = E("FmSideSheet");
|
|
1811
1811
|
return I(), O(S, {
|
|
1812
1812
|
modelValue: x(t),
|
|
1813
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
1813
|
+
"onUpdate:modelValue": c[2] || (c[2] = (M) => Le(t) ? t.value = M : null),
|
|
1814
1814
|
"dismiss-away": "",
|
|
1815
1815
|
"close-button": "",
|
|
1816
1816
|
"max-width": 800
|
|
@@ -1828,7 +1828,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1828
1828
|
class: "flex flex-col gap-8 px-12 py-16 mb-16"
|
|
1829
1829
|
}, {
|
|
1830
1830
|
default: j(() => {
|
|
1831
|
-
var
|
|
1831
|
+
var M;
|
|
1832
1832
|
return [
|
|
1833
1833
|
y("div", fn, [
|
|
1834
1834
|
y("div", vn, F(x(o)("inventory.transfer.template.details.templateSummary")), 1)
|
|
@@ -1840,7 +1840,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1840
1840
|
y("div", bn, [
|
|
1841
1841
|
y("div", _n, [
|
|
1842
1842
|
Z(F(x(de)(u.value.updatedAt)) + " ", 1),
|
|
1843
|
-
(
|
|
1843
|
+
(M = u.value.updatedBy) != null && M.name ? (I(), A(K, { key: 0 }, [
|
|
1844
1844
|
Z(" (" + F(u.value.updatedBy.name) + ") ", 1)
|
|
1845
1845
|
], 64)) : z("", !0)
|
|
1846
1846
|
]),
|
|
@@ -1861,7 +1861,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1861
1861
|
ref: w,
|
|
1862
1862
|
onValidationSuccess: n,
|
|
1863
1863
|
"model-value": u.value,
|
|
1864
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1864
|
+
"onUpdate:modelValue": c[0] || (c[0] = (M) => u.value = M),
|
|
1865
1865
|
disabled: g.value,
|
|
1866
1866
|
key: b.value
|
|
1867
1867
|
}, null, 8, ["model-value", "disabled"]))
|
|
@@ -1877,7 +1877,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1877
1877
|
disabled: g.value,
|
|
1878
1878
|
variant: "tertiary",
|
|
1879
1879
|
label: x(o)("common.close"),
|
|
1880
|
-
onClick: c[1] || (c[1] = (
|
|
1880
|
+
onClick: c[1] || (c[1] = (M) => p("update:show", !1))
|
|
1881
1881
|
}, null, 8, ["disabled", "label"])
|
|
1882
1882
|
])
|
|
1883
1883
|
]),
|
|
@@ -1898,11 +1898,11 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
1898
1898
|
}, Rn = {
|
|
1899
1899
|
key: 3,
|
|
1900
1900
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex flex-col gap-12"
|
|
1901
|
-
},
|
|
1901
|
+
}, Mn = { class: "fm-typo-en-body-md-600" }, Dn = { class: "fm-typo-en-body-md-600" }, En = { key: 4 }, Pn = { class: "fm-typo-en-body-md-600" }, jn = { class: "fm-typo-en-body-md-600" }, Vn = { class: "flex sm:flex-col xs:flex-col justify-end gap-8 w-full mb-16" }, Un = /* @__PURE__ */ G({
|
|
1902
1902
|
__name: "WastageTemplatePublish",
|
|
1903
1903
|
emits: ["close"],
|
|
1904
1904
|
setup(f, { emit: l }) {
|
|
1905
|
-
const i =
|
|
1905
|
+
const i = D(!1), v = te(), p = se(), r = oe(), { t: m } = J(), o = l;
|
|
1906
1906
|
async function t() {
|
|
1907
1907
|
i.value = !0;
|
|
1908
1908
|
try {
|
|
@@ -1946,10 +1946,10 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
1946
1946
|
tag: "p"
|
|
1947
1947
|
}, {
|
|
1948
1948
|
started: j(() => [
|
|
1949
|
-
y("span",
|
|
1949
|
+
y("span", Mn, F(x(de)(new Date(s.value.createdAt))), 1)
|
|
1950
1950
|
]),
|
|
1951
1951
|
finished: j(() => [
|
|
1952
|
-
y("span",
|
|
1952
|
+
y("span", Dn, F(x(de)(new Date(s.value.updatedAt))), 1)
|
|
1953
1953
|
]),
|
|
1954
1954
|
_: 1
|
|
1955
1955
|
}),
|
|
@@ -1997,7 +1997,7 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
1997
1997
|
},
|
|
1998
1998
|
emits: ["update:show", "submitted"],
|
|
1999
1999
|
setup(f, { emit: l }) {
|
|
2000
|
-
const i = f, v = Be(i, "show"), p =
|
|
2000
|
+
const i = f, v = Be(i, "show"), p = D(""), r = te(), m = ee(), o = D([]), t = l, s = oe(), u = se(), b = D(!1);
|
|
2001
2001
|
pe(
|
|
2002
2002
|
() => i.show,
|
|
2003
2003
|
(n) => {
|
|
@@ -2067,7 +2067,7 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
2067
2067
|
b.value = !1;
|
|
2068
2068
|
}
|
|
2069
2069
|
}
|
|
2070
|
-
}, k =
|
|
2070
|
+
}, k = D(), _ = () => {
|
|
2071
2071
|
var n, a;
|
|
2072
2072
|
(a = (n = k.value) == null ? void 0 : n.validateInputs) == null || a.call(n);
|
|
2073
2073
|
};
|
|
@@ -2107,21 +2107,21 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
2107
2107
|
separator: ""
|
|
2108
2108
|
}, {
|
|
2109
2109
|
default: j(() => [
|
|
2110
|
-
(I(!0), A(K, null, X(o.value, (S,
|
|
2111
|
-
key:
|
|
2110
|
+
(I(!0), A(K, null, X(o.value, (S, M) => (I(), A("div", {
|
|
2111
|
+
key: M,
|
|
2112
2112
|
class: "flex items-center gap-8 px-1 py-2"
|
|
2113
2113
|
}, [
|
|
2114
2114
|
y("div", zn, [
|
|
2115
2115
|
C(e, {
|
|
2116
|
-
initials: String(
|
|
2116
|
+
initials: String(M + 1),
|
|
2117
2117
|
size: "sm"
|
|
2118
2118
|
}, null, 8, ["initials"])
|
|
2119
2119
|
]),
|
|
2120
2120
|
y("div", On, [
|
|
2121
2121
|
C(c, {
|
|
2122
2122
|
class: "cursor-pointer text-fm-color-typo-tertiary",
|
|
2123
|
-
modelValue: o.value[
|
|
2124
|
-
"onUpdate:modelValue": (L) => o.value[
|
|
2123
|
+
modelValue: o.value[M],
|
|
2124
|
+
"onUpdate:modelValue": (L) => o.value[M] = L,
|
|
2125
2125
|
maxLength: 500,
|
|
2126
2126
|
rules: [x(Ge)()]
|
|
2127
2127
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rules"])
|
|
@@ -2131,7 +2131,7 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
2131
2131
|
variant: "tertiary",
|
|
2132
2132
|
size: "md",
|
|
2133
2133
|
"prepend-icon": "delete",
|
|
2134
|
-
onClick: (L) => g(
|
|
2134
|
+
onClick: (L) => g(M)
|
|
2135
2135
|
}, null, 8, ["onClick"])
|
|
2136
2136
|
])
|
|
2137
2137
|
]))), 128))
|
|
@@ -2171,7 +2171,7 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
2171
2171
|
ye()
|
|
2172
2172
|
), u = he(), b = ee(), g = oe(), T = tt(), { breakpoints: w } = at();
|
|
2173
2173
|
u.watchLocation(g.fetchTemplates);
|
|
2174
|
-
const k = U(() => g.loading), _ =
|
|
2174
|
+
const k = U(() => g.loading), _ = D(""), n = U(() => w.value.xs || w.value.sm), a = U(() => n.value ? 10 : 20);
|
|
2175
2175
|
function d(h) {
|
|
2176
2176
|
switch (h) {
|
|
2177
2177
|
case B.Add:
|
|
@@ -2258,7 +2258,7 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
2258
2258
|
m();
|
|
2259
2259
|
};
|
|
2260
2260
|
return (h, S) => {
|
|
2261
|
-
const
|
|
2261
|
+
const M = E("FmButton"), L = E("FmTable");
|
|
2262
2262
|
return I(), A(K, null, [
|
|
2263
2263
|
C(nt, {
|
|
2264
2264
|
title: x(l)("inventory.adjustment.template.wastage.title"),
|
|
@@ -2276,7 +2276,7 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
2276
2276
|
])
|
|
2277
2277
|
}, [
|
|
2278
2278
|
y("div", Yn, [
|
|
2279
|
-
C(
|
|
2279
|
+
C(M, {
|
|
2280
2280
|
class: "ml-auto",
|
|
2281
2281
|
"prepend-icon": "edit",
|
|
2282
2282
|
key: "Reason for wastage",
|
|
@@ -2320,7 +2320,7 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
2320
2320
|
onRowClick: (W) => x(v)(W)
|
|
2321
2321
|
}, {
|
|
2322
2322
|
default: j((W) => {
|
|
2323
|
-
var ae, be, _e, le, xe, we, Te, ke, re, $e, Se, Ie, Ce, Fe, Ae, ie, Re,
|
|
2323
|
+
var ae, be, _e, le, xe, we, Te, ke, re, $e, Se, Ie, Ce, Fe, Ae, ie, Re, Me, De, Ee, ue, Pe;
|
|
2324
2324
|
return [
|
|
2325
2325
|
y("div", Jn, [
|
|
2326
2326
|
y("div", qn, [
|
|
@@ -2349,7 +2349,7 @@ const $n = /* @__PURE__ */ xt(Tn, [["render", kn]]), Sn = { class: "flex flex-co
|
|
|
2349
2349
|
]),
|
|
2350
2350
|
y("div", null, [
|
|
2351
2351
|
C(x(me), {
|
|
2352
|
-
render: (Ee = (
|
|
2352
|
+
render: (Ee = (De = (Me = W.status) == null ? void 0 : Me.column) == null ? void 0 : De.columnDef) == null ? void 0 : Ee.cell,
|
|
2353
2353
|
props: (Pe = (ue = W.status) == null ? void 0 : ue.getContext) == null ? void 0 : Pe.call(ue)
|
|
2354
2354
|
}, null, 8, ["render", "props"])
|
|
2355
2355
|
])
|