@feedmepos/mf-inventory-portal 1.2.7-dev.8 → 1.2.7
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-DIqdK9d8.js → App-BtLCesbn.js} +1 -1
- package/dist/{ApprovalView-BKK_eDzO.js → ApprovalView-Ba4XBhGf.js} +68 -69
- package/dist/{BindingsDialog-BRzOVR30.js → BindingsDialog-BbBUniCu.js} +2 -2
- package/dist/{BindingsPicker-BtCdvAgU.js → BindingsPicker-C3q3ROku.js} +1 -1
- package/dist/{BindingsTable-DnS3ypzP.js → BindingsTable-BTxWMif_.js} +1 -1
- package/dist/{ClosingDraftView-BZLUoCOk.js → ClosingDraftView-DGITBnaY.js} +203 -203
- package/dist/ClosingTemplateView-eRvwxXBq.js +1908 -0
- package/dist/{DeliveryOrderPrintPreview-ClbyQK9l.js → DeliveryOrderPrintPreview-CUaHpblV.js} +8 -8
- package/dist/{FmAdminBadge-DcDyRj6K.js → FmAdminBadge-BdwGZY-f.js} +6 -6
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lDkElrkF.js +227 -0
- package/dist/{FmMultiselectDialog-CYPN-2of.js → FmMultiselectDialog-BETfHs3j.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C4QKxv_V.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BNdbeRQp.js} +23 -23
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bollyyl1.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-VYMMcwLl.js} +1 -1
- package/dist/{IngredientGroupView-baNWf_60.js → IngredientGroupView-C4d9b3Td.js} +12 -12
- package/dist/IngredientsView-BvqWuIVT.js +1876 -0
- package/dist/{IntegrationView-CiwxB7rj.js → IntegrationView-CWFzRDWO.js} +1552 -1430
- package/dist/{InventoryBindingForm-BCY8vtGx.js → InventoryBindingForm-Cx0Prlq8.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-hjbfvhVh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-cpR3Sf2Y.js} +41 -41
- package/dist/{InventoryBindingSummary-CCPxd5ir.js → InventoryBindingSummary-l8XvpxVU.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CmqDgde9.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjRvIX-v.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DnpRhNG0.js → PremiumBadge.vue_vue_type_script_setup_true_lang-gjuZveKy.js} +11 -11
- package/dist/{PublishView-CDrYaJX9.js → PublishView-D2iUnDan.js} +14 -14
- package/dist/{PurchaseOrderPrintPreview-QeqPa532.js → PurchaseOrderPrintPreview-DdLvM-wt.js} +11 -11
- package/dist/{ReceiveRequestView-C8NJ7ILf.js → ReceiveRequestView-DpF5ZzvH.js} +145 -148
- package/dist/{RecipeView-Bmvl_poR.js → RecipeView-Dvtm8o1Y.js} +49 -49
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +59 -0
- package/dist/StockView-CRDu_GQ_.js +2086 -0
- package/dist/{SupplierView-Dq3vMn5q.js → SupplierView-7GtIJ3Fz.js} +1015 -1133
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DbmLtbZt.js +2494 -0
- package/dist/{TransferTemplateView-NTw0N3zX.js → TransferTemplateView-Cmvg-yvW.js} +130 -131
- package/dist/{UnitView-BFeT0jpH.js → UnitView-DjVm1iVX.js} +59 -59
- package/dist/WarehouseView-CBso3SXT.js +1034 -0
- package/dist/api/inventory.d.ts +0 -8
- package/dist/api/netsuite.d.ts +0 -3
- package/dist/api/purchase-order-template.d.ts +0 -1
- package/dist/api/purchase-order.d.ts +0 -2
- package/dist/api/warehouse.d.ts +1 -3
- package/dist/{app-D5vamHiS.js → app-Z-ylwRmy.js} +17113 -17876
- package/dist/app.d.ts +9 -96
- package/dist/app.js +3 -3
- package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -9
- package/dist/{decimal-BVxO-7VE.js → decimal-D1pJ2776.js} +1 -1
- package/dist/{format-unit-display-CvUKKMA2.js → format-unit-display-9BMm-8A4.js} +404 -372
- package/dist/{index-_TXzIRmu.js → index-BOl10vcm.js} +1 -1
- package/dist/{index-BmPwzWR6.js → index-rEIM0AVC.js} +1 -1
- package/dist/{stock-4-rgOZcm.js → stock-B8ewk80v.js} +1 -1
- package/dist/stores/feature.d.ts +0 -10
- package/dist/stores/integration/netsuite.d.ts +0 -19
- package/dist/stores/inventory.d.ts +0 -1
- package/dist/stores/location.d.ts +1 -57
- package/dist/stores/supplier.d.ts +0 -96
- package/dist/stores/warehouse.d.ts +0 -4
- package/dist/{supplier-BOW9xXhe.js → supplier-DLSXYY1o.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DbJhveFq.js → use-ingredient-select-dialog-CTjwdY3T.js} +5 -5
- package/dist/{use-inventory-binding-dialog-BNY9P_Pg.js → use-inventory-binding-dialog-zXJB7MQY.js} +8 -8
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +0 -24
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +0 -6
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +0 -2
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +0 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -60
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -10
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -94
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1 -72
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +0 -8
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +0 -3
- package/dist/views/supplier/composables/use-supplier-table.d.ts +0 -4
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -16
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -48
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +0 -8
- package/package.json +2 -2
- package/dist/ClosingTemplateView-BwDaPcHe.js +0 -1862
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Da5zZ3ZF.js +0 -230
- package/dist/IngredientsView-B00A9orQ.js +0 -2306
- package/dist/StockView-H8EcBWrt.js +0 -2104
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D-H0oT-V.js +0 -158
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-r7U0Wgsm.js +0 -3058
- package/dist/WarehouseView-50a9WiLB.js +0 -1066
- package/dist/api/shipment.d.ts +0 -11
- package/dist/closing-template-C8n1siov.js +0 -53
- package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +0 -2
- package/dist/purchase-order-template-CekjfB92.js +0 -41
- package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +0 -16
- package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +0 -4
- package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +0 -16
- package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +0 -4
|
@@ -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, Y as le, b6 as ie, j as h, b7 as T, W as G, V as se, F as de } from "./app-Z-ylwRmy.js";
|
|
3
|
+
import { u as re } from "./use-inventory-binding-dialog-zXJB7MQY.js";
|
|
4
|
+
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BNdbeRQp.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",
|
|
@@ -21,16 +21,16 @@ 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
|
-
}, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" },
|
|
24
|
+
}, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, De = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "w-[52px]"
|
|
27
|
-
},
|
|
27
|
+
}, Ke = { class: "flex flex-col gap-16" }, $e = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col" }, ze = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Le = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Oe = { 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
|
+
}, qe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, He = { class: "line-clamp-1" }, Je = { class: "w-[150px]" }, Qe = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "w-[52px]"
|
|
33
|
-
},
|
|
33
|
+
}, Xe = { class: "flex flex-col px-12 pb-4" }, ln = /* @__PURE__ */ ee({
|
|
34
34
|
__name: "InventoryBindingForm",
|
|
35
35
|
props: {
|
|
36
36
|
id: {},
|
|
@@ -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: D }) {
|
|
47
|
+
const { t: a } = ce(), x = te(), K = _(() => x.recipeById), I = _(() => x.skuById), $ = _(() => x.skuGroupById), s = M, b = D, A = _(() => le({
|
|
48
48
|
parentId: s.id,
|
|
49
49
|
bindings: s.modelValue,
|
|
50
50
|
recipes: x.recipes.map((o) => o._id === s.id ? {
|
|
@@ -63,33 +63,33 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
63
63
|
var t;
|
|
64
64
|
return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
|
|
65
65
|
}))
|
|
66
|
-
), j = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding:
|
|
67
|
-
async function
|
|
66
|
+
), j = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: Y, promptRecipesBinding: z, promptIngredientGroupsBinding: L } = re();
|
|
67
|
+
async function O() {
|
|
68
68
|
if (s.iframeMode) {
|
|
69
69
|
b("click:pick-inventory-bindings", "RECIPE");
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
z(
|
|
73
73
|
s.modelValue,
|
|
74
74
|
(e) => b("update:modelValue", e),
|
|
75
75
|
s.id ? [s.id] : []
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
78
|
const W = _(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
|
|
79
|
-
async function
|
|
80
|
-
|
|
79
|
+
async function q() {
|
|
80
|
+
L(
|
|
81
81
|
s.modelValue,
|
|
82
82
|
(e) => b("update:modelValue", e),
|
|
83
83
|
s.id ? [s.id] : []
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
86
|
const R = _(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
87
|
-
async function
|
|
87
|
+
async function H() {
|
|
88
88
|
if (s.iframeMode) {
|
|
89
89
|
b("click:pick-inventory-bindings", "SKU");
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
Y(
|
|
93
93
|
s.modelValue,
|
|
94
94
|
(e) => b("update:modelValue", e),
|
|
95
95
|
s.excludeBindingId,
|
|
@@ -113,10 +113,10 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
113
113
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
114
114
|
return (d = I.value[e.id]) == null ? void 0 : d.unit;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function J(e) {
|
|
117
117
|
return { amount: e.amount, measurement: e.measurement };
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Q(e, t, o) {
|
|
120
120
|
const d = o.map((f) => f.id !== e ? f : {
|
|
121
121
|
...f,
|
|
122
122
|
amount: t.amount,
|
|
@@ -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 N = ne({});
|
|
128
|
-
function
|
|
128
|
+
function X(e) {
|
|
129
129
|
return N[e.id] ?? {
|
|
130
130
|
modelValue: {
|
|
131
131
|
amount: e.amount,
|
|
@@ -134,7 +134,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
134
134
|
amountAsString: h(e.amount)
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Z(e, t) {
|
|
138
138
|
oe(() => {
|
|
139
139
|
N[e.id] = {
|
|
140
140
|
modelValue: {
|
|
@@ -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: O
|
|
175
175
|
}, null, 8, ["label"]))
|
|
176
176
|
]),
|
|
177
177
|
n("div", be, [
|
|
@@ -192,7 +192,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
192
192
|
n("div", xe, [
|
|
193
193
|
n("div", he, [
|
|
194
194
|
n("div", Ve, [
|
|
195
|
-
n("div", Be, m((g =
|
|
195
|
+
n("div", Be, m((g = K.value[l.id]) == null ? void 0 : g.name), 1)
|
|
196
196
|
]),
|
|
197
197
|
n("div", ke, [
|
|
198
198
|
y(f, {
|
|
@@ -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: q
|
|
243
243
|
}, null, 8, ["label"]))
|
|
244
244
|
]),
|
|
245
245
|
n("div", Ce, [
|
|
@@ -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", Ne, [
|
|
271
|
-
n("div", Te, m((g =
|
|
271
|
+
n("div", Te, m((g = $.value[l.id]) == null ? void 0 : g.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", De, [
|
|
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", Ke, [
|
|
301
|
+
n("div", $e, [
|
|
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,
|
|
@@ -307,13 +307,13 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
307
307
|
"border-color": "primary",
|
|
308
308
|
label: i(a)("inventory.inventoryBindings.linkIngredient"),
|
|
309
309
|
"prepend-icon": "link",
|
|
310
|
-
onClick:
|
|
310
|
+
onClick: H
|
|
311
311
|
}, null, 8, ["label"]))
|
|
312
312
|
]),
|
|
313
|
-
n("div",
|
|
314
|
-
n("div",
|
|
315
|
-
n("div",
|
|
316
|
-
n("div",
|
|
313
|
+
n("div", Ye, [
|
|
314
|
+
n("div", ze, [
|
|
315
|
+
n("div", Le, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
|
|
316
|
+
n("div", Oe, 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) => {
|
|
@@ -323,21 +323,21 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
323
323
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
324
324
|
}, [
|
|
325
325
|
n("div", We, [
|
|
326
|
-
n("div",
|
|
327
|
-
n("span",
|
|
326
|
+
n("div", qe, [
|
|
327
|
+
n("span", He, m((g = I.value[l.id]) == null ? void 0 : g.name), 1)
|
|
328
328
|
]),
|
|
329
|
-
n("div",
|
|
329
|
+
n("div", Je, [
|
|
330
330
|
y(ae, {
|
|
331
|
-
"model-value":
|
|
332
|
-
"onUpdate:modelValue": (c) => c &&
|
|
333
|
-
"onUpdate:amount": (c) =>
|
|
331
|
+
"model-value": J(l),
|
|
332
|
+
"onUpdate:modelValue": (c) => c && Q(l.id, c, e.modelValue),
|
|
333
|
+
"onUpdate:amount": (c) => Z(l, c),
|
|
334
334
|
unit: P(l),
|
|
335
335
|
placement: V === R.value.length - 1 ? "top" : "bottom",
|
|
336
336
|
"convert-amount-on-change-unit": "",
|
|
337
337
|
disabled: e.readonly
|
|
338
338
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
339
339
|
]),
|
|
340
|
-
e.readonly ? v("", !0) : (r(), p("div",
|
|
340
|
+
e.readonly ? v("", !0) : (r(), p("div", Qe, [
|
|
341
341
|
y(d, {
|
|
342
342
|
disabled: e.disabled,
|
|
343
343
|
type: "button",
|
|
@@ -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", Xe, [
|
|
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: X(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-Z-ylwRmy.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 {
|
|
2
|
+
import { V as s } from "./app-Z-ylwRmy.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aI as u, aJ as _, a4 as h, u as F } from "./app-Z-ylwRmy.js";
|
|
2
2
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
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
|
|
4
|
-
function
|
|
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 I } from "vue";
|
|
4
|
+
function O(e, t) {
|
|
5
5
|
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
const r = t.map((o) => o.name), n = e.map((o) =>
|
|
7
|
+
function w(e, t) {
|
|
8
|
+
const r = t.map((o) => o.name), n = e.map((o) => O(o, t));
|
|
9
9
|
return u.aoa_to_sheet([r, ...n]);
|
|
10
10
|
}
|
|
11
11
|
async function C(e, t) {
|
|
12
12
|
const r = u.book_new();
|
|
13
13
|
for (const n of e) {
|
|
14
|
-
const o =
|
|
14
|
+
const o = w(
|
|
15
15
|
n.data,
|
|
16
16
|
n.columns.map((a) => typeof a == "string" ? {
|
|
17
17
|
name: a,
|
|
@@ -78,11 +78,11 @@ function D() {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
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 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.", L = /* @__PURE__ */ k({
|
|
86
86
|
__name: "PremiumBadge",
|
|
87
87
|
props: {
|
|
88
88
|
zIndex: {}
|
|
@@ -98,7 +98,7 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
98
98
|
content: B,
|
|
99
99
|
"z-index": t.zIndex
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
101
|
+
default: I(() => [
|
|
102
102
|
m(n, { variant: "premium" })
|
|
103
103
|
]),
|
|
104
104
|
_: 1
|
|
@@ -108,8 +108,8 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
108
108
|
}
|
|
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,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as D, computed as c, watch as X, resolveComponent as l, openBlock as W, createBlock as z, unref as h, createSlots as Z, withCtx as u, createElementVNode as f, normalizeClass as ee, createVNode as a, normalizeStyle as te, Teleport as oe, h as g } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { aC as ne, u as ae, a as se, b0 as le, C as ie, _ as re, a5 as B } from "./app-Z-ylwRmy.js";
|
|
3
3
|
import { useBreakpoints as ce, useDialog as ue, useSnackbar as me, components as H } from "@feedmepos/ui-library";
|
|
4
4
|
const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ Q({
|
|
5
5
|
__name: "PublishView",
|
|
6
6
|
setup(be) {
|
|
7
|
-
const { t } = ne(), { breakpoints: x } = ce(), n = ae(), A = se(), S = le(), i = D(!1), m = c(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), R = ie(),
|
|
7
|
+
const { t } = ne(), { breakpoints: x } = ce(), n = ae(), A = se(), S = le(), i = D(!1), m = c(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), R = ie(), C = ue(), Y = me(), N = c(() => n.locationsWithInventory), _ = c(() => x.value.xs || x.value.sm), $ = c(() => _.value ? 10 : 20);
|
|
8
8
|
X(
|
|
9
9
|
() => n._locations,
|
|
10
10
|
async () => {
|
|
@@ -14,7 +14,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
14
14
|
{ immediate: !0 }
|
|
15
15
|
// Optional: triggers the watcher immediately on mount
|
|
16
16
|
);
|
|
17
|
-
const
|
|
17
|
+
const U = c(() => [
|
|
18
18
|
{
|
|
19
19
|
label: t("inventory.common.refresh"),
|
|
20
20
|
value: "refresh",
|
|
@@ -22,10 +22,10 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
22
22
|
},
|
|
23
23
|
{ label: t("inventory.publish.actions.publishAll"), value: "publish", isPrimary: !0 }
|
|
24
24
|
]);
|
|
25
|
-
async function
|
|
25
|
+
async function q(e) {
|
|
26
26
|
switch (e) {
|
|
27
27
|
case "publish":
|
|
28
|
-
|
|
28
|
+
C.open({
|
|
29
29
|
title: t("inventory.common.publish"),
|
|
30
30
|
message: "Are you sure you want to publish to all locations?",
|
|
31
31
|
primaryActions: { text: t("inventory.common.publish"), close: !0 },
|
|
@@ -39,13 +39,13 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
39
39
|
break;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
const w = D(!1),
|
|
42
|
+
const w = D(!1), E = [
|
|
43
43
|
{
|
|
44
44
|
value: "publish",
|
|
45
45
|
label: t("inventory.publish.actions.publishAll")
|
|
46
46
|
}
|
|
47
47
|
];
|
|
48
|
-
function
|
|
48
|
+
function K(e) {
|
|
49
49
|
switch (w.value = !1, e) {
|
|
50
50
|
case "publish":
|
|
51
51
|
console.log("publish all");
|
|
@@ -108,7 +108,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
108
108
|
variant: "secondary",
|
|
109
109
|
icon: "sync",
|
|
110
110
|
onClick: () => {
|
|
111
|
-
|
|
111
|
+
C.open({
|
|
112
112
|
title: t("inventory.common.publish"),
|
|
113
113
|
message: `Are you sure you want to publish this location "${e.row.original.name}"?`,
|
|
114
114
|
primaryActions: { text: t("inventory.common.publish"), close: !0 },
|
|
@@ -145,8 +145,8 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
145
145
|
const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"), G = l("FmTable"), J = l("FmCollapsibleTabs"), O = l("FmBottomSheet");
|
|
146
146
|
return W(), z(re, {
|
|
147
147
|
title: h(t)("inventory.publish.title"),
|
|
148
|
-
actions:
|
|
149
|
-
"onClick:action":
|
|
148
|
+
actions: U.value,
|
|
149
|
+
"onClick:action": q
|
|
150
150
|
}, Z({
|
|
151
151
|
default: u(() => [
|
|
152
152
|
f("div", {
|
|
@@ -169,12 +169,12 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
169
169
|
"list-row": u((r) => [
|
|
170
170
|
a(d, { row: r }, {
|
|
171
171
|
default: u((y) => {
|
|
172
|
-
var
|
|
172
|
+
var F, I, k, b, M, L, P, T, v, V;
|
|
173
173
|
return [
|
|
174
174
|
f("div", pe, [
|
|
175
175
|
f("div", de, [
|
|
176
176
|
a(p, {
|
|
177
|
-
render: (k = (I = (
|
|
177
|
+
render: (k = (I = (F = y.code) == null ? void 0 : F.column) == null ? void 0 : I.columnDef) == null ? void 0 : k.cell,
|
|
178
178
|
props: (M = (b = y.code) == null ? void 0 : b.getContext) == null ? void 0 : M.call(b)
|
|
179
179
|
}, null, 8, ["render", "props"])
|
|
180
180
|
]),
|
|
@@ -202,8 +202,8 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
202
202
|
default: u(() => [
|
|
203
203
|
a(J, {
|
|
204
204
|
class: "pb-8",
|
|
205
|
-
items:
|
|
206
|
-
"onUpdate:modelValue": o[0] || (o[0] = (r) =>
|
|
205
|
+
items: E,
|
|
206
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => K(r))
|
|
207
207
|
})
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
package/dist/{PurchaseOrderPrintPreview-QeqPa532.js → PurchaseOrderPrintPreview-DdLvM-wt.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import { useRoute as w } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" },
|
|
3
|
+
import { aB as y, ap as k } from "./app-Z-ylwRmy.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" }, B = { class: "text-left" }, L = { class: "text-left" }, U = { class: "text-right" }, V = { 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 = {
|
|
@@ -35,8 +35,8 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
35
35
|
style: g({ color: c.value })
|
|
36
36
|
}, e(s.value.status), 5)
|
|
37
37
|
]),
|
|
38
|
-
t("td",
|
|
39
|
-
t("div",
|
|
38
|
+
t("td", N, [
|
|
39
|
+
t("div", O, "ORD #" + e(s.value.orderNumber), 1),
|
|
40
40
|
t("div", null, e(s.value.createdAt), 1)
|
|
41
41
|
])
|
|
42
42
|
])
|
|
@@ -46,9 +46,9 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
46
46
|
t("tr", null, [
|
|
47
47
|
t("td", null, [
|
|
48
48
|
l[4] || (l[4] = t("div", { class: "header" }, "Supplier", -1)),
|
|
49
|
-
t("div",
|
|
50
|
-
t("div",
|
|
51
|
-
t("div",
|
|
49
|
+
t("div", P, e(s.value.supplier.name), 1),
|
|
50
|
+
t("div", D, e(s.value.supplier.registrationNumber), 1),
|
|
51
|
+
t("div", E, [
|
|
52
52
|
i(e(s.value.supplier.line1), 1),
|
|
53
53
|
l[1] || (l[1] = t("br", null, null, -1)),
|
|
54
54
|
s.value.supplier.line2 ? (u(), n(o, { key: 0 }, [
|
|
@@ -104,10 +104,10 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
104
104
|
], -1)),
|
|
105
105
|
t("tbody", null, [
|
|
106
106
|
(u(!0), n(o, null, v(s.value.items, (r, a) => (u(), n("tr", { key: a }, [
|
|
107
|
-
t("td",
|
|
108
|
-
t("td",
|
|
109
|
-
t("td",
|
|
110
|
-
t("td",
|
|
107
|
+
t("td", B, e(r.code), 1),
|
|
108
|
+
t("td", L, e(r.description), 1),
|
|
109
|
+
t("td", U, e(r.quantity), 1),
|
|
110
|
+
t("td", V, e(r.unit), 1),
|
|
111
111
|
t("td", H, e(r.cost ? r.cost : "N/A"), 1)
|
|
112
112
|
]))), 128))
|
|
113
113
|
])
|