@feedmepos/mf-inventory-portal 1.2.30-dev.1 → 1.2.31-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-kX4bqoEe.js → App-DfKh34ES.js} +43 -41
- package/dist/{ApprovalView-DCNKqVE2.js → ApprovalView-DyoKsEqh.js} +34 -28
- package/dist/{BindingsDialog-d7f1f8gf.js → BindingsDialog-7rGLzkyA.js} +8 -8
- package/dist/{BindingsPicker-2HJOx0QW.js → BindingsPicker-Cj1DvhQN.js} +6 -5
- package/dist/{BindingsTable-CPAjxOZG.js → BindingsTable-CAreptqr.js} +28 -24
- package/dist/{ClosingDraftView-CUng41eo.js → ClosingDraftView-DoDGz9Y8.js} +183 -175
- package/dist/{ClosingHistoryView-CcGc2NwU.js → ClosingHistoryView-BJSE7ZSv.js} +43 -41
- package/dist/{ClosingTemplateView-D8IAdhDb.js → ClosingTemplateView-Dr2eJk4h.js} +94 -76
- package/dist/{DeliveryOrderPrintPreview-BsM-CCc5.js → DeliveryOrderPrintPreview-BzYLm6J6.js} +15 -14
- package/dist/FmDroppableField-J0xUsOTV.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-cuggJ5Xd.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-16r_hkBE.js} +74 -72
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Csesow4V.js +279 -0
- package/dist/FmMultiselectDialog-BGhSjgbj.js +597 -0
- package/dist/{FmMultiselectDialog-BGbrqXUF.js → FmMultiselectDialog-DUrpqAkF.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-isogcN1O.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CSv7osJW.js} +51 -49
- package/dist/{ImportView-wAVrMEwL.js → ImportView-BAkyTU_3.js} +81 -74
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVUF4I2Q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-z0IAsrH_.js} +5 -5
- package/dist/{IngredientGroupView-BZczeXdL.js → IngredientGroupView-D7gurA7T.js} +73 -65
- package/dist/{IngredientsView-D5N5Y1ZY.js → IngredientsView-hwfpMtTX.js} +358 -345
- package/dist/{IntegrationView-Hrslmuc1.js → IntegrationView-DwqzQ6E3.js} +1618 -1593
- package/dist/{InventoryBindingForm-DH6wgxOG.js → InventoryBindingForm-CwjM6Rqk.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Drr5vD6f.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BPr8PDwu.js} +41 -40
- package/dist/{InventoryBindingSummary-BU1ehpQZ.js → InventoryBindingSummary-B7UFFMkm.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1ueC4GfZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Djo2b2Ix.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-FHcU1zZt.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BSgGGiN6.js} +22 -21
- package/dist/{PublishView-CQtj0f31.js → PublishView-CA9gFV_r.js} +26 -23
- package/dist/{PurchaseOrderPrintPreview-BQyXtHST.js → PurchaseOrderPrintPreview-BeHd82Y0.js} +10 -9
- package/dist/{ReceiveRequestView-Dm-h_SrY.js → ReceiveRequestView-DEthRdM1.js} +472 -456
- package/dist/{RecipeView-DNNRvr1w.js → RecipeView-D45gkYHY.js} +73 -64
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js +251 -0
- package/dist/{StockView-CaOm5BCx.js → StockView-COx7A4Ac.js} +292 -282
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Z91XRszD.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DX35xDkm.js} +1 -1
- package/dist/{SupplierView-JSII9qwL.js → SupplierView-DHM3dJMZ.js} +92 -80
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bg2K2ULw.js +177 -0
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CyMEGFh5.js +123 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Mehd4lGs.js → TransferDetails.vue_vue_type_script_setup_true_lang-CVm2bXic.js} +318 -305
- package/dist/{TransferTemplateView-DyCpNKJd.js → TransferTemplateView-BtYozLuk.js} +228 -216
- package/dist/{UnitView-CqN7mlJ2.js → UnitView-B4mqodQa.js} +70 -63
- package/dist/{WarehouseView-gFWD-m8e.js → WarehouseView-CjDM8L_V.js} +123 -114
- package/dist/WastageTemplateView-Be4Y_zV8.js +2288 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/netsuite.d.ts +9 -3
- package/dist/app-DYsP0gKj.js +64121 -0
- package/dist/app-rgirz_52.js +8024 -0
- package/dist/app.js +6 -6
- package/dist/closing-template-BVy1ga2g.js +117 -0
- package/dist/date2-BO7HiZTk.js +116 -0
- package/dist/dayjs.min-HNt4C1ja.js +282 -0
- package/dist/{decimal-DfF_g5rc.js → decimal-BJ8rKm1R.js} +4 -3
- package/dist/defineDeepModel-CidpVmK7.js +19 -0
- package/dist/duplicate-template-C25Z0lvq.js +34 -0
- package/dist/feature-DCia3aqG.js +20162 -0
- package/dist/form-mode.enum-BKiNVH6A.js +4 -0
- package/dist/format-time-from-id-BPws326b.js +15 -0
- package/dist/{format-unit-display-ivAljvlo.js → format-unit-display-C2P3mS8l.js} +308 -297
- package/dist/{import-export.helper-B2MWv9v7.js → import-export.helper-Dt6ZMAPT.js} +56 -52
- package/dist/{index-DZaT0ZaL.js → index-6zxXdF-V.js} +1 -1
- package/dist/index-BjUDHtA2.js +45 -0
- package/dist/{index-BbhuWHyh.js → index-tZj47B-j.js} +16 -14
- package/dist/lodash-DLMgBu6M.js +3678 -0
- package/dist/netsuite-BSMLXIQa.js +4979 -0
- package/dist/{purchase-order-template-DdybMC_P.js → purchase-order-template-D5NGCbI2.js} +1 -1
- package/dist/router/shared.spec.d.ts +1 -0
- package/dist/row-action.enum-BcW_L_nE.js +67 -0
- package/dist/rules-BiaGzhvQ.js +201 -0
- package/dist/{stock-BYagIdsj.js → stock-DOCQ91Jh.js} +1 -1
- package/dist/{stock-V4ciPiBe.js → stock-Ty-89Ap8.js} +11 -10
- package/dist/stores/integration/netsuite.d.ts +5 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-CgtB1I9I.js → supplier-Dxb5ULjF.js} +27 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BIQovyZX.js → use-ingredient-select-dialog-BI0yIG6A.js} +4 -3
- package/dist/{use-inventory-binding-dialog-DyjicXgc.js → use-inventory-binding-dialog-CbZC-VuL.js} +4 -3
- package/dist/use-template-enabled-locations-2-Dhttpl0B.js +111 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -1
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +6 -2
- package/dist/vue-i18n-Cqx7gNJF.js +2365 -0
- package/dist/xlsx-ex8Bmftq.js +24004 -0
- package/dist/xlsx.util-C8YXEqEl.js +78 -0
- package/package.json +2 -2
- package/dist/app-CnQ49Lyb.js +0 -131483
|
@@ -1,13 +1,31 @@
|
|
|
1
|
-
import { ref as R, h as P, defineComponent as K, resolveComponent as E, openBlock as $, createElementBlock as D, createElementVNode as _, normalizeClass as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useDialog as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { ref as R, h as P, defineComponent as K, resolveComponent as E, openBlock as $, createElementBlock as D, createElementVNode as _, normalizeClass as q, createTextVNode as ae, toDisplayString as I, unref as u, createCommentVNode as O, createVNode as C, withCtx as V, Fragment as j, renderList as Z, computed as L, watch as Pe, createSlots as Ee, createBlock as N, isRef as Ye, normalizeStyle as Ge, Teleport as Ke, normalizeProps as We, guardReactiveProps as qe, mergeProps as Je } from "vue";
|
|
2
|
+
import { u as Xe, _ as Qe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
|
+
import { useI18n as W, useCoreStore as de } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialog as pe, useDialogChild as Ze, useSnackbar as ce, FmButtonVariant as oe, components as Y, FmAdvancedSort as et, useProxiedModel as tt, useBreakpoints as nt } from "@feedmepos/ui-library";
|
|
5
|
+
import { defineStore as Ve, storeToRefs as Ue } from "pinia";
|
|
6
|
+
import { F as G } from "./form-mode.enum-BKiNVH6A.js";
|
|
7
|
+
import { a as me } from "./closing-template-BVy1ga2g.js";
|
|
8
|
+
import { u as fe, c as Ne, a as ve, n as ot } from "./app-DYsP0gKj.js";
|
|
9
|
+
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-C8YXEqEl.js";
|
|
10
|
+
import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
|
|
11
|
+
import { f as Be, a as le } from "./date2-BO7HiZTk.js";
|
|
12
|
+
import { D as se, R as z } from "./row-action.enum-BcW_L_nE.js";
|
|
13
|
+
import { c as at, F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
14
|
+
import { f as rt } from "./format-time-from-id-BPws326b.js";
|
|
15
|
+
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CyMEGFh5.js";
|
|
16
|
+
import { u as ct } from "./netsuite-BSMLXIQa.js";
|
|
17
|
+
import { u as mt } from "./duplicate-template-C25Z0lvq.js";
|
|
18
|
+
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Csesow4V.js";
|
|
19
|
+
import { R as dt, A as pt } from "./rules-BiaGzhvQ.js";
|
|
20
|
+
import { u as ft } from "./use-ingredient-select-dialog-BI0yIG6A.js";
|
|
21
|
+
import { d as vt } from "./defineDeepModel-CidpVmK7.js";
|
|
22
|
+
import { u as gt } from "./use-template-enabled-locations-2-Dhttpl0B.js";
|
|
23
|
+
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bg2K2ULw.js";
|
|
24
|
+
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
25
|
+
const ue = Ve(
|
|
8
26
|
"closingTemplateTable",
|
|
9
27
|
function() {
|
|
10
|
-
const { t: r } =
|
|
28
|
+
const { t: r } = W(), l = pe(), d = R({}), t = ie(), n = R({}), f = R(new Array()), b = R(!1), c = fe(), a = me();
|
|
11
29
|
function g(s) {
|
|
12
30
|
const v = {
|
|
13
31
|
title: s.name,
|
|
@@ -32,7 +50,7 @@ const ue = Be(
|
|
|
32
50
|
};
|
|
33
51
|
l.open({
|
|
34
52
|
title: "Publish template",
|
|
35
|
-
contentComponent:
|
|
53
|
+
contentComponent: it,
|
|
36
54
|
contentComponentProps: v,
|
|
37
55
|
closeButton: !0,
|
|
38
56
|
primaryActions: {
|
|
@@ -76,7 +94,7 @@ const ue = Be(
|
|
|
76
94
|
}
|
|
77
95
|
}
|
|
78
96
|
function w(s, v) {
|
|
79
|
-
switch (v =
|
|
97
|
+
switch (v = Ne(v), s) {
|
|
80
98
|
case z.Details:
|
|
81
99
|
return t.viewTemplate(v);
|
|
82
100
|
case z.Edit:
|
|
@@ -96,7 +114,7 @@ const ue = Be(
|
|
|
96
114
|
accessorKey: "_id",
|
|
97
115
|
header: () => r("inventory.closing.table.createdAt"),
|
|
98
116
|
cell(s) {
|
|
99
|
-
return
|
|
117
|
+
return rt(`${s.getValue()}`);
|
|
100
118
|
},
|
|
101
119
|
enableSorting: !0
|
|
102
120
|
},
|
|
@@ -167,12 +185,12 @@ const ue = Be(
|
|
|
167
185
|
id: "action",
|
|
168
186
|
cell(s) {
|
|
169
187
|
const v = s.row.original, T = [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
188
|
+
se[z.Edit],
|
|
189
|
+
se[z.Duplicate],
|
|
190
|
+
se[z.Delete],
|
|
191
|
+
se[z.Publish]
|
|
174
192
|
];
|
|
175
|
-
return
|
|
193
|
+
return at(T, (e) => w(e, v));
|
|
176
194
|
},
|
|
177
195
|
enableSorting: !1,
|
|
178
196
|
size: 40,
|
|
@@ -228,7 +246,7 @@ function Oe() {
|
|
|
228
246
|
}
|
|
229
247
|
function bt(m) {
|
|
230
248
|
var b;
|
|
231
|
-
const l =
|
|
249
|
+
const l = de().currentBusiness.value, t = (b = m.map((c) => {
|
|
232
250
|
var y;
|
|
233
251
|
const a = c.items.flatMap(He), g = Oe(), i = [
|
|
234
252
|
["Template ID", c._id],
|
|
@@ -256,11 +274,11 @@ function bt(m) {
|
|
|
256
274
|
sheets: {},
|
|
257
275
|
sheetOccurence: {}
|
|
258
276
|
}
|
|
259
|
-
)) == null ? void 0 : b.sheets, n = `${l == null ? void 0 : l.name} closing templates (${
|
|
260
|
-
return
|
|
277
|
+
)) == null ? void 0 : b.sheets, n = `${l == null ? void 0 : l.name} closing templates (${Be(/* @__PURE__ */ new Date())}).xlsx`, f = ge(t);
|
|
278
|
+
return ye(f, n), n;
|
|
261
279
|
}
|
|
262
280
|
function _t(m) {
|
|
263
|
-
|
|
281
|
+
de().currentBusiness.value;
|
|
264
282
|
const l = 3, d = (i) => {
|
|
265
283
|
const h = [], w = i.sku, y = new Set(i.disabledMeasurements || []);
|
|
266
284
|
y.has(w.unit._id) || h.push(w.unit.abbrev);
|
|
@@ -320,11 +338,11 @@ function _t(m) {
|
|
|
320
338
|
header: 0.3,
|
|
321
339
|
footer: 0.3
|
|
322
340
|
};
|
|
323
|
-
const c = m.name.slice(0, 31), a =
|
|
324
|
-
return
|
|
341
|
+
const c = m.name.slice(0, 31), a = ge({ [c]: f }), g = `${m.name} - Closing Template (${Be(/* @__PURE__ */ new Date())}).xlsx`;
|
|
342
|
+
return ye(a, g), g;
|
|
325
343
|
}
|
|
326
344
|
function xt() {
|
|
327
|
-
const m =
|
|
345
|
+
const m = de(), r = ve(), l = ct(), d = He({
|
|
328
346
|
sku: {
|
|
329
347
|
unit: {
|
|
330
348
|
_id: "",
|
|
@@ -398,16 +416,16 @@ function xt() {
|
|
|
398
416
|
"Enabled (true/false)",
|
|
399
417
|
...a.length ? ["Netsuite Parent"] : []
|
|
400
418
|
]
|
|
401
|
-
), h =
|
|
419
|
+
), h = ge({
|
|
402
420
|
Template: c,
|
|
403
421
|
Ingredients: i
|
|
404
422
|
}), w = `${t == null ? void 0 : t.name} transfer templates import.xlsx`;
|
|
405
|
-
return
|
|
423
|
+
return ye(h, w), w;
|
|
406
424
|
}
|
|
407
425
|
function wt(m) {
|
|
408
426
|
if (!m.length || `${m[0]}`.toLocaleLowerCase() === "all")
|
|
409
427
|
return [];
|
|
410
|
-
const r = /(.*) \(((warehouse_|restaurant_).{24,})\)/, d =
|
|
428
|
+
const r = /(.*) \(((warehouse_|restaurant_).{24,})\)/, d = fe().locationByDbName;
|
|
411
429
|
return m.map((t) => {
|
|
412
430
|
const n = new Array(), f = t.trim(), b = r.exec(f);
|
|
413
431
|
if (!b)
|
|
@@ -435,7 +453,7 @@ function kt(m) {
|
|
|
435
453
|
f,
|
|
436
454
|
b,
|
|
437
455
|
c
|
|
438
|
-
] =
|
|
456
|
+
] = Le(m);
|
|
439
457
|
return {
|
|
440
458
|
id: `${l[1] ?? ""}`.trim(),
|
|
441
459
|
name: `${d[1] ?? ""}`.trim(),
|
|
@@ -456,7 +474,7 @@ function Tt(m) {
|
|
|
456
474
|
a,
|
|
457
475
|
g,
|
|
458
476
|
...i
|
|
459
|
-
] =
|
|
477
|
+
] = Le(m);
|
|
460
478
|
if (!r || !r.length || r.some((v) => v.length && !v.startsWith("system:")))
|
|
461
479
|
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
462
480
|
const h = r.map((v) => v.split(":")[1]), y = ["code", "name", "unit", "enabled"].filter((v) => !h.includes(v));
|
|
@@ -511,7 +529,7 @@ function Ct(m) {
|
|
|
511
529
|
function It(m) {
|
|
512
530
|
const r = m.SheetNames.filter(
|
|
513
531
|
(n) => !Object.values(he).map(String).includes(n)
|
|
514
|
-
), d = ue().templates, t =
|
|
532
|
+
), d = ue().templates, t = ot(d, "_id");
|
|
515
533
|
try {
|
|
516
534
|
return r.reduce(
|
|
517
535
|
(n, f) => {
|
|
@@ -599,7 +617,7 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
599
617
|
errors: {}
|
|
600
618
|
},
|
|
601
619
|
setup(m) {
|
|
602
|
-
const { t: r } =
|
|
620
|
+
const { t: r } = W();
|
|
603
621
|
return (l, d) => {
|
|
604
622
|
var f, b, c;
|
|
605
623
|
const t = E("FmIcon"), n = E("FmTooltip");
|
|
@@ -608,7 +626,7 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
608
626
|
_("div", Dt, [
|
|
609
627
|
_("div", Mt, [
|
|
610
628
|
_("div", {
|
|
611
|
-
class:
|
|
629
|
+
class: q({
|
|
612
630
|
"text-fm-color-system-error-300": l.errors.length
|
|
613
631
|
})
|
|
614
632
|
}, [
|
|
@@ -634,7 +652,7 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
634
652
|
])) : O("", !0)
|
|
635
653
|
]),
|
|
636
654
|
_("div", {
|
|
637
|
-
class:
|
|
655
|
+
class: q([
|
|
638
656
|
"fm-typo-en-body-sm-400",
|
|
639
657
|
{
|
|
640
658
|
"text-fm-color-system-error-200": l.errors.length,
|
|
@@ -661,17 +679,17 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
661
679
|
}, Ot = { class: "fm-typo-en-body-lg-600" }, jt = /* @__PURE__ */ K({
|
|
662
680
|
__name: "ClosingTemplateImport",
|
|
663
681
|
setup(m) {
|
|
664
|
-
const r = R(null), l =
|
|
682
|
+
const r = R(null), l = Ze(), d = ce(), t = R(!1), n = R(!1), f = R(new Array()), b = R([]), c = R([]), a = L(
|
|
665
683
|
() => !!f.value.length || b.value.some((w) => w.errors.length) || c.value.some((w) => w.errors.length)
|
|
666
684
|
), g = L(
|
|
667
685
|
() => !!b.value.length || !!c.value.length
|
|
668
|
-
), { t: i } =
|
|
686
|
+
), { t: i } = W();
|
|
669
687
|
async function h(w) {
|
|
670
688
|
f.value = [], b.value = [], c.value = [];
|
|
671
689
|
try {
|
|
672
690
|
t.value = !0;
|
|
673
691
|
const [y] = await Promise.all([
|
|
674
|
-
|
|
692
|
+
st(w),
|
|
675
693
|
// fake buffer
|
|
676
694
|
new Promise((e) => setTimeout(e, 1e3))
|
|
677
695
|
]);
|
|
@@ -721,8 +739,8 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
721
739
|
]),
|
|
722
740
|
_("div", Vt, I(u(i)("inventory.formField.loading")), 1)
|
|
723
741
|
])) : ($(), D(j, { key: 1 }, [
|
|
724
|
-
C(
|
|
725
|
-
class:
|
|
742
|
+
C(lt, {
|
|
743
|
+
class: q({
|
|
726
744
|
"w-full": !0,
|
|
727
745
|
"h-[200px]": !r.value
|
|
728
746
|
}),
|
|
@@ -736,7 +754,7 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
736
754
|
fn: V(({ openFileDialog: e }) => [
|
|
737
755
|
_("div", Ut, [
|
|
738
756
|
_("div", {
|
|
739
|
-
class:
|
|
757
|
+
class: q([
|
|
740
758
|
"fm-corner-radius-md p-16 flex items-center gap-16",
|
|
741
759
|
{
|
|
742
760
|
"border border-fm-color-neutral-gray-100": t.value,
|
|
@@ -756,7 +774,7 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
756
774
|
color: a.value ? "system-error-300" : void 0
|
|
757
775
|
}, null, 8, ["name", "color"])),
|
|
758
776
|
_("div", {
|
|
759
|
-
class:
|
|
777
|
+
class: q([
|
|
760
778
|
"fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center",
|
|
761
779
|
{
|
|
762
780
|
"text-fm-color-typo-disabled": t.value,
|
|
@@ -816,8 +834,8 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
816
834
|
]);
|
|
817
835
|
};
|
|
818
836
|
}
|
|
819
|
-
}), ie =
|
|
820
|
-
const { t: m } =
|
|
837
|
+
}), ie = Ve("closingTemplateActions", () => {
|
|
838
|
+
const { t: m } = W(), r = pe(), l = ce(), d = me(), t = mt(), n = ue(), { loading: f } = Ue(n), b = R({});
|
|
821
839
|
function c() {
|
|
822
840
|
b.value = {
|
|
823
841
|
mode: G.CREATE,
|
|
@@ -843,12 +861,12 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
843
861
|
message: "Deleted template can no longer be retrieved",
|
|
844
862
|
primaryActions: {
|
|
845
863
|
text: "Delete",
|
|
846
|
-
variant:
|
|
864
|
+
variant: oe.Destructive,
|
|
847
865
|
close: !0
|
|
848
866
|
},
|
|
849
867
|
secondaryActions: {
|
|
850
868
|
text: "Cancel",
|
|
851
|
-
variant:
|
|
869
|
+
variant: oe.Plain,
|
|
852
870
|
close: !0
|
|
853
871
|
}
|
|
854
872
|
}).onPrimary(async () => {
|
|
@@ -885,12 +903,12 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
885
903
|
message: "Duplicated template can be edited after creation",
|
|
886
904
|
primaryActions: {
|
|
887
905
|
text: "Duplicate",
|
|
888
|
-
variant:
|
|
906
|
+
variant: oe.Destructive,
|
|
889
907
|
close: !0
|
|
890
908
|
},
|
|
891
909
|
secondaryActions: {
|
|
892
910
|
text: "Cancel",
|
|
893
|
-
variant:
|
|
911
|
+
variant: oe.Plain,
|
|
894
912
|
close: !0
|
|
895
913
|
},
|
|
896
914
|
contentComponent: K({
|
|
@@ -942,7 +960,7 @@ const St = { class: "flex items-center gap-12 pl-8" }, Dt = { class: "flex flex-
|
|
|
942
960
|
h.value.show = k;
|
|
943
961
|
},
|
|
944
962
|
"onAction:edit"() {
|
|
945
|
-
h.value.show = !1, a(
|
|
963
|
+
h.value.show = !1, a(Ne(e));
|
|
946
964
|
}
|
|
947
965
|
};
|
|
948
966
|
}
|
|
@@ -1273,7 +1291,7 @@ function Yt(m) {
|
|
|
1273
1291
|
})
|
|
1274
1292
|
};
|
|
1275
1293
|
}
|
|
1276
|
-
const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" },
|
|
1294
|
+
const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, Wt = { class: "flex-1 flex flex-col" }, qt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Xt = { class: "flex flex-col gap-4" }, Qt = /* @__PURE__ */ K({
|
|
1277
1295
|
__name: "ClosingTemplateItem",
|
|
1278
1296
|
props: {
|
|
1279
1297
|
cellByColId: {},
|
|
@@ -1287,9 +1305,9 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1287
1305
|
var f, b, c, a, g;
|
|
1288
1306
|
return $(), D("div", Gt, [
|
|
1289
1307
|
_("div", Kt, [
|
|
1290
|
-
_("div",
|
|
1291
|
-
_("div",
|
|
1292
|
-
_("div",
|
|
1308
|
+
_("div", Wt, [
|
|
1309
|
+
_("div", qt, I(l.value.original.sku.name), 1),
|
|
1310
|
+
_("div", Jt, I(l.value.original.sku.code), 1)
|
|
1293
1311
|
]),
|
|
1294
1312
|
_("div", null, [
|
|
1295
1313
|
C(u(X), {
|
|
@@ -1322,11 +1340,11 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1322
1340
|
disabled: { type: Boolean }
|
|
1323
1341
|
},
|
|
1324
1342
|
setup(m, { expose: r }) {
|
|
1325
|
-
const l = m, d =
|
|
1343
|
+
const l = m, d = vt(), { t } = W(), n = ve(), {
|
|
1326
1344
|
promptSelectLocations: f,
|
|
1327
1345
|
columnDefs: b,
|
|
1328
1346
|
rowData: c
|
|
1329
|
-
} =
|
|
1347
|
+
} = gt({
|
|
1330
1348
|
getLocations() {
|
|
1331
1349
|
return d.locations;
|
|
1332
1350
|
},
|
|
@@ -1391,7 +1409,7 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1391
1409
|
get disabled() {
|
|
1392
1410
|
return l.disabled;
|
|
1393
1411
|
}
|
|
1394
|
-
}), e = L(() => T.columnDefs.value), { promptSelectIngredients: k } =
|
|
1412
|
+
}), e = L(() => T.columnDefs.value), { promptSelectIngredients: k } = ft();
|
|
1395
1413
|
async function F() {
|
|
1396
1414
|
const o = n.skus.map((S) => ({
|
|
1397
1415
|
label: S.name,
|
|
@@ -1427,7 +1445,7 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1427
1445
|
"label-mark": "required",
|
|
1428
1446
|
modelValue: u(d).name,
|
|
1429
1447
|
"onUpdate:modelValue": o[0] || (o[0] = (A) => u(d).name = A),
|
|
1430
|
-
rules: [u(
|
|
1448
|
+
rules: [u(dt)()]
|
|
1431
1449
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
1432
1450
|
C(x, {
|
|
1433
1451
|
label: u(t)("inventory.closing.form.reference"),
|
|
@@ -1467,7 +1485,7 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1467
1485
|
label: h.value ? u(t)("inventory.common.done") : u(t)("inventory.common.rearrange"),
|
|
1468
1486
|
"prepend-icon": h.value ? "check" : "swap_vert",
|
|
1469
1487
|
variant: h.value ? "primary" : "secondary",
|
|
1470
|
-
class:
|
|
1488
|
+
class: q(["border-2 rounded-lg", h.value ? "" : "border-fm-color-secondary"]),
|
|
1471
1489
|
onClick: v,
|
|
1472
1490
|
size: "md"
|
|
1473
1491
|
}, null, 8, ["disabled", "label", "prepend-icon", "variant", "class"])) : O("", !0),
|
|
@@ -1484,7 +1502,7 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1484
1502
|
])
|
|
1485
1503
|
]),
|
|
1486
1504
|
h.value ? ($(), D("div", cn, [
|
|
1487
|
-
C(u(
|
|
1505
|
+
C(u(et), {
|
|
1488
1506
|
modelValue: y.value,
|
|
1489
1507
|
"onUpdate:modelValue": o[3] || (o[3] = (A) => y.value = A),
|
|
1490
1508
|
"sort-fields": w,
|
|
@@ -1523,14 +1541,14 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1523
1541
|
"page-size": Math.min(10, s.value.length)
|
|
1524
1542
|
}, {
|
|
1525
1543
|
"list-row": V((A) => [
|
|
1526
|
-
($(), N(
|
|
1544
|
+
($(), N(ze, {
|
|
1527
1545
|
row: A,
|
|
1528
|
-
key: s.value.map((
|
|
1546
|
+
key: s.value.map((J) => J.sku._id).join(".")
|
|
1529
1547
|
}, {
|
|
1530
|
-
default: V((
|
|
1548
|
+
default: V((J) => [
|
|
1531
1549
|
C(Qt, {
|
|
1532
1550
|
row: A,
|
|
1533
|
-
"cell-by-col-id":
|
|
1551
|
+
"cell-by-col-id": J
|
|
1534
1552
|
}, null, 8, ["row", "cell-by-col-id"])
|
|
1535
1553
|
]),
|
|
1536
1554
|
_: 2
|
|
@@ -1542,7 +1560,7 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1542
1560
|
], 64)),
|
|
1543
1561
|
C(H, {
|
|
1544
1562
|
"model-value": u(d).items.length,
|
|
1545
|
-
rules: [u(
|
|
1563
|
+
rules: [u(pt)(1)]
|
|
1546
1564
|
}, null, 8, ["model-value", "rules"])
|
|
1547
1565
|
])
|
|
1548
1566
|
]),
|
|
@@ -1560,7 +1578,7 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1560
1578
|
emits: ["update:show", "submitted"],
|
|
1561
1579
|
setup(m, { expose: r, emit: l }) {
|
|
1562
1580
|
var p;
|
|
1563
|
-
const d = m, t = l, n =
|
|
1581
|
+
const d = m, t = l, n = me(), f = ie(), b = ce(), { t: c } = W(), a = tt(d, "show");
|
|
1564
1582
|
function g() {
|
|
1565
1583
|
return {
|
|
1566
1584
|
_id: "",
|
|
@@ -1698,7 +1716,7 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1698
1716
|
ae(" (" + I(i.value.updatedBy.name) + ") ", 1)
|
|
1699
1717
|
], 64)) : O("", !0)
|
|
1700
1718
|
]),
|
|
1701
|
-
C(
|
|
1719
|
+
C(yt, {
|
|
1702
1720
|
"closing-id": i.value._id
|
|
1703
1721
|
}, null, 8, ["closing-id"])
|
|
1704
1722
|
])
|
|
@@ -1750,7 +1768,7 @@ const Gt = { class: "flex flex-col gap-16 py-12" }, Kt = { class: "flex" }, qt =
|
|
|
1750
1768
|
function kn(m, r) {
|
|
1751
1769
|
return $(), D("div");
|
|
1752
1770
|
}
|
|
1753
|
-
const Tn = /* @__PURE__ */
|
|
1771
|
+
const Tn = /* @__PURE__ */ ht(wn, [["render", kn]]), $n = { class: "flex flex-col gap-40" }, Cn = { key: 0 }, In = {
|
|
1754
1772
|
key: 1,
|
|
1755
1773
|
class: "flex gap-8 items-center"
|
|
1756
1774
|
}, Sn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, Dn = {
|
|
@@ -1763,7 +1781,7 @@ const Tn = /* @__PURE__ */ mt(wn, [["render", kn]]), $n = { class: "flex flex-co
|
|
|
1763
1781
|
__name: "ClosingTemplatePublish",
|
|
1764
1782
|
emits: ["close"],
|
|
1765
1783
|
setup(m, { emit: r }) {
|
|
1766
|
-
const l = R(!1), d =
|
|
1784
|
+
const l = R(!1), d = ce(), t = me(), n = ue(), { t: f } = W(), b = r;
|
|
1767
1785
|
async function c() {
|
|
1768
1786
|
l.value = !0;
|
|
1769
1787
|
try {
|
|
@@ -1851,10 +1869,10 @@ const Tn = /* @__PURE__ */ mt(wn, [["render", kn]]), $n = { class: "flex flex-co
|
|
|
1851
1869
|
]);
|
|
1852
1870
|
};
|
|
1853
1871
|
}
|
|
1854
|
-
}), Nn = { class: "flex-1 flex flex-col gap-8" }, Ln = { class: "flex flex-col" }, Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Hn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, On = { class: "fm-typo-en-body-lg-400 line-clamp-2" },
|
|
1872
|
+
}), Nn = { class: "flex-1 flex flex-col gap-8" }, Ln = { class: "flex flex-col" }, Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Hn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, On = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, vo = /* @__PURE__ */ K({
|
|
1855
1873
|
__name: "ClosingTemplateView",
|
|
1856
1874
|
setup(m) {
|
|
1857
|
-
const { t: r } =
|
|
1875
|
+
const { t: r } = W(), { createTemplate: l, updateTemplate: d, exportTemplates: t, importTemplates: n } = ie(), { templateDialogProps: f, templateDetailsProps: b } = Ue(ie()), c = fe(), a = pe(), g = ue(), i = Xe(), { breakpoints: h } = nt();
|
|
1858
1876
|
c.watchLocation(g.fetchTemplates);
|
|
1859
1877
|
const w = L(() => g.loading), y = R(""), s = L(() => h.value.xs || h.value.sm), v = L(() => s.value ? 10 : 20);
|
|
1860
1878
|
function T(p) {
|
|
@@ -1943,14 +1961,14 @@ const Tn = /* @__PURE__ */ mt(wn, [["render", kn]]), $n = { class: "flex flex-co
|
|
|
1943
1961
|
return (p, o) => {
|
|
1944
1962
|
const x = E("FmTable");
|
|
1945
1963
|
return $(), D(j, null, [
|
|
1946
|
-
C(
|
|
1964
|
+
C(Qe, {
|
|
1947
1965
|
title: u(r)("inventory.closing.template.title"),
|
|
1948
1966
|
actions: F.value,
|
|
1949
1967
|
"onClick:action": T
|
|
1950
1968
|
}, {
|
|
1951
1969
|
default: V(() => [
|
|
1952
1970
|
_("div", {
|
|
1953
|
-
class:
|
|
1971
|
+
class: q([
|
|
1954
1972
|
"flex flex-col gap-8 max-h-full",
|
|
1955
1973
|
{
|
|
1956
1974
|
"p-0": s.value,
|
|
@@ -1958,7 +1976,7 @@ const Tn = /* @__PURE__ */ mt(wn, [["render", kn]]), $n = { class: "flex flex-co
|
|
|
1958
1976
|
}
|
|
1959
1977
|
])
|
|
1960
1978
|
}, [
|
|
1961
|
-
C(
|
|
1979
|
+
C(ut, {
|
|
1962
1980
|
searchable: "",
|
|
1963
1981
|
search: y.value,
|
|
1964
1982
|
"onUpdate:search": o[0] || (o[0] = (M) => y.value = M)
|
|
@@ -1973,19 +1991,19 @@ const Tn = /* @__PURE__ */ mt(wn, [["render", kn]]), $n = { class: "flex flex-co
|
|
|
1973
1991
|
"page-size": v.value
|
|
1974
1992
|
}, {
|
|
1975
1993
|
"list-row": V((M) => [
|
|
1976
|
-
C(
|
|
1994
|
+
C(ze, {
|
|
1977
1995
|
row: M,
|
|
1978
1996
|
onRowClick: (S) => u(d)(S)
|
|
1979
1997
|
}, {
|
|
1980
1998
|
default: V((S) => {
|
|
1981
|
-
var U, H, B, A,
|
|
1999
|
+
var U, H, B, A, J, be, _e, xe, ee, we, ke, Te, $e, Ce, Ie, te, Se, De, Me, Fe, ne, Re;
|
|
1982
2000
|
return [
|
|
1983
2001
|
_("div", Nn, [
|
|
1984
2002
|
_("div", Ln, [
|
|
1985
2003
|
_("div", Bn, [
|
|
1986
2004
|
C(u(X), {
|
|
1987
2005
|
render: (B = (H = (U = S._id) == null ? void 0 : U.column) == null ? void 0 : H.columnDef) == null ? void 0 : B.cell,
|
|
1988
|
-
props: (
|
|
2006
|
+
props: (J = (A = S._id) == null ? void 0 : A.getContext) == null ? void 0 : J.call(A)
|
|
1989
2007
|
}, null, 8, ["render", "props"])
|
|
1990
2008
|
]),
|
|
1991
2009
|
_("div", zn, [
|
|
@@ -2027,8 +2045,8 @@ const Tn = /* @__PURE__ */ mt(wn, [["render", kn]]), $n = { class: "flex flex-co
|
|
|
2027
2045
|
_: 1
|
|
2028
2046
|
}, 8, ["title", "actions"]),
|
|
2029
2047
|
($(), N(Ke, { to: "body" }, [
|
|
2030
|
-
C(Tn, qe(
|
|
2031
|
-
C(xn,
|
|
2048
|
+
C(Tn, We(qe(u(b))), null, 16),
|
|
2049
|
+
C(xn, Je(u(f), {
|
|
2032
2050
|
onSubmitted: o[2] || (o[2] = (M) => u(g).fetchTemplates())
|
|
2033
2051
|
}), null, 16)
|
|
2034
2052
|
]))
|
|
@@ -2037,5 +2055,5 @@ const Tn = /* @__PURE__ */ mt(wn, [["render", kn]]), $n = { class: "flex flex-co
|
|
|
2037
2055
|
}
|
|
2038
2056
|
});
|
|
2039
2057
|
export {
|
|
2040
|
-
|
|
2058
|
+
vo as default
|
|
2041
2059
|
};
|
package/dist/{DeliveryOrderPrintPreview-BsM-CCc5.js → DeliveryOrderPrintPreview-BzYLm6J6.js}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as x, computed as f, ref as h, onMounted as
|
|
1
|
+
import { defineComponent as x, computed as f, ref as h, onMounted as _, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as g } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { J as y } from "./app-DYsP0gKj.js";
|
|
4
|
+
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
5
|
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "subtitle"
|
|
7
|
-
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" },
|
|
8
|
+
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, U = { class: "purchase-body" }, B = { class: "text-left" }, H = { class: "text-left" }, J = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-right" }, j = { key: 0 }, z = {
|
|
8
9
|
key: 1,
|
|
9
10
|
style: { "padding-top": "30px" }
|
|
10
11
|
}, G = { valign: "bottom" }, Q = { class: "header" }, K = { class: "caption" }, W = {
|
|
@@ -30,7 +31,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
const b = k(), s = h(JSON.parse(b.query.data));
|
|
33
|
-
return
|
|
34
|
+
return _(() => {
|
|
34
35
|
setTimeout(() => window.print(), 500);
|
|
35
36
|
}), (lt, l) => (u(), i("div", c, [
|
|
36
37
|
t("table", null, [
|
|
@@ -106,7 +107,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
106
107
|
])
|
|
107
108
|
])
|
|
108
109
|
]),
|
|
109
|
-
t("div",
|
|
110
|
+
t("div", U, [
|
|
110
111
|
t("table", null, [
|
|
111
112
|
l[19] || (l[19] = t("thead", { class: "item-header" }, [
|
|
112
113
|
t("tr", null, [
|
|
@@ -126,9 +127,9 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
126
127
|
], -1)),
|
|
127
128
|
t("tbody", null, [
|
|
128
129
|
t("tr", null, [
|
|
129
|
-
t("td",
|
|
130
|
-
t("td",
|
|
131
|
-
t("td",
|
|
130
|
+
t("td", B, e(s.value.orderNumber), 1),
|
|
131
|
+
t("td", H, e(s.value.ref), 1),
|
|
132
|
+
t("td", J, e(s.value.supplier.phoneNumber), 1)
|
|
132
133
|
])
|
|
133
134
|
])
|
|
134
135
|
]),
|
|
@@ -152,16 +153,16 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
152
153
|
], -1)),
|
|
153
154
|
t("tbody", null, [
|
|
154
155
|
(u(!0), i(o, null, p(s.value.items, (r, a) => (u(), i("tr", { key: a }, [
|
|
155
|
-
t("td",
|
|
156
|
-
t("td",
|
|
156
|
+
t("td", L, e(a + 1), 1),
|
|
157
|
+
t("td", M, e(r.description), 1),
|
|
157
158
|
t("td", {
|
|
158
|
-
class:
|
|
159
|
+
class: g(["text-right", {
|
|
159
160
|
"text-green-5": r.received == r.quantity,
|
|
160
161
|
"text-danger": !r.received,
|
|
161
162
|
"text-warning": r.received != r.quantity
|
|
162
163
|
}])
|
|
163
164
|
}, e(r.received + "/" + r.quantity), 3),
|
|
164
|
-
t("td",
|
|
165
|
+
t("td", V, e(r.unit), 1)
|
|
165
166
|
]))), 128))
|
|
166
167
|
])
|
|
167
168
|
])
|
|
@@ -200,7 +201,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
200
201
|
])) : d("", !0)
|
|
201
202
|
]));
|
|
202
203
|
}
|
|
203
|
-
}),
|
|
204
|
+
}), ut = /* @__PURE__ */ w($, [["__scopeId", "data-v-805a706a"]]);
|
|
204
205
|
export {
|
|
205
|
-
|
|
206
|
+
ut as default
|
|
206
207
|
};
|