@feedmepos/mf-inventory-portal 1.2.31-dev.2 → 1.2.31-dev.3
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-BMf3N76A.js → App-B-WNsmAG.js} +3 -3
- package/dist/{ApprovalView-ue3fJ7v_.js → ApprovalView-DQi0XFmN.js} +6 -6
- package/dist/{BindingsDialog-ByMj3RjY.js → BindingsDialog-Cx4fEpHS.js} +2 -2
- package/dist/{BindingsPicker-DgSjaVrq.js → BindingsPicker-DGfp2MzU.js} +2 -2
- package/dist/{BindingsTable-BUu0r9Zo.js → BindingsTable-DL7BI4SC.js} +4 -4
- package/dist/{ClosingDraftView-R2NPPsXD.js → ClosingDraftView-j3924s99.js} +8 -8
- package/dist/{ClosingHistoryView-1W_y3JEM.js → ClosingHistoryView-Dto_61bZ.js} +3 -3
- package/dist/{ClosingTemplateView-BC9w8vZ0.js → ClosingTemplateView-BXzUL5Jc.js} +63 -64
- package/dist/{DeliveryOrderPrintPreview-zJhQH8By.js → DeliveryOrderPrintPreview-FrW3oyrD.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CJ_bPMX_.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMRQb-me.js} +5 -5
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cphr1J6U.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-frjrO0sv.js} +3 -3
- package/dist/{FmMultiselectDialog-DEt2I4_c.js → FmMultiselectDialog-66369F8L.js} +63 -62
- package/dist/{FmMultiselectDialog-DSGQitHT.js → FmMultiselectDialog-Dx0o4EXh.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-spkm7SZK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-hGy_zxob.js} +3 -3
- package/dist/{ImportView-ank5c4AV.js → ImportView-8bdFM2le.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DhE2M3CD.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-6YWvuajr.js} +1 -1
- package/dist/{IngredientGroupView-DVT0Yyae.js → IngredientGroupView-DNJ9i8FJ.js} +6 -6
- package/dist/{IngredientsView-BcmPBoOb.js → IngredientsView-BQV62iRc.js} +15 -15
- package/dist/{IntegrationView-0JY21Fjn.js → IntegrationView-DdjyJMIa.js} +11 -11
- package/dist/{InventoryBindingForm-FhDgibuy.js → InventoryBindingForm-CJacciDp.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DL2pd-U1.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DcHAS2mI.js} +4 -4
- package/dist/{InventoryBindingSummary-Rj4rLIp-.js → InventoryBindingSummary-DivPGJmB.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CtqVtwbE.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGnzF9Y-.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BJZmEJ_9.js → PremiumBadge.vue_vue_type_script_setup_true_lang-kBjgDNjc.js} +2 -2
- package/dist/{PublishView-NyqU4ogZ.js → PublishView-BsrYIDHu.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Cua1-cfS.js → PurchaseOrderPrintPreview-BWvJYn3H.js} +1 -1
- package/dist/{ReceiveRequestView-BQtpsAOR.js → ReceiveRequestView-DmG9dEJS.js} +20 -20
- package/dist/{RecipeView-Dcv3Pnvu.js → RecipeView-Dt_kJwvE.js} +8 -8
- package/dist/{StockView-D2jlQ_IE.js → StockView-BgFKkgZT.js} +16 -16
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang--F8e7pUI.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DzCb7l2o.js} +1 -1
- package/dist/{SupplierView-CGAtUowc.js → SupplierView-DhBm-m5W.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Cd9R8l0c.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BqUcJtoV.js} +2 -2
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CW5xPij2.js +153 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BqxG1uZu.js → TransferDetails.vue_vue_type_script_setup_true_lang-CxybW4_c.js} +14 -14
- package/dist/{TransferTemplateView-DMuw4LtY.js → TransferTemplateView-C_ZrimOH.js} +15 -15
- package/dist/{UnitView-CwlT0HpP.js → UnitView-wKMnAjUO.js} +6 -6
- package/dist/{WarehouseView-mT3A-9uq.js → WarehouseView-BG7tXYmF.js} +5 -5
- package/dist/{WastageTemplateView-C3_KtgFQ.js → WastageTemplateView-g4fCdiB1.js} +54 -55
- package/dist/{app-C2nudFnk.js → app-D4IM0wHL.js} +1347 -1325
- package/dist/{app-rgirz_52.js → app-uBuHtW8m.js} +2546 -2443
- package/dist/app.js +1 -1
- package/dist/{closing-template-fRmBNy4y.js → closing-template-Bv6Myxdn.js} +1 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
- package/dist/components/TemplatePublishDialog.d.ts +1 -1
- package/dist/{date2-ngfXp6E2.js → date2-Dd9ptrqd.js} +1 -1
- package/dist/{dayjs.min-BvcCfiWk.js → dayjs.min-CWI11hCD.js} +1 -1
- package/dist/{decimal-h7clfS02.js → decimal-C3Z-ftMJ.js} +2 -2
- package/dist/{defineDeepModel-C_n3Ytw6.js → defineDeepModel-BfiLqnop.js} +1 -1
- package/dist/{duplicate-template-CHiQ3uHE.js → duplicate-template-B2EuoFxA.js} +1 -1
- package/dist/{feature-CrcV14lV.js → feature-ZHDFuTZ_.js} +2 -2
- package/dist/{format-time-from-id-ljQJ36VV.js → format-time-from-id-CSpCF7Ee.js} +1 -1
- package/dist/{format-unit-display-r1oynPKD.js → format-unit-display-BcWGiCVI.js} +10 -10
- package/dist/{import-export.helper-C5TdWJLB.js → import-export.helper-C7ae5erR.js} +5 -5
- package/dist/{index-DluVXb7-.js → index-BeB8ecvv.js} +1 -1
- package/dist/{index-gutj1NVB.js → index-Dre7jvrB.js} +1 -1
- package/dist/{index-C0Q6KaoS.js → index-s4uXiu5o.js} +3 -3
- package/dist/{lodash-CJ0fXmvq.js → lodash-DrzA6QGq.js} +1 -1
- package/dist/{netsuite-Dp3KQlN9.js → netsuite-DFbsrLfl.js} +371 -359
- package/dist/{purchase-order-template-CTICqz-0.js → purchase-order-template-J0Uqb3IF.js} +1 -1
- package/dist/{rules-CWhZXxdv.js → rules-RP2F9r_X.js} +3 -3
- package/dist/{stock-DHpvp37w.js → stock-Ctj1mNkn.js} +1 -1
- package/dist/{stock-BpY8FTMC.js → stock-DOmkE0Nf.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{supplier-CfiMZbRg.js → supplier-DQToh3we.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DrYxhoTU.js → use-ingredient-select-dialog-kOstDeTC.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BAYX4xEg.js → use-inventory-binding-dialog-DrrHdZ4N.js} +2 -2
- package/dist/use-template-enabled-locations-2-B2Hu1KET.js +120 -0
- package/dist/{vue-i18n-BNE50uOV.js → vue-i18n-C-GaaY2p.js} +316 -316
- package/dist/{xlsx-BSJt4rqr.js → xlsx-Bg6KF2T6.js} +1 -1
- package/dist/{xlsx.util-DEF923iN.js → xlsx.util-CegYq3Hg.js} +1 -1
- package/package.json +3 -3
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Dy5JfpNp.js +0 -123
- package/dist/use-template-enabled-locations-2-DbNAe5rC.js +0 -111
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ref as R, h as P, defineComponent as K, resolveComponent as D, openBlock as I, createElementBlock as A, createElementVNode as g, normalizeClass as H, createTextVNode as me, toDisplayString as C, unref as w, createCommentVNode as z, createVNode as S, createBlock as
|
|
1
|
+
import { ref as R, h as P, defineComponent as K, resolveComponent as D, openBlock as I, createElementBlock as A, createElementVNode as g, normalizeClass as H, createTextVNode as me, toDisplayString as C, unref as w, createCommentVNode as z, createVNode as S, createBlock as L, Fragment as Y, renderList as Q, computed as B, watch as ve, createSlots as Ue, withCtx as V, isRef as Le, normalizeStyle as Qe, Teleport as Xe, normalizeProps as Ze, guardReactiveProps as et, mergeProps as Ve } 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 G, useCoreStore as Be } from "@feedmepos/mf-common";
|
|
4
|
-
import { D as re, R as
|
|
5
|
-
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as re, R as U } from "./row-action.enum-BcW_L_nE.js";
|
|
5
|
+
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-frjrO0sv.js";
|
|
6
6
|
import { useDialog as X, useDialogChild as st, useSnackbar as Z, FmButtonVariant as ie, components as W, useProxiedModel as Ne, useBreakpoints as at } from "@feedmepos/ui-library";
|
|
7
7
|
import { defineStore as ze, storeToRefs as Oe } from "pinia";
|
|
8
8
|
import { c as lt, _ as rt, F as ce } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
9
|
-
import { u as ye, c as We, a as ee, C as j, n as it, A as de } from "./app-
|
|
9
|
+
import { u as ye, c as We, a as ee, C as j, n as it, A as de } from "./app-D4IM0wHL.js";
|
|
10
10
|
import { F as J } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import { f as ct } from "./format-time-from-id-
|
|
12
|
-
import { u as te } from "./closing-template-
|
|
13
|
-
import { _ as ut } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { t as pe, a as He, d as Ye, s as Ke, r as mt } from "./xlsx.util-
|
|
15
|
-
import { f as dt, a as ue } from "./date2-
|
|
16
|
-
import { u as pt } from "./netsuite-
|
|
11
|
+
import { f as ct } from "./format-time-from-id-CSpCF7Ee.js";
|
|
12
|
+
import { u as te } from "./closing-template-Bv6Myxdn.js";
|
|
13
|
+
import { _ as ut } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CW5xPij2.js";
|
|
14
|
+
import { t as pe, a as He, d as Ye, s as Ke, r as mt } from "./xlsx.util-CegYq3Hg.js";
|
|
15
|
+
import { f as dt, a as ue } from "./date2-Dd9ptrqd.js";
|
|
16
|
+
import { u as pt } from "./netsuite-DFbsrLfl.js";
|
|
17
17
|
import { F as ft } from "./FmDroppableField-J0xUsOTV.js";
|
|
18
|
-
import { u as vt } from "./duplicate-template-
|
|
19
|
-
import { A as yt, R as Ge } from "./rules-
|
|
20
|
-
import { d as ht } from "./defineDeepModel-
|
|
21
|
-
import { u as gt } from "./use-template-enabled-locations-2-
|
|
22
|
-
import { a as bt } from "./FmMultiselectDialog-
|
|
23
|
-
import { _ as _t } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
18
|
+
import { u as vt } from "./duplicate-template-B2EuoFxA.js";
|
|
19
|
+
import { A as yt, R as Ge } from "./rules-RP2F9r_X.js";
|
|
20
|
+
import { d as ht } from "./defineDeepModel-BfiLqnop.js";
|
|
21
|
+
import { u as gt } from "./use-template-enabled-locations-2-B2Hu1KET.js";
|
|
22
|
+
import { a as bt } from "./FmMultiselectDialog-66369F8L.js";
|
|
23
|
+
import { _ as _t } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-BqUcJtoV.js";
|
|
24
24
|
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
25
25
|
const ne = ze(
|
|
26
26
|
"wastageTable",
|
|
@@ -45,13 +45,12 @@ const ne = ze(
|
|
|
45
45
|
title: n.name,
|
|
46
46
|
doc: n,
|
|
47
47
|
controller: {
|
|
48
|
-
publishAll: async () => {
|
|
49
|
-
|
|
50
|
-
const i = await r.publishSingleDoc(
|
|
48
|
+
publishAll: async (i) => {
|
|
49
|
+
const y = i || n.locations, _ = await r.publishSingleDoc(
|
|
51
50
|
n._id,
|
|
52
|
-
|
|
51
|
+
y == null ? void 0 : y.map(($) => $.dbName)
|
|
53
52
|
);
|
|
54
|
-
return o.value =
|
|
53
|
+
return o.value = _.publishedRevByLocation || {}, o.value;
|
|
55
54
|
},
|
|
56
55
|
publishAtLocation: async (i) => {
|
|
57
56
|
const y = await r.publishSingleDoc(n._id, [
|
|
@@ -111,15 +110,15 @@ const ne = ze(
|
|
|
111
110
|
}
|
|
112
111
|
function k(n, e) {
|
|
113
112
|
switch (e = We(e), n) {
|
|
114
|
-
case
|
|
113
|
+
case U.Details:
|
|
115
114
|
return h.viewTemplate(e);
|
|
116
|
-
case
|
|
115
|
+
case U.Edit:
|
|
117
116
|
return h.updateTemplate(e);
|
|
118
|
-
case
|
|
117
|
+
case U.Delete:
|
|
119
118
|
return h.deleteTemplate(e, l, d);
|
|
120
|
-
case
|
|
119
|
+
case U.Publish:
|
|
121
120
|
return T(e);
|
|
122
|
-
case
|
|
121
|
+
case U.Duplicate:
|
|
123
122
|
return h.duplicateTemplate(e, l, d);
|
|
124
123
|
}
|
|
125
124
|
}
|
|
@@ -194,10 +193,10 @@ const ne = ze(
|
|
|
194
193
|
id: "action",
|
|
195
194
|
cell(n) {
|
|
196
195
|
const e = n.row.original, i = [
|
|
197
|
-
re[
|
|
198
|
-
re[
|
|
199
|
-
re[
|
|
200
|
-
re[
|
|
196
|
+
re[U.Edit],
|
|
197
|
+
re[U.Duplicate],
|
|
198
|
+
re[U.Delete],
|
|
199
|
+
re[U.Publish]
|
|
201
200
|
];
|
|
202
201
|
return lt(i, (y) => k(y, e));
|
|
203
202
|
},
|
|
@@ -668,7 +667,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
|
|
|
668
667
|
}, C((r = c.locations) != null && r.length ? w(m)("inventory.closing.template.import.nLocations", { count: (o = c.locations) == null ? void 0 : o.length }) : w(m)("inventory.closing.template.import.allLocations")) + ", " + C(w(m)("inventory.closing.template.import.nItems", { count: (u = c.items) == null ? void 0 : u.length })), 3)
|
|
669
668
|
]),
|
|
670
669
|
g("div", Vt, [
|
|
671
|
-
c.errors.length ? (I(),
|
|
670
|
+
c.errors.length ? (I(), L(t, {
|
|
672
671
|
key: 0,
|
|
673
672
|
name: h.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
674
673
|
size: "md"
|
|
@@ -692,7 +691,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
|
|
|
692
691
|
]);
|
|
693
692
|
};
|
|
694
693
|
}
|
|
695
|
-
}),
|
|
694
|
+
}), Ut = { class: "flex flex-col gap-24" }, Lt = { class: "fm-typo-en-body-md-400" }, Bt = {
|
|
696
695
|
key: 0,
|
|
697
696
|
class: "flex items-center gap-8"
|
|
698
697
|
}, Nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zt = { class: "flex flex-col gap-8" }, Ot = { class: "line-clamp-2 text-ellipsis break-all" }, Wt = {
|
|
@@ -756,8 +755,8 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
|
|
|
756
755
|
T && v(T);
|
|
757
756
|
}), (T, d) => {
|
|
758
757
|
const x = D("FmCircularProgress"), k = D("FmIcon"), p = D("FmButton");
|
|
759
|
-
return I(), A("div",
|
|
760
|
-
g("div",
|
|
758
|
+
return I(), A("div", Ut, [
|
|
759
|
+
g("div", Lt, C(w(b)("inventory.adjustment.template.import.message")), 1),
|
|
761
760
|
c.value ? (I(), A("div", Bt, [
|
|
762
761
|
g("div", null, [
|
|
763
762
|
S(x, {
|
|
@@ -776,7 +775,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
|
|
|
776
775
|
onFileUpload: d[0] || (d[0] = (n) => s.value = n),
|
|
777
776
|
label: w(b)("inventory.ingredient.import.uploadTemplate"),
|
|
778
777
|
"button-label": w(b)("inventory.ingredient.import.selectFile")
|
|
779
|
-
},
|
|
778
|
+
}, Ue({ _: 2 }, [
|
|
780
779
|
s.value ? {
|
|
781
780
|
name: "default",
|
|
782
781
|
fn: V(({ openFileDialog: n }) => [
|
|
@@ -791,11 +790,11 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
|
|
|
791
790
|
}
|
|
792
791
|
])
|
|
793
792
|
}, [
|
|
794
|
-
a.value ? (I(),
|
|
793
|
+
a.value ? (I(), L(x, {
|
|
795
794
|
key: 0,
|
|
796
795
|
size: "md",
|
|
797
796
|
color: "neutral-gray-200"
|
|
798
|
-
})) : (I(),
|
|
797
|
+
})) : (I(), L(k, {
|
|
799
798
|
key: 1,
|
|
800
799
|
name: o.value ? "error" : "attach_file",
|
|
801
800
|
outline: "",
|
|
@@ -841,7 +840,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
|
|
|
841
840
|
]), 1032, ["class", "label", "button-label"]),
|
|
842
841
|
u.value ? (I(), A("div", Kt, [
|
|
843
842
|
g("div", Gt, C(w(b)("inventory.ingredient.import.summary")), 1),
|
|
844
|
-
(I(!0), A(Y, null, Q(t.value, (n, e) => (I(),
|
|
843
|
+
(I(!0), A(Y, null, Q(t.value, (n, e) => (I(), L(je, {
|
|
845
844
|
key: e,
|
|
846
845
|
name: n.template.name,
|
|
847
846
|
locations: n.template.locations,
|
|
@@ -849,7 +848,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
|
|
|
849
848
|
errors: n.errors,
|
|
850
849
|
type: "create"
|
|
851
850
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128)),
|
|
852
|
-
(I(!0), A(Y, null, Q(r.value, (n) => (I(),
|
|
851
|
+
(I(!0), A(Y, null, Q(r.value, (n) => (I(), L(je, {
|
|
853
852
|
key: n.template._id,
|
|
854
853
|
name: n.template.name,
|
|
855
854
|
locations: n.template.locations,
|
|
@@ -1493,7 +1492,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1493
1492
|
placeholder: "Filter items",
|
|
1494
1493
|
modelValue: u.value,
|
|
1495
1494
|
"onUpdate:modelValue": x[2] || (x[2] = (y) => u.value = y)
|
|
1496
|
-
},
|
|
1495
|
+
}, Ue({ _: 2 }, [
|
|
1497
1496
|
u.value ? {
|
|
1498
1497
|
name: "append",
|
|
1499
1498
|
fn: V(() => [
|
|
@@ -1506,7 +1505,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1506
1505
|
key: "0"
|
|
1507
1506
|
} : void 0
|
|
1508
1507
|
]), 1032, ["modelValue"]),
|
|
1509
|
-
(I(),
|
|
1508
|
+
(I(), L(e, {
|
|
1510
1509
|
"search-value": u.value,
|
|
1511
1510
|
"column-defs": v.value,
|
|
1512
1511
|
"row-data": a.value,
|
|
@@ -1555,7 +1554,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1555
1554
|
}
|
|
1556
1555
|
}), (r, o) => {
|
|
1557
1556
|
const u = D("FmTextField"), b = D("FmButton"), v = D("FmTable"), T = D("FmForm");
|
|
1558
|
-
return I(),
|
|
1557
|
+
return I(), L(T, {
|
|
1559
1558
|
ref_key: "formRef",
|
|
1560
1559
|
ref: t,
|
|
1561
1560
|
class: "flex flex-col gap-32",
|
|
@@ -1713,9 +1712,9 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1713
1712
|
}
|
|
1714
1713
|
return (i, y) => {
|
|
1715
1714
|
const _ = D("FmMenuDivider"), $ = D("FmCard"), F = D("FmButton"), M = D("FmSideSheet");
|
|
1716
|
-
return I(),
|
|
1715
|
+
return I(), L(M, {
|
|
1717
1716
|
modelValue: w(r),
|
|
1718
|
-
"onUpdate:modelValue": y[2] || (y[2] = (E) =>
|
|
1717
|
+
"onUpdate:modelValue": y[2] || (y[2] = (E) => Le(r) ? r.value = E : null),
|
|
1719
1718
|
"dismiss-away": "",
|
|
1720
1719
|
"close-button": "",
|
|
1721
1720
|
"max-width": 800
|
|
@@ -1727,7 +1726,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1727
1726
|
]),
|
|
1728
1727
|
default: V(() => [
|
|
1729
1728
|
u.value.updatedAt ? (I(), A(Y, { key: 0 }, [
|
|
1730
|
-
u.value.updatedAt ? (I(),
|
|
1729
|
+
u.value.updatedAt ? (I(), L($, {
|
|
1731
1730
|
key: 0,
|
|
1732
1731
|
variant: "outlined",
|
|
1733
1732
|
class: "flex flex-col gap-8 px-12 py-16 mb-16"
|
|
@@ -1760,7 +1759,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
|
|
|
1760
1759
|
_: 1
|
|
1761
1760
|
})) : z("", !0)
|
|
1762
1761
|
], 64)) : z("", !0),
|
|
1763
|
-
(I(),
|
|
1762
|
+
(I(), L(ln, {
|
|
1764
1763
|
class: "w-full",
|
|
1765
1764
|
ref_key: "formRef",
|
|
1766
1765
|
ref: d,
|
|
@@ -1895,7 +1894,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
|
|
|
1895
1894
|
]);
|
|
1896
1895
|
};
|
|
1897
1896
|
}
|
|
1898
|
-
}), Pn = { class: "flex flex-col gap-16" }, Vn = { class: "flex" }, jn = { class: "flex gap-24" },
|
|
1897
|
+
}), Pn = { class: "flex flex-col gap-16" }, Vn = { class: "flex" }, jn = { class: "flex gap-24" }, Un = { class: "flex" }, Ln = { class: "flex-1" }, Bn = { class: "flex" }, Nn = { class: "flex gap-8 items-center justify-start" }, zn = /* @__PURE__ */ K({
|
|
1899
1898
|
__name: "WastageTemplateReason",
|
|
1900
1899
|
props: {
|
|
1901
1900
|
show: { type: Boolean }
|
|
@@ -1978,9 +1977,9 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
|
|
|
1978
1977
|
};
|
|
1979
1978
|
return (p, n) => {
|
|
1980
1979
|
const e = D("FmButton"), i = D("FmAvatar"), y = D("FmTextField"), _ = D("FmList"), $ = D("FmForm"), F = D("FmSideSheet");
|
|
1981
|
-
return I(),
|
|
1980
|
+
return I(), L(F, {
|
|
1982
1981
|
modelValue: w(h),
|
|
1983
|
-
"onUpdate:modelValue": n[0] || (n[0] = (M) =>
|
|
1982
|
+
"onUpdate:modelValue": n[0] || (n[0] = (M) => Le(h) ? h.value = M : null),
|
|
1984
1983
|
header: "Reason for wastage",
|
|
1985
1984
|
"close-button": "",
|
|
1986
1985
|
"dismiss-away": !b.value,
|
|
@@ -2016,13 +2015,13 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
|
|
|
2016
2015
|
key: E,
|
|
2017
2016
|
class: "flex items-center gap-8 px-1 py-2"
|
|
2018
2017
|
}, [
|
|
2019
|
-
g("div",
|
|
2018
|
+
g("div", Un, [
|
|
2020
2019
|
S(i, {
|
|
2021
2020
|
initials: String(E + 1),
|
|
2022
2021
|
size: "sm"
|
|
2023
2022
|
}, null, 8, ["initials"])
|
|
2024
2023
|
]),
|
|
2025
|
-
g("div",
|
|
2024
|
+
g("div", Ln, [
|
|
2026
2025
|
S(y, {
|
|
2027
2026
|
class: "cursor-pointer text-fm-color-typo-tertiary",
|
|
2028
2027
|
modelValue: t.value[E],
|
|
@@ -2079,7 +2078,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
|
|
|
2079
2078
|
const x = B(() => v.loading), k = R(""), p = B(() => d.value.xs || d.value.sm), n = B(() => p.value ? 10 : 20);
|
|
2080
2079
|
function e(F) {
|
|
2081
2080
|
switch (F) {
|
|
2082
|
-
case
|
|
2081
|
+
case U.Add:
|
|
2083
2082
|
return m();
|
|
2084
2083
|
case "publish":
|
|
2085
2084
|
return i();
|
|
@@ -2108,7 +2107,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
|
|
|
2108
2107
|
const _ = B(() => p.value ? [
|
|
2109
2108
|
{
|
|
2110
2109
|
label: s("inventory.adjustment.template.create.title"),
|
|
2111
|
-
value:
|
|
2110
|
+
value: U.Add,
|
|
2112
2111
|
isPrimary: !0,
|
|
2113
2112
|
prependIcon: "add"
|
|
2114
2113
|
},
|
|
@@ -2135,7 +2134,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
|
|
|
2135
2134
|
] : [
|
|
2136
2135
|
{
|
|
2137
2136
|
label: s("inventory.adjustment.template.create.title"),
|
|
2138
|
-
value:
|
|
2137
|
+
value: U.Add,
|
|
2139
2138
|
isPrimary: !0,
|
|
2140
2139
|
prependIcon: "add"
|
|
2141
2140
|
},
|
|
@@ -2270,7 +2269,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
|
|
|
2270
2269
|
]),
|
|
2271
2270
|
_: 1
|
|
2272
2271
|
}, 8, ["title", "actions"]),
|
|
2273
|
-
(I(),
|
|
2272
|
+
(I(), L(Xe, { to: "body" }, [
|
|
2274
2273
|
S(xn, Ze(et(w(r))), null, 16),
|
|
2275
2274
|
S(gn, Ve(w(t), {
|
|
2276
2275
|
onSubmitted: M[2] || (M[2] = (N) => w(v).fetchTemplates())
|