@feedmepos/mf-inventory-portal 0.0.22-dev.42 → 0.0.22-dev.43
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-5YpqaJKy.js → ApprovalView-1ZKaZJ2Z.js} +3 -3
- package/dist/{BindingsDialog-lGoLNJyU.js → BindingsDialog-CKjAs5mJ.js} +1 -1
- package/dist/{BindingsPicker-CdvkacXh.js → BindingsPicker-BAVZ-3dF.js} +1 -1
- package/dist/{BindingsTable-B8G9Ckdk.js → BindingsTable-qq8M9fzG.js} +1 -1
- package/dist/{ClosingTemplateView-Dcy08dPm.js → ClosingTemplateView-DOLuHmy8.js} +7 -7
- package/dist/{FmDroppableField-DeW5xBTW.js → FmDroppableField-BBpVEZs4.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DBpTwDEI.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ChRPq-Ok.js} +3 -3
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-cSTp7zUx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BSxhRfE4.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DFHzlUVu.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DrL5a2Pn.js} +1 -1
- package/dist/{IngredientsView-DKJjOK_4.js → IngredientsView-m5K8MlM2.js} +5 -5
- package/dist/{IntegrationView-CgqU4EBV.js → IntegrationView-BE5P68EJ.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-gvpXGm1X.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B8cCv--C.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B3JDjoOu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CcM04Veu.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-olI-JfjI.js → PurchaseOrderPrintPreview-D40E9qZt.js} +1 -1
- package/dist/{ReceiveRequestView-flhI8D2c.js → ReceiveRequestView-Ci7FgSjU.js} +10 -10
- package/dist/{RecipeView-CoMyQ92u.js → RecipeView-Bp7iBiy7.js} +4 -4
- package/dist/{StockView-Dae47pLA.js → StockView-BzowFcFA.js} +5 -5
- package/dist/SupplierView-CbRnAb8G.js +3037 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DoEEedkk.js → TransferDetails.vue_vue_type_script_setup_true_lang-BMikyrhA.js} +5 -5
- package/dist/{TransferTemplateView-DdB7z0b4.js → TransferTemplateView-BwamiSyk.js} +8 -8
- package/dist/{UnitView-B0E2nG3J.js → UnitView-B-058oRk.js} +4 -4
- package/dist/{WarehouseView-NQ2JwyWK.js → WarehouseView-RtU3sWKx.js} +2 -2
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-tiUQG6R0.js → app-By3PLx0q.js} +188 -168
- package/dist/app.d.ts +20 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-BOvNv58m.js → decimal-CtriZ1S6.js} +1 -1
- package/dist/{defineDeepModel-CNgIKGt8.js → defineDeepModel-ClK3S9xx.js} +1 -1
- package/dist/{format-time-from-id-DWlH-AZV.js → format-time-from-id-CGLKzJJO.js} +1 -1
- package/dist/{format-unit-display-DIhXvTxN.js → format-unit-display-COeZSqdS.js} +5 -5
- package/dist/stores/supplier.d.ts +4 -1
- package/dist/supplier-BxBMThPQ.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-BrK8SKvw.js → use-template-enabled-locations-2-BIgPnzRW.js} +1 -1
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- package/dist/{xlsx-DGqkxpZX.js → xlsx-X_0qJPDg.js} +1 -1
- package/dist/{xlsx.util-CvycJwUf.js → xlsx.util-BOPzVbUa.js} +1 -1
- package/package.json +2 -1
- package/dist/SupplierView-CxYZUHrc.js +0 -827
- package/dist/supplier-rpkSwf7L.js +0 -70
package/dist/app.d.ts
CHANGED
|
@@ -629,6 +629,26 @@ export declare const i18nMessages: {
|
|
|
629
629
|
emptySupplier: string;
|
|
630
630
|
};
|
|
631
631
|
};
|
|
632
|
+
import: {
|
|
633
|
+
title: string;
|
|
634
|
+
actions: {
|
|
635
|
+
downloadTemplate: string;
|
|
636
|
+
};
|
|
637
|
+
error: {
|
|
638
|
+
noData: string;
|
|
639
|
+
invalidContent: string;
|
|
640
|
+
noImportData: string;
|
|
641
|
+
hasErrors: string;
|
|
642
|
+
failed: string;
|
|
643
|
+
systemMessage: string;
|
|
644
|
+
};
|
|
645
|
+
progress: string;
|
|
646
|
+
success: string;
|
|
647
|
+
};
|
|
648
|
+
export: {
|
|
649
|
+
success: string;
|
|
650
|
+
filename: string;
|
|
651
|
+
};
|
|
632
652
|
companyName: string;
|
|
633
653
|
registrationNo: string;
|
|
634
654
|
address: {
|
package/dist/app.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { F as ee, D as j, R as I } from "./row-action.enum-PMKMRrZR.js";
|
|
2
2
|
import { c as be } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
3
|
-
import { n as Te, u as M, f as Se, i as V, a as D, h as _e, W as te, t as Q, r as L, al as we, af as $e, w as ke, c as K, as as re, y as Re } from "./app-
|
|
4
|
-
import { f as Ee } from "./format-time-from-id-
|
|
3
|
+
import { n as Te, u as M, f as Se, i as V, a as D, h as _e, W as te, t as Q, r as L, al as we, af as $e, w as ke, c as K, as as re, y as Re } from "./app-By3PLx0q.js";
|
|
4
|
+
import { f as Ee } from "./format-time-from-id-CGLKzJJO.js";
|
|
5
5
|
import { useCoreStore as Y, useI18n as G } from "@feedmepos/mf-common";
|
|
6
6
|
import { useDialogChild as Ce, useSnackbar as le, useDialog as Ae, FmButtonVariant as ne, components as oe } from "@feedmepos/ui-library";
|
|
7
7
|
import { defineStore as me } from "pinia";
|
|
8
8
|
import { defineComponent as ce, resolveComponent as P, openBlock as _, createElementBlock as $, createElementVNode as w, normalizeClass as U, createTextVNode as Ie, toDisplayString as C, unref as E, createCommentVNode as B, createVNode as N, withCtx as W, Fragment as F, renderList as q, ref as k, onMounted as Ne, computed as ae, watch as De, createSlots as Fe, createBlock as H, h as z } from "vue";
|
|
9
9
|
import { useRouter as Oe } from "vue-router";
|
|
10
|
-
import { a as O, b as ue, d as pe, s as de, r as Pe } from "./xlsx.util-
|
|
11
|
-
import { F as Ue } from "./FmDroppableField-
|
|
12
|
-
import { u as J } from "./supplier-
|
|
10
|
+
import { a as O, b as ue, d as pe, s as de, r as Pe } from "./xlsx.util-BOPzVbUa.js";
|
|
11
|
+
import { F as Ue } from "./FmDroppableField-BBpVEZs4.js";
|
|
12
|
+
import { u as J } from "./supplier-BxBMThPQ.js";
|
|
13
13
|
const fe = Te((t, r) => {
|
|
14
14
|
function a() {
|
|
15
15
|
var n;
|
|
@@ -4,6 +4,7 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
4
4
|
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
5
5
|
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
6
6
|
deleteSupplier(supplier: FdoSupplier): Promise<void>;
|
|
7
|
+
importSuppliers(suppliers: (FdoSupplier | CreateType<FdoSupplier>)[]): Promise<void>;
|
|
7
8
|
init(): Promise<void>;
|
|
8
9
|
suppliers: import("vue").ComputedRef<{
|
|
9
10
|
phoneNumber?: string | null | undefined;
|
|
@@ -304,6 +305,7 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
304
305
|
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
305
306
|
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
306
307
|
deleteSupplier(supplier: FdoSupplier): Promise<void>;
|
|
308
|
+
importSuppliers(suppliers: (FdoSupplier | CreateType<FdoSupplier>)[]): Promise<void>;
|
|
307
309
|
init(): Promise<void>;
|
|
308
310
|
suppliers: import("vue").ComputedRef<{
|
|
309
311
|
phoneNumber?: string | null | undefined;
|
|
@@ -604,6 +606,7 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
604
606
|
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
605
607
|
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
606
608
|
deleteSupplier(supplier: FdoSupplier): Promise<void>;
|
|
609
|
+
importSuppliers(suppliers: (FdoSupplier | CreateType<FdoSupplier>)[]): Promise<void>;
|
|
607
610
|
init(): Promise<void>;
|
|
608
611
|
suppliers: import("vue").ComputedRef<{
|
|
609
612
|
phoneNumber?: string | null | undefined;
|
|
@@ -899,4 +902,4 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
899
902
|
registrationNumber: string;
|
|
900
903
|
};
|
|
901
904
|
}>;
|
|
902
|
-
}, "readSuppliers" | "createSupplier" | "updateSupplier" | "deleteSupplier" | "init">>;
|
|
905
|
+
}, "readSuppliers" | "createSupplier" | "updateSupplier" | "deleteSupplier" | "importSuppliers" | "init">>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { n as m, i as u, h as y, Z as b, $ as v } from "./app-By3PLx0q.js";
|
|
2
|
+
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
|
+
import { defineStore as w } from "pinia";
|
|
4
|
+
import { ref as l, computed as d } from "vue";
|
|
5
|
+
const a = m((t, p) => {
|
|
6
|
+
function i() {
|
|
7
|
+
var o;
|
|
8
|
+
const s = c(), e = u(), r = e.businessLevel, n = `business_${((o = s.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, S = e.currentLocation.dbName;
|
|
9
|
+
return r ? n : S;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
async readSuppliers() {
|
|
13
|
+
const s = i(), e = `${t.inventoryBackendUrl}/${s}/supplier`;
|
|
14
|
+
return await p.get(e);
|
|
15
|
+
},
|
|
16
|
+
async readLocationSuppliers() {
|
|
17
|
+
const e = u().currentLocation.dbName, r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
18
|
+
return await p.get(r);
|
|
19
|
+
},
|
|
20
|
+
async readBusinessSuppliers() {
|
|
21
|
+
var n;
|
|
22
|
+
const e = `business_${((n = c().currentBusiness.value) == null ? void 0 : n._id) ?? ""}`, r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
23
|
+
return await p.get(r);
|
|
24
|
+
},
|
|
25
|
+
async createSupplier(s) {
|
|
26
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
27
|
+
return await p.post(r, s);
|
|
28
|
+
},
|
|
29
|
+
async importSuppliers(s) {
|
|
30
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier/import`;
|
|
31
|
+
return await p.post(r, s);
|
|
32
|
+
},
|
|
33
|
+
async updateSupplier(s) {
|
|
34
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
35
|
+
return await p.put(r, s);
|
|
36
|
+
},
|
|
37
|
+
async deleteSupplier(s) {
|
|
38
|
+
const e = i(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
39
|
+
return await p.delete(r, s);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}), f = w("supplier", () => {
|
|
43
|
+
const t = l(new Array()), p = l(new Array()), i = d(() => [...t.value, ...p.value]), s = d(() => y(i.value, "_id"));
|
|
44
|
+
return {
|
|
45
|
+
async readSuppliers() {
|
|
46
|
+
const e = a();
|
|
47
|
+
t.value = await e.readLocationSuppliers(), p.value = await e.readBusinessSuppliers();
|
|
48
|
+
},
|
|
49
|
+
async createSupplier(e) {
|
|
50
|
+
await a().createSupplier(e);
|
|
51
|
+
},
|
|
52
|
+
async updateSupplier(e) {
|
|
53
|
+
await a().updateSupplier(e);
|
|
54
|
+
},
|
|
55
|
+
async deleteSupplier(e) {
|
|
56
|
+
await a().deleteSupplier(e);
|
|
57
|
+
},
|
|
58
|
+
async importSuppliers(e) {
|
|
59
|
+
await a().importSuppliers(e);
|
|
60
|
+
},
|
|
61
|
+
async init() {
|
|
62
|
+
const e = b();
|
|
63
|
+
try {
|
|
64
|
+
await this.readSuppliers();
|
|
65
|
+
} catch (r) {
|
|
66
|
+
throw r instanceof v || e.error("Error at reading suppliers"), r;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
suppliers: i,
|
|
70
|
+
locationSuppliers: t,
|
|
71
|
+
businessSuppliers: p,
|
|
72
|
+
supplierById: s
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
f as u
|
|
77
|
+
};
|