@feedmepos/mf-inventory-portal 1.0.36-dev.7 → 1.0.37-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-Cw7dAyRr.js → App-DomXC0uh.js} +46 -47
- package/dist/{ApprovalView-uzxVamAD.js → ApprovalView-DnINEwhh.js} +20 -20
- package/dist/{BindingsDialog-CjAyz7qd.js → BindingsDialog-MstJl2hJ.js} +10 -10
- package/dist/{BindingsPicker-VWQEClDc.js → BindingsPicker-BCgoeZK5.js} +1 -1
- package/dist/{BindingsTable-D_AidNg-.js → BindingsTable-knJs1DaE.js} +4 -4
- package/dist/{ClosingDraftView-DnPQE4xl.js → ClosingDraftView-Cg4siKrJ.js} +27 -27
- package/dist/{ClosingTemplateView-BzeUoP0S.js → ClosingTemplateView-D7nxxW1T.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CQBfbvjK.js → DeliveryOrderPrintPreview-DUqWxzpS.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C5iYx065.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMeIIyKI.js} +11 -11
- package/dist/{FmMultiselectDialog-DLZju68a.js → FmMultiselectDialog-H6rOzolY.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-elcx6AO6.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAk4KHnz.js} +31 -31
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMmGsyfI.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-SxPkPzU1.js} +1 -1
- package/dist/{IngredientGroupView-bFYU22r_.js → IngredientGroupView-CAA69KE_.js} +21 -21
- package/dist/{IngredientsView-BrfeKO6V.js → IngredientsView-BYhDmhQb.js} +42 -43
- package/dist/IntegrationView-CGBFyLWN.js +3303 -0
- package/dist/{InventoryBindingForm-DrNO6vLb.js → InventoryBindingForm-X-CFcWEY.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU_Nt6VM.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CwV5nKPo.js} +18 -18
- package/dist/{InventoryBindingSummary-BztWC0Gi.js → InventoryBindingSummary-Cch1pODC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-OvRfk02N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Uc6h5Apn.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BsbrYUky.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcWa_Dww.js} +10 -10
- package/dist/{PublishView-BwmvDibM.js → PublishView-DCAdzucX.js} +19 -19
- package/dist/{PurchaseOrderPrintPreview-DRo0ctOc.js → PurchaseOrderPrintPreview-IDiFQ15P.js} +12 -12
- package/dist/{ReceiveRequestView-yb4E_Dg6.js → ReceiveRequestView-7eslFHYc.js} +106 -107
- package/dist/{RecipeView-Dyf9kDoR.js → RecipeView-DOLJ5Gsx.js} +38 -39
- package/dist/{StockView-Cg-KD9qT.js → StockView-vCgmnyKT.js} +68 -69
- package/dist/{SupplierView-BtVTg_Ht.js → SupplierView-B6xdSB6T.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-lNmQ3zTi.js → TransferDetails.vue_vue_type_script_setup_true_lang-DrfHulTL.js} +105 -106
- package/dist/{TransferTemplateView-AUp2tI1x.js → TransferTemplateView-g1V3JX-5.js} +143 -144
- package/dist/{UnitView-BgbQjCfN.js → UnitView-BD28XnQL.js} +19 -19
- package/dist/{WarehouseView-BedfDS6s.js → WarehouseView-Cjgl43Xz.js} +14 -14
- package/dist/api/netsuite.d.ts +2 -0
- package/dist/app-dN4odAZ8.js +124833 -0
- package/dist/app.js +6 -6
- package/dist/{decimal-uKQOh7Qw.js → decimal-Blq-Ws2M.js} +1 -1
- package/dist/{format-unit-display-EMi6Weg0.js → format-unit-display-CzANmeBd.js} +13 -13
- package/dist/{index-B4jwhkHY.js → index-61_R9xfw.js} +3 -4
- package/dist/{index-BN_lVBL8.js → index-B8dsKHa4.js} +1 -1
- package/dist/{stock-SaEl13YM.js → stock-D7E6dj7b.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +1 -0
- package/dist/{supplier-hdrIxTLp.js → supplier-UeD3tjJh.js} +25 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B7XYGX1J.js → use-ingredient-select-dialog-CydPG1Ol.js} +1 -1
- package/dist/{use-inventory-binding-dialog-t7XQb2UV.js → use-inventory-binding-dialog-DzRlrnI6.js} +1 -1
- package/dist/views/integration/components/netsuite/InventoryTransferOutTable.vue.d.ts +2 -0
- package/dist/{vue-i18n-DBsdCMy_.js → vue-i18n-D64xeCoR.js} +285 -285
- package/package.json +1 -1
- package/dist/IntegrationView-KlnDvvRE.js +0 -6531
- package/dist/app-nDgEuY-Q.js +0 -102338
- package/dist/feature-_ggdK-7_.js +0 -19100
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ee, computed as _, reactive as ne, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as y, withCtx as U, createElementVNode as n, toDisplayString as m, unref as i, createBlock as B, createCommentVNode as v, Fragment as E, renderList as C, nextTick as oe } from "vue";
|
|
2
|
-
import { a as te,
|
|
3
|
-
import { u as re } from "./use-inventory-binding-dialog-
|
|
4
|
-
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a as te, X as le, b0 as ie, j as h, b1 as N, V as G, T as se, F as de } from "./app-dN4odAZ8.js";
|
|
3
|
+
import { u as re } from "./use-inventory-binding-dialog-DzRlrnI6.js";
|
|
4
|
+
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BAk4KHnz.js";
|
|
5
5
|
import { useI18n as ce } from "@feedmepos/mf-common";
|
|
6
6
|
const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-16" }, fe = { class: "flex items-center" }, ve = { class: "flex-1 fm-typo-en-title-sm-600" }, be = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, _e = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, he = {
|
|
7
7
|
class: "flex items-center",
|
|
@@ -24,13 +24,13 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
24
24
|
}, Te = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ne = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, De = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "w-[52px]"
|
|
27
|
-
}, Ke = { class: "flex flex-col gap-16" }, $e = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, ze = { class: "flex flex-col" }, Le = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Oe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" },
|
|
27
|
+
}, Ke = { class: "flex flex-col gap-16" }, $e = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, ze = { class: "flex flex-col" }, Le = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Oe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, We = {
|
|
28
28
|
class: "flex items-center w-full",
|
|
29
29
|
style: { "min-height": "48px" }
|
|
30
|
-
},
|
|
30
|
+
}, Xe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, qe = { class: "line-clamp-1" }, He = { class: "w-[150px]" }, Je = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "w-[52px]"
|
|
33
|
-
},
|
|
33
|
+
}, Qe = { class: "flex flex-col px-12 pb-4" }, ln = /* @__PURE__ */ ee({
|
|
34
34
|
__name: "InventoryBindingForm",
|
|
35
35
|
props: {
|
|
36
36
|
id: {},
|
|
@@ -64,7 +64,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
64
64
|
return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
|
|
65
65
|
}))
|
|
66
66
|
), j = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: z, promptRecipesBinding: L, promptIngredientGroupsBinding: O } = re();
|
|
67
|
-
async function
|
|
67
|
+
async function Y() {
|
|
68
68
|
if (s.iframeMode) {
|
|
69
69
|
b("click:pick-inventory-bindings", "RECIPE");
|
|
70
70
|
return;
|
|
@@ -75,8 +75,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
75
75
|
s.id ? [s.id] : []
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
const
|
|
79
|
-
async function
|
|
78
|
+
const W = _(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
|
|
79
|
+
async function X() {
|
|
80
80
|
O(
|
|
81
81
|
s.modelValue,
|
|
82
82
|
(e) => b("update:modelValue", e),
|
|
@@ -125,7 +125,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
125
125
|
b("update:modelValue", d);
|
|
126
126
|
}
|
|
127
127
|
const T = ne({});
|
|
128
|
-
function
|
|
128
|
+
function Q(e) {
|
|
129
129
|
return T[e.id] ?? {
|
|
130
130
|
modelValue: {
|
|
131
131
|
amount: e.amount,
|
|
@@ -171,7 +171,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
171
171
|
"border-color": "primary",
|
|
172
172
|
label: i(a)("inventory.inventoryBindings.linkRecipe"),
|
|
173
173
|
"prepend-icon": "link",
|
|
174
|
-
onClick:
|
|
174
|
+
onClick: Y
|
|
175
175
|
}, null, 8, ["label"]))
|
|
176
176
|
]),
|
|
177
177
|
n("div", be, [
|
|
@@ -239,7 +239,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
239
239
|
"border-color": "primary",
|
|
240
240
|
label: i(a)("inventory.inventoryBindings.linkIngredientGroup"),
|
|
241
241
|
"prepend-icon": "link",
|
|
242
|
-
onClick:
|
|
242
|
+
onClick: X
|
|
243
243
|
}, null, 8, ["label"]))
|
|
244
244
|
]),
|
|
245
245
|
n("div", Ce, [
|
|
@@ -248,7 +248,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
248
248
|
t[3] || (t[3] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
249
249
|
t[4] || (t[4] = n("div", { class: "w-[52px]" }, null, -1))
|
|
250
250
|
]),
|
|
251
|
-
(r(!0), p(E, null, C(
|
|
251
|
+
(r(!0), p(E, null, C(W.value, (l) => (r(), B(o, {
|
|
252
252
|
key: l.id,
|
|
253
253
|
disabled: e.disabled,
|
|
254
254
|
modelValue: +i(h)(l.amount ?? { amount: 1, precision: 0 }),
|
|
@@ -313,7 +313,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
313
313
|
n("div", ze, [
|
|
314
314
|
n("div", Le, [
|
|
315
315
|
n("div", Oe, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
|
|
316
|
-
n("div",
|
|
316
|
+
n("div", Ye, m(i(a)("inventory.inventoryBindings.amount")), 1),
|
|
317
317
|
t[5] || (t[5] = n("div", { class: "w-[52px]" }, null, -1))
|
|
318
318
|
]),
|
|
319
319
|
(r(!0), p(E, null, C(R.value, (l, V) => {
|
|
@@ -322,8 +322,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
322
322
|
key: l.id,
|
|
323
323
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
324
324
|
}, [
|
|
325
|
-
n("div",
|
|
326
|
-
n("div",
|
|
325
|
+
n("div", We, [
|
|
326
|
+
n("div", Xe, [
|
|
327
327
|
n("span", qe, m((g = I.value[l.id]) == null ? void 0 : g.name), 1)
|
|
328
328
|
]),
|
|
329
329
|
n("div", He, [
|
|
@@ -347,13 +347,13 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
347
347
|
}, null, 8, ["disabled", "onClick"])
|
|
348
348
|
]))
|
|
349
349
|
]),
|
|
350
|
-
n("div",
|
|
350
|
+
n("div", Qe, [
|
|
351
351
|
y(o, {
|
|
352
352
|
modelValue: +i(h)(l.amount ?? { amount: 1, precision: 0 }),
|
|
353
353
|
rules: [i(G)(0)]
|
|
354
354
|
}, null, 8, ["modelValue", "rules"]),
|
|
355
355
|
y(o, {
|
|
356
|
-
modelValue:
|
|
356
|
+
modelValue: Q(l),
|
|
357
357
|
rules: [
|
|
358
358
|
i(ue)(),
|
|
359
359
|
i(me)(P(l)),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, openBlock as c, 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-dN4odAZ8.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { T as s } from "./app-dN4odAZ8.js";
|
|
3
|
+
const T = ["value", "disabled"], B = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
@@ -57,7 +57,7 @@ const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
|
57
57
|
"text-fm-color-typo-disabled": e.disabled
|
|
58
58
|
}),
|
|
59
59
|
disabled: e.disabled
|
|
60
|
-
}, null, 42,
|
|
60
|
+
}, null, 42, T)
|
|
61
61
|
]),
|
|
62
62
|
_: 2
|
|
63
63
|
}, 1032, ["invalid"])
|
|
@@ -68,5 +68,5 @@ const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
export {
|
|
71
|
-
|
|
71
|
+
B as _
|
|
72
72
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aE as u, aF as _, a3 as F, u as h } from "./app-dN4odAZ8.js";
|
|
2
2
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as O } from "vue";
|
|
4
4
|
function w(e, t) {
|
|
@@ -8,7 +8,7 @@ function I(e, t) {
|
|
|
8
8
|
const r = t.map((o) => o.name), n = e.map((o) => w(o, t));
|
|
9
9
|
return u.aoa_to_sheet([r, ...n]);
|
|
10
10
|
}
|
|
11
|
-
async function
|
|
11
|
+
async function C(e, t) {
|
|
12
12
|
const r = u.book_new();
|
|
13
13
|
for (const n of e) {
|
|
14
14
|
const o = I(
|
|
@@ -22,8 +22,8 @@ async function z(e, t) {
|
|
|
22
22
|
}
|
|
23
23
|
await _(r, t);
|
|
24
24
|
}
|
|
25
|
-
const f =
|
|
26
|
-
const r =
|
|
25
|
+
const f = F((e, t) => {
|
|
26
|
+
const r = h(), n = y();
|
|
27
27
|
return {
|
|
28
28
|
async getInventoryForecast() {
|
|
29
29
|
var s;
|
|
@@ -52,7 +52,7 @@ function $() {
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
const c = v($());
|
|
55
|
-
function
|
|
55
|
+
function D() {
|
|
56
56
|
return {
|
|
57
57
|
// state
|
|
58
58
|
get inventoryForecast() {
|
|
@@ -82,7 +82,7 @@ function N(e) {
|
|
|
82
82
|
let t = e.substring(e.indexOf("_") + 1);
|
|
83
83
|
return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const E = { class: "flex items-center gap-8" }, b = "Experience enhanced inventory features with premium plan.", L = /* @__PURE__ */ k({
|
|
86
86
|
__name: "PremiumBadge",
|
|
87
87
|
props: {
|
|
88
88
|
zIndex: {}
|
|
@@ -90,12 +90,12 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
90
90
|
setup(e) {
|
|
91
91
|
return (t, r) => {
|
|
92
92
|
const n = l("FmPill"), o = l("FmTooltip");
|
|
93
|
-
return g(), S("div",
|
|
93
|
+
return g(), S("div", E, [
|
|
94
94
|
x(t.$slots, "default"),
|
|
95
95
|
m(o, {
|
|
96
96
|
variant: "plain",
|
|
97
97
|
placement: "top",
|
|
98
|
-
content:
|
|
98
|
+
content: b,
|
|
99
99
|
"z-index": t.zIndex
|
|
100
100
|
}, {
|
|
101
101
|
default: O(() => [
|
|
@@ -109,7 +109,7 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
109
109
|
});
|
|
110
110
|
export {
|
|
111
111
|
L as _,
|
|
112
|
-
|
|
112
|
+
C as e,
|
|
113
113
|
N as i,
|
|
114
|
-
|
|
114
|
+
D as u
|
|
115
115
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as oe, a as ne,
|
|
1
|
+
import { defineComponent as O, ref as z, computed as r, resolveComponent as s, openBlock as I, createBlock as B, unref as v, createSlots as Q, withCtx as u, createElementVNode as h, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
|
|
2
|
+
import { u as oe, a as ne, aX as ae, B as se, _ as le, al as H } from "./app-dN4odAZ8.js";
|
|
3
3
|
import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as R } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as ce } from "./vue-i18n-
|
|
5
|
-
const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */
|
|
4
|
+
import { u as ce } from "./vue-i18n-D64xeCoR.js";
|
|
5
|
+
const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ O({
|
|
6
6
|
__name: "PublishView",
|
|
7
7
|
setup(ye) {
|
|
8
|
-
const { t } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g =
|
|
8
|
+
const { t } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g = z(!1), c = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), Y = se(), C = re(), N = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20), q = r(() => [
|
|
9
9
|
{
|
|
10
10
|
label: t("inventory.common.refresh"),
|
|
11
11
|
value: "refresh",
|
|
@@ -16,7 +16,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
16
16
|
async function E(e) {
|
|
17
17
|
switch (e) {
|
|
18
18
|
case "publish":
|
|
19
|
-
|
|
19
|
+
C.open({
|
|
20
20
|
title: t("inventory.common.publish"),
|
|
21
21
|
message: "Are you sure you want to publish to all locations?",
|
|
22
22
|
primaryActions: { text: t("inventory.common.publish"), close: !0 },
|
|
@@ -30,7 +30,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
30
30
|
break;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
const w =
|
|
33
|
+
const w = z(!1), K = [
|
|
34
34
|
{
|
|
35
35
|
value: "publish",
|
|
36
36
|
label: t("inventory.publish.actions.publishAll")
|
|
@@ -42,7 +42,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
42
42
|
console.log("publish all");
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const X = [
|
|
46
46
|
{
|
|
47
47
|
id: "type",
|
|
48
48
|
header: () => t("inventory.publish.columns.type"),
|
|
@@ -99,7 +99,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
99
99
|
variant: "secondary",
|
|
100
100
|
icon: "sync",
|
|
101
101
|
onClick: () => {
|
|
102
|
-
|
|
102
|
+
C.open({
|
|
103
103
|
title: t("inventory.common.publish"),
|
|
104
104
|
message: `Are you sure you want to publish this location "${e.row.original.name}"?`,
|
|
105
105
|
primaryActions: { text: t("inventory.common.publish"), close: !0 },
|
|
@@ -133,12 +133,12 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
133
133
|
// }
|
|
134
134
|
];
|
|
135
135
|
return (e, o) => {
|
|
136
|
-
const a = s("FmChip"), m = s("FlexRender"), p = s("TableActionableRow"),
|
|
136
|
+
const a = s("FmChip"), m = s("FlexRender"), p = s("TableActionableRow"), j = s("FmTable"), G = s("FmCollapsibleTabs"), J = s("FmBottomSheet");
|
|
137
137
|
return I(), B(le, {
|
|
138
138
|
title: v(t)("inventory.publish.title"),
|
|
139
139
|
actions: q.value,
|
|
140
140
|
"onClick:action": E
|
|
141
|
-
},
|
|
141
|
+
}, Q({
|
|
142
142
|
default: u(() => [
|
|
143
143
|
h("div", {
|
|
144
144
|
class: Z([
|
|
@@ -149,9 +149,9 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
149
149
|
}
|
|
150
150
|
])
|
|
151
151
|
}, [
|
|
152
|
-
n(
|
|
152
|
+
n(j, {
|
|
153
153
|
style: ee(v(Y).tableHeight),
|
|
154
|
-
"column-defs":
|
|
154
|
+
"column-defs": X,
|
|
155
155
|
"row-data": $.value,
|
|
156
156
|
loading: !v(l)._currentLocation || g.value,
|
|
157
157
|
"loading-text": "Loading",
|
|
@@ -160,19 +160,19 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
160
160
|
"list-row": u((i) => [
|
|
161
161
|
n(p, { row: i }, {
|
|
162
162
|
default: u((d) => {
|
|
163
|
-
var
|
|
163
|
+
var F, k, M, y, P, L, T, V, b, D;
|
|
164
164
|
return [
|
|
165
165
|
h("div", me, [
|
|
166
166
|
h("div", pe, [
|
|
167
167
|
n(m, {
|
|
168
|
-
render: (M = (
|
|
168
|
+
render: (M = (k = (F = d.code) == null ? void 0 : F.column) == null ? void 0 : k.columnDef) == null ? void 0 : M.cell,
|
|
169
169
|
props: (P = (y = d.code) == null ? void 0 : y.getContext) == null ? void 0 : P.call(y)
|
|
170
170
|
}, null, 8, ["render", "props"])
|
|
171
171
|
]),
|
|
172
172
|
h("div", de, [
|
|
173
173
|
n(m, {
|
|
174
|
-
render: (V = (
|
|
175
|
-
props: (
|
|
174
|
+
render: (V = (T = (L = d.name) == null ? void 0 : L.column) == null ? void 0 : T.columnDef) == null ? void 0 : V.cell,
|
|
175
|
+
props: (D = (b = d.name) == null ? void 0 : b.getContext) == null ? void 0 : D.call(b)
|
|
176
176
|
}, null, 8, ["render", "props"])
|
|
177
177
|
])
|
|
178
178
|
])
|
|
@@ -185,13 +185,13 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
185
185
|
}, 8, ["style", "row-data", "loading", "page-size"])
|
|
186
186
|
], 2),
|
|
187
187
|
(I(), B(te, { to: "body" }, [
|
|
188
|
-
n(
|
|
188
|
+
n(J, {
|
|
189
189
|
"dismiss-away": "",
|
|
190
190
|
modelValue: w.value,
|
|
191
191
|
"onUpdate:modelValue": o[1] || (o[1] = (i) => w.value = i)
|
|
192
192
|
}, {
|
|
193
193
|
default: u(() => [
|
|
194
|
-
n(
|
|
194
|
+
n(G, {
|
|
195
195
|
class: "pb-8",
|
|
196
196
|
items: K,
|
|
197
197
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => W(i))
|
package/dist/{PurchaseOrderPrintPreview-DRo0ctOc.js → PurchaseOrderPrintPreview-IDiFQ15P.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as b, computed as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import {
|
|
4
|
-
const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" }, N = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, B = { class: "text-right" }, H = { class: "text-right" }, I = { style: { "padding-top": "30px" } }, M = { valign: "bottom" },
|
|
1
|
+
import { defineComponent as b, computed as x, ref as m, onMounted as f, openBlock as u, createElementBlock as n, createElementVNode as t, toDisplayString as e, normalizeStyle as g, createTextVNode as i, Fragment as o, createCommentVNode as p, renderList as v } from "vue";
|
|
2
|
+
import { useRoute as k } from "vue-router";
|
|
3
|
+
import { ax as y, ak as w } from "./app-dN4odAZ8.js";
|
|
4
|
+
const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" }, N = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, B = { class: "text-right" }, H = { class: "text-right" }, I = { style: { "padding-top": "30px" } }, M = { valign: "bottom" }, z = { class: "header" }, J = { class: "caption" }, Q = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
7
|
-
},
|
|
7
|
+
}, j = { class: "text-left" }, G = {
|
|
8
8
|
class: "text-right",
|
|
9
9
|
style: { width: "15%" }
|
|
10
10
|
}, K = {
|
|
@@ -13,7 +13,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
13
13
|
}, W = /* @__PURE__ */ b({
|
|
14
14
|
__name: "PurchaseOrderPrintPreview",
|
|
15
15
|
setup(X) {
|
|
16
|
-
const c =
|
|
16
|
+
const c = x(() => {
|
|
17
17
|
switch (s.value.status) {
|
|
18
18
|
case y.enum.CANCEL:
|
|
19
19
|
return "#FF0000";
|
|
@@ -22,7 +22,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
22
22
|
default:
|
|
23
23
|
return "#7A7A7A";
|
|
24
24
|
}
|
|
25
|
-
}), _ =
|
|
25
|
+
}), _ = k(), s = m(JSON.parse(_.query.data));
|
|
26
26
|
return f(() => {
|
|
27
27
|
setTimeout(() => window.print(), 500);
|
|
28
28
|
}), (Y, l) => (u(), n("div", A, [
|
|
@@ -125,8 +125,8 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
125
125
|
t("table", null, [
|
|
126
126
|
t("tr", M, [
|
|
127
127
|
t("td", null, [
|
|
128
|
-
t("div",
|
|
129
|
-
t("div",
|
|
128
|
+
t("div", z, "Ref: " + e(r.ref), 1),
|
|
129
|
+
t("div", J, e(r.createdAt), 1),
|
|
130
130
|
t("div", null, "Remark: " + e(r.remark), 1)
|
|
131
131
|
])
|
|
132
132
|
])
|
|
@@ -135,8 +135,8 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
135
135
|
t("table", null, [
|
|
136
136
|
t("tbody", null, [
|
|
137
137
|
(u(!0), n(o, null, v(r.items, (d, h) => (u(), n("tr", { key: h }, [
|
|
138
|
-
t("td",
|
|
139
|
-
t("td",
|
|
138
|
+
t("td", Q, e(d.code), 1),
|
|
139
|
+
t("td", j, e(d.description), 1),
|
|
140
140
|
t("td", G, e(d.quantity), 1),
|
|
141
141
|
t("td", K, e(d.unit), 1)
|
|
142
142
|
]))), 128))
|
|
@@ -147,7 +147,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
147
147
|
])
|
|
148
148
|
]));
|
|
149
149
|
}
|
|
150
|
-
}), et = /* @__PURE__ */
|
|
150
|
+
}), et = /* @__PURE__ */ w(W, [["__scopeId", "data-v-3cb85541"]]);
|
|
151
151
|
export {
|
|
152
152
|
et as default
|
|
153
153
|
};
|