@feedmepos/mf-inventory-portal 0.0.23-dev.3 → 0.0.23-dev.30
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-BREfwtck.js → App-Brc7GX7l.js} +85 -73
- package/dist/{ApprovalView-DCzLx24G.js → ApprovalView-CMRd7pcC.js} +24 -27
- package/dist/{BindingsDialog-CUcC8lue.js → BindingsDialog-DoakDtFI.js} +4 -4
- package/dist/{BindingsPicker-3VOdZBWI.js → BindingsPicker-BC3rjqKw.js} +8 -9
- package/dist/{BindingsTable-D5Lt6GOO.js → BindingsTable-xKRvhEV5.js} +18 -22
- package/dist/ClosingDraftView-DlaVbAHy.js +1190 -0
- package/dist/{ClosingTemplateView-CukthwOo.js → ClosingTemplateView-DFxLuV8k.js} +272 -286
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjGGEGQ9.js +282 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DNEwc797.js} +116 -114
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DlM-xGKh.js} +5 -5
- package/dist/{IngredientGroupView-CkD8x2CP.js → IngredientGroupView-C4bL0O5L.js} +63 -69
- package/dist/IngredientsView-CfS8FgxA.js +1657 -0
- package/dist/{IntegrationView-BfeV07OO.js → IntegrationView-aSAeFNtp.js} +92 -95
- package/dist/{InventoryBindingForm-BsSmth0U.js → InventoryBindingForm-C7rIUyV1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ba6WLcom.js} +25 -27
- package/dist/{InventoryBindingSummary-BHloDawE.js → InventoryBindingSummary-Ix92wSE6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-6BUIvm7C.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Cd6LQ6Yz.js} +23 -24
- package/dist/{PurchaseOrderPrintPreview-CTdd-RuH.js → PurchaseOrderPrintPreview-DJSF8YaR.js} +13 -14
- package/dist/ReceiveRequestView-BUyShiP2.js +4188 -0
- package/dist/{RecipeView-CrmDQdc5.js → RecipeView-c0XB2_P8.js} +79 -85
- package/dist/{StockView-Xb3fQaiD.js → StockView-DNPNymCW.js} +1338 -1446
- package/dist/{SupplierView-CrtIiaz0.js → SupplierView-Cz0hgito.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ySR4KngR.js +1227 -0
- package/dist/TransferTemplateView-B7kzPdfT.js +1264 -0
- package/dist/{UnitView-C6BgrZ1G.js → UnitView-BKWbaZfc.js} +40 -44
- package/dist/{WarehouseView-Hhd76ybU.js → WarehouseView-BgE3teyT.js} +94 -100
- 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 +1 -1
- package/dist/app-Bkg0JUKr.js +84182 -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-rPKr5T-H.js → decimal-CZ3lFF__.js} +1 -1
- package/dist/{feature-z95vJnA1.js → feature-By_PNrnn.js} +23 -9
- package/dist/format-unit-display-ZlJT10zr.js +1207 -0
- package/dist/index-B4nO9Djl.js +12087 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-DNajb8lV.js +125 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +69 -1
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-BixmjZyl.js → supplier-eaFF1izE.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BRygbm1p.js → use-inventory-binding-dialog-14JW4t6q.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- 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 +621 -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 +3621 -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 +25 -193
- 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/package.json +3 -3
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +0 -267
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +0 -436
- package/dist/FmMultiselectDialog-CKBcMDGC.js +0 -415
- package/dist/IngredientsView-DuK4YSD6.js +0 -1613
- package/dist/ReceiveRequestView-CgWNaYs1.js +0 -4104
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +0 -1189
- package/dist/TransferTemplateView-Cc7VRbZ7.js +0 -1262
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-CwUHqg7h.js +0 -33462
- package/dist/date2-CHNm4ELK.js +0 -117
- package/dist/dayjs.min-FE3dpxHU.js +0 -282
- package/dist/defineDeepModel-Dc1zZzOi.js +0 -13
- package/dist/format-time-from-id-CaPj8EHN.js +0 -15
- package/dist/format-unit-display-Bkz5kW6p.js +0 -1198
- package/dist/fuzzy-DXqhGaFi.js +0 -41
- package/dist/index-BMJHz32O.js +0 -22277
- package/dist/index-Be5vGZdr.js +0 -45
- package/dist/index-D2juQPg6.js +0 -10545
- package/dist/netsuite-P0as0Moa.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-BQz4NGht.js +0 -198
- package/dist/use-template-enabled-locations-2-Dd15d-ng.js +0 -86
- package/dist/xlsx-k2Rf0NcF.js +0 -24004
- package/dist/xlsx.util-CJxPf7XZ.js +0 -78
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as Z,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { f as le } from "./index-BMJHz32O.js";
|
|
6
|
-
import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js";
|
|
1
|
+
import { defineComponent as H, computed as y, reactive as J, resolveComponent as g, openBlock as f, createElementBlock as x, createVNode as m, createElementVNode as n, toDisplayString as v, unref as l, Fragment as C, renderList as A, createBlock as R, withCtx as S, createCommentVNode as T, nextTick as X } from "vue";
|
|
2
|
+
import { a as Z, aP as ee, aQ as ne, i as h, aR as oe, L as P, K as te, F as ie } from "./app-Bkg0JUKr.js";
|
|
3
|
+
import { u as le } from "./use-inventory-binding-dialog-14JW4t6q.js";
|
|
4
|
+
import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DNEwc797.js";
|
|
7
5
|
import { useI18n as ae } from "@feedmepos/mf-common";
|
|
8
6
|
const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ve = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
|
|
9
7
|
class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
|
|
@@ -14,7 +12,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
14
12
|
}, he = { class: "w-[200px]" }, Ve = { class: "w-[52px]" }, Be = { class: "flex flex-col gap-16" }, ke = { class: "flex items-center" }, Fe = { class: "flex-1 fm-typo-en-title-sm-600" }, Ie = { class: "flex flex-col" }, we = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Ue = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ee = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Ce = {
|
|
15
13
|
class: "flex items-center w-full",
|
|
16
14
|
style: { "min-height": "48px" }
|
|
17
|
-
}, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" }, Se = { class: "w-[150px]" }, Te = { class: "w-[52px]" },
|
|
15
|
+
}, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" }, Se = { class: "w-[150px]" }, Te = { class: "w-[52px]" }, Pe = { class: "flex flex-col px-12 pb-4" }, ze = /* @__PURE__ */ H({
|
|
18
16
|
__name: "InventoryBindingForm",
|
|
19
17
|
props: {
|
|
20
18
|
id: {},
|
|
@@ -25,20 +23,20 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
25
23
|
disabled: { type: Boolean }
|
|
26
24
|
},
|
|
27
25
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
28
|
-
setup(
|
|
29
|
-
const { t: c } = ae(), B = Z(), k = y(() => B.inventory.recipe ?? []), b = y(() => B.inventory.sku ?? []), s =
|
|
26
|
+
setup(N, { emit: M }) {
|
|
27
|
+
const { t: c } = ae(), B = Z(), k = y(() => B.inventory.recipe ?? []), b = y(() => B.inventory.sku ?? []), s = N, p = M, F = y(() => ee({
|
|
30
28
|
bindings: s.modelValue,
|
|
31
29
|
recipes: k.value.map((t) => t._id === s.id ? {
|
|
32
30
|
...t,
|
|
33
31
|
contains: s.modelValue
|
|
34
32
|
} : t),
|
|
35
33
|
skus: b.value
|
|
36
|
-
}).inventoryBindings.filter((t) => t.error).filter((t) => t.reason ===
|
|
34
|
+
}).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ne.enum.circularDependency)), K = y(
|
|
37
35
|
() => new Set(F.value.map((e) => {
|
|
38
36
|
var o;
|
|
39
37
|
return (o = e.bindingPaths[0]) == null ? void 0 : o.id;
|
|
40
38
|
}))
|
|
41
|
-
),
|
|
39
|
+
), D = y(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: z } = le();
|
|
42
40
|
async function G() {
|
|
43
41
|
if (s.iframeMode) {
|
|
44
42
|
p("click:pick-inventory-bindings", "RECIPE");
|
|
@@ -51,7 +49,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
51
49
|
);
|
|
52
50
|
}
|
|
53
51
|
const I = y(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
54
|
-
async function
|
|
52
|
+
async function L() {
|
|
55
53
|
if (s.iframeMode) {
|
|
56
54
|
p("click:pick-inventory-bindings", "SKU");
|
|
57
55
|
return;
|
|
@@ -63,7 +61,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
63
61
|
s.id ? [s.id] : []
|
|
64
62
|
);
|
|
65
63
|
}
|
|
66
|
-
function
|
|
64
|
+
function j(e, o, t) {
|
|
67
65
|
const r = +o;
|
|
68
66
|
let d = t;
|
|
69
67
|
o.length > 0 && isFinite(r) ? d = t.map((a) => (a.id !== e || (a.amount = te(r)), a)) : d = t.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), p("update:modelValue", d);
|
|
@@ -74,7 +72,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
74
72
|
}
|
|
75
73
|
function U(e) {
|
|
76
74
|
var t, r;
|
|
77
|
-
if (e.type !==
|
|
75
|
+
if (e.type !== ie.enum.SKU)
|
|
78
76
|
throw new Error("Non-SKU binding does not have unit");
|
|
79
77
|
if (!((t = b.value.find((d) => d._id === e.id)) == null ? void 0 : t.unit))
|
|
80
78
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
@@ -83,7 +81,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
83
81
|
function Y(e) {
|
|
84
82
|
return { amount: e.amount, measurement: e.measurement };
|
|
85
83
|
}
|
|
86
|
-
function
|
|
84
|
+
function O(e, o, t) {
|
|
87
85
|
const r = t.map((d) => d.id !== e ? d : {
|
|
88
86
|
...d,
|
|
89
87
|
amount: o.amount,
|
|
@@ -91,8 +89,8 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
91
89
|
});
|
|
92
90
|
p("update:modelValue", r);
|
|
93
91
|
}
|
|
94
|
-
const E =
|
|
95
|
-
function
|
|
92
|
+
const E = J({});
|
|
93
|
+
function Q(e) {
|
|
96
94
|
return E[e.id] ?? {
|
|
97
95
|
modelValue: {
|
|
98
96
|
amount: e.amount,
|
|
@@ -138,11 +136,11 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
138
136
|
o[0] || (o[0] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
139
137
|
o[1] || (o[1] = n("div", { class: "w-[52px]" }, null, -1))
|
|
140
138
|
]),
|
|
141
|
-
(f(!0), x(C, null, A(
|
|
139
|
+
(f(!0), x(C, null, A(D.value, (i) => (f(), R(t, {
|
|
142
140
|
key: i.id,
|
|
143
141
|
disabled: e.disabled,
|
|
144
142
|
modelValue: +l(h)(i.amount ?? { amount: 1, precision: 0 }),
|
|
145
|
-
rules: [l(oe)(0), l(
|
|
143
|
+
rules: [l(oe)(0), l(P)(0)]
|
|
146
144
|
}, {
|
|
147
145
|
default: S(({ invalid: V }) => {
|
|
148
146
|
var _;
|
|
@@ -151,7 +149,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
151
149
|
n("div", ge, [
|
|
152
150
|
n("div", xe, [
|
|
153
151
|
n("div", null, v((_ = k.value.find((u) => u._id === i.id)) == null ? void 0 : _.name), 1),
|
|
154
|
-
|
|
152
|
+
K.value.has(i.id) ? (f(), x("div", be, [
|
|
155
153
|
m(d, {
|
|
156
154
|
name: "error",
|
|
157
155
|
color: "system-error-400",
|
|
@@ -166,7 +164,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
166
164
|
class: "w-full",
|
|
167
165
|
disabled: e.disabled,
|
|
168
166
|
modelValue: +l(h)(i.amount ?? { amount: 1, precision: 0 }),
|
|
169
|
-
"onUpdate:modelValue": (u) =>
|
|
167
|
+
"onUpdate:modelValue": (u) => j(i.id, u, e.modelValue),
|
|
170
168
|
invalid: V
|
|
171
169
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
172
170
|
]),
|
|
@@ -196,7 +194,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
196
194
|
"border-color": "primary",
|
|
197
195
|
label: l(c)("inventory.inventoryBindings.linkIngredient"),
|
|
198
196
|
"prepend-icon": "link",
|
|
199
|
-
onClick:
|
|
197
|
+
onClick: L
|
|
200
198
|
}, null, 8, ["label"])
|
|
201
199
|
]),
|
|
202
200
|
n("div", Ie, [
|
|
@@ -235,7 +233,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
235
233
|
n("div", Se, [
|
|
236
234
|
m(se, {
|
|
237
235
|
"model-value": Y(i),
|
|
238
|
-
"onUpdate:modelValue": (u) =>
|
|
236
|
+
"onUpdate:modelValue": (u) => O(i.id, u, e.modelValue),
|
|
239
237
|
"onUpdate:amount": (u) => W(i, u),
|
|
240
238
|
unit: U(i),
|
|
241
239
|
placement: V === I.value.length - 1 ? "top" : "bottom",
|
|
@@ -252,13 +250,13 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
252
250
|
}, null, 8, ["disabled", "onClick"])
|
|
253
251
|
])
|
|
254
252
|
]),
|
|
255
|
-
n("div",
|
|
253
|
+
n("div", Pe, [
|
|
256
254
|
m(t, {
|
|
257
255
|
modelValue: +l(h)(i.amount ?? { amount: 1, precision: 0 }),
|
|
258
|
-
rules: [l(
|
|
256
|
+
rules: [l(P)(0)]
|
|
259
257
|
}, null, 8, ["modelValue", "rules"]),
|
|
260
258
|
m(t, {
|
|
261
|
-
modelValue:
|
|
259
|
+
modelValue: Q(i),
|
|
262
260
|
rules: [
|
|
263
261
|
l(re)(),
|
|
264
262
|
l(de)(U(i))
|
|
@@ -274,5 +272,5 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
274
272
|
}
|
|
275
273
|
});
|
|
276
274
|
export {
|
|
277
|
-
|
|
275
|
+
ze as _
|
|
278
276
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as c, openBlock as m, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-Bkg0JUKr.js";
|
|
5
5
|
const B = /* @__PURE__ */ s({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { K as d } from "./app-Bkg0JUKr.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { j as _, u as h } from "./app-CwUHqg7h.js";
|
|
1
|
+
import { az as d, aA as f, W as _, u as h } from "./app-Bkg0JUKr.js";
|
|
3
2
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
4
3
|
import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
|
|
5
|
-
function
|
|
4
|
+
function I(e, t) {
|
|
6
5
|
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
|
|
7
6
|
}
|
|
8
|
-
function
|
|
9
|
-
const r = t.map((o) => o.name), n = e.map((o) =>
|
|
7
|
+
function O(e, t) {
|
|
8
|
+
const r = t.map((o) => o.name), n = e.map((o) => I(o, t));
|
|
10
9
|
return d.aoa_to_sheet([r, ...n]);
|
|
11
10
|
}
|
|
12
|
-
async function
|
|
11
|
+
async function A(e, t) {
|
|
13
12
|
const r = d.book_new();
|
|
14
13
|
for (const n of e) {
|
|
15
|
-
const o =
|
|
14
|
+
const o = O(
|
|
16
15
|
n.data,
|
|
17
|
-
n.columns.map((
|
|
18
|
-
name:
|
|
19
|
-
selector:
|
|
20
|
-
} :
|
|
16
|
+
n.columns.map((a) => typeof a == "string" ? {
|
|
17
|
+
name: a,
|
|
18
|
+
selector: a
|
|
19
|
+
} : a)
|
|
21
20
|
);
|
|
22
21
|
d.book_append_sheet(r, o, n.name);
|
|
23
22
|
}
|
|
@@ -27,8 +26,8 @@ const m = _((e, t) => {
|
|
|
27
26
|
const r = h(), n = F();
|
|
28
27
|
return {
|
|
29
28
|
async getInventoryForecast() {
|
|
30
|
-
var
|
|
31
|
-
const o = ((
|
|
29
|
+
var s;
|
|
30
|
+
const o = ((s = n.currentBusiness.value) == null ? void 0 : s._id) ?? "", a = r.currentLocationId ?? "", i = `${e.dataBackendUrl}/${o}/${a}/inventory-forecast`;
|
|
32
31
|
try {
|
|
33
32
|
return await t.get(i);
|
|
34
33
|
} catch {
|
|
@@ -37,23 +36,23 @@ const m = _((e, t) => {
|
|
|
37
36
|
},
|
|
38
37
|
async getPurchaseOrderForecast(o) {
|
|
39
38
|
var u;
|
|
40
|
-
const
|
|
39
|
+
const a = ((u = n.currentBusiness.value) == null ? void 0 : u._id) ?? "", i = r.currentLocationId ?? "", s = `${e.dataBackendUrl}/${a}/${i}/purchase-order-forecast?days=${o}`;
|
|
41
40
|
try {
|
|
42
|
-
return await t.get(
|
|
41
|
+
return await t.get(s);
|
|
43
42
|
} catch {
|
|
44
43
|
return { skus: [] };
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
};
|
|
48
47
|
});
|
|
49
|
-
function
|
|
48
|
+
function w() {
|
|
50
49
|
return {
|
|
51
50
|
inventoryForecast: { skus: [] },
|
|
52
51
|
purchaseOrderForecast: { skus: [] }
|
|
53
52
|
};
|
|
54
53
|
}
|
|
55
|
-
const c = y(
|
|
56
|
-
function
|
|
54
|
+
const c = y(w());
|
|
55
|
+
function C() {
|
|
57
56
|
return {
|
|
58
57
|
// state
|
|
59
58
|
get inventoryForecast() {
|
|
@@ -79,11 +78,11 @@ function D() {
|
|
|
79
78
|
}
|
|
80
79
|
};
|
|
81
80
|
}
|
|
82
|
-
function
|
|
81
|
+
function D(e) {
|
|
83
82
|
let t = e.substring(e.indexOf("_") + 1);
|
|
84
83
|
return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
|
|
85
84
|
}
|
|
86
|
-
const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.",
|
|
85
|
+
const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.", N = /* @__PURE__ */ v({
|
|
87
86
|
__name: "PremiumBadge",
|
|
88
87
|
props: {
|
|
89
88
|
zIndex: {}
|
|
@@ -109,8 +108,8 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
109
108
|
}
|
|
110
109
|
});
|
|
111
110
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
N as _,
|
|
112
|
+
A as e,
|
|
113
|
+
D as i,
|
|
114
|
+
C as u
|
|
116
115
|
};
|
package/dist/{PurchaseOrderPrintPreview-CTdd-RuH.js → PurchaseOrderPrintPreview-DJSF8YaR.js}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as
|
|
1
|
+
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import { au as y, _ as C } from "./app-Bkg0JUKr.js";
|
|
5
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
6
5
|
class: "text-left",
|
|
7
6
|
style: { width: "20%" }
|
|
@@ -52,7 +51,7 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
|
|
|
52
51
|
t("div", S, [
|
|
53
52
|
i(l(s.value.supplier.line1), 1),
|
|
54
53
|
e[2] || (e[2] = t("br", null, null, -1)),
|
|
55
|
-
s.value.supplier.line2 ? (n(), u(
|
|
54
|
+
s.value.supplier.line2 ? (n(), u(d, { key: 0 }, [
|
|
56
55
|
i(l(s.value.supplier.line2), 1),
|
|
57
56
|
e[1] || (e[1] = t("br", null, null, -1))
|
|
58
57
|
], 64)) : p("", !0),
|
|
@@ -68,7 +67,7 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
|
|
|
68
67
|
t("div", q, [
|
|
69
68
|
i(l(s.value.buyer.line1), 1),
|
|
70
69
|
e[7] || (e[7] = t("br", null, null, -1)),
|
|
71
|
-
s.value.buyer.line2 ? (n(), u(
|
|
70
|
+
s.value.buyer.line2 ? (n(), u(d, { key: 0 }, [
|
|
72
71
|
i(l(s.value.buyer.line2), 1),
|
|
73
72
|
e[6] || (e[6] = t("br", null, null, -1))
|
|
74
73
|
], 64)) : p("", !0),
|
|
@@ -100,7 +99,7 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
|
|
|
100
99
|
])
|
|
101
100
|
], -1)),
|
|
102
101
|
t("tbody", null, [
|
|
103
|
-
(n(!0), u(
|
|
102
|
+
(n(!0), u(d, null, v(s.value.items, (r, a) => (n(), u("tr", { key: a }, [
|
|
104
103
|
t("td", L, l(r.code), 1),
|
|
105
104
|
t("td", U, l(r.description), 1),
|
|
106
105
|
t("td", {
|
|
@@ -120,7 +119,7 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
|
|
|
120
119
|
t("div", z, [
|
|
121
120
|
e[12] || (e[12] = t("hr", null, null, -1)),
|
|
122
121
|
e[13] || (e[13] = i(" Delivery History: ")),
|
|
123
|
-
(n(!0), u(
|
|
122
|
+
(n(!0), u(d, null, v(s.value.deliveryOrders, (r, a) => (n(), u("div", {
|
|
124
123
|
key: a,
|
|
125
124
|
style: { padding: "10px 30px" }
|
|
126
125
|
}, [
|
|
@@ -136,11 +135,11 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
|
|
|
136
135
|
t("div", null, [
|
|
137
136
|
t("table", null, [
|
|
138
137
|
t("tbody", null, [
|
|
139
|
-
(n(!0), u(
|
|
140
|
-
t("td", M, l(
|
|
141
|
-
t("td", J, l(
|
|
142
|
-
t("td", Q, l(
|
|
143
|
-
t("td", j, l(
|
|
138
|
+
(n(!0), u(d, null, v(r.items, (o, _) => (n(), u("tr", { key: _ }, [
|
|
139
|
+
t("td", M, l(o.code), 1),
|
|
140
|
+
t("td", J, l(o.description), 1),
|
|
141
|
+
t("td", Q, l(o.quantity), 1),
|
|
142
|
+
t("td", j, l(o.unit), 1)
|
|
144
143
|
]))), 128))
|
|
145
144
|
])
|
|
146
145
|
])
|
|
@@ -149,7 +148,7 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
|
|
|
149
148
|
])
|
|
150
149
|
]));
|
|
151
150
|
}
|
|
152
|
-
}),
|
|
151
|
+
}), $ = /* @__PURE__ */ C(G, [["__scopeId", "data-v-92a03d5c"]]);
|
|
153
152
|
export {
|
|
154
|
-
|
|
153
|
+
$ as default
|
|
155
154
|
};
|