@feedmepos/mf-inventory-portal 1.0.37-dev.3 → 1.0.38
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-Dmd2G8R5.js → App-Bh_jIWxm.js} +1 -1
- package/dist/{ApprovalView-Dp3k5vDw.js → ApprovalView-U-Jo7wyv.js} +19 -19
- package/dist/{BindingsDialog-D80Yhk4v.js → BindingsDialog-CC0wt6a_.js} +4 -4
- package/dist/{BindingsPicker-BYRH73Mx.js → BindingsPicker-WL_1lOdc.js} +1 -1
- package/dist/{BindingsTable-CvblcQnI.js → BindingsTable-DJf1WJou.js} +4 -4
- package/dist/{ClosingDraftView-DiUIrHnf.js → ClosingDraftView-BI19VIT_.js} +26 -26
- package/dist/ClosingTemplateView-B6p83fs1.js +1804 -0
- package/dist/{DeliveryOrderPrintPreview-7DmbPXg9.js → DeliveryOrderPrintPreview-LANZdQE7.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C_QmBqHi.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bhz1nVO6.js} +11 -11
- package/dist/{FmMultiselectDialog-m2Wih5ZC.js → FmMultiselectDialog-B16LNSaK.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C0Ky06__.js → FmUnitInput.vue_vue_type_script_setup_true_lang-pAmapm7v.js} +21 -21
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DLfxc861.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7wM9EQ2.js} +1 -1
- package/dist/{IngredientGroupView-Um-bP1SR.js → IngredientGroupView-Bi8657CZ.js} +2 -2
- package/dist/IngredientsView-CGEQ-GvW.js +1838 -0
- package/dist/{IntegrationView-DfBOpvo1.js → IntegrationView-mYS_UJlk.js} +76 -77
- package/dist/{InventoryBindingForm-sbgSzNep.js → InventoryBindingForm-D-Y-IDFl.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYpXwzuu.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByFJ6s6U.js} +24 -24
- package/dist/{InventoryBindingSummary-BWdagbGS.js → InventoryBindingSummary-z6XljZ_R.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BvdA5Qfu.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ihrVnPMe.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CBH7oYpv.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DhoXg0vX.js} +10 -10
- package/dist/{PublishView-CjX1ZmFe.js → PublishView-DB7j7FkK.js} +17 -17
- package/dist/{PurchaseOrderPrintPreview-M20PXH1Z.js → PurchaseOrderPrintPreview-CTQIzDKp.js} +12 -12
- package/dist/{ReceiveRequestView-CF9p1j-M.js → ReceiveRequestView-B2UDO9o9.js} +782 -797
- package/dist/{RecipeView-kVgJAZ9d.js → RecipeView-BIDDh0V9.js} +3 -3
- package/dist/{StockView-B9bSTjY4.js → StockView-BgzAJBdL.js} +6 -6
- package/dist/{SupplierView-uaW913cH.js → SupplierView-zS3HDy59.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bwiv5v2m.js → TransferDetails.vue_vue_type_script_setup_true_lang-DhnPjxXG.js} +696 -691
- package/dist/{TransferTemplateView-BuHT8mNT.js → TransferTemplateView-DLS9QAGY.js} +83 -83
- package/dist/{UnitView-Db_ETZrB.js → UnitView-B8mfgqXO.js} +3 -3
- package/dist/{WarehouseView-2SJNm6XK.js → WarehouseView-D4yYBRSM.js} +1 -1
- package/dist/api/inventory.d.ts +0 -4
- package/dist/api/netsuite.d.ts +0 -7
- package/dist/{app-CoEB-VoH.js → app-BLo-E2P1.js} +61427 -61936
- package/dist/app.d.ts +0 -9
- package/dist/app.js +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +0 -1
- package/dist/components/row-action.enum.d.ts +1 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +0 -1
- package/dist/{decimal-B7itxUWP.js → decimal-u4mLA_2Z.js} +1 -1
- package/dist/format-unit-display-g_Tq_sk7.js +1230 -0
- package/dist/{index-YGLKr3WK.js → index-BbBtmjWx.js} +1 -1
- package/dist/{index-DfWaG7Tl.js → index-Bu2R1xRv.js} +1 -1
- package/dist/{stock-CCQ352Hu.js → stock-BxIuAFed.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +1 -7
- package/dist/stores/inventory.d.ts +0 -9
- package/dist/{supplier-BCwA2FHM.js → supplier-CQftkZPG.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DOONV-IL.js → use-ingredient-select-dialog-C9I7bja9.js} +1 -1
- package/dist/{use-inventory-binding-dialog-BPM-7FrW.js → use-inventory-binding-dialog-s8nyBhfo.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1 -4
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -24
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +0 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -16
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +0 -12
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +0 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +0 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +0 -2
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +0 -4
- package/dist/views/receive-request/components/netsuite/NetSuiteLog.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +0 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +0 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -4
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -24
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +0 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +0 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1 -16
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -12
- package/dist/{vue-i18n-DZAYeut-.js → vue-i18n-C3CYm8Dg.js} +352 -352
- package/package.json +1 -1
- package/dist/ClosingTemplateView-BGyaxOv_.js +0 -1849
- package/dist/IngredientsView-BOYvD0VL.js +0 -1858
- package/dist/api/duplicate-template.d.ts +0 -5
- package/dist/format-unit-display-DswmXjqB.js +0 -1275
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ee, computed as
|
|
2
|
-
import { a as te, X as le,
|
|
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-
|
|
1
|
+
import { defineComponent as ee, computed as g, 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, X as le, a_ as ie, j as h, a$ as N, V as G, T as se, F as de } from "./app-BLo-E2P1.js";
|
|
3
|
+
import { u as re } from "./use-inventory-binding-dialog-s8nyBhfo.js";
|
|
4
|
+
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-pAmapm7v.js";
|
|
5
5
|
import { useI18n as ce } from "@feedmepos/mf-common";
|
|
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" },
|
|
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" }, _e = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ge = { 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",
|
|
8
8
|
style: { "min-height": "48px" }
|
|
9
9
|
}, Ve = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Be = { class: "flex flex-col" }, ke = { class: "w-[200px]" }, Ie = {
|
|
@@ -21,10 +21,10 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
21
21
|
}, Pe = {
|
|
22
22
|
class: "flex items-center",
|
|
23
23
|
style: { "min-height": "48px" }
|
|
24
|
-
}, Te = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ne = { class: "flex flex-col" }, Me = { class: "w-[200px]" },
|
|
24
|
+
}, Te = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ne = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, $e = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "w-[52px]"
|
|
27
|
-
},
|
|
27
|
+
}, De = { class: "flex flex-col gap-16" }, Ke = { 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 = {
|
|
@@ -43,8 +43,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
43
43
|
enableIngredientGroup: { type: Boolean }
|
|
44
44
|
},
|
|
45
45
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
46
|
-
setup(M, { emit:
|
|
47
|
-
const { t: a } = ce(), x = te(),
|
|
46
|
+
setup(M, { emit: $ }) {
|
|
47
|
+
const { t: a } = ce(), x = te(), D = g(() => x.recipeById), I = g(() => x.skuById), K = g(() => x.skuGroupById), s = M, b = $, A = g(() => le({
|
|
48
48
|
parentId: s.id,
|
|
49
49
|
bindings: s.modelValue,
|
|
50
50
|
recipes: x.recipes.map((o) => o._id === s.id ? {
|
|
@@ -58,12 +58,12 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
58
58
|
}
|
|
59
59
|
} : o),
|
|
60
60
|
skuGroups: x.skuGroups
|
|
61
|
-
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ie.enum.circularDependency)), w =
|
|
61
|
+
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ie.enum.circularDependency)), w = g(
|
|
62
62
|
() => new Set(A.value.map((e) => {
|
|
63
63
|
var t;
|
|
64
64
|
return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
|
|
65
65
|
}))
|
|
66
|
-
), j =
|
|
66
|
+
), j = g(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: z, promptRecipesBinding: L, promptIngredientGroupsBinding: O } = re();
|
|
67
67
|
async function Y() {
|
|
68
68
|
if (s.iframeMode) {
|
|
69
69
|
b("click:pick-inventory-bindings", "RECIPE");
|
|
@@ -75,7 +75,7 @@ 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 W =
|
|
78
|
+
const W = g(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
|
|
79
79
|
async function X() {
|
|
80
80
|
O(
|
|
81
81
|
s.modelValue,
|
|
@@ -83,7 +83,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
83
83
|
s.id ? [s.id] : []
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
|
-
const R =
|
|
86
|
+
const R = g(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
87
87
|
async function q() {
|
|
88
88
|
if (s.iframeMode) {
|
|
89
89
|
b("click:pick-inventory-bindings", "SKU");
|
|
@@ -175,8 +175,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
175
175
|
}, null, 8, ["label"]))
|
|
176
176
|
]),
|
|
177
177
|
n("div", be, [
|
|
178
|
-
n("div",
|
|
179
|
-
n("div",
|
|
178
|
+
n("div", _e, [
|
|
179
|
+
n("div", ge, m(i(a)("inventory.inventoryBindings.recipe")), 1),
|
|
180
180
|
t[1] || (t[1] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
181
181
|
t[2] || (t[2] = n("div", { class: "w-[52px]" }, null, -1))
|
|
182
182
|
]),
|
|
@@ -187,12 +187,12 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
187
187
|
rules: [i(N)(0), i(G)(0)]
|
|
188
188
|
}, {
|
|
189
189
|
default: U(({ invalid: V }) => {
|
|
190
|
-
var
|
|
190
|
+
var _;
|
|
191
191
|
return [
|
|
192
192
|
n("div", xe, [
|
|
193
193
|
n("div", he, [
|
|
194
194
|
n("div", Ve, [
|
|
195
|
-
n("div", Be, m((
|
|
195
|
+
n("div", Be, m((_ = D.value[l.id]) == null ? void 0 : _.name), 1)
|
|
196
196
|
]),
|
|
197
197
|
n("div", ke, [
|
|
198
198
|
y(f, {
|
|
@@ -255,7 +255,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
255
255
|
rules: [i(N)(0), i(G)(0)]
|
|
256
256
|
}, {
|
|
257
257
|
default: U(({ invalid: V }) => {
|
|
258
|
-
var
|
|
258
|
+
var _;
|
|
259
259
|
return [
|
|
260
260
|
n("div", Re, [
|
|
261
261
|
w.value.has(l.id) ? (r(), p("div", Se, [
|
|
@@ -268,7 +268,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
268
268
|
])) : v("", !0),
|
|
269
269
|
n("div", Pe, [
|
|
270
270
|
n("div", Te, [
|
|
271
|
-
n("div", Ne, m((
|
|
271
|
+
n("div", Ne, m((_ = K.value[l.id]) == null ? void 0 : _.name), 1)
|
|
272
272
|
]),
|
|
273
273
|
n("div", Me, [
|
|
274
274
|
y(f, {
|
|
@@ -279,7 +279,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
279
279
|
invalid: V
|
|
280
280
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
281
281
|
]),
|
|
282
|
-
e.readonly ? v("", !0) : (r(), p("div",
|
|
282
|
+
e.readonly ? v("", !0) : (r(), p("div", $e, [
|
|
283
283
|
y(d, {
|
|
284
284
|
disabled: e.disabled,
|
|
285
285
|
type: "button",
|
|
@@ -297,8 +297,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
297
297
|
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
298
298
|
])
|
|
299
299
|
])) : v("", !0),
|
|
300
|
-
n("div",
|
|
301
|
-
n("div",
|
|
300
|
+
n("div", De, [
|
|
301
|
+
n("div", Ke, [
|
|
302
302
|
n("div", je, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
|
|
303
303
|
e.readonly ? v("", !0) : (r(), B(d, {
|
|
304
304
|
key: 0,
|
|
@@ -317,14 +317,14 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-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) => {
|
|
320
|
-
var
|
|
320
|
+
var _;
|
|
321
321
|
return r(), p("div", {
|
|
322
322
|
key: l.id,
|
|
323
323
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
324
324
|
}, [
|
|
325
325
|
n("div", We, [
|
|
326
326
|
n("div", Xe, [
|
|
327
|
-
n("span", qe, m((
|
|
327
|
+
n("span", qe, m((_ = I.value[l.id]) == null ? void 0 : _.name), 1)
|
|
328
328
|
]),
|
|
329
329
|
n("div", He, [
|
|
330
330
|
y(ae, {
|
|
@@ -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-BLo-E2P1.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { T as s } from "./app-
|
|
2
|
+
import { T as s } from "./app-BLo-E2P1.js";
|
|
3
3
|
const T = ["value", "disabled"], B = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aC as u, aD as _, a3 as h, u as F } from "./app-BLo-E2P1.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 z(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 C(e, t) {
|
|
|
22
22
|
}
|
|
23
23
|
await _(r, t);
|
|
24
24
|
}
|
|
25
|
-
const f =
|
|
26
|
-
const r =
|
|
25
|
+
const f = h((e, t) => {
|
|
26
|
+
const r = F(), 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 A() {
|
|
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 b = { 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 E = { 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", b, [
|
|
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 E = { class: "flex items-center gap-8" }, b = "Experience enhanced invento
|
|
|
109
109
|
});
|
|
110
110
|
export {
|
|
111
111
|
L as _,
|
|
112
|
-
|
|
112
|
+
z as e,
|
|
113
113
|
N as i,
|
|
114
|
-
|
|
114
|
+
A as u
|
|
115
115
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as oe, a as ne,
|
|
1
|
+
import { defineComponent as Q, ref as z, computed as r, resolveComponent as s, openBlock as I, createBlock as B, unref as v, createSlots as X, 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, aV as ae, B as se, _ as le, ak as H } from "./app-BLo-E2P1.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-C3CYm8Dg.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__ */ Q({
|
|
6
6
|
__name: "PublishView",
|
|
7
7
|
setup(ye) {
|
|
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(),
|
|
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(), k = 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
|
+
k.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 },
|
|
@@ -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 j = [
|
|
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
|
+
k.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"), G = s("FmTable"), J = s("FmCollapsibleTabs"), O = 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
|
+
}, X({
|
|
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(G, {
|
|
153
153
|
style: ee(v(Y).tableHeight),
|
|
154
|
-
"column-defs":
|
|
154
|
+
"column-defs": j,
|
|
155
155
|
"row-data": $.value,
|
|
156
156
|
loading: !v(l)._currentLocation || g.value,
|
|
157
157
|
"loading-text": "Loading",
|
|
@@ -160,18 +160,18 @@ 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 C, F, M, y, P, V, L, T, 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 = (F = (C = d.code) == null ? void 0 : C.column) == null ? void 0 : F.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: (
|
|
174
|
+
render: (T = (L = (V = d.name) == null ? void 0 : V.column) == null ? void 0 : L.columnDef) == null ? void 0 : T.cell,
|
|
175
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
|
])
|
|
@@ -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(O, {
|
|
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(J, {
|
|
195
195
|
class: "pb-8",
|
|
196
196
|
items: K,
|
|
197
197
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => W(i))
|
package/dist/{PurchaseOrderPrintPreview-M20PXH1Z.js → PurchaseOrderPrintPreview-CTQIzDKp.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 m, ref as x, 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 w } from "vue-router";
|
|
3
|
+
import { aw as y, aj as k } from "./app-BLo-E2P1.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" }, j = { class: "header" }, z = { class: "caption" }, J = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
7
|
-
},
|
|
7
|
+
}, Q = { 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 = m(() => {
|
|
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
|
+
}), _ = w(), s = x(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", j, "Ref: " + e(r.ref), 1),
|
|
129
|
+
t("div", z, 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", J, e(d.code), 1),
|
|
139
|
+
t("td", Q, 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__ */ k(W, [["__scopeId", "data-v-3cb85541"]]);
|
|
151
151
|
export {
|
|
152
152
|
et as default
|
|
153
153
|
};
|