@feedmepos/mf-inventory-portal 0.0.23-dev.2 → 0.0.23-dev.21
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-DRE3c1lJ.js → App-CvIvF0fg.js} +59 -51
- package/dist/{ApprovalView-B4ZYcS3B.js → ApprovalView-BOn2HDVY.js} +20 -23
- package/dist/{BindingsDialog-Df1yrWHU.js → BindingsDialog-9qfADiSA.js} +7 -7
- package/dist/{BindingsPicker-BERMWh4w.js → BindingsPicker-CpV9uOqj.js} +7 -8
- package/dist/{BindingsTable-DRIapOWW.js → BindingsTable-BYScxUTj.js} +16 -20
- package/dist/ClosingDraftView-DM7-3zOd.js +1116 -0
- package/dist/{ClosingTemplateView-CbFn3Sdy.js → ClosingTemplateView-Cye5VPAM.js} +66 -76
- package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-AIKfZo3H.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQUsooGm.js +282 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BHSGZyJL.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CFQc-CBX.js} +121 -119
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5IQchQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-2r8mut0B.js} +7 -7
- package/dist/{IngredientGroupView-DoETcEvV.js → IngredientGroupView-RNokzPJa.js} +30 -36
- package/dist/IngredientsView-M7K_GAEO.js +1660 -0
- package/dist/{IntegrationView-D1HeBiGF.js → IntegrationView-D9a8d1sO.js} +18 -20
- package/dist/{InventoryBindingForm-Dmz9BQ37.js → InventoryBindingForm-B0Gx5N1p.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoyqVBOd.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DEOudgKD.js} +15 -17
- package/dist/{InventoryBindingSummary-DrpwiRGZ.js → InventoryBindingSummary-C16Nc5aN.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yNEswIEI.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CZiypEex.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Br4_VUza.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BbYZwclN.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-cp671yWE.js → PurchaseOrderPrintPreview-DdKF8g0J.js} +13 -14
- package/dist/ReceiveRequestView-DBPRR6fz.js +4186 -0
- package/dist/{RecipeView-CD_dAWLo.js → RecipeView-CzUgVxKz.js} +58 -63
- package/dist/{StockView-DfUzFC1b.js → StockView-DCO3N1FS.js} +1338 -1446
- package/dist/{SupplierView-DB-zrNxh.js → SupplierView-CzV6DYSj.js} +2345 -783
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-00pcY0qu.js +1228 -0
- package/dist/TransferTemplateView-uL5PId9-.js +1265 -0
- package/dist/{UnitView-BlC9-WOA.js → UnitView-d-mCs-cS.js} +40 -44
- package/dist/{WarehouseView-CgEY87Lo.js → WarehouseView-B7z8m-Hv.js} +67 -73
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/netsuite.d.ts +69 -0
- package/dist/app-CTCC1zfY.js +58871 -0
- package/dist/app.d.ts +56 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-D7BCubZO.js → decimal-DhUR6QsF.js} +1 -1
- package/dist/{feature-BR-MsGYt.js → feature-DiGS5Fa4.js} +23 -9
- package/dist/format-unit-display-MRARpSlY.js +1210 -0
- package/dist/index-BSN3RnCl.js +12087 -0
- package/dist/netsuite-CIibMNer.js +251 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-COHpOTJk.js +110 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +81 -0
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-aBuwVukl.js → supplier-csNwTHYl.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-CLQ0LUmW.js → use-inventory-binding-dialog-172A48Xx.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/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +451 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
- package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- 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/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/dist/{xlsx-BbtURTDy.js → xlsx-CH-bhcOL.js} +1 -1
- package/dist/{xlsx.util-zYS4OJFi.js → xlsx.util-4aHI7W-Z.js} +1 -1
- package/package.json +3 -3
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-7JYNssTm.js +0 -267
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js +0 -436
- package/dist/FmMultiselectDialog-Da9JMCYa.js +0 -415
- package/dist/IngredientsView-DHAhj9pV.js +0 -1613
- package/dist/ReceiveRequestView-C1WBlpho.js +0 -4082
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-2mzqFGCz.js +0 -1144
- package/dist/TransferTemplateView-CaAJrqU6.js +0 -1262
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-CAyFhmAz.js +0 -33457
- package/dist/date2-D9i5izMt.js +0 -117
- package/dist/dayjs.min-SJKP9zBL.js +0 -282
- package/dist/defineDeepModel-DS4Shctf.js +0 -13
- package/dist/format-time-from-id-CUby60uW.js +0 -15
- package/dist/format-unit-display-D25Al2JZ.js +0 -1198
- package/dist/fuzzy-BryBtMz_.js +0 -41
- package/dist/index-ByJbUSIQ.js +0 -45
- package/dist/index-CFA_VFyX.js +0 -10545
- package/dist/index-CTvgBOum.js +0 -22280
- package/dist/netsuite-D0G4B60k.js +0 -146
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-DxVY0b7F.js +0 -198
- package/dist/use-template-enabled-locations-2-BgTiwy_3.js +0 -86
|
@@ -1,25 +1,15 @@
|
|
|
1
|
-
import { ref as M, h as F, defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import { useDialogChild as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { f as at, d as ne } from "./date2-D9i5izMt.js";
|
|
11
|
-
import { c as rt, F as O, _ as Le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
12
|
-
import { f as it } from "./format-time-from-id-CUby60uW.js";
|
|
13
|
-
import { u as ct } from "./netsuite-D0G4B60k.js";
|
|
14
|
-
import { R as mt, A as ut } from "./rules-DxVY0b7F.js";
|
|
15
|
-
import { F as dt } from "./FmMultiselectDialog-Da9JMCYa.js";
|
|
16
|
-
import { d as pt } from "./defineDeepModel-DS4Shctf.js";
|
|
17
|
-
import { u as ft } from "./use-template-enabled-locations-2-BgTiwy_3.js";
|
|
18
|
-
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
-
const ee = nt((r, s) => {
|
|
1
|
+
import { ref as M, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as G, createVNode as T, withCtx as P, Fragment as H, renderList as J, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ke, normalizeProps as Ge, guardReactiveProps as Je, mergeProps as We } from "vue";
|
|
2
|
+
import { N as qe, u as le, a6 as Qe, D as Se, f as N, e as Xe, d as Ae, n as Ze, a as ae, o as et, c as z, v as j, w as tt, a7 as nt, k as ot, s as Ee, A as st, x as lt, _ as at, a8 as ne, p as rt, q as it, r as ct } from "./app-CTCC1zfY.js";
|
|
3
|
+
import { useCoreStore as re, useI18n as B } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialogChild as mt, useSnackbar as Z, useDialog as ie, FmButtonVariant as Me, components as L, useProxiedModel as ut, useBreakpoints as dt } from "@feedmepos/ui-library";
|
|
5
|
+
import { defineStore as Ue, storeToRefs as Ve } from "pinia";
|
|
6
|
+
import { a as oe, b as Ne, d as Be, s as Le, r as pt } from "./xlsx.util-4aHI7W-Z.js";
|
|
7
|
+
import { F as ft } from "./FmDroppableField-AIKfZo3H.js";
|
|
8
|
+
import { u as vt } from "./netsuite-CIibMNer.js";
|
|
9
|
+
const ee = qe((r, s) => {
|
|
20
10
|
function o() {
|
|
21
11
|
var t;
|
|
22
|
-
return `business_${((t =
|
|
12
|
+
return `business_${((t = re().currentBusiness.value) == null ? void 0 : t._id) ?? ""}`;
|
|
23
13
|
}
|
|
24
14
|
return {
|
|
25
15
|
async getRecentPublishingJob() {
|
|
@@ -55,10 +45,10 @@ const ee = nt((r, s) => {
|
|
|
55
45
|
return s.post(t, l);
|
|
56
46
|
}
|
|
57
47
|
};
|
|
58
|
-
}), te =
|
|
48
|
+
}), te = Ue(
|
|
59
49
|
"closingTable",
|
|
60
50
|
function() {
|
|
61
|
-
const { t: s } = B(), o = se(), l = M({}), e = M(new Array()), t = M(!1), y =
|
|
51
|
+
const { t: s } = B(), o = se(), l = M({}), e = M(new Array()), t = M(!1), y = le(), p = ee();
|
|
62
52
|
async function f() {
|
|
63
53
|
if (e.value = [], !!y._currentLocation) {
|
|
64
54
|
t.value = !0;
|
|
@@ -92,7 +82,7 @@ const ee = nt((r, s) => {
|
|
|
92
82
|
}
|
|
93
83
|
}
|
|
94
84
|
function d(g, h) {
|
|
95
|
-
switch (h =
|
|
85
|
+
switch (h = Ae(h), g) {
|
|
96
86
|
case N.Details:
|
|
97
87
|
return o.viewTemplate(h);
|
|
98
88
|
case N.Edit:
|
|
@@ -108,7 +98,7 @@ const ee = nt((r, s) => {
|
|
|
108
98
|
accessorKey: "_id",
|
|
109
99
|
header: () => s("inventory.closing.table.createdAt"),
|
|
110
100
|
cell(g) {
|
|
111
|
-
return
|
|
101
|
+
return Qe(`${g.getValue()}`);
|
|
112
102
|
},
|
|
113
103
|
enableSorting: !0
|
|
114
104
|
},
|
|
@@ -180,10 +170,10 @@ const ee = nt((r, s) => {
|
|
|
180
170
|
id: "action",
|
|
181
171
|
cell(g) {
|
|
182
172
|
const h = g.row.original, u = [
|
|
183
|
-
|
|
184
|
-
|
|
173
|
+
Se[N.Edit],
|
|
174
|
+
Se[N.Delete]
|
|
185
175
|
];
|
|
186
|
-
return
|
|
176
|
+
return Xe(u, (n) => d(n, h));
|
|
187
177
|
},
|
|
188
178
|
enableSorting: !1,
|
|
189
179
|
size: 40,
|
|
@@ -239,7 +229,7 @@ function He() {
|
|
|
239
229
|
}
|
|
240
230
|
function gt(r) {
|
|
241
231
|
var p;
|
|
242
|
-
const o =
|
|
232
|
+
const o = re().currentBusiness.value, e = (p = r.map((f) => {
|
|
243
233
|
var u;
|
|
244
234
|
const i = f.items.flatMap(ze), d = He(), m = [
|
|
245
235
|
["Template ID", f._id],
|
|
@@ -267,11 +257,11 @@ function gt(r) {
|
|
|
267
257
|
sheets: {},
|
|
268
258
|
sheetOccurence: {}
|
|
269
259
|
}
|
|
270
|
-
)) == null ? void 0 : p.sheets, t = `${o == null ? void 0 : o.name} closing templates (${
|
|
271
|
-
return
|
|
260
|
+
)) == null ? void 0 : p.sheets, t = `${o == null ? void 0 : o.name} closing templates (${Ze(/* @__PURE__ */ new Date())}).xlsx`, y = Ne(e);
|
|
261
|
+
return Be(y, t), t;
|
|
272
262
|
}
|
|
273
263
|
function yt() {
|
|
274
|
-
const r =
|
|
264
|
+
const r = re(), s = ae(), o = vt(), l = ze({
|
|
275
265
|
sku: {
|
|
276
266
|
unit: {
|
|
277
267
|
_id: "",
|
|
@@ -345,16 +335,16 @@ function yt() {
|
|
|
345
335
|
"Enabled (true/false)",
|
|
346
336
|
...i.length ? ["Netsuite Parent"] : []
|
|
347
337
|
]
|
|
348
|
-
), g =
|
|
338
|
+
), g = Ne({
|
|
349
339
|
Template: f,
|
|
350
340
|
Ingredients: m
|
|
351
341
|
}), h = `${e == null ? void 0 : e.name} transfer templates import.xlsx`;
|
|
352
|
-
return
|
|
342
|
+
return Be(g, h), h;
|
|
353
343
|
}
|
|
354
344
|
function ht(r) {
|
|
355
345
|
if (!r.length || `${r[0]}`.toLocaleLowerCase() === "all")
|
|
356
346
|
return [];
|
|
357
|
-
const s = /(.*) \(((warehouse_|restaurant_).{24,})\)/, l =
|
|
347
|
+
const s = /(.*) \(((warehouse_|restaurant_).{24,})\)/, l = le().locationByDbName;
|
|
358
348
|
return r.map((e) => {
|
|
359
349
|
const t = new Array(), y = e.trim(), p = s.exec(y);
|
|
360
350
|
if (!p)
|
|
@@ -382,7 +372,7 @@ function bt(r) {
|
|
|
382
372
|
y,
|
|
383
373
|
p,
|
|
384
374
|
f
|
|
385
|
-
] =
|
|
375
|
+
] = Le(r);
|
|
386
376
|
return {
|
|
387
377
|
id: `${o[1] ?? ""}`.trim(),
|
|
388
378
|
name: `${l[1] ?? ""}`.trim(),
|
|
@@ -403,7 +393,7 @@ function _t(r) {
|
|
|
403
393
|
i,
|
|
404
394
|
d,
|
|
405
395
|
...m
|
|
406
|
-
] =
|
|
396
|
+
] = Le(r);
|
|
407
397
|
if (!s || !s.length || s.some((a) => a.length && !a.startsWith("system:")))
|
|
408
398
|
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
409
399
|
const g = s.map((a) => a.split(":")[1]), u = ["code", "name", "unit", "enabled"].filter((a) => !g.includes(a));
|
|
@@ -434,7 +424,7 @@ function xt(r) {
|
|
|
434
424
|
);
|
|
435
425
|
}
|
|
436
426
|
function wt(r) {
|
|
437
|
-
const s = r.parent.data, o = new Array(), e =
|
|
427
|
+
const s = r.parent.data, o = new Array(), e = ae().skuByCode[s.code ?? ""];
|
|
438
428
|
if (!e)
|
|
439
429
|
return o.push(`Cannot find ingredient of code ${s.code} ${s.name}`), { errors: o };
|
|
440
430
|
const t = {
|
|
@@ -459,7 +449,7 @@ function wt(r) {
|
|
|
459
449
|
function kt(r) {
|
|
460
450
|
const s = r.SheetNames.filter(
|
|
461
451
|
(t) => !Object.values(ce).map(String).includes(t)
|
|
462
|
-
), l = te().templates, e =
|
|
452
|
+
), l = te().templates, e = et(l, "_id");
|
|
463
453
|
try {
|
|
464
454
|
return s.reduce(
|
|
465
455
|
(t, y) => {
|
|
@@ -537,7 +527,7 @@ function kt(r) {
|
|
|
537
527
|
const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-col" }, Ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, It = {
|
|
538
528
|
key: 0,
|
|
539
529
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
540
|
-
}, St = { key: 0 }, De = /* @__PURE__ */
|
|
530
|
+
}, St = { key: 0 }, De = /* @__PURE__ */ O({
|
|
541
531
|
__name: "ClosingTemplateImportItem",
|
|
542
532
|
props: {
|
|
543
533
|
type: {},
|
|
@@ -606,10 +596,10 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
606
596
|
}, Vt = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, Nt = {
|
|
607
597
|
key: 0,
|
|
608
598
|
class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
|
|
609
|
-
}, Bt = { class: "fm-typo-en-body-lg-600" }, Lt = /* @__PURE__ */
|
|
599
|
+
}, Bt = { class: "fm-typo-en-body-lg-600" }, Lt = /* @__PURE__ */ O({
|
|
610
600
|
__name: "ClosingTemplateImport",
|
|
611
601
|
setup(r) {
|
|
612
|
-
const s = M(null), o =
|
|
602
|
+
const s = M(null), o = mt(), l = Z(), e = M(!1), t = M(!1), y = M(new Array()), p = M([]), f = M([]), i = E(
|
|
613
603
|
() => !!y.value.length || p.value.some((h) => h.errors.length) || f.value.some((h) => h.errors.length)
|
|
614
604
|
), d = E(
|
|
615
605
|
() => !!p.value.length || !!f.value.length
|
|
@@ -619,7 +609,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
619
609
|
try {
|
|
620
610
|
e.value = !0;
|
|
621
611
|
const [u] = await Promise.all([
|
|
622
|
-
|
|
612
|
+
pt(h),
|
|
623
613
|
// fake buffer
|
|
624
614
|
new Promise((c) => setTimeout(c, 1e3))
|
|
625
615
|
]);
|
|
@@ -669,7 +659,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
669
659
|
]),
|
|
670
660
|
_("div", Rt, C(v(m)("inventory.formField.loading")), 1)
|
|
671
661
|
])) : (k(), I(H, { key: 1 }, [
|
|
672
|
-
T(
|
|
662
|
+
T(ft, {
|
|
673
663
|
class: Y({
|
|
674
664
|
"w-full": !0,
|
|
675
665
|
"h-[200px]": !s.value
|
|
@@ -764,8 +754,8 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
764
754
|
]);
|
|
765
755
|
};
|
|
766
756
|
}
|
|
767
|
-
}), se =
|
|
768
|
-
const { t: r } = B(), s =
|
|
757
|
+
}), se = Ue("closingTemplateActions", () => {
|
|
758
|
+
const { t: r } = B(), s = ie(), o = Z(), l = ee(), e = te(), { loading: t } = Ve(e), y = M({});
|
|
769
759
|
function p() {
|
|
770
760
|
y.value = {
|
|
771
761
|
mode: z.CREATE,
|
|
@@ -791,12 +781,12 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
791
781
|
message: "Deleted template can no longer be retrieved",
|
|
792
782
|
primaryActions: {
|
|
793
783
|
text: "Delete",
|
|
794
|
-
variant:
|
|
784
|
+
variant: Me.Destructive,
|
|
795
785
|
close: !0
|
|
796
786
|
},
|
|
797
787
|
secondaryActions: {
|
|
798
788
|
text: "Cancel",
|
|
799
|
-
variant:
|
|
789
|
+
variant: Me.Plain,
|
|
800
790
|
close: !0
|
|
801
791
|
}
|
|
802
792
|
}).onPrimary(async () => {
|
|
@@ -835,7 +825,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
|
|
|
835
825
|
d.value.show = a;
|
|
836
826
|
},
|
|
837
827
|
"onAction:edit"() {
|
|
838
|
-
d.value.show = !1, f(
|
|
828
|
+
d.value.show = !1, f(Ae(n));
|
|
839
829
|
}
|
|
840
830
|
};
|
|
841
831
|
}
|
|
@@ -1149,7 +1139,7 @@ function zt(r) {
|
|
|
1149
1139
|
})
|
|
1150
1140
|
};
|
|
1151
1141
|
}
|
|
1152
|
-
const Ht = { class: "flex flex-col gap-16 py-12" },
|
|
1142
|
+
const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Kt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Gt = { class: "flex flex-col gap-4" }, Jt = /* @__PURE__ */ O({
|
|
1153
1143
|
__name: "ClosingTemplateItem",
|
|
1154
1144
|
props: {
|
|
1155
1145
|
cellByColId: {},
|
|
@@ -1162,13 +1152,13 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1162
1152
|
return (e, t) => {
|
|
1163
1153
|
var y, p, f, i, d;
|
|
1164
1154
|
return k(), I("div", Ht, [
|
|
1165
|
-
_("div",
|
|
1166
|
-
_("div",
|
|
1155
|
+
_("div", Ot, [
|
|
1156
|
+
_("div", jt, [
|
|
1167
1157
|
_("div", Yt, C(o.value.original.sku.name), 1),
|
|
1168
1158
|
_("div", Kt, C(o.value.original.sku.code), 1)
|
|
1169
1159
|
]),
|
|
1170
1160
|
_("div", null, [
|
|
1171
|
-
T(v(
|
|
1161
|
+
T(v(j), {
|
|
1172
1162
|
render: (f = (p = (y = e.cellByColId[v(K).Delete]) == null ? void 0 : y.column) == null ? void 0 : p.columnDef) == null ? void 0 : f.cell,
|
|
1173
1163
|
props: (d = (i = e.cellByColId[v(K).Delete]) == null ? void 0 : i.getContext) == null ? void 0 : d.call(i)
|
|
1174
1164
|
}, null, 8, ["render", "props"])
|
|
@@ -1181,7 +1171,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1181
1171
|
return k(), I("div", {
|
|
1182
1172
|
key: m.id
|
|
1183
1173
|
}, [
|
|
1184
|
-
T(v(
|
|
1174
|
+
T(v(j), {
|
|
1185
1175
|
render: (h = (g = m.column) == null ? void 0 : g.columnDef) == null ? void 0 : h.cell,
|
|
1186
1176
|
props: (u = m.getContext) == null ? void 0 : u.call(m)
|
|
1187
1177
|
}, null, 8, ["render", "props"])
|
|
@@ -1191,18 +1181,18 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1191
1181
|
]);
|
|
1192
1182
|
};
|
|
1193
1183
|
}
|
|
1194
|
-
}), Wt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */
|
|
1184
|
+
}), Wt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */ O({
|
|
1195
1185
|
__name: "ClosingTemplateForm",
|
|
1196
1186
|
props: {
|
|
1197
1187
|
modelValue: {},
|
|
1198
1188
|
disabled: { type: Boolean }
|
|
1199
1189
|
},
|
|
1200
1190
|
setup(r, { expose: s }) {
|
|
1201
|
-
const o = r, l =
|
|
1191
|
+
const o = r, l = tt(), { t: e } = B(), t = ae(), y = ie(), {
|
|
1202
1192
|
promptSelectLocations: p,
|
|
1203
1193
|
columnDefs: f,
|
|
1204
1194
|
rowData: i
|
|
1205
|
-
} =
|
|
1195
|
+
} = nt({
|
|
1206
1196
|
getLocations() {
|
|
1207
1197
|
return l.locations;
|
|
1208
1198
|
},
|
|
@@ -1250,7 +1240,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1250
1240
|
y.open({
|
|
1251
1241
|
title: e("inventory.closing.form.items.selectItem"),
|
|
1252
1242
|
closeButton: !0,
|
|
1253
|
-
contentComponent:
|
|
1243
|
+
contentComponent: lt,
|
|
1254
1244
|
contentComponentProps: {
|
|
1255
1245
|
modelValue: a,
|
|
1256
1246
|
items: n,
|
|
@@ -1291,7 +1281,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1291
1281
|
"label-mark": "required",
|
|
1292
1282
|
modelValue: v(l).name,
|
|
1293
1283
|
"onUpdate:modelValue": a[0] || (a[0] = (D) => v(l).name = D),
|
|
1294
|
-
rules: [v(
|
|
1284
|
+
rules: [v(ot)()]
|
|
1295
1285
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
1296
1286
|
T(x, {
|
|
1297
1287
|
label: v(e)("inventory.closing.form.reference"),
|
|
@@ -1360,7 +1350,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1360
1350
|
"page-size": Math.min(10, v(l).items.length)
|
|
1361
1351
|
}, {
|
|
1362
1352
|
"list-row": P((D) => [
|
|
1363
|
-
(k(), V(
|
|
1353
|
+
(k(), V(Ee, {
|
|
1364
1354
|
row: D,
|
|
1365
1355
|
key: v(l).items.map((S) => S.sku._id).join(".")
|
|
1366
1356
|
}, {
|
|
@@ -1377,7 +1367,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1377
1367
|
}, 8, ["search-value", "column-defs", "row-data", "hide-footer", "page-size"])),
|
|
1378
1368
|
T(w, {
|
|
1379
1369
|
"model-value": v(l).items.length,
|
|
1380
|
-
rules: [v(
|
|
1370
|
+
rules: [v(st)(1)]
|
|
1381
1371
|
}, null, 8, ["model-value", "rules"])
|
|
1382
1372
|
])
|
|
1383
1373
|
]),
|
|
@@ -1385,7 +1375,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1385
1375
|
}, 8, ["disabled"]);
|
|
1386
1376
|
};
|
|
1387
1377
|
}
|
|
1388
|
-
}), sn = { class: "flex items-center" }, ln = { class: "fm-typo-en-title-md-600" }, an = { class: "flex gap-4" }, rn = /* @__PURE__ */
|
|
1378
|
+
}), sn = { class: "flex items-center" }, ln = { class: "fm-typo-en-title-md-600" }, an = { class: "flex gap-4" }, rn = /* @__PURE__ */ O({
|
|
1389
1379
|
__name: "ClosingTemplateDialog",
|
|
1390
1380
|
props: {
|
|
1391
1381
|
mode: {},
|
|
@@ -1395,7 +1385,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1395
1385
|
emits: ["update:show", "submitted"],
|
|
1396
1386
|
setup(r, { expose: s, emit: o }) {
|
|
1397
1387
|
var $;
|
|
1398
|
-
const l = r, e = o, t = ee(), y = Z(), { t: p } = B(), f =
|
|
1388
|
+
const l = r, e = o, t = ee(), y = Z(), { t: p } = B(), f = ut(l, "show");
|
|
1399
1389
|
function i() {
|
|
1400
1390
|
return {
|
|
1401
1391
|
_id: "",
|
|
@@ -1497,7 +1487,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1497
1487
|
const A = R("FmButton"), D = R("FmSideSheet");
|
|
1498
1488
|
return k(), V(D, {
|
|
1499
1489
|
modelValue: v(f),
|
|
1500
|
-
"onUpdate:modelValue": w[2] || (w[2] = (S) =>
|
|
1490
|
+
"onUpdate:modelValue": w[2] || (w[2] = (S) => je(f) ? f.value = S : null),
|
|
1501
1491
|
"dismiss-away": "",
|
|
1502
1492
|
"close-button": "",
|
|
1503
1493
|
"max-width": 800
|
|
@@ -1542,7 +1532,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot =
|
|
|
1542
1532
|
function mn(r, s) {
|
|
1543
1533
|
return k(), I("div");
|
|
1544
1534
|
}
|
|
1545
|
-
const un = /* @__PURE__ */
|
|
1535
|
+
const un = /* @__PURE__ */ at(cn, [["render", mn]]), dn = { class: "flex flex-col gap-40" }, pn = { key: 0 }, fn = {
|
|
1546
1536
|
key: 1,
|
|
1547
1537
|
class: "flex gap-8 items-center"
|
|
1548
1538
|
}, vn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, gn = {
|
|
@@ -1551,7 +1541,7 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1551
1541
|
}, yn = {
|
|
1552
1542
|
key: 3,
|
|
1553
1543
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex flex-col gap-12"
|
|
1554
|
-
}, hn = { class: "fm-typo-en-body-md-600" }, bn = { class: "fm-typo-en-body-md-600" }, _n = { key: 4 }, xn = { class: "fm-typo-en-body-md-600" }, wn = { class: "fm-typo-en-body-md-600" }, kn = { class: "flex sm:flex-col xs:flex-col justify-end gap-8 w-full mb-16" }, Tn = /* @__PURE__ */
|
|
1544
|
+
}, hn = { class: "fm-typo-en-body-md-600" }, bn = { class: "fm-typo-en-body-md-600" }, _n = { key: 4 }, xn = { class: "fm-typo-en-body-md-600" }, wn = { class: "fm-typo-en-body-md-600" }, kn = { class: "flex sm:flex-col xs:flex-col justify-end gap-8 w-full mb-16" }, Tn = /* @__PURE__ */ O({
|
|
1555
1545
|
__name: "ClosingTemplatePublish",
|
|
1556
1546
|
emits: ["close"],
|
|
1557
1547
|
setup(r, { emit: s }) {
|
|
@@ -1643,10 +1633,10 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1643
1633
|
]);
|
|
1644
1634
|
};
|
|
1645
1635
|
}
|
|
1646
|
-
}), $n = { class: "flex-1 flex flex-col gap-8" }, Cn = { class: "flex flex-col" }, In = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Mn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Dn = { class: "fm-typo-en-body-lg-400 line-clamp-2" },
|
|
1636
|
+
}), $n = { class: "flex-1 flex flex-col gap-8" }, Cn = { class: "flex flex-col" }, In = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Mn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Dn = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Bn = /* @__PURE__ */ O({
|
|
1647
1637
|
__name: "ClosingTemplateView",
|
|
1648
1638
|
setup(r) {
|
|
1649
|
-
const { t: s } = B(), { createTemplate: o, updateTemplate: l, exportTemplates: e, importTemplates: t } = se(), { templateDialogProps: y, templateDetailsProps: p } =
|
|
1639
|
+
const { t: s } = B(), { createTemplate: o, updateTemplate: l, exportTemplates: e, importTemplates: t } = se(), { templateDialogProps: y, templateDetailsProps: p } = Ve(se()), f = le(), i = ie(), d = te(), m = rt(), { breakpoints: g } = dt();
|
|
1650
1640
|
f.watchLocation(d.fetchTemplates);
|
|
1651
1641
|
const h = E(() => d.loading), u = M(""), n = E(() => g.value.xs || g.value.sm), a = E(() => n.value ? 10 : 20);
|
|
1652
1642
|
function x(w) {
|
|
@@ -1735,7 +1725,7 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1735
1725
|
return (w, A) => {
|
|
1736
1726
|
const D = R("FmTable");
|
|
1737
1727
|
return k(), I(H, null, [
|
|
1738
|
-
T(
|
|
1728
|
+
T(it, {
|
|
1739
1729
|
title: v(s)("inventory.closing.template.title"),
|
|
1740
1730
|
actions: b.value,
|
|
1741
1731
|
"onClick:action": x
|
|
@@ -1750,7 +1740,7 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1750
1740
|
}
|
|
1751
1741
|
])
|
|
1752
1742
|
}, [
|
|
1753
|
-
T(
|
|
1743
|
+
T(ct, {
|
|
1754
1744
|
searchable: "",
|
|
1755
1745
|
search: u.value,
|
|
1756
1746
|
"onUpdate:search": A[0] || (A[0] = (S) => u.value = S)
|
|
@@ -1765,7 +1755,7 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1765
1755
|
"page-size": a.value
|
|
1766
1756
|
}, {
|
|
1767
1757
|
"list-row": P((S) => [
|
|
1768
|
-
T(
|
|
1758
|
+
T(Ee, {
|
|
1769
1759
|
row: S,
|
|
1770
1760
|
onRowClick: (U) => v(l)(U)
|
|
1771
1761
|
}, {
|
|
@@ -1775,13 +1765,13 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1775
1765
|
_("div", $n, [
|
|
1776
1766
|
_("div", Cn, [
|
|
1777
1767
|
_("div", In, [
|
|
1778
|
-
T(v(
|
|
1768
|
+
T(v(j), {
|
|
1779
1769
|
render: (de = (ue = (me = U._id) == null ? void 0 : me.column) == null ? void 0 : ue.columnDef) == null ? void 0 : de.cell,
|
|
1780
1770
|
props: (pe = (W = U._id) == null ? void 0 : W.getContext) == null ? void 0 : pe.call(W)
|
|
1781
1771
|
}, null, 8, ["render", "props"])
|
|
1782
1772
|
]),
|
|
1783
1773
|
_("div", Sn, [
|
|
1784
|
-
T(v(
|
|
1774
|
+
T(v(j), {
|
|
1785
1775
|
render: (ge = (ve = (fe = U.name) == null ? void 0 : fe.column) == null ? void 0 : ve.columnDef) == null ? void 0 : ge.cell,
|
|
1786
1776
|
props: (ye = (q = U.name) == null ? void 0 : q.getContext) == null ? void 0 : ye.call(q)
|
|
1787
1777
|
}, null, 8, ["render", "props"])
|
|
@@ -1790,18 +1780,18 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1790
1780
|
count: ((be = S.original.locations) == null ? void 0 : be.length) ?? 0
|
|
1791
1781
|
}) : v(s)("inventory.closing.table.enabledForAll")), 1),
|
|
1792
1782
|
_("div", Mn, C([
|
|
1793
|
-
...S.original.items.slice(0, 3).map((
|
|
1783
|
+
...S.original.items.slice(0, 3).map((Oe) => Oe.sku.name),
|
|
1794
1784
|
...S.original.items.length >= 3 ? [`and ${S.original.items.length - 3} more items`] : []
|
|
1795
1785
|
].join(", ")), 1),
|
|
1796
1786
|
_("div", Dn, [
|
|
1797
|
-
T(v(
|
|
1787
|
+
T(v(j), {
|
|
1798
1788
|
render: (we = (xe = (_e = U.ref) == null ? void 0 : _e.column) == null ? void 0 : xe.columnDef) == null ? void 0 : we.cell,
|
|
1799
1789
|
props: (ke = (Q = U.ref) == null ? void 0 : Q.getContext) == null ? void 0 : ke.call(Q)
|
|
1800
1790
|
}, null, 8, ["render", "props"])
|
|
1801
1791
|
])
|
|
1802
1792
|
]),
|
|
1803
1793
|
_("div", null, [
|
|
1804
|
-
T(v(
|
|
1794
|
+
T(v(j), {
|
|
1805
1795
|
render: (Ce = ($e = (Te = U.status) == null ? void 0 : Te.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Ce.cell,
|
|
1806
1796
|
props: (Ie = (X = U.status) == null ? void 0 : X.getContext) == null ? void 0 : Ie.call(X)
|
|
1807
1797
|
}, null, 8, ["render", "props"])
|
|
@@ -1829,5 +1819,5 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
|
|
|
1829
1819
|
}
|
|
1830
1820
|
});
|
|
1831
1821
|
export {
|
|
1832
|
-
|
|
1822
|
+
Bn as default
|
|
1833
1823
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as U, ref as d, computed as y, resolveComponent as k, openBlock as s, createElementBlock as c, createElementVNode as p, createCommentVNode as S, renderSlot as u, createBlock as C, normalizeClass as f, toDisplayString as F, unref as B } from "vue";
|
|
2
2
|
import { useI18n as W } from "@feedmepos/mf-common";
|
|
3
|
-
import { _ as q } from "./
|
|
3
|
+
import { _ as q } from "./app-CTCC1zfY.js";
|
|
4
4
|
const G = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "relative"
|