@feedmepos/mf-inventory-portal 0.0.7-dev.2 → 0.0.7-dev.4
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-PgJmPjWr.js → ApprovalView-D1CshEiL.js} +6 -6
- package/dist/{BindingsDialog-Ch42kY-Z.js → BindingsDialog-Box9e9MU.js} +2 -2
- package/dist/{BindingsPicker-CjKJb9Iu.js → BindingsPicker-BMU_18fI.js} +2 -2
- package/dist/{BindingsTable-PvwPN2Vu.js → BindingsTable-CEmUUzD9.js} +3 -3
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Dyl7UXMT.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BfmFBfLR.js} +1 -1
- package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-BCUjOxSy.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-izsN_Y6x.js} +2 -2
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CDi5O9gb.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-cNMSS0Ji.js} +1 -1
- package/dist/{IngredientsView--902oYCN.js → IngredientsView-Cx189ZUR.js} +202 -185
- package/dist/{IntegrationView-DzfSwX2I.js → IntegrationView-eJmquyFT.js} +3 -3
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-jBbeI4Xr.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CN1SVuzj.js} +5 -5
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VIcbJgay.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dyo5rWdy.js} +1 -1
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js +35 -0
- package/dist/{PurchaseOrderPrintPreview-sr4WLbNL.js → PurchaseOrderPrintPreview-8aVgWGlY.js} +1 -1
- package/dist/{ReceiveRequestView-B3n0s9JC.js → ReceiveRequestView-DosAbeBl.js} +520 -495
- package/dist/{RecipeView-DjHRoOJv.js → RecipeView-_A-EOMMi.js} +7 -7
- package/dist/StockView-CpVv9gnP.js +1938 -0
- package/dist/{SupplierView-DXn13XBW.js → SupplierView-CZmv0Zch.js} +208 -195
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BdTcFpfV.js → TransferDetails.vue_vue_type_script_setup_true_lang-DnMxN-Zl.js} +5 -5
- package/dist/{UnitView-DVrscPTQ.js → UnitView-CF48QegO.js} +6 -6
- package/dist/{WarehouseView-B1n-2vW4.js → WarehouseView-Pq4tKlGH.js} +3 -3
- package/dist/api/stock.d.ts +8 -0
- package/dist/{app-D-4-R23d.js → app-kk-I7El6.js} +187 -187
- package/dist/app.js +1 -1
- package/dist/components/PremiumBadge.vue.d.ts +24 -0
- package/dist/components/PreviewBadge.vue.d.ts +24 -0
- package/dist/{date2-B0vvvXGT.js → date2-C_MxkBzJ.js} +8 -8
- package/dist/{dayjs.min-BJNynOI_.js → dayjs.min-B0-vxxmd.js} +2251 -2009
- package/dist/{decimal-MudMBQgK.js → decimal-CwL8K3v-.js} +1 -1
- package/dist/{fuzzy-CToOYwhA.js → fuzzy-CdBRA2rL.js} +1 -1
- package/dist/{init-date-range-D5SkV2p4.js → init-date-range-BkRJwJWl.js} +1 -1
- package/dist/{layout-C7Dvo6EU.js → layout-Uo3EuS0G.js} +1 -1
- package/dist/{rules-D4pouPya.js → rules-DMCipsmW.js} +1 -1
- package/dist/stock-estimate-BRvddt7k.js +122 -0
- package/dist/{supplier-lu9adAbr.js → supplier-Ba-xLeGl.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-C-4l8D01.js → use-inventory-binding-dialog-Bn0GdfHQ.js} +2 -2
- package/dist/views/stock/components/StockHeaderPreview.vue.d.ts +2 -0
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +9 -0
- package/dist/{xlsx-BIvEkCPF.js → xlsx-DqXzQH_V.js} +628 -628
- package/package.json +3 -3
- package/dist/StockView-CtJ1iGfy.js +0 -1807
- package/dist/stock-estimate-Cpumo92_.js +0 -90
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { u as d, a as l } from "./xlsx-BIvEkCPF.js";
|
|
2
|
-
import { f, e as y } from "./app-D-4-R23d.js";
|
|
3
|
-
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
4
|
-
import { ref as h } from "vue";
|
|
5
|
-
function m(e, t) {
|
|
6
|
-
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : `${e[r.selector]}`);
|
|
7
|
-
}
|
|
8
|
-
function k(e, t) {
|
|
9
|
-
const r = t.map((a) => a.name), s = e.map((a) => m(a, t));
|
|
10
|
-
return d.aoa_to_sheet([r, ...s]);
|
|
11
|
-
}
|
|
12
|
-
async function w(e, t) {
|
|
13
|
-
const r = d.book_new();
|
|
14
|
-
for (const s of e) {
|
|
15
|
-
const a = k(
|
|
16
|
-
s.data,
|
|
17
|
-
s.columns.map((o) => typeof o == "string" ? {
|
|
18
|
-
name: o,
|
|
19
|
-
selector: o
|
|
20
|
-
} : o)
|
|
21
|
-
);
|
|
22
|
-
d.book_append_sheet(r, a, s.name);
|
|
23
|
-
}
|
|
24
|
-
await l(r, t);
|
|
25
|
-
}
|
|
26
|
-
function b(e) {
|
|
27
|
-
let t = e.substring(e.indexOf("_") + 1);
|
|
28
|
-
return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
|
|
29
|
-
}
|
|
30
|
-
const p = f((e, t) => {
|
|
31
|
-
const r = y(), s = F();
|
|
32
|
-
return {
|
|
33
|
-
async getInventoryForecast() {
|
|
34
|
-
var n;
|
|
35
|
-
const a = ((n = s.currentBusiness.value) == null ? void 0 : n._id) ?? "", o = r.currentLocationId ?? "", u = `${e.dataBackendUrl}/${a}/${o}/inventory-forecast`;
|
|
36
|
-
try {
|
|
37
|
-
return await t.get(u);
|
|
38
|
-
} catch {
|
|
39
|
-
return { skus: [] };
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
async getPurchaseOrderForecast(a) {
|
|
43
|
-
var i;
|
|
44
|
-
const o = ((i = s.currentBusiness.value) == null ? void 0 : i._id) ?? "", u = r.currentLocationId ?? "", n = `${e.dataBackendUrl}/${o}/${u}/purchase-order-forecast?days=${a}`;
|
|
45
|
-
try {
|
|
46
|
-
return await t.get(n);
|
|
47
|
-
} catch {
|
|
48
|
-
return { skus: [] };
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
function v() {
|
|
54
|
-
return {
|
|
55
|
-
inventoryForecast: { skus: [] },
|
|
56
|
-
purchaseOrderForecast: { skus: [] }
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
const c = h(v());
|
|
60
|
-
function $() {
|
|
61
|
-
return {
|
|
62
|
-
// state
|
|
63
|
-
get inventoryForecast() {
|
|
64
|
-
return c.value.inventoryForecast;
|
|
65
|
-
},
|
|
66
|
-
set inventoryForecast(e) {
|
|
67
|
-
c.value.inventoryForecast = e;
|
|
68
|
-
},
|
|
69
|
-
get purchaseOrderForecast() {
|
|
70
|
-
return c.value.purchaseOrderForecast;
|
|
71
|
-
},
|
|
72
|
-
set purchaseOrderForecast(e) {
|
|
73
|
-
c.value.purchaseOrderForecast = e;
|
|
74
|
-
},
|
|
75
|
-
// actions
|
|
76
|
-
async readStockEstimateBalance() {
|
|
77
|
-
const e = p();
|
|
78
|
-
this.inventoryForecast = await e.getInventoryForecast();
|
|
79
|
-
},
|
|
80
|
-
async readPurchaseOrder(e) {
|
|
81
|
-
const t = p();
|
|
82
|
-
this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
export {
|
|
87
|
-
w as e,
|
|
88
|
-
b as i,
|
|
89
|
-
$ as u
|
|
90
|
-
};
|