@feedmepos/mf-inventory-portal 0.0.19-dev.1 → 0.0.19-dev.10
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/ApprovalView-BgTTFiOw.js +121 -0
- package/dist/{BindingsDialog-DpC48bqK.js → BindingsDialog-BROnpXEI.js} +9 -10
- package/dist/{BindingsPicker-BU52g6zk.js → BindingsPicker-aQHfS_vY.js} +7 -8
- package/dist/{BindingsTable-aIuFdScv.js → BindingsTable-DvtIQMFk.js} +4 -6
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DR9YAhaJ.js +272 -0
- package/dist/IngredientsView-BgAQCCD-.js +1751 -0
- package/dist/IntegrationView-DEBb_X5K.js +1172 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BuyM580N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VF3PDSzP.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIRzNfFN.js +88 -0
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js +29 -0
- package/dist/{PurchaseOrderPrintPreview-EeKhENYH.js → PurchaseOrderPrintPreview-D2zNGZhx.js} +4 -4
- package/dist/ReceiveRequestView-Dc5JlUMC.js +208 -0
- package/dist/RecipeView-C1DBn8pW.js +573 -0
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +59 -0
- package/dist/StockView-6wi6BEOE.js +1877 -0
- package/dist/SupplierView-CS7YdL5Q.js +801 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CBbbXOhl.js +745 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-CWEypKBc.js +1662 -0
- package/dist/TransferTemplateView-C1hmdeKM.js +933 -0
- package/dist/UnitView-BUdKTKch.js +638 -0
- package/dist/WarehouseView-BbreEn79.js +1050 -0
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/purchase-order-template.d.ts +7 -0
- package/dist/app-B3oV5Muh.js +67059 -0
- package/dist/app.d.ts +1111 -0
- package/dist/app.js +7 -3
- package/dist/components/FmDroppableField.vue.d.ts +1 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +2 -0
- package/dist/composable/defineDeepModel.d.ts +2 -0
- package/dist/{decimal-BAZuuTcd.js → decimal-DzjRPmPY.js} +1 -1
- package/dist/helper/country.d.ts +2 -0
- package/dist/id-to-date-CG1QobkF.js +30 -0
- package/dist/layout-qEWDq5Vs.js +147 -0
- package/dist/purchase-order-transaction-type-D-GMrgDp.js +294 -0
- package/dist/router/name.d.ts +2 -1
- package/dist/row-action.enum-7jVyol1k.js +36 -0
- package/dist/stores/supplier.d.ts +90 -7
- package/dist/style.css +1 -1
- package/dist/supplier-BE_AQA4h.js +54 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/dev/components/FmMultiselectDialogGrouped.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +26 -0
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +14 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -2
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +22 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +2 -1
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +187 -0
- package/dist/views/receive-request/components/transfer-form/components/TransferItem.vue.d.ts +23 -0
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +21 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-backdate-po.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-compare-price.d.ts +6 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +112 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -1
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +18 -12
- package/dist/views/receive-request/helper/get-transfer-type.d.ts +2 -0
- package/dist/views/recipe/composables/use-recipe-form.d.ts +14 -2
- package/dist/views/recipe/composables/use-recipe-table.d.ts +1 -2
- 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/composables/use-stock-action.d.ts +26 -0
- package/dist/views/stock/composables/use-stock-table.d.ts +1 -8
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +22 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialogProps.d.ts +10 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +16 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateFormProps.d.ts +7 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +18 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +116 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +112 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +470 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +290 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +14 -2
- package/dist/views/unit/composables/use-unit-table.d.ts +1 -2
- package/dist/{xlsx-vUzm_udV.js → xlsx-BGXLmGtO.js} +1 -1
- package/dist/xlsx.util-DxU-P-ww.js +109 -0
- package/package.json +6 -5
- package/dist/ApprovalView-BTZwnKLf.js +0 -118
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DjgmtvXU.js +0 -268
- package/dist/FmMultiselectDialog.vue_vue_type_script_setup_true_lang-n09XXJZK.js +0 -143
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-B-19iYaK.js +0 -236
- package/dist/IngredientsView-DMyEGdik.js +0 -1767
- package/dist/IntegrationView-Dn_qL_vC.js +0 -1166
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DGTLUrb9.js +0 -276
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js +0 -35
- package/dist/ReceiveRequestView-BOdgbFFM.js +0 -1394
- package/dist/RecipeView-B1aNLDIK.js +0 -573
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-B5EK101t.js +0 -58
- package/dist/StockView-C_Ur_jTg.js +0 -1862
- package/dist/SupplierView-CXfOoHTr.js +0 -796
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-kjV5Eazv.js +0 -1028
- package/dist/UnitView-DHXfAsnq.js +0 -635
- package/dist/WarehouseView-DMwbxs1q.js +0 -1043
- package/dist/app-BkcO8oNJ.js +0 -66113
- package/dist/date2-Cvp5iJkI.js +0 -95
- package/dist/dayjs.min-D1_pOsO7.js +0 -282
- package/dist/fuzzy-0roCBvgC.js +0 -41
- package/dist/index-B_aEOJsR.js +0 -21515
- package/dist/layout-BnTfCS_X.js +0 -151
- package/dist/number-DLj3W3RW.js +0 -97
- package/dist/row-action.enum-BwQbURNh.js +0 -28
- package/dist/rules-CCmXA0Yi.js +0 -85
- package/dist/stock-estimate-CL4HShG8.js +0 -122
- package/dist/supplier-CjAH8O1y.js +0 -65
- package/dist/use-inventory-binding-dialog-GkJOzE6V.js +0 -93
- package/dist/xlsx.util-B_bqymTM.js +0 -107
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, openBlock as f, createElementBlock as u, createElementVNode as x, toDisplayString as d, Fragment as g, renderList as M, unref as v } from "vue";
|
|
2
|
-
import { a as h, b } from "./number-DLj3W3RW.js";
|
|
3
|
-
import { u as y, w as k, r as S } from "./xlsx-vUzm_udV.js";
|
|
4
|
-
const A = { class: "flex flex-col" }, $ = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, B = { class: "flex-1 py-8 px-16" }, E = /* @__PURE__ */ x("div", {
|
|
5
|
-
class: "flex-0 py-8 px-16",
|
|
6
|
-
style: { "flex-basis": "120px" }
|
|
7
|
-
}, "Amount", -1), I = { class: "flex-1 py-8 px-16" }, N = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "flex-0 py-8 px-16",
|
|
10
|
-
style: { "flex-basis": "120px" }
|
|
11
|
-
}, j = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "flex-0 py-8 px-16",
|
|
14
|
-
style: { "flex-basis": "120px" }
|
|
15
|
-
}, R = /* @__PURE__ */ _({
|
|
16
|
-
__name: "IngredientBindedItem",
|
|
17
|
-
props: {
|
|
18
|
-
name: {},
|
|
19
|
-
bindings: {}
|
|
20
|
-
},
|
|
21
|
-
setup(o) {
|
|
22
|
-
function n(e, s) {
|
|
23
|
-
var t;
|
|
24
|
-
if (e.measurement) {
|
|
25
|
-
const a = b(e.amount, e.measurement.conversion);
|
|
26
|
-
return `${h(a, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
|
|
27
|
-
}
|
|
28
|
-
return `${h(e.amount, !1)} ${s.abbrev}`;
|
|
29
|
-
}
|
|
30
|
-
function r(e) {
|
|
31
|
-
return e.unit !== void 0;
|
|
32
|
-
}
|
|
33
|
-
return (e, s) => (f(), u("div", A, [
|
|
34
|
-
x("div", $, [
|
|
35
|
-
x("div", B, d(e.name), 1),
|
|
36
|
-
E
|
|
37
|
-
]),
|
|
38
|
-
(f(!0), u(g, null, M(e.bindings, (t) => (f(), u("div", {
|
|
39
|
-
key: t.id,
|
|
40
|
-
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
41
|
-
}, [
|
|
42
|
-
x("div", I, d(t.name), 1),
|
|
43
|
-
r(t) ? (f(), u("div", N, d(n(t, t.unit)), 1)) : (f(), u("div", j, d(v(h)(t.amount, !1)), 1))
|
|
44
|
-
]))), 128))
|
|
45
|
-
]));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
function* C(o) {
|
|
49
|
-
const [n, r] = o.split(":"), e = /\d+/, s = e.exec(n), t = e.exec(r);
|
|
50
|
-
if (!s || !t)
|
|
51
|
-
throw new Error(`Cannot parse row range for range: ${o}`);
|
|
52
|
-
const a = Number(s[0]), l = Number(t[0]);
|
|
53
|
-
for (let c = a; c <= l; c++)
|
|
54
|
-
yield c;
|
|
55
|
-
}
|
|
56
|
-
function* F(o) {
|
|
57
|
-
const [n, r] = o.split(":"), e = /[^\d]+/, s = e.exec(n), t = e.exec(r);
|
|
58
|
-
if (!s || !t)
|
|
59
|
-
throw new Error(`Cannot parse row range for range: ${o}`);
|
|
60
|
-
let a = 0, l = "A";
|
|
61
|
-
for (yield l; l !== t[0]; ) {
|
|
62
|
-
a++;
|
|
63
|
-
const c = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
64
|
-
let i = a, m = !1, p = "";
|
|
65
|
-
do {
|
|
66
|
-
const w = i % c.length;
|
|
67
|
-
i = Math.floor(i / c.length), p += c.charAt(w), m = i > 0, i -= 1;
|
|
68
|
-
} while (m);
|
|
69
|
-
l = p.split("").reverse().join(""), yield l;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function T(o) {
|
|
73
|
-
var e;
|
|
74
|
-
const n = [], r = o["!ref"];
|
|
75
|
-
if (!r) return n;
|
|
76
|
-
for (const s of C(r)) {
|
|
77
|
-
const t = [];
|
|
78
|
-
for (const a of F(r))
|
|
79
|
-
t.push(((e = o[`${a}${s}`]) == null ? void 0 : e.w) ?? "");
|
|
80
|
-
n.push(t);
|
|
81
|
-
}
|
|
82
|
-
return n;
|
|
83
|
-
}
|
|
84
|
-
function X(o, n, r = "Sheet1") {
|
|
85
|
-
const e = y.aoa_to_sheet([n, ...o]), s = o.reduce((l, c) => Math.max(l, c.length), 0), t = Array.from({ length: s }).map((l, c) => {
|
|
86
|
-
const i = o.map((m) => `${m[c]}`).reduce((m, p) => Math.max(m, p.length + 3), 0);
|
|
87
|
-
return {
|
|
88
|
-
wch: Math.max(i, 5)
|
|
89
|
-
};
|
|
90
|
-
});
|
|
91
|
-
e["!cols"] = t;
|
|
92
|
-
const a = y.book_new();
|
|
93
|
-
return y.book_append_sheet(a, e, r), a;
|
|
94
|
-
}
|
|
95
|
-
function U(o, n) {
|
|
96
|
-
k(o, n, { compression: !0 });
|
|
97
|
-
}
|
|
98
|
-
async function V(o) {
|
|
99
|
-
return S(await o.arrayBuffer());
|
|
100
|
-
}
|
|
101
|
-
export {
|
|
102
|
-
R as _,
|
|
103
|
-
U as d,
|
|
104
|
-
V as r,
|
|
105
|
-
T as s,
|
|
106
|
-
X as t
|
|
107
|
-
};
|