@feedmepos/mf-inventory-portal 0.0.23-dev.19 → 0.0.23-dev.20
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-DY01VbHo.js → App-N2myASr3.js} +44 -41
- package/dist/{ApprovalView-DtwXb5T7.js → ApprovalView-B87DpnNq.js} +20 -23
- package/dist/{BindingsDialog-ClnnwUTV.js → BindingsDialog-DehCgt1T.js} +7 -7
- package/dist/{BindingsPicker-DbdkXiHx.js → BindingsPicker-BBtJ3rBB.js} +7 -8
- package/dist/{BindingsTable-Cqh3Ku0d.js → BindingsTable-CfHuy-K1.js} +16 -20
- package/dist/{ClosingDraftView-CzuMTeC1.js → ClosingDraftView-BYZ1mZrG.js} +190 -196
- package/dist/{ClosingTemplateView-CVQlOya4.js → ClosingTemplateView-CAL9jYaf.js} +49 -60
- package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-CC7RiBoR.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BO1wCa9i.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C4G9LaXv.js} +24 -25
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-sgvBxxkn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBf7jmJz.js} +56 -57
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7uvrzFU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DjTvrLPs.js} +7 -7
- package/dist/{IngredientGroupView-DgDZnggI.js → IngredientGroupView-X0ST4tW9.js} +30 -37
- package/dist/{IngredientsView-SuCckJrj.js → IngredientsView-BUJXzpVr.js} +106 -112
- package/dist/{IntegrationView-CZQoHCkX.js → IntegrationView-QbuIwjec.js} +63 -65
- package/dist/{InventoryBindingForm-C-E3EINv.js → InventoryBindingForm-C1BR_h_3.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3nsmCuj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CRwcFskQ.js} +18 -20
- package/dist/{InventoryBindingSummary-DNiOKfO8.js → InventoryBindingSummary-gn3Gq1ok.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdYa8Pv2.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GY3FFm5_.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BwxgZ-vM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DVwtuUg9.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-C6i2S9L-.js → PurchaseOrderPrintPreview-FuOYaO56.js} +13 -14
- package/dist/{ReceiveRequestView-BABjGvIn.js → ReceiveRequestView-BNz1brve.js} +66 -75
- package/dist/{RecipeView-CoMcIuHu.js → RecipeView-DRKTODfC.js} +58 -64
- package/dist/{StockView-DhJshtaj.js → StockView-DnMcfkGG.js} +80 -87
- package/dist/{SupplierView-hQtDIQzE.js → SupplierView-DAnnWZUN.js} +45 -52
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DsJUSZsm.js → TransferDetails.vue_vue_type_script_setup_true_lang-BBARPa0S.js} +103 -110
- package/dist/{TransferTemplateView-GzwT4hp-.js → TransferTemplateView-2qlKwwKg.js} +217 -227
- package/dist/{UnitView-CRMF6RWu.js → UnitView-u5wZGetF.js} +103 -108
- package/dist/{WarehouseView-AVEDff0v.js → WarehouseView-Z80N7FJV.js} +77 -84
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/app-Fc2FPGhO.js +58871 -0
- package/dist/app.d.ts +51 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-N5ymnwhP.js → decimal-BDD-e5Lb.js} +1 -1
- package/dist/{feature-Bfq8yWgS.js → feature-BMEyYowI.js} +1 -1
- package/dist/{format-unit-display-CXawcmvj.js → format-unit-display-DvlR_z--.js} +205 -212
- package/dist/{index-CcCqc9jx.js → index-CR22QBdu.js} +1 -1
- package/dist/{netsuite-DX6L1oLu.js → netsuite-CqMWgzKo.js} +9 -9
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-Btlxmf8R.js → stock-sIy40ix1.js} +7 -8
- package/dist/style.css +1 -1
- package/dist/supplier-Cf24JqTH.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BFqxWNzX.js → use-inventory-binding-dialog-Br9Uv9o8.js} +10 -11
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/{xlsx-C3L2eW52.js → xlsx-sL0sD2HQ.js} +1 -1
- package/dist/{xlsx.util-CJKLCuWK.js → xlsx.util-D2Tdwf8J.js} +1 -1
- package/package.json +3 -3
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-m92y5x0G.js +0 -436
- package/dist/FmMultiselectDialog-Jr9uL_z_.js +0 -415
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-ww5ibHkL.js +0 -33540
- package/dist/date2-D5MTVjlP.js +0 -117
- package/dist/dayjs.min-7pwGJ2aW.js +0 -282
- package/dist/defineDeepModel-DJODEpcR.js +0 -13
- package/dist/form-mode.enum-BKiNVH6A.js +0 -4
- package/dist/format-time-from-id-0UkRUr39.js +0 -15
- package/dist/fuzzy-DdOiOd-q.js +0 -41
- package/dist/index-Cin_fxtb.js +0 -45
- package/dist/index-gvJJ-xRY.js +0 -22283
- package/dist/row-action.enum-7rGLGZ5v.js +0 -55
- package/dist/rules-C83wiSGb.js +0 -203
- package/dist/supplier-CSzla-9I.js +0 -77
- package/dist/use-template-enabled-locations-2-CUkqC-cd.js +0 -86
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import { defineComponent as Q, mergeModels as Gd, computed as F, useModel as Hd, resolveComponent as T, openBlock as E, createElementBlock as O, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as A, unref as f, Fragment as
|
|
2
|
-
import { u as re } from "./supplier-
|
|
3
|
-
import { D as ed,
|
|
4
|
-
import { c as Xd, _ as Zd, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
5
|
-
import { c as Pe, a as Od, f as dd, d as zd, C as he, i as wd, u as pe } from "./app-ww5ibHkL.js";
|
|
1
|
+
import { defineComponent as Q, mergeModels as Gd, computed as F, useModel as Hd, resolveComponent as T, openBlock as E, createElementBlock as O, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as A, unref as f, Fragment as z, renderList as ee, ref as L, createBlock as j, createCommentVNode as K, isRef as Qe, createTextVNode as Id, normalizeClass as J, watch as Fd, createSlots as jd, onMounted as Kd, normalizeStyle as Wd, Teleport as Yd } from "vue";
|
|
2
|
+
import { u as re } from "./supplier-Cf24JqTH.js";
|
|
3
|
+
import { e as Xd, D as ed, f as $e, d as Pe, a as Od, l as dd, i as Zd, x as qd, C as he, o as wd, u as pe, k as G, c as U, n as zd, p as Jd, q as Qd, r as et, s as dt, v as le } from "./app-Fc2FPGhO.js";
|
|
6
4
|
import { useI18n as X, useCoreStore as Fe } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as Oe } from "./netsuite-
|
|
8
|
-
import { useDialog as we, useSnackbar as me, useProxiedModel as td, useDialogChild as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { u as Ad } from "./feature-Bfq8yWgS.js";
|
|
16
|
-
import { defineStore as ot } from "pinia";
|
|
17
|
-
import { t as Rd, d as Td, s as at, r as it } from "./xlsx.util-CJKLCuWK.js";
|
|
18
|
-
import { f as $t } from "./date2-D5MTVjlP.js";
|
|
19
|
-
import { F as lt } from "./FmDroppableField-8RzKjEdL.js";
|
|
5
|
+
import { u as Oe } from "./netsuite-CqMWgzKo.js";
|
|
6
|
+
import { useDialog as we, useSnackbar as me, useProxiedModel as td, useDialogChild as tt, useBreakpoints as rt } from "@feedmepos/ui-library";
|
|
7
|
+
import { _ as nt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
8
|
+
import { _ as ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BBf7jmJz.js";
|
|
9
|
+
import { u as Ad } from "./feature-BMEyYowI.js";
|
|
10
|
+
import { defineStore as at } from "pinia";
|
|
11
|
+
import { t as Rd, d as Td, s as it, r as $t } from "./xlsx.util-D2Tdwf8J.js";
|
|
12
|
+
import { F as lt } from "./FmDroppableField-CC7RiBoR.js";
|
|
20
13
|
function st(e, d) {
|
|
21
14
|
const { t } = X(), r = Oe();
|
|
22
15
|
function n(a, $) {
|
|
@@ -100,13 +93,13 @@ const ut = { class: "flex flex-col gap-12" }, ct = { class: "flex flex-col" }, f
|
|
|
100
93
|
})), c = ((b = a.value) == null ? void 0 : b.map((_) => _.skuId)) ?? [], S = F(
|
|
101
94
|
() => {
|
|
102
95
|
var _;
|
|
103
|
-
return ((_ =
|
|
96
|
+
return ((_ = Zd(d.currentCountry.value)) == null ? void 0 : _.currency) ?? "MYR";
|
|
104
97
|
}
|
|
105
98
|
);
|
|
106
99
|
n.open({
|
|
107
100
|
title: o("inventory.supplier.supplyItems.selectItem"),
|
|
108
101
|
closeButton: !0,
|
|
109
|
-
contentComponent:
|
|
102
|
+
contentComponent: qd,
|
|
110
103
|
contentComponentProps: {
|
|
111
104
|
modelValue: c,
|
|
112
105
|
items: v
|
|
@@ -189,7 +182,7 @@ const ut = { class: "flex flex-col gap-12" }, ct = { class: "flex flex-col" }, f
|
|
|
189
182
|
g("div", ct, [
|
|
190
183
|
g("div", ft, [
|
|
191
184
|
g("div", pt, [
|
|
192
|
-
N(
|
|
185
|
+
N(nt, { "z-index": 50 }, {
|
|
193
186
|
default: k(() => [
|
|
194
187
|
g("div", mt, A(f(o)("inventory.supplier.supplyItems.title")), 1)
|
|
195
188
|
]),
|
|
@@ -208,7 +201,7 @@ const ut = { class: "flex flex-col gap-12" }, ct = { class: "flex flex-col" }, f
|
|
|
208
201
|
g("div", yt, A(f(o)("inventory.supplier.supplyItems.overridePriceHint")), 1)
|
|
209
202
|
]),
|
|
210
203
|
g("div", vt, [
|
|
211
|
-
(E(!0), O(
|
|
204
|
+
(E(!0), O(z, null, ee(a.value, (b, _) => {
|
|
212
205
|
var I, h, P;
|
|
213
206
|
return E(), O("div", {
|
|
214
207
|
key: b.skuId,
|
|
@@ -222,7 +215,7 @@ const ut = { class: "flex flex-col gap-12" }, ct = { class: "flex flex-col" }, f
|
|
|
222
215
|
]),
|
|
223
216
|
g("div", Pt, [
|
|
224
217
|
g("div", Ct, [
|
|
225
|
-
N(
|
|
218
|
+
N(ot, {
|
|
226
219
|
"model-value": m(b),
|
|
227
220
|
unit: p(b),
|
|
228
221
|
"onUpdate:modelValue": (w) => y(b, w),
|
|
@@ -776,7 +769,7 @@ var H = /* @__PURE__ */ function(e) {
|
|
|
776
769
|
return Ht(this, t), n = d.call(this, r), Object.setPrototypeOf(Md(n), t.prototype), n.name = n.constructor.name, n;
|
|
777
770
|
}
|
|
778
771
|
return Gt(t);
|
|
779
|
-
}(/* @__PURE__ */ Ne(Error)), Ae = 2, Xt = 17, Zt = 3, B = "0-90-9٠-٩۰-۹",
|
|
772
|
+
}(/* @__PURE__ */ Ne(Error)), Ae = 2, Xt = 17, Zt = 3, B = "0-90-9٠-٩۰-۹", qt = "-‐-―−ー-", zt = "//", Jt = "..", Qt = " ", e0 = "()()[]\\[\\]", d0 = "~⁓∼~", ce = "".concat(qt).concat(zt).concat(Jt).concat(Qt).concat(e0).concat(d0), Re = "++";
|
|
780
773
|
function rd(e, d) {
|
|
781
774
|
e = e.split("-"), d = d.split("-");
|
|
782
775
|
for (var t = e[0].split("."), r = d[0].split("."), n = 0; n < 3; n++) {
|
|
@@ -1244,11 +1237,11 @@ function Ld(e) {
|
|
|
1244
1237
|
var d = e.version;
|
|
1245
1238
|
typeof d == "number" ? (this.v1 = d === 1, this.v2 = d === 2, this.v3 = d === 3, this.v4 = d === 4) : d ? rd(d, n0) === -1 ? this.v2 = !0 : rd(d, o0) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
1246
1239
|
}
|
|
1247
|
-
var f0 = ";ext=",
|
|
1240
|
+
var f0 = ";ext=", q = function(d) {
|
|
1248
1241
|
return "([".concat(B, "]{1,").concat(d, "})");
|
|
1249
1242
|
};
|
|
1250
1243
|
function kd(e) {
|
|
1251
|
-
var d = "20", t = "15", r = "9", n = "6", o = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", $ = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", p = "[- ]+", m = "[ \\t]*", y = "(?:,{2}|;)", v = f0 +
|
|
1244
|
+
var d = "20", t = "15", r = "9", n = "6", o = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", $ = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", p = "[- ]+", m = "[ \\t]*", y = "(?:,{2}|;)", v = f0 + q(d), c = o + l + a + q(d) + $, S = o + u + a + q(r) + $, b = p + q(n) + "#", _ = m + y + a + q(t) + $, I = m + "(?:,)+" + a + q(r) + $;
|
|
1252
1245
|
return v + "|" + c + "|" + S + "|" + b + "|" + _ + "|" + I;
|
|
1253
1246
|
}
|
|
1254
1247
|
var p0 = "[" + B + "]{" + Ae + "}", m0 = "[" + Re + "]{0,1}(?:[" + ce + "]*[" + B + "]){3,}[" + ce + B + "]*", y0 = new RegExp("^[" + Re + "]{0,1}(?:[" + ce + "]*[" + B + "]){1,2}$", "i"), v0 = m0 + // Phone number extensions
|
|
@@ -1689,10 +1682,10 @@ function Z0(e, d) {
|
|
|
1689
1682
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1690
1683
|
}
|
|
1691
1684
|
}
|
|
1692
|
-
function
|
|
1685
|
+
function q0(e, d, t) {
|
|
1693
1686
|
return d && Z0(e.prototype, d), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1694
1687
|
}
|
|
1695
|
-
var
|
|
1688
|
+
var z0 = /* @__PURE__ */ function() {
|
|
1696
1689
|
function e(d, t, r) {
|
|
1697
1690
|
if (X0(this, e), !d)
|
|
1698
1691
|
throw new TypeError("`country` or `countryCallingCode` not passed");
|
|
@@ -1705,7 +1698,7 @@ var q0 = /* @__PURE__ */ function() {
|
|
|
1705
1698
|
return r;
|
|
1706
1699
|
};
|
|
1707
1700
|
}
|
|
1708
|
-
return
|
|
1701
|
+
return q0(e, [{
|
|
1709
1702
|
key: "setExt",
|
|
1710
1703
|
value: function(t) {
|
|
1711
1704
|
this.ext = t;
|
|
@@ -2032,7 +2025,7 @@ function E1(e, d, t) {
|
|
|
2032
2025
|
return {};
|
|
2033
2026
|
}
|
|
2034
2027
|
if (d.v2) {
|
|
2035
|
-
var v = new
|
|
2028
|
+
var v = new z0(p, u, t.metadata);
|
|
2036
2029
|
return l && (v.country = l), y && (v.carrierCode = y), o && (v.ext = o), v.__countryCallingCodeSource = m, v;
|
|
2037
2030
|
}
|
|
2038
2031
|
var c = (d.extended ? t.hasSelectedNumberingPlan() : l) ? W(u, t.nationalNumberPattern()) : !1;
|
|
@@ -2380,7 +2373,7 @@ function Y1() {
|
|
|
2380
2373
|
[],
|
|
2381
2374
|
a.map((m) => m.name),
|
|
2382
2375
|
...r.map((m) => a.map((y) => m[y.id]))
|
|
2383
|
-
], l = a.map((m) => `system:${m.id}`), u = Rd($, l), p = `${o == null ? void 0 : o.name} suppliers (${
|
|
2376
|
+
], l = a.map((m) => `system:${m.id}`), u = Rd($, l), p = `${o == null ? void 0 : o.name} suppliers (${zd(/* @__PURE__ */ new Date())}).xlsx`;
|
|
2384
2377
|
return Td(u, p), p;
|
|
2385
2378
|
}
|
|
2386
2379
|
function X1() {
|
|
@@ -2402,7 +2395,7 @@ function Z1(e) {
|
|
|
2402
2395
|
o,
|
|
2403
2396
|
a,
|
|
2404
2397
|
...$
|
|
2405
|
-
] =
|
|
2398
|
+
] = it(e);
|
|
2406
2399
|
if (!d || !d.length || d.some((y) => y.length && !y.startsWith("system:")))
|
|
2407
2400
|
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
2408
2401
|
const l = d.map((y) => y.split(":")[1]), p = [
|
|
@@ -2458,7 +2451,7 @@ function Ed(e, d) {
|
|
|
2458
2451
|
excelRowNumber: d + 6
|
|
2459
2452
|
};
|
|
2460
2453
|
}
|
|
2461
|
-
function
|
|
2454
|
+
function q1(e) {
|
|
2462
2455
|
try {
|
|
2463
2456
|
const d = Z1(e).filter((p) => p.data.name), t = pe(), r = re(), n = t.businessLevel ? r.businessSuppliers : r.locationSuppliers, o = wd(n, "_id"), a = d.filter((p) => !p.data.id), $ = d.filter((p) => p.data.id), l = a.map((p) => Ed(p.data, p.index)), u = $.map((p) => {
|
|
2464
2457
|
const m = Ed(p.data, p.index), y = o[p.data.id];
|
|
@@ -2511,7 +2504,7 @@ function z1(e) {
|
|
|
2511
2504
|
};
|
|
2512
2505
|
}
|
|
2513
2506
|
}
|
|
2514
|
-
const
|
|
2507
|
+
const z1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-col" }, Q1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, er = {
|
|
2515
2508
|
key: 0,
|
|
2516
2509
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
2517
2510
|
}, dr = { key: 0 }, xd = /* @__PURE__ */ Q({
|
|
@@ -2526,7 +2519,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2526
2519
|
const { t: d } = X();
|
|
2527
2520
|
return (t, r) => {
|
|
2528
2521
|
const n = T("FmIcon"), o = T("FmTooltip");
|
|
2529
|
-
return E(), O("div",
|
|
2522
|
+
return E(), O("div", z1, [
|
|
2530
2523
|
r[0] || (r[0] = g("div", null, "•", -1)),
|
|
2531
2524
|
g("div", J1, [
|
|
2532
2525
|
g("div", Q1, [
|
|
@@ -2542,7 +2535,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2542
2535
|
N(o, { "z-index": 50 }, {
|
|
2543
2536
|
content: k(() => [
|
|
2544
2537
|
g("ol", null, [
|
|
2545
|
-
(E(!0), O(
|
|
2538
|
+
(E(!0), O(z, null, ee(t.errors, (a, $) => (E(), O("li", { key: $ }, A(a), 1))), 128))
|
|
2546
2539
|
])
|
|
2547
2540
|
]),
|
|
2548
2541
|
default: k(() => [
|
|
@@ -2584,7 +2577,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2584
2577
|
}, cr = { class: "fm-typo-en-body-lg-600" }, fr = /* @__PURE__ */ Q({
|
|
2585
2578
|
__name: "SupplierImport",
|
|
2586
2579
|
setup(e) {
|
|
2587
|
-
const d = L(null), t =
|
|
2580
|
+
const d = L(null), t = tt(), r = me(), n = L(!1), o = L(!1), a = L(new Array()), $ = L([]), l = L([]), u = F(
|
|
2588
2581
|
() => !!a.value.length || $.value.some((v) => v.errors.length) || l.value.some((v) => v.errors.length)
|
|
2589
2582
|
), p = F(
|
|
2590
2583
|
() => !!$.value.length || !!l.value.length
|
|
@@ -2594,7 +2587,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2594
2587
|
try {
|
|
2595
2588
|
n.value = !0;
|
|
2596
2589
|
const [c] = await Promise.all([
|
|
2597
|
-
|
|
2590
|
+
$t(v),
|
|
2598
2591
|
// fake buffer
|
|
2599
2592
|
new Promise((_) => setTimeout(_, 1e3))
|
|
2600
2593
|
]), S = c.SheetNames.find((_) => _);
|
|
@@ -2602,7 +2595,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2602
2595
|
a.value.push(m("inventory.ingredient.import.fileError.noSheet"));
|
|
2603
2596
|
return;
|
|
2604
2597
|
}
|
|
2605
|
-
const b =
|
|
2598
|
+
const b = q1(c.Sheets[S]);
|
|
2606
2599
|
if (b.invalidExcel) {
|
|
2607
2600
|
a.value.push(
|
|
2608
2601
|
b.invalidExcelMessage ?? m("inventory.ingredient.import.fileError.invalidExcel")
|
|
@@ -2641,7 +2634,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2641
2634
|
})
|
|
2642
2635
|
]),
|
|
2643
2636
|
g("div", or, A(f(m)("inventory.formField.loading")), 1)
|
|
2644
|
-
])) : (E(), O(
|
|
2637
|
+
])) : (E(), O(z, { key: 1 }, [
|
|
2645
2638
|
N(lt, {
|
|
2646
2639
|
class: J({
|
|
2647
2640
|
"w-full": !0,
|
|
@@ -2697,7 +2690,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2697
2690
|
]))
|
|
2698
2691
|
], 2),
|
|
2699
2692
|
a.value.length ? (E(), O("div", lr, [
|
|
2700
|
-
(E(!0), O(
|
|
2693
|
+
(E(!0), O(z, null, ee(a.value, (h, P) => (E(), O("div", {
|
|
2701
2694
|
key: P,
|
|
2702
2695
|
class: "flex gap-8 items-center"
|
|
2703
2696
|
}, [
|
|
@@ -2716,14 +2709,14 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2716
2709
|
]), 1032, ["class", "label", "button-label"]),
|
|
2717
2710
|
p.value ? (E(), O("div", ur, [
|
|
2718
2711
|
g("div", cr, A(f(m)("inventory.ingredient.import.summary")), 1),
|
|
2719
|
-
(E(!0), O(
|
|
2712
|
+
(E(!0), O(z, null, ee($.value, (I, h) => (E(), j(xd, {
|
|
2720
2713
|
key: h,
|
|
2721
2714
|
name: I.supplier.name,
|
|
2722
2715
|
pic: I.supplier.contactName ?? "",
|
|
2723
2716
|
errors: I.errors,
|
|
2724
2717
|
type: "create"
|
|
2725
2718
|
}, null, 8, ["name", "pic", "errors"]))), 128)),
|
|
2726
|
-
(E(!0), O(
|
|
2719
|
+
(E(!0), O(z, null, ee(l.value, (I) => (E(), j(xd, {
|
|
2727
2720
|
key: I.supplier._id,
|
|
2728
2721
|
name: I.supplier.name,
|
|
2729
2722
|
pic: I.supplier.contactName ?? "",
|
|
@@ -2735,7 +2728,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2735
2728
|
]);
|
|
2736
2729
|
};
|
|
2737
2730
|
}
|
|
2738
|
-
}), pr =
|
|
2731
|
+
}), pr = at("supplierActions", function() {
|
|
2739
2732
|
const e = re(), d = we(), { t } = X(), r = me();
|
|
2740
2733
|
function n() {
|
|
2741
2734
|
d.open({
|
|
@@ -2829,7 +2822,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2829
2822
|
}), mr = { class: "flex flex-col py-8" }, yr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, vr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, hr = {
|
|
2830
2823
|
key: 0,
|
|
2831
2824
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
2832
|
-
}, br = "You are managing business-level supplier list. These suppliers will be made visible to all locations.",
|
|
2825
|
+
}, br = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Rr = /* @__PURE__ */ Q({
|
|
2833
2826
|
__name: "SupplierView",
|
|
2834
2827
|
setup(e) {
|
|
2835
2828
|
const { importSuppliers: d, exportSuppliers: t } = pr(), r = re(), n = pe(), o = Ad(), a = Oe(), $ = L(!1), l = we(), u = me(), { t: p } = X();
|
|
@@ -2921,7 +2914,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2921
2914
|
if (x === "refresh")
|
|
2922
2915
|
return y();
|
|
2923
2916
|
}
|
|
2924
|
-
const w = L(""), { breakpoints: V } =
|
|
2917
|
+
const w = L(""), { breakpoints: V } = rt(), D = F(() => V.value.xs || V.value.sm), s = F(() => D.value ? 10 : 20), i = Jd(), Z = F(() => [
|
|
2925
2918
|
{
|
|
2926
2919
|
label: p("inventory.supplier.create.title"),
|
|
2927
2920
|
value: "create",
|
|
@@ -2946,7 +2939,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2946
2939
|
]);
|
|
2947
2940
|
return (x, R) => {
|
|
2948
2941
|
const ge = T("FmTable");
|
|
2949
|
-
return E(), j(
|
|
2942
|
+
return E(), j(Qd, {
|
|
2950
2943
|
title: f(p)("inventory.supplier.title"),
|
|
2951
2944
|
actions: Z.value,
|
|
2952
2945
|
"onClick:action": P,
|
|
@@ -2962,7 +2955,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2962
2955
|
}
|
|
2963
2956
|
])
|
|
2964
2957
|
}, [
|
|
2965
|
-
N(
|
|
2958
|
+
N(et, {
|
|
2966
2959
|
searchable: "",
|
|
2967
2960
|
"change-location": !f(o).businessSupplierOnly,
|
|
2968
2961
|
search: w.value,
|
|
@@ -2982,12 +2975,12 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
2982
2975
|
"page-size": s.value
|
|
2983
2976
|
}, {
|
|
2984
2977
|
"list-row": k((C) => [
|
|
2985
|
-
N(
|
|
2978
|
+
N(dt, {
|
|
2986
2979
|
row: C,
|
|
2987
2980
|
onRowClick: b
|
|
2988
2981
|
}, {
|
|
2989
2982
|
default: k((Y) => {
|
|
2990
|
-
var Le, ke, Ve, ne, Ue, Be, Ge, He, oe, je, Ke, We, Ye, ae, Xe, Ze,
|
|
2983
|
+
var Le, ke, Ve, ne, Ue, Be, Ge, He, oe, je, Ke, We, Ye, ae, Xe, Ze, qe, ze, ie, Je;
|
|
2991
2984
|
return [
|
|
2992
2985
|
g("div", mr, [
|
|
2993
2986
|
g("div", yr, [
|
|
@@ -3010,7 +3003,7 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
3010
3003
|
]),
|
|
3011
3004
|
C.original.email ? (E(), O("div", hr, [
|
|
3012
3005
|
N(f(le), {
|
|
3013
|
-
render: (
|
|
3006
|
+
render: (ze = (qe = (Ze = Y.email) == null ? void 0 : Ze.column) == null ? void 0 : qe.columnDef) == null ? void 0 : ze.cell,
|
|
3014
3007
|
props: (Je = (ie = Y.email) == null ? void 0 : ie.getContext) == null ? void 0 : Je.call(ie)
|
|
3015
3008
|
}, null, 8, ["render", "props"])
|
|
3016
3009
|
])) : K("", !0)
|
|
@@ -3039,5 +3032,5 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
|
|
|
3039
3032
|
}
|
|
3040
3033
|
});
|
|
3041
3034
|
export {
|
|
3042
|
-
|
|
3035
|
+
Rr as default
|
|
3043
3036
|
};
|