@feedmepos/mf-inventory-portal 1.6.2 → 1.6.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-C61RakQ7.js → App-C9leB4t0.js} +4 -4
- package/dist/{ApprovalView-Cc1iYZqD.js → ApprovalView-CqOXr5Hw.js} +8 -8
- package/dist/{BindingsDialog-Chd2EdfO.js → BindingsDialog-DRalvlwp.js} +2 -2
- package/dist/{BindingsPicker-CXXnZKq5.js → BindingsPicker-zXli3Z1x.js} +2 -2
- package/dist/{BindingsTable-C5migJtC.js → BindingsTable--VoNPh7F.js} +3 -3
- package/dist/{BulkReceiveRequestView-9MSE2YVv.js → BulkReceiveRequestView-Bon7uDCJ.js} +19 -19
- package/dist/{ClosingDraftView-C4XBYgez.js → ClosingDraftView-CdxQiwuz.js} +195 -195
- package/dist/{ClosingHistoryView-C_OtcjwH.js → ClosingHistoryView-CTkdBXBa.js} +5 -5
- package/dist/{ClosingTemplateView-BZpuwhWe.js → ClosingTemplateView-h9ohxtwI.js} +14 -14
- package/dist/{DefaultView-Dnub2r0C.js → DefaultView-CLRzOH5K.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-U8g2O_pt.js → DeliveryOrderPrintPreview-vgPmHbtx.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-D3tETd4M.js → EmailDialog.vue_vue_type_script_setup_true_lang-CE9wwNB_.js} +23 -23
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DPVkPshX.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DTeWGr5O.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CCl3KLFs.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DaXycWeg.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BgR0wjB0.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CL9YNazx.js} +2 -2
- package/dist/{FmMultiselectDialog-DX3xMRs8.js → FmMultiselectDialog-BAMaksR7.js} +1 -1
- package/dist/{FmMultiselectDialog-BplRH37N.js → FmMultiselectDialog-Bnouf9vX.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-fKDQGIyW.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DnfFPNWn.js} +5 -5
- package/dist/{ImportView-BYQcNVFt.js → ImportView-DYhLRkQA.js} +51 -51
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bj3Bgpix.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B4n5-iRK.js} +1 -1
- package/dist/{IngredientGroupView-B52_Gj1M.js → IngredientGroupView-Dn15H-1E.js} +5 -5
- package/dist/{IngredientsView-dp1q1202.js → IngredientsView-9sp4RWOF.js} +15 -15
- package/dist/{IntegrationExplorerView-CFDjUZ1x.js → IntegrationExplorerView-DSj9e9rb.js} +352 -352
- package/dist/{IntegrationView-WxvHYqrr.js → IntegrationView-DbcMnd4z.js} +13 -13
- package/dist/{InventoryBindingForm-CgsJGTLO.js → InventoryBindingForm-6OXalr29.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoDwQAGq.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-6-CNpE55.js} +5 -5
- package/dist/{InventoryBindingSummary-CJPi-O24.js → InventoryBindingSummary-h7b4l6Wb.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-6WGw2Tnv.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cq_SuRtd.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D8iVxQQI.js → PremiumBadge.vue_vue_type_script_setup_true_lang-7CXXGTvk.js} +1 -1
- package/dist/{PublishView-DQxvMoL9.js → PublishView-BNml0c7h.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-YN89wJJe.js → PurchaseOrderPrintPreview-DMQ4-abx.js} +2 -2
- package/dist/{ReceiveRequestView-Dld-AD3X.js → ReceiveRequestView-BTHWRSHt.js} +13 -13
- package/dist/{RecipeView-DTeYl1vN.js → RecipeView-D7pdeDlr.js} +17 -17
- package/dist/{SettingsView-ZKDeU7-t.js → SettingsView-Ce3Fbejt.js} +4 -4
- package/dist/{StockView-iWDV-4Em.js → StockView-BGH5uWNi.js} +20 -20
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DKQR-Oe-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BegeXje7.js} +1 -1
- package/dist/{SupplierView-DIFYaNh0.js → SupplierView-BuyycuNM.js} +12 -12
- package/dist/{SurchargeView-Dg744-lq.js → SurchargeView-B3O9a7WC.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-a1NAKsHT.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-TJ4VhnI3.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BiMBRYQP.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BgkgLkWo.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BNb64xXp.js → TransferDetails.vue_vue_type_script_setup_true_lang-CwY2xCQV.js} +1315 -1315
- package/dist/{TransferTemplateView-OKkFfbJr.js → TransferTemplateView-CehWEgcU.js} +20 -20
- package/dist/{UnitCostHistoryView-BQD8QfVO.js → UnitCostHistoryView-N9UZOJVt.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DrZ0DaVk.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpVe38HB.js} +4 -4
- package/dist/{UnitView-WB01UGKV.js → UnitView-YB56lxTp.js} +7 -7
- package/dist/{WarehouseView-xzBYaKJc.js → WarehouseView-DtBYtULO.js} +5 -5
- package/dist/{WastageTemplateView-HQpsfs5m.js → WastageTemplateView-BJQ94zo8.js} +14 -14
- package/dist/{app-jwcH8Mn8.js → app-CnwVdB-r.js} +33 -33
- package/dist/app.js +1 -1
- package/dist/{closing-template-nSKzJbXQ.js → closing-template-B0GQRFlS.js} +1 -1
- package/dist/{date2-CcBFYPpF.js → date2-CaCMUbxN.js} +1 -1
- package/dist/{dayjs.min-CArZjoIW.js → dayjs.min-C413l7qz.js} +1 -1
- package/dist/{decimal-kAd3KrAk.js → decimal-dpWXqHCT.js} +2 -2
- package/dist/{defineDeepModel-DW3GGnCB.js → defineDeepModel-wTAgCIGa.js} +1 -1
- package/dist/{duplicate-template-Dju7ozO-.js → duplicate-template-DTkeAcof.js} +1 -1
- package/dist/{feature-Dwlpa3ga.js → feature-CSsMjXm4.js} +2 -2
- package/dist/{format-time-from-id-C8qHJtCE.js → format-time-from-id-A1BqDOzj.js} +1 -1
- package/dist/{format-unit-display-DW_s2GAu.js → format-unit-display-CHS1Vvqm.js} +12 -12
- package/dist/{import-export.helper-BLEUR_2a.js → import-export.helper-C8qIeMrV.js} +49 -49
- package/dist/{index-CQqLXfqq.js → index-CCdOkfwD.js} +3 -3
- package/dist/{index-DeMIqTWp.js → index-CEbJe2zv.js} +1 -1
- package/dist/{index-DX29MkLw.js → index-dgiwVVtQ.js} +1 -1
- package/dist/{inventory-core-dart.default-BOlwkIOh.js → inventory-core-dart.default-CBuBQE02.js} +1 -1
- package/dist/{jszip.min-UvNpneu6.js → jszip.min-k8R8v9tK.js} +127 -127
- package/dist/{lz-string-BJjf0Fvk.js → lz-string-OLkSz-NK.js} +1 -1
- package/dist/{netsuite-ojatCiHQ.js → netsuite-Cm4tUcLt.js} +2 -2
- package/dist/{number-PbBeNwvZ.js → number-CF9W8sDX.js} +3 -3
- package/dist/{predefined-templates-C11X8192.js → predefined-templates-DmBAGnMN.js} +1 -1
- package/dist/{purchase-order-template-CMQsOjp6.js → purchase-order-template-C0ynPqX6.js} +1 -1
- package/dist/{recalculationUtils-DOIaJCEk.js → recalculationUtils-pDs8JNho.js} +1 -1
- package/dist/{rules-iqyXkujx.js → rules-CYCN4sgu.js} +2 -2
- package/dist/{stock-BhMYoMNR.js → stock-D8S1alJa.js} +1 -1
- package/dist/{supplier-XEzdhDaU.js → supplier-CiPnrjsq.js} +2 -2
- package/dist/{surcharge-Ors_mdMv.js → surcharge-CanooUK6.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BQohyyG-.js → uom-rules-eVbKU0_1.js} +1 -1
- package/dist/{use-ingredient-select-dialog-DJ-u5t4P.js → use-ingredient-select-dialog-Lpcjl8Ws.js} +2 -2
- package/dist/{use-inventory-binding-dialog-D3W-HnQ8.js → use-inventory-binding-dialog-CA_03e_q.js} +2 -2
- package/dist/{use-template-enabled-locations-DVF4RYya.js → use-template-enabled-locations-CWMCe4nl.js} +2 -2
- package/dist/{use-transfer-locations-vRfZN9tb.js → use-transfer-locations-rvGiFI0e.js} +2 -2
- package/dist/{useHrmPermission-z87O-oAT.js → useHrmPermission-wOFwl59u.js} +1 -1
- package/dist/{useNavigationMenu-DMRHryMp.js → useNavigationMenu-BoDv65KI.js} +2 -2
- package/dist/{useSseClient-6AYDEsLw.js → useSseClient-DbWYwuT8.js} +3 -3
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.spec.d.ts +1 -0
- package/dist/{vue-i18n-nOka-XyP.js → vue-i18n-Bov_Y0eC.js} +111 -111
- package/dist/{xlsx.util-DDX-Y6FY.js → xlsx.util-0_Y_Q66v.js} +397 -397
- package/package.json +5 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as De, ref as F, computed as J, watch as ze, resolveComponent as Y, openBlock as
|
|
1
|
+
import { defineComponent as De, ref as F, computed as J, watch as ze, resolveComponent as Y, openBlock as N, createElementBlock as D, createVNode as A, normalizeClass as ce, unref as i, createSlots as Ke, withCtx as Q, createElementVNode as n, createBlock as se, toDisplayString as a, createCommentVNode as Z, Fragment as Be, renderList as Pe, shallowRef as $e, h as Ie, createTextVNode as k } from "vue";
|
|
2
2
|
import { u as Ve, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
|
|
3
3
|
import { useCoreStore as Re, useI18n as je } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as We, useSnackbar as Oe, useDialog as Le, useBreakpoints as Je } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as Xe } from "./feature-
|
|
6
|
-
import { a as ie } from "./app-
|
|
7
|
-
import "./dayjs.min-
|
|
5
|
+
import { u as Xe } from "./feature-CSsMjXm4.js";
|
|
6
|
+
import { a as ie } from "./app-CnwVdB-r.js";
|
|
7
|
+
import "./dayjs.min-C413l7qz.js";
|
|
8
8
|
import "./app-DiX-EfV6.js";
|
|
9
9
|
import "./FmAdminBadge-DjnBAgyv.js";
|
|
10
|
-
import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-
|
|
11
|
-
import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-
|
|
10
|
+
import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-0_Y_Q66v.js";
|
|
11
|
+
import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-C8qIeMrV.js";
|
|
12
12
|
import { r as nt } from "./random-CSbEbElR.js";
|
|
13
|
-
import { c as Ae, a as pe } from "./number-
|
|
13
|
+
import { c as Ae, a as pe } from "./number-CF9W8sDX.js";
|
|
14
14
|
import { F as ot } from "./FmDroppableField-J0xUsOTV.js";
|
|
15
15
|
function Ee() {
|
|
16
16
|
return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${nt()}`;
|
|
@@ -144,13 +144,13 @@ function it(U, { ignoreErrors: e = !1 } = {}) {
|
|
|
144
144
|
} else
|
|
145
145
|
y.push(`Invalid type '${o.data.type}'. Must be 'INGREDIENT', 'RECIPE', or 'SKU_GROUP'`);
|
|
146
146
|
o.data.amount || y.push(`Invalid amount '${o.data.amount}'. Must be a valid number`);
|
|
147
|
-
let
|
|
148
|
-
if ((o.data.unit || o.data.baseUnit) && o.data.type !== "RECIPE" && o.data.type !== "SKU_GROUP" && (
|
|
147
|
+
let G;
|
|
148
|
+
if ((o.data.unit || o.data.baseUnit) && o.data.type !== "RECIPE" && o.data.type !== "SKU_GROUP" && (G = l.find((w) => {
|
|
149
149
|
var I, ee;
|
|
150
150
|
return w.abbrev === o.data.baseUnit && ((I = w.name) == null ? void 0 : I.trim()) === ((ee = o.data.unit) == null ? void 0 : ee.trim());
|
|
151
|
-
}),
|
|
151
|
+
}), G || (o.data.baseUnit && o.data.unit ? y.push(`Cannot find unit with symbol '${o.data.baseUnit}' and name '${o.data.unit}'`) : o.data.baseUnit ? y.push(`Cannot find unit with symbol '${o.data.baseUnit}'`) : o.data.unit && y.push(`Cannot find unit with name '${o.data.unit}'`))), y.length > 0 && s.push(`Row ${o.index + 6}: ${y.join(", ")}`), e || y.length === 0) {
|
|
152
152
|
let w;
|
|
153
|
-
if (o.data.type === "RECIPE" || o.data.type === "SKU_GROUP" ? w = void 0 : w = (R =
|
|
153
|
+
if (o.data.type === "RECIPE" || o.data.type === "SKU_GROUP" ? w = void 0 : w = (R = G == null ? void 0 : G.measurements) == null ? void 0 : R.find((I) => I.abbrev === o.data.measurementName), o.data.recipeName)
|
|
154
154
|
u[o.data.recipeName] = {
|
|
155
155
|
name: o.data.recipeName,
|
|
156
156
|
customAttributes: o.data.customAttributes ? Ze(o.data.customAttributes) : {},
|
|
@@ -243,8 +243,8 @@ function at(U) {
|
|
|
243
243
|
data: f
|
|
244
244
|
};
|
|
245
245
|
}).filter((p) => {
|
|
246
|
-
const { recipeName: b, type: f, code: d, name: o, amount: y, unit: _, baseUnit:
|
|
247
|
-
return b || f || d || o || y || _ ||
|
|
246
|
+
const { recipeName: b, type: f, code: d, name: o, amount: y, unit: _, baseUnit: G, measurementName: w, customAttributes: I } = p.data;
|
|
247
|
+
return b || f || d || o || y || _ || G || w || I;
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
250
|
function lt() {
|
|
@@ -252,7 +252,7 @@ function lt() {
|
|
|
252
252
|
{ id: "name", name: "Unit Name" },
|
|
253
253
|
{ id: "symbol", name: "Symbol" },
|
|
254
254
|
{ id: "precision", name: "Precision" },
|
|
255
|
-
{ id: "measurement_name", name: "Measurement
|
|
255
|
+
{ id: "measurement_name", name: "Measurement Symbol" },
|
|
256
256
|
{ id: "measurement_symbol", name: "Measurement Symbol" },
|
|
257
257
|
{ id: "measurement_conversion", name: "Measurement Conversion" }
|
|
258
258
|
];
|
|
@@ -342,8 +342,8 @@ function ut() {
|
|
|
342
342
|
{ id: "name", name: "Item Name" },
|
|
343
343
|
{ id: "amount", name: "Amount" },
|
|
344
344
|
{ id: "unit", name: "Unit" },
|
|
345
|
-
{ id: "baseUnit", name: "
|
|
346
|
-
{ id: "measurementName", name: "Measurement
|
|
345
|
+
{ id: "baseUnit", name: "Unit Symbol" },
|
|
346
|
+
{ id: "measurementName", name: "Measurement Symbol" },
|
|
347
347
|
{ id: "customAttributes", name: "Custom Attributes" }
|
|
348
348
|
];
|
|
349
349
|
let h = [];
|
|
@@ -370,12 +370,12 @@ function ut() {
|
|
|
370
370
|
];
|
|
371
371
|
}),
|
|
372
372
|
...f.map((o, y) => {
|
|
373
|
-
var _,
|
|
373
|
+
var _, G, w, I, ee, ve, ye, ge, fe, ae, be, le, he, xe, _e, we;
|
|
374
374
|
return [
|
|
375
375
|
!b.length && y === 0 ? u.name : "",
|
|
376
376
|
"INGREDIENT",
|
|
377
377
|
((_ = l[o.id]) == null ? void 0 : _.code) || "",
|
|
378
|
-
((
|
|
378
|
+
((G = l[o.id]) == null ? void 0 : G.name) || "",
|
|
379
379
|
+pe(o.amount),
|
|
380
380
|
o.measurement ? ((I = (w = l[o.id]) == null ? void 0 : w.unit) == null ? void 0 : I.name) || "" : ((ve = (ee = l[o.id]) == null ? void 0 : ee.unit) == null ? void 0 : ve.name) || "",
|
|
381
381
|
o.measurement ? ((ge = (ye = l[o.id]) == null ? void 0 : ye.unit) == null ? void 0 : ge.abbrev) || "" : ((ae = (fe = l[o.id]) == null ? void 0 : fe.unit) == null ? void 0 : ae.abbrev) || "",
|
|
@@ -387,12 +387,12 @@ function ut() {
|
|
|
387
387
|
];
|
|
388
388
|
}),
|
|
389
389
|
...d.map((o, y) => {
|
|
390
|
-
var _,
|
|
390
|
+
var _, G;
|
|
391
391
|
return [
|
|
392
392
|
b.length === 0 && f.length === 0 && y === 0 ? u.name : "",
|
|
393
393
|
"SKU_GROUP",
|
|
394
394
|
((_ = s[o.id]) == null ? void 0 : _.ref) || "",
|
|
395
|
-
((
|
|
395
|
+
((G = s[o.id]) == null ? void 0 : G.name) || "",
|
|
396
396
|
+pe(o.amount),
|
|
397
397
|
"",
|
|
398
398
|
"unit",
|
|
@@ -515,20 +515,20 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
515
515
|
}
|
|
516
516
|
return (f, d) => {
|
|
517
517
|
const o = Y("FmCircularProgress"), y = Y("FmIcon"), _ = Y("FmButton");
|
|
518
|
-
return
|
|
518
|
+
return N(), D("div", yt, [
|
|
519
519
|
A(ot, {
|
|
520
520
|
class: ce({
|
|
521
521
|
"w-full": !0,
|
|
522
522
|
"h-[200px]": !e.value
|
|
523
523
|
}),
|
|
524
524
|
accept: ".xlsx,.xls",
|
|
525
|
-
onFileUpload: d[0] || (d[0] = (
|
|
525
|
+
onFileUpload: d[0] || (d[0] = (G) => e.value = G),
|
|
526
526
|
label: i(u)("inventory.ingredient.import.uploadTemplate"),
|
|
527
527
|
"button-label": i(u)("inventory.ingredient.import.selectFile")
|
|
528
528
|
}, Ke({ _: 2 }, [
|
|
529
529
|
e.value ? {
|
|
530
530
|
name: "default",
|
|
531
|
-
fn: Q(({ openFileDialog:
|
|
531
|
+
fn: Q(({ openFileDialog: G }) => [
|
|
532
532
|
n("div", gt, [
|
|
533
533
|
n("div", {
|
|
534
534
|
class: ce([
|
|
@@ -540,11 +540,11 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
540
540
|
}
|
|
541
541
|
])
|
|
542
542
|
}, [
|
|
543
|
-
g.value ? (
|
|
543
|
+
g.value ? (N(), se(o, {
|
|
544
544
|
key: 0,
|
|
545
545
|
size: "md",
|
|
546
546
|
color: "neutral-gray-200"
|
|
547
|
-
})) : (
|
|
547
|
+
})) : (N(), se(y, {
|
|
548
548
|
key: 1,
|
|
549
549
|
name: l.value ? "error" : "check_circle",
|
|
550
550
|
color: l.value ? "system-error-300" : "system-success-400",
|
|
@@ -562,17 +562,17 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
562
562
|
])
|
|
563
563
|
}, a(l.value ? i(u)("inventory.ingredient.import.error.invalidContent") : "File valid"), 3)
|
|
564
564
|
]),
|
|
565
|
-
g.value ? Z("", !0) : (
|
|
565
|
+
g.value ? Z("", !0) : (N(), D("div", ht, [
|
|
566
566
|
A(_, {
|
|
567
567
|
label: i(u)("inventory.ingredient.import.replaceFile"),
|
|
568
568
|
variant: l.value ? "destructive" : "secondary",
|
|
569
569
|
"prepend-icon": l.value ? void 0 : "autorenew",
|
|
570
|
-
onClick:
|
|
570
|
+
onClick: G
|
|
571
571
|
}, null, 8, ["label", "variant", "prepend-icon", "onClick"])
|
|
572
572
|
]))
|
|
573
573
|
], 2),
|
|
574
|
-
h.value.length ? (
|
|
575
|
-
(
|
|
574
|
+
h.value.length ? (N(), D("div", xt, [
|
|
575
|
+
(N(!0), D(Be, null, Pe(h.value, (w, I) => (N(), D("div", {
|
|
576
576
|
key: I,
|
|
577
577
|
class: "flex gap-8 items-center"
|
|
578
578
|
}, [
|
|
@@ -589,7 +589,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
589
589
|
key: "0"
|
|
590
590
|
} : void 0
|
|
591
591
|
]), 1032, ["class", "label", "button-label"]),
|
|
592
|
-
s.value ? (
|
|
592
|
+
s.value ? (N(), D("div", wt, [
|
|
593
593
|
n("div", It, a(i(u)("inventory.ingredient.import.summary")), 1),
|
|
594
594
|
n("div", Et, a(b()), 1)
|
|
595
595
|
])) : Z("", !0)
|
|
@@ -599,7 +599,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
599
599
|
}), kt = {
|
|
600
600
|
key: 0,
|
|
601
601
|
class: "bg-blue-50 border border-blue-200 rounded-lg p-16"
|
|
602
|
-
}, Rt = { class: "flex items-start gap-12" }, Ct = { class: "flex flex-col gap-8" }, Ut = { class: "fm-typo-en-body-md-400 text-blue-800" },
|
|
602
|
+
}, Rt = { class: "flex items-start gap-12" }, Ct = { class: "flex flex-col gap-8" }, Ut = { class: "fm-typo-en-body-md-400 text-blue-800" }, Gt = { class: "fm-typo-en-body-sm-400 text-blue-700" }, Nt = { class: "mb-8" }, Tt = ["innerHTML"], Mt = ["innerHTML"], $t = { class: "mb-8" }, Ft = { class: "mb-12" }, At = { class: "mb-12" }, Dt = { class: "mb-8" }, Bt = { class: "text-orange-600" }, Pt = {
|
|
603
603
|
key: 1,
|
|
604
604
|
class: "bg-white rounded-lg shadow"
|
|
605
605
|
}, jt = { class: "flex items-center justify-between p-16 border-b" }, Ot = { class: "fm-typo-en-title-md-600" }, Ht = { class: "fm-typo-en-body-sm-400 text-gray-600 mt-4" }, zt = {
|
|
@@ -624,7 +624,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
624
624
|
Ve();
|
|
625
625
|
const h = Xe(), { breakpoints: E } = Je(), x = ie(), r = F("");
|
|
626
626
|
F(!1);
|
|
627
|
-
const l = F(!1), s = F(null), u = F(!1), v = F(null), p = F(!1), b = F([]), f = F(null), d = F([]), o = F(!1), y = J(() => E.value.xs || E.value.sm), _ = J(() => y.value ? 10 : 20),
|
|
627
|
+
const l = F(!1), s = F(null), u = F(!1), v = F(null), p = F(!1), b = F([]), f = F(null), d = F([]), o = F(!1), y = J(() => E.value.xs || E.value.sm), _ = J(() => y.value ? 10 : 20), G = J(() => {
|
|
628
628
|
const m = s.value;
|
|
629
629
|
if (!m) return [];
|
|
630
630
|
const t = [], { units: C, skus: B, recipes: W, _invalidExcel: z, _invalidExcelMessage: X } = m, q = (M) => {
|
|
@@ -647,12 +647,12 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
647
647
|
}
|
|
648
648
|
};
|
|
649
649
|
return H(C, e("inventory.common.unit")), H(B, e("inventory.common.ingredient")), H(W, e("inventory.common.recipe")), t;
|
|
650
|
-
}), w = J(() =>
|
|
650
|
+
}), w = J(() => G.value.some(
|
|
651
651
|
(m) => m.errors && m.errors.length > 0
|
|
652
|
-
)), I = J(() =>
|
|
652
|
+
)), I = J(() => G.value.some(
|
|
653
653
|
(m) => m.status && m.status.includes("Invalid Excel")
|
|
654
654
|
)), ee = J(() => {
|
|
655
|
-
const m =
|
|
655
|
+
const m = G.value.find(
|
|
656
656
|
(t) => t.status && t.status.includes("Invalid Excel")
|
|
657
657
|
);
|
|
658
658
|
return (m == null ? void 0 : m.status) || e("inventory.common.invalidExcelFormatDetected");
|
|
@@ -789,7 +789,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
async function be() {
|
|
792
|
-
var m, t, C, B, W, z, X, q, H, M, O, j, K, P, me, ue, L, S, $, Ue,
|
|
792
|
+
var m, t, C, B, W, z, X, q, H, M, O, j, K, P, me, ue, L, S, $, Ue, Ge, Ne, Te, Me;
|
|
793
793
|
if (s.value) {
|
|
794
794
|
if (I.value) {
|
|
795
795
|
g.open({
|
|
@@ -876,7 +876,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
876
876
|
}
|
|
877
877
|
if (b.value.length > 0)
|
|
878
878
|
await ae();
|
|
879
|
-
else if (!(s.value.units && ((($ = s.value.units.create) == null ? void 0 : $.length) || ((Ue = s.value.units.update) == null ? void 0 : Ue.length)) || s.value.skus && (((
|
|
879
|
+
else if (!(s.value.units && ((($ = s.value.units.create) == null ? void 0 : $.length) || ((Ue = s.value.units.update) == null ? void 0 : Ue.length)) || s.value.skus && (((Ge = s.value.skus.create) == null ? void 0 : Ge.length) || ((Ne = s.value.skus.update) == null ? void 0 : Ne.length)) || s.value.recipes && (((Te = s.value.recipes.create) == null ? void 0 : Te.length) || ((Me = s.value.recipes.update) == null ? void 0 : Me.length))))
|
|
880
880
|
if (le(), d.value.length > 0) {
|
|
881
881
|
const c = d.value.filter((de) => de.type === "units").length, te = d.value.filter((de) => de.type === "ingredients").length, ne = d.value.filter((de) => de.type === "recipes").length, re = c + te + ne;
|
|
882
882
|
o.value = !0, g.open({
|
|
@@ -976,7 +976,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
976
976
|
]);
|
|
977
977
|
return (m, t) => {
|
|
978
978
|
const C = Y("FmIcon"), B = Y("FmButton"), W = Y("FmTable"), z = Y("FmCard"), X = Y("FmSideSheet"), q = Y("FmSpinner");
|
|
979
|
-
return i(h).isLoaded && i(h).enableBulkImport ? (
|
|
979
|
+
return i(h).isLoaded && i(h).enableBulkImport ? (N(), se(ke, {
|
|
980
980
|
key: 0,
|
|
981
981
|
title: i(e)("inventory.common.import"),
|
|
982
982
|
actions: _e.value,
|
|
@@ -994,7 +994,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
994
994
|
}
|
|
995
995
|
])
|
|
996
996
|
}, [
|
|
997
|
-
u.value ? Z("", !0) : (
|
|
997
|
+
u.value ? Z("", !0) : (N(), D("div", kt, [
|
|
998
998
|
n("div", Rt, [
|
|
999
999
|
A(C, {
|
|
1000
1000
|
name: "info",
|
|
@@ -1002,8 +1002,8 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1002
1002
|
}),
|
|
1003
1003
|
n("div", Ct, [
|
|
1004
1004
|
n("div", Ut, a(i(e)("inventory.ingredient.import.multiUploadTemplateInstruction")), 1),
|
|
1005
|
-
n("div",
|
|
1006
|
-
n("div",
|
|
1005
|
+
n("div", Gt, [
|
|
1006
|
+
n("div", Nt, [
|
|
1007
1007
|
n("strong", null, a(i(e)("inventory.ingredient.import.importInstructions.detailedGuide.title")), 1)
|
|
1008
1008
|
]),
|
|
1009
1009
|
t[39] || (t[39] = k(" 1. ")),
|
|
@@ -1100,12 +1100,12 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1100
1100
|
])
|
|
1101
1101
|
])
|
|
1102
1102
|
])),
|
|
1103
|
-
u.value ? (
|
|
1103
|
+
u.value ? (N(), D("div", Pt, [
|
|
1104
1104
|
n("div", jt, [
|
|
1105
1105
|
n("div", null, [
|
|
1106
1106
|
n("div", Ot, a(i(e)("inventory.common.importPreview")), 1),
|
|
1107
1107
|
n("div", Ht, [
|
|
1108
|
-
I.value ? (
|
|
1108
|
+
I.value ? (N(), D("span", zt, a(i(e)("inventory.common.errorExist")) + ": " + a(ee.value), 1)) : w.value ? (N(), D("span", Kt, a(i(e)("inventory.common.someItemsValidationErrors")), 1)) : (N(), D("span", Vt, a(i(e)("inventory.common.allItemsValidReadyImport")), 1))
|
|
1109
1109
|
])
|
|
1110
1110
|
]),
|
|
1111
1111
|
n("div", Wt, [
|
|
@@ -1126,7 +1126,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1126
1126
|
n("div", Lt, [
|
|
1127
1127
|
A(W, {
|
|
1128
1128
|
"column-defs": we.value,
|
|
1129
|
-
"row-data":
|
|
1129
|
+
"row-data": G.value,
|
|
1130
1130
|
"page-size": _.value,
|
|
1131
1131
|
"search-value": r.value,
|
|
1132
1132
|
loading: !1,
|
|
@@ -1134,7 +1134,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1134
1134
|
}, null, 8, ["column-defs", "row-data", "page-size", "search-value"])
|
|
1135
1135
|
])
|
|
1136
1136
|
])) : Z("", !0),
|
|
1137
|
-
o.value && d.value.length > 0 ? (
|
|
1137
|
+
o.value && d.value.length > 0 ? (N(), D("div", Jt, [
|
|
1138
1138
|
n("div", Xt, [
|
|
1139
1139
|
n("div", null, [
|
|
1140
1140
|
n("div", qt, a(i(e)("inventory.common.importErrors")), 1),
|
|
@@ -1177,7 +1177,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1177
1177
|
])
|
|
1178
1178
|
]),
|
|
1179
1179
|
default: Q(() => [
|
|
1180
|
-
v.value != null ? (
|
|
1180
|
+
v.value != null ? (N(), D("div", en, [
|
|
1181
1181
|
A(z, {
|
|
1182
1182
|
variant: "outlined",
|
|
1183
1183
|
class: "p-16"
|
|
@@ -1191,7 +1191,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1191
1191
|
n("div", on, a(i(e)("inventory.common.name")), 1),
|
|
1192
1192
|
n("div", rn, a(((O = (M = v.value) == null ? void 0 : M.details) == null ? void 0 : O.name) || ((j = v.value) == null ? void 0 : j.name)), 1)
|
|
1193
1193
|
]),
|
|
1194
|
-
(P = (K = v.value) == null ? void 0 : K.details) != null && P.code ? (
|
|
1194
|
+
(P = (K = v.value) == null ? void 0 : K.details) != null && P.code ? (N(), D("div", sn, [
|
|
1195
1195
|
n("div", an, a(i(e)("inventory.common.code")), 1),
|
|
1196
1196
|
n("div", ln, a(v.value.details.code), 1)
|
|
1197
1197
|
])) : Z("", !0),
|
|
@@ -1217,7 +1217,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1217
1217
|
}),
|
|
1218
1218
|
_: 1
|
|
1219
1219
|
}),
|
|
1220
|
-
v.value.errors && v.value.errors.length > 0 ? (
|
|
1220
|
+
v.value.errors && v.value.errors.length > 0 ? (N(), se(z, {
|
|
1221
1221
|
key: 0,
|
|
1222
1222
|
variant: "outlined",
|
|
1223
1223
|
class: "p-16"
|
|
@@ -1225,7 +1225,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1225
1225
|
default: Q(() => [
|
|
1226
1226
|
n("div", vn, a(i(e)("inventory.common.validationErrors")), 1),
|
|
1227
1227
|
n("div", yn, [
|
|
1228
|
-
(
|
|
1228
|
+
(N(!0), D(Be, null, Pe(v.value.errors, (M, O) => (N(), D("div", {
|
|
1229
1229
|
key: O,
|
|
1230
1230
|
class: "flex items-start gap-8 p-12 bg-red-50 border border-red-200 rounded"
|
|
1231
1231
|
}, [
|
|
@@ -1259,7 +1259,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1259
1259
|
];
|
|
1260
1260
|
}),
|
|
1261
1261
|
_: 1
|
|
1262
|
-
}, 8, ["title", "actions"])) : i(h).isLoaded ? (
|
|
1262
|
+
}, 8, ["title", "actions"])) : i(h).isLoaded ? (N(), se(ke, {
|
|
1263
1263
|
key: 2,
|
|
1264
1264
|
title: i(e)("inventory.common.import")
|
|
1265
1265
|
}, {
|
|
@@ -1277,7 +1277,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
|
|
|
1277
1277
|
])
|
|
1278
1278
|
]),
|
|
1279
1279
|
_: 1
|
|
1280
|
-
}, 8, ["title"])) : (
|
|
1280
|
+
}, 8, ["title"])) : (N(), se(ke, {
|
|
1281
1281
|
key: 1,
|
|
1282
1282
|
title: i(e)("inventory.common.import")
|
|
1283
1283
|
}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { a, e as y } from "./number-
|
|
2
|
+
import { a, e as y } from "./number-CF9W8sDX.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as A, computed as G, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as F, createElementBlock as B, createVNode as b, unref as i, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
|
|
2
|
-
import { a as L, c as P, i as oe, u as Re } from "./app-
|
|
2
|
+
import { a as L, c as P, i as oe, u as Re } from "./app-CnwVdB-r.js";
|
|
3
3
|
import { useDialog as Ie, useSnackbar as Y, components as U, useProxiedModel as Se, useBreakpoints as Fe } from "@feedmepos/ui-library";
|
|
4
4
|
import { F as S } from "./form-mode.enum-BKiNVH6A.js";
|
|
5
5
|
import { useI18n as z, useCoreStore as Ge } from "@feedmepos/mf-common";
|
|
@@ -8,11 +8,11 @@ import { D as ie, R as K } from "./row-action.enum-DQ9bJ_uv.js";
|
|
|
8
8
|
import { c as Ve } from "./component-kqxARxvM.js";
|
|
9
9
|
import { u as Ce, _ as De } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
|
|
10
10
|
import { _ as Ae, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
11
|
-
import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { d as de } from "./defineDeepModel-
|
|
13
|
-
import { I as Te, A as Ee, U as Me, R as ce } from "./rules-
|
|
11
|
+
import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CL9YNazx.js";
|
|
12
|
+
import { d as de } from "./defineDeepModel-wTAgCIGa.js";
|
|
13
|
+
import { I as Te, A as Ee, U as Me, R as ce } from "./rules-CYCN4sgu.js";
|
|
14
14
|
import { L as Ue, P as Be, D as Pe } from "./app-DiX-EfV6.js";
|
|
15
|
-
import { u as Le } from "./FmMultiselectDialog-
|
|
15
|
+
import { u as Le } from "./FmMultiselectDialog-BAMaksR7.js";
|
|
16
16
|
import { r as me } from "./random-CSbEbElR.js";
|
|
17
17
|
import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
|
|
18
18
|
const H = ue(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as P, defineComponent as pe, computed as h, resolveComponent as T, openBlock as c, createElementBlock as w, Fragment as ee, unref as l, createVNode as s, withModifiers as Bt, createCommentVNode as z, withCtx as g, createElementVNode as n, toDisplayString as A, normalizeClass as ne, renderList as de, createBlock as O, h as X, renderSlot as Te, createSlots as Ge, createTextVNode as Je, mergeModels as dt, onMounted as Ot, watch as Tt, useModel as Dt, isRef as ut, normalizeStyle as Nt, Teleport as mt, normalizeProps as zt, guardReactiveProps as Lt } from "vue";
|
|
2
|
-
import { a as Ae, c as wt, S as jt, g as ct, d as pt, e as Wt, f as vt, h as ft, i as yt, j as gt, u as qt, k as Ht } from "./app-
|
|
2
|
+
import { a as Ae, c as wt, S as jt, g as ct, d as pt, e as Wt, f as vt, h as ft, i as yt, j as gt, u as qt, k as Ht } from "./app-CnwVdB-r.js";
|
|
3
3
|
import { useDialog as Ze, useSnackbar as $e, components as Le, useProxiedModel as bt, useDialogChild as Yt, useBreakpoints as Kt } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Gt, _ as Jt, m as Zt } from "./menu-usage-module-D7cxkbEk.js";
|
|
5
5
|
import { F as q } from "./form-mode.enum-BKiNVH6A.js";
|
|
@@ -7,26 +7,26 @@ import { useI18n as ve, useCoreStore as Qe } from "@feedmepos/mf-common";
|
|
|
7
7
|
import { defineStore as Qt, storeToRefs as Xt } from "pinia";
|
|
8
8
|
import { D as ht, R as Re } from "./row-action.enum-DQ9bJ_uv.js";
|
|
9
9
|
import { c as en } from "./component-kqxARxvM.js";
|
|
10
|
-
import { u as Ee, _ as tn } from "./netsuite-
|
|
10
|
+
import { u as Ee, _ as tn } from "./netsuite-Cm4tUcLt.js";
|
|
11
11
|
import { F as De } from "./FmAdminBadge-DjnBAgyv.js";
|
|
12
12
|
import { u as nn, _ as ln } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
|
|
13
|
-
import { A as Oe, R as je, U as on, M as an } from "./rules-
|
|
14
|
-
import { g as sn, _ as We, S as qe, a as rn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { _ as dn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { _ as He } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { u as Vt } from "./feature-
|
|
18
|
-
import { a as un, t as mn, g as cn } from "./number-
|
|
13
|
+
import { A as Oe, R as je, U as on, M as an } from "./rules-CYCN4sgu.js";
|
|
14
|
+
import { g as sn, _ as We, S as qe, a as rn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BegeXje7.js";
|
|
15
|
+
import { _ as dn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-6-CNpE55.js";
|
|
16
|
+
import { _ as He } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-B4n5-iRK.js";
|
|
17
|
+
import { u as Vt } from "./feature-CSsMjXm4.js";
|
|
18
|
+
import { a as un, t as mn, g as cn } from "./number-CF9W8sDX.js";
|
|
19
19
|
import { _ as ke } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
20
|
-
import { d as Be, g as pn, e as vn, a as fn } from "./import-export.helper-
|
|
20
|
+
import { d as Be, g as pn, e as vn, a as fn } from "./import-export.helper-C8qIeMrV.js";
|
|
21
21
|
import { _ as yn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
22
|
-
import { F as gn, a as Ye } from "./FmMultiselectDialog-
|
|
23
|
-
import { u as It } from "./purchase-order-template-
|
|
24
|
-
import { u as Ft, a as St } from "./closing-template-
|
|
22
|
+
import { F as gn, a as Ye } from "./FmMultiselectDialog-Bnouf9vX.js";
|
|
23
|
+
import { u as It } from "./purchase-order-template-C0ynPqX6.js";
|
|
24
|
+
import { u as Ft, a as St } from "./closing-template-B0GQRFlS.js";
|
|
25
25
|
import { _ as bn, F as _t } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
26
|
-
import { r as hn } from "./xlsx.util-
|
|
26
|
+
import { r as hn } from "./xlsx.util-0_Y_Q66v.js";
|
|
27
27
|
import { F as _n } from "./FmDroppableField-J0xUsOTV.js";
|
|
28
|
-
import { _ as xn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
29
|
-
import { u as kn } from "./FmMultiselectDialog-
|
|
28
|
+
import { _ as xn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CL9YNazx.js";
|
|
29
|
+
import { u as kn } from "./FmMultiselectDialog-BAMaksR7.js";
|
|
30
30
|
import { P as Tn, J as wn } from "./app-DiX-EfV6.js";
|
|
31
31
|
const Ke = Qt("ingredientForm", function() {
|
|
32
32
|
const i = Ze(), k = $e(), d = Ae(), _ = P(!1), { t: F } = ve(), C = P();
|