@feedmepos/mf-inventory-portal 1.2.12 → 1.2.14-dev.2
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-BsAX8Df8.js +286 -0
- package/dist/{ApprovalView-D8_PzEpZ.js → ApprovalView-BT-A6f4_.js} +26 -26
- package/dist/{BindingsDialog-BbpKhb0L.js → BindingsDialog-CNpvAGHr.js} +2 -2
- package/dist/{BindingsPicker-DzDxisHj.js → BindingsPicker-D-vmVplT.js} +10 -10
- package/dist/{BindingsTable-DCXXSY8e.js → BindingsTable-Z7PTxSy6.js} +1 -1
- package/dist/{ClosingDraftView-CkF-9An8.js → ClosingDraftView-C_3P7kh0.js} +44 -44
- package/dist/{ClosingTemplateView-Ce1l7n0x.js → ClosingTemplateView-CimxBGT-.js} +26 -26
- package/dist/{DeliveryOrderPrintPreview-CFzsECiK.js → DeliveryOrderPrintPreview-CMTO9y6R.js} +10 -10
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ZSERZzyn.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMK3P4pu.js} +15 -15
- package/dist/{FmMultiselectDialog-DP992D0Q.js → FmMultiselectDialog-D6f0A92U.js} +4 -4
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CzUvuj_c.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CJvnR-aO.js} +54 -54
- package/dist/ImportView-CTYLH5Mz.js +1303 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DsYwSn0d.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BbmtJ6Ge.js} +1 -1
- package/dist/{IngredientGroupView-DUiKKpvF.js → IngredientGroupView-wygIXAKy.js} +19 -20
- package/dist/IngredientsView-Ct3eNIqS.js +2240 -0
- package/dist/{IntegrationView-CydpIwrf.js → IntegrationView-CKA76Mi6.js} +3 -3
- package/dist/{InventoryBindingForm-BVd2FzOW.js → InventoryBindingForm-CdK2Ujur.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYp_JSBb.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-O0bjxU.js} +12 -12
- package/dist/{InventoryBindingSummary-Dthool-6.js → InventoryBindingSummary-DN6sSW2u.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DR0_Qtyc.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BK65pQy4.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BLfGb7mm.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DrFtLYGt.js} +1 -1
- package/dist/{PublishView-BE_aIhZ6.js → PublishView-LJA3-Xmq.js} +25 -25
- package/dist/{PurchaseOrderPrintPreview-CGeqqFg-.js → PurchaseOrderPrintPreview-CpnoNRcV.js} +12 -12
- package/dist/{ReceiveRequestView-Bul9Esf1.js → ReceiveRequestView-d7KmB_XN.js} +131 -132
- package/dist/RecipeView-B7PtWfJ-.js +636 -0
- package/dist/{StockView-fpJrx4Bd.js → StockView-DoataAnD.js} +165 -166
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeOEgJ1N.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BZNMBDJ7.js} +1 -1
- package/dist/{SupplierView-cfZTJqef.js → SupplierView-D9Kb7rAO.js} +4 -4
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CfnN-1oC.js +3385 -0
- package/dist/{TransferTemplateView-PZ8Mad4D.js → TransferTemplateView-D9mrfBH5.js} +166 -166
- package/dist/UnitView-BP5IzLw2.js +674 -0
- package/dist/{WarehouseView-CWGQjwJm.js → WarehouseView-B-qnAHv5.js} +32 -32
- package/dist/api/inventory.d.ts +306 -0
- package/dist/api/purchase-order.d.ts +1 -0
- package/dist/{app-D5PlbdVa.js → app-DDKw9H3a.js} +11730 -11115
- package/dist/app.d.ts +421 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-C4FizLUw.js → closing-template-BYCZ8etT.js} +1 -1
- package/dist/{decimal-Cv7FZ14q.js → decimal-DMb7zEqx.js} +1 -1
- package/dist/{format-unit-display-B0NO6FLh.js → format-unit-display-BCTXGGeT.js} +24 -24
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-B4JVPOJK.js +243 -0
- package/dist/{index-DaJ92t7D.js → index-BZIogw8R.js} +1 -1
- package/dist/{index-BCo2jtpG.js → index-B__hxI_k.js} +1 -1
- package/dist/{purchase-order-template-DLkR7Mva.js → purchase-order-template-Duc9oBWo.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-AUSAF9Ij.js → stock-cFTv_nsm.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/inventory.d.ts +26 -199
- package/dist/{supplier-DBXoP2UX.js → supplier-CESqvbEF.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DZQR6jfi.js → use-ingredient-select-dialog-DRJNoQTb.js} +4 -4
- package/dist/{use-inventory-binding-dialog-8PZ37vLV.js → use-inventory-binding-dialog-DTK5yRv9.js} +1 -1
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +3 -1
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +17 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/package.json +2 -2
- package/dist/App-CP0Qx_82.js +0 -276
- package/dist/IngredientsView-C3ozIXV8.js +0 -2475
- package/dist/RecipeView-B9AGELV7.js +0 -621
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-m5o77oG-.js +0 -3057
- package/dist/UnitView-C3gJq1Mt.js +0 -667
- package/dist/array-Ca8T3f_G.js +0 -44
package/dist/{use-ingredient-select-dialog-DZQR6jfi.js → use-ingredient-select-dialog-DRJNoQTb.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore as y } from "pinia";
|
|
2
|
-
import { a as S,
|
|
2
|
+
import { a as S, w as b } from "./app-DDKw9H3a.js";
|
|
3
3
|
import { useDialog as A } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as I } from "@feedmepos/mf-common";
|
|
5
5
|
const h = y(
|
|
@@ -18,13 +18,13 @@ const h = y(
|
|
|
18
18
|
tags: (i = t.customAttributes) != null && i.tag ? [(c = t.customAttributes) == null ? void 0 : c.tag] : void 0
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
),
|
|
21
|
+
), f = l, { promise: v, resolve: r } = Promise.withResolvers();
|
|
22
22
|
return m.open({
|
|
23
23
|
title: s("inventory.transfer.form.items.selectItem"),
|
|
24
24
|
closeButton: !0,
|
|
25
25
|
contentComponent: b,
|
|
26
26
|
contentComponentProps: {
|
|
27
|
-
modelValue:
|
|
27
|
+
modelValue: f,
|
|
28
28
|
items: d,
|
|
29
29
|
virtualScroll: !0,
|
|
30
30
|
onClose: () => r(null)
|
|
@@ -41,7 +41,7 @@ const h = y(
|
|
|
41
41
|
}).onPrimary((t) => {
|
|
42
42
|
const e = t.map((o) => g(o));
|
|
43
43
|
r(e);
|
|
44
|
-
}),
|
|
44
|
+
}), v;
|
|
45
45
|
}
|
|
46
46
|
return { promptSelectIngredients: a };
|
|
47
47
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@/extensions/array';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function downloadComprehensiveTemplate(): string;
|
|
2
|
+
export declare function processUnitsSheet(worksheet: any): Promise<import("@/views/unit/helper/import-export.helper").ImportUnitResult | null>;
|
|
3
|
+
export declare function processIngredientsSheet(worksheet: any): Promise<import("@/views/ingredients/helper/import-export.helper").ImportResult | null>;
|
|
4
|
+
export declare function processRecipesSheet(worksheet: any): Promise<import("@/views/recipe/helper/import-recipe").RecipeImportResult | null>;
|
|
@@ -46,6 +46,8 @@ export declare function getExcelHeaders(): ColIdHeader<IngredientSkuRow>[];
|
|
|
46
46
|
export declare function exportIngredients(): string;
|
|
47
47
|
export declare function exportIngredientsTemplate(): string;
|
|
48
48
|
export declare function worksheetToSkuRow(sheet: WorkSheet): ObjectWithIndex<IngredientSkuRow>[];
|
|
49
|
-
export declare function importSkuToCreateSku(row: IngredientSkuRow, index: number, parsedContent: ObjectWithIndex<IngredientSkuRow>[]
|
|
49
|
+
export declare function importSkuToCreateSku(row: IngredientSkuRow, index: number, parsedContent: ObjectWithIndex<IngredientSkuRow>[], { ignoreErrors }?: {
|
|
50
|
+
ignoreErrors?: boolean;
|
|
51
|
+
}): ImportCreateResult;
|
|
50
52
|
export declare function getSkuToCreateUpdate(sheet: WorkSheet): ImportResult;
|
|
51
53
|
export declare function getSkuToDelete(sheet: WorkSheet): FdoInventorySku[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
purchaseOrderId: string;
|
|
3
|
+
deliveryOrderId: string;
|
|
4
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
purchaseOrderId: string;
|
|
6
|
+
deliveryOrderId: string;
|
|
7
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
netsuiteId: string;
|
|
3
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
netsuiteId: string;
|
|
5
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '@/extensions/array';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
recipe: FdoInventoryRecipe;
|
|
3
|
+
type: 'create' | 'update';
|
|
4
|
+
errors?: string[];
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { WorkSheet } from 'xlsx';
|
|
2
|
+
export type ObjectWithIndex<T> = {
|
|
3
|
+
index: number;
|
|
4
|
+
data: T;
|
|
5
|
+
};
|
|
6
|
+
export interface RecipeRow {
|
|
7
|
+
recipeName: string;
|
|
8
|
+
type: 'RECIPE' | 'INGREDIENT' | 'SKU_GROUP';
|
|
9
|
+
code: string;
|
|
10
|
+
name: string;
|
|
11
|
+
amount: string;
|
|
12
|
+
unit: string;
|
|
13
|
+
baseUnit: string;
|
|
14
|
+
measurementName: string;
|
|
15
|
+
customAttributes?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface RecipeContainsRow {
|
|
18
|
+
type: 'RECIPE' | 'SKU' | 'SKU_GROUP';
|
|
19
|
+
id: string;
|
|
20
|
+
amount: {
|
|
21
|
+
amount: number;
|
|
22
|
+
precision: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface ImportRecipeCreateResult {
|
|
26
|
+
type: 'create';
|
|
27
|
+
recipe: FdoInventoryRecipe;
|
|
28
|
+
excelRowNumber: number;
|
|
29
|
+
errors: string[];
|
|
30
|
+
}
|
|
31
|
+
export interface ImportRecipeUpdateResult {
|
|
32
|
+
type: 'update';
|
|
33
|
+
original: FdoInventoryRecipe;
|
|
34
|
+
recipe: FdoInventoryRecipe;
|
|
35
|
+
excelRowNumber: number;
|
|
36
|
+
errors: string[];
|
|
37
|
+
}
|
|
38
|
+
export interface RecipeImportResult {
|
|
39
|
+
invalidExcel: boolean;
|
|
40
|
+
invalidExcelMessage?: string;
|
|
41
|
+
importCreateResult?: ImportRecipeCreateResult[];
|
|
42
|
+
importUpdateResult?: ImportRecipeUpdateResult[];
|
|
43
|
+
}
|
|
44
|
+
export declare function newRecipeId(): string;
|
|
45
|
+
export declare function importExcelToCreateRecipes(rows: ObjectWithIndex<RecipeRow>[], { ignoreErrors }?: {
|
|
46
|
+
ignoreErrors?: boolean;
|
|
47
|
+
}): RecipeImportResult;
|
|
48
|
+
export declare function worksheetToRecipeRow(sheet: WorkSheet): ObjectWithIndex<RecipeRow>[];
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '@/extensions/array';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ImportUnitItemProps } from './ImportUnitItemProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ImportUnitItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ImportUnitItemProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
4
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
5
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
6
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
7
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
8
|
+
} : {
|
|
9
|
+
type: import('vue').PropType<T[K]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ImportUnitCreateResult, type ImportUnitUpdateResult } from '../../helper/import-export.helper';
|
|
2
|
+
export interface UnitImportResult {
|
|
3
|
+
invalidExcel: boolean;
|
|
4
|
+
invalidExcelMessage?: string;
|
|
5
|
+
importCreateResult: ImportUnitCreateResult[];
|
|
6
|
+
importUpdateResult: ImportUnitUpdateResult[];
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { WorkSheet } from 'xlsx';
|
|
2
|
+
export declare function newUnitId(): string;
|
|
3
|
+
export interface UnitRow {
|
|
4
|
+
name: string;
|
|
5
|
+
symbol: string;
|
|
6
|
+
precision: number;
|
|
7
|
+
measurement_name: string;
|
|
8
|
+
measurement_symbol: string;
|
|
9
|
+
measurement_conversion: number;
|
|
10
|
+
}
|
|
11
|
+
export type ObjectWithIndex<T> = {
|
|
12
|
+
index: number;
|
|
13
|
+
data: T;
|
|
14
|
+
};
|
|
15
|
+
export type ColIdHeader<T> = {
|
|
16
|
+
id: keyof T;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
export interface ImportUnitCreateResult {
|
|
20
|
+
type: 'create';
|
|
21
|
+
unit: FdoInventoryUnit;
|
|
22
|
+
excelRowNumber: number;
|
|
23
|
+
errors: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface ImportUnitUpdateResult {
|
|
26
|
+
type: 'update';
|
|
27
|
+
original: FdoInventoryUnit;
|
|
28
|
+
unit: FdoInventoryUnit;
|
|
29
|
+
excelRowNumber: number;
|
|
30
|
+
errors: string[];
|
|
31
|
+
}
|
|
32
|
+
export type ImportUnitResult = {
|
|
33
|
+
invalidExcel: boolean;
|
|
34
|
+
invalidExcelMessage?: string;
|
|
35
|
+
importCreateResult: ImportUnitCreateResult[];
|
|
36
|
+
importUpdateResult: ImportUnitUpdateResult[];
|
|
37
|
+
};
|
|
38
|
+
export declare function worksheetToUnitRow(sheet: WorkSheet): ObjectWithIndex<UnitRow>[];
|
|
39
|
+
export declare function getUnitsToCreateUpdate(sheet: WorkSheet): ImportUnitResult;
|
|
40
|
+
export declare function exportUnits(): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14-dev.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"xlsx": "^0.18.5",
|
|
46
46
|
"@feedmepos/inventory-core": "^1.0.1-dev.2",
|
|
47
47
|
"@feedmepos/inventory-core-2": "^2.0.0",
|
|
48
|
-
"@feedmepos/inventory-core-dart": "^1.0.0",
|
|
49
48
|
"@feedmepos/inventory-core-js": "^1.0.1",
|
|
50
49
|
"@feedmepos/netsuite-core": "^1.0.0",
|
|
50
|
+
"@feedmepos/inventory-core-dart": "^1.0.0",
|
|
51
51
|
"@feedmepos/zod-inventory": "^1.0.12"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
package/dist/App-CP0Qx_82.js
DELETED
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as w, computed as R, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as d, toDisplayString as G, createBlock as x, createCommentVNode as k } from "vue";
|
|
2
|
-
import { u as M, a as D, b as H, R as e, c as B, g as s, d as W } from "./app-D5PlbdVa.js";
|
|
3
|
-
import { useCoreStore as A, useI18n as O } from "@feedmepos/mf-common";
|
|
4
|
-
import { useRouter as L, useRoute as K } from "vue-router";
|
|
5
|
-
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
6
|
-
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
7
|
-
import "./array-Ca8T3f_G.js";
|
|
8
|
-
function j() {
|
|
9
|
-
return {
|
|
10
|
-
loadingHookInstalled: !1,
|
|
11
|
-
isLoading: !1
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const E = U(j());
|
|
15
|
-
function z() {
|
|
16
|
-
const l = L();
|
|
17
|
-
if (!E.value.loadingHookInstalled) {
|
|
18
|
-
E.value.loadingHookInstalled = !0;
|
|
19
|
-
const n = l.beforeEach(() => {
|
|
20
|
-
E.value.isLoading = !0;
|
|
21
|
-
}), i = l.afterEach(() => {
|
|
22
|
-
E.value.isLoading = !1;
|
|
23
|
-
});
|
|
24
|
-
F(() => {
|
|
25
|
-
E.value.loadingHookInstalled = !1, n(), i();
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
get isLoading() {
|
|
30
|
-
return E.value.isLoading;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
const q = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "flex flex-col items-center w-full h-full gap-24"
|
|
37
|
-
}, J = {
|
|
38
|
-
key: 1,
|
|
39
|
-
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
40
|
-
}, X = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Y = { class: "fm-typo-en-title-lg-600" }, Z = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ee = { class: "flex gap-16" }, te = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, oe = { href: "https://feedme.ai/form" }, ne = /* @__PURE__ */ h({
|
|
41
|
-
__name: "InventoryView",
|
|
42
|
-
setup(l) {
|
|
43
|
-
const n = M(), i = D(), u = H(), r = A(), c = L(), o = z(), T = B(), { t: p } = O();
|
|
44
|
-
P(
|
|
45
|
-
[() => r.sessionUser.value, () => r.currentBusiness.value],
|
|
46
|
-
([t, a]) => {
|
|
47
|
-
f(t, a);
|
|
48
|
-
}
|
|
49
|
-
), w(async () => {
|
|
50
|
-
await T.init(), await r.readBusinesses();
|
|
51
|
-
const t = r.sessionUser.value, a = r.currentBusiness.value;
|
|
52
|
-
f(t, a);
|
|
53
|
-
});
|
|
54
|
-
function f(t, a) {
|
|
55
|
-
!t || !a || g();
|
|
56
|
-
}
|
|
57
|
-
async function g() {
|
|
58
|
-
return await n.init(), await u.readSetting().catch((t) => {
|
|
59
|
-
console.error("[all] error on reading netsuite store", t);
|
|
60
|
-
}), await i.init();
|
|
61
|
-
}
|
|
62
|
-
const y = R(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? T.enablePoTemplate : c.currentRoute.value.name === e.INGREDIENT_GROUP ? T.enableIngredientGroup : !0);
|
|
63
|
-
return (t, a) => {
|
|
64
|
-
const m = b("FmSpacer"), N = b("FmCircularProgress"), C = b("FmButton"), V = b("RouterView");
|
|
65
|
-
return S(), I("div", null, [
|
|
66
|
-
v(o).isLoading ? (S(), I("div", q, [
|
|
67
|
-
_(m),
|
|
68
|
-
d("div", null, [
|
|
69
|
-
_(N, { size: "xl" })
|
|
70
|
-
]),
|
|
71
|
-
a[0] || (a[0] = d("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
72
|
-
_(m)
|
|
73
|
-
])) : y.value ? v(r).sessionUser.value ? (S(), x(V, { key: 2 })) : k("", !0) : (S(), I("div", J, [
|
|
74
|
-
d("div", X, [
|
|
75
|
-
d("div", Y, G(v(p)("inventory.common.proPlan.title")), 1),
|
|
76
|
-
d("div", Z, G(v(p)("inventory.common.proPlan.subtitle")), 1)
|
|
77
|
-
]),
|
|
78
|
-
d("div", ee, [
|
|
79
|
-
d("a", te, [
|
|
80
|
-
_(C, {
|
|
81
|
-
label: v(p)("inventory.common.proPlan.comparePlans"),
|
|
82
|
-
variant: "secondary"
|
|
83
|
-
}, null, 8, ["label"])
|
|
84
|
-
]),
|
|
85
|
-
d("a", oe, [
|
|
86
|
-
_(C, {
|
|
87
|
-
label: v(p)("inventory.common.proPlan.callUs"),
|
|
88
|
-
"prepend-icon": "call"
|
|
89
|
-
}, null, 8, ["label"])
|
|
90
|
-
])
|
|
91
|
-
])
|
|
92
|
-
]))
|
|
93
|
-
]);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
}), ae = { class: "h-full flex flex-col overflow-auto py-16" }, re = /* @__PURE__ */ h({
|
|
97
|
-
__name: "NavigationTab",
|
|
98
|
-
setup(l) {
|
|
99
|
-
const n = K(), i = L(), u = A(), r = B(), c = $(), { t: o } = O();
|
|
100
|
-
P([() => u.currentBusiness.value, () => n.name], ([t, a]) => {
|
|
101
|
-
(t == null ? void 0 : t.menuVersion) === "v3" && (a === e.INGREDIENTS || a === e.RECIPE || a === e.UNIT) && i.push({ name: e.STOCK });
|
|
102
|
-
});
|
|
103
|
-
const T = R(() => {
|
|
104
|
-
var a;
|
|
105
|
-
const t = [
|
|
106
|
-
{
|
|
107
|
-
label: s(e.STOCK, o),
|
|
108
|
-
// icon: 'inventory_2',
|
|
109
|
-
children: [
|
|
110
|
-
{
|
|
111
|
-
label: o("inventory.stock.stock_balance.title"),
|
|
112
|
-
value: e.STOCK
|
|
113
|
-
},
|
|
114
|
-
...r.enableWastageTemplate ? [
|
|
115
|
-
{
|
|
116
|
-
label: s(e.WASTAGE_TEMPLATE, o),
|
|
117
|
-
value: e.WASTAGE_TEMPLATE
|
|
118
|
-
}
|
|
119
|
-
] : []
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
...r.enableClosingTemplate ? [
|
|
123
|
-
{
|
|
124
|
-
label: "Closing",
|
|
125
|
-
children: [
|
|
126
|
-
{
|
|
127
|
-
label: s(e.CLOSING_TEMPLATE, o),
|
|
128
|
-
value: e.CLOSING_TEMPLATE
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
label: s(e.CLOSING_DRAFT, o),
|
|
132
|
-
value: e.CLOSING_DRAFT
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
] : [],
|
|
137
|
-
{
|
|
138
|
-
label: s(e.INGREDIENTS, o),
|
|
139
|
-
// icon: 'grocery',
|
|
140
|
-
value: e.INGREDIENTS
|
|
141
|
-
},
|
|
142
|
-
...r.enableIngredientGroup ? [
|
|
143
|
-
{
|
|
144
|
-
label: s(e.INGREDIENT_GROUP, o),
|
|
145
|
-
// icon: 'grocery',
|
|
146
|
-
value: e.INGREDIENT_GROUP
|
|
147
|
-
}
|
|
148
|
-
] : [],
|
|
149
|
-
{
|
|
150
|
-
label: s(e.RECIPE, o),
|
|
151
|
-
// icon: 'weight',
|
|
152
|
-
value: e.RECIPE
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
label: s(e.UNIT, o),
|
|
156
|
-
// icon: 'fastfood',
|
|
157
|
-
value: e.UNIT
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
label: o("inventory.transfer.title"),
|
|
161
|
-
// icon: 'swap_horiz',
|
|
162
|
-
children: [
|
|
163
|
-
{
|
|
164
|
-
label: s(e.RECEIVE_REQUEST, o),
|
|
165
|
-
value: e.RECEIVE_REQUEST
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
label: s(e.APPROVAL, o),
|
|
169
|
-
value: e.APPROVAL
|
|
170
|
-
},
|
|
171
|
-
...r.enablePoTemplate ? [
|
|
172
|
-
{
|
|
173
|
-
label: s(e.TRANSFER_TEMPLATE, o),
|
|
174
|
-
value: e.TRANSFER_TEMPLATE
|
|
175
|
-
}
|
|
176
|
-
] : []
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
label: s(e.SUPPLIER, o),
|
|
181
|
-
// icon: 'group',
|
|
182
|
-
value: e.SUPPLIER
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
label: s(e.WAREHOUSE, o),
|
|
186
|
-
// icon: 'warehouse',
|
|
187
|
-
value: e.WAREHOUSE
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
label: s(e.PUBLISH, o),
|
|
191
|
-
value: e.PUBLISH
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
label: s(e.INTEGRATION, o),
|
|
195
|
-
// icon: 'integration_instructions',
|
|
196
|
-
value: e.INTEGRATION
|
|
197
|
-
}
|
|
198
|
-
];
|
|
199
|
-
return ((a = u.currentBusiness.value) == null ? void 0 : a.menuVersion) === "v3" ? t.filter(
|
|
200
|
-
(m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT && m.value !== e.PUBLISH
|
|
201
|
-
) : t;
|
|
202
|
-
}), p = R({
|
|
203
|
-
get() {
|
|
204
|
-
if (n.name)
|
|
205
|
-
return String(n.name);
|
|
206
|
-
},
|
|
207
|
-
set(t) {
|
|
208
|
-
t && i.push({ name: t });
|
|
209
|
-
}
|
|
210
|
-
}), f = R(
|
|
211
|
-
() => {
|
|
212
|
-
var t;
|
|
213
|
-
return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
|
|
214
|
-
}
|
|
215
|
-
), g = U(!1), y = R({
|
|
216
|
-
get() {
|
|
217
|
-
return g.value;
|
|
218
|
-
},
|
|
219
|
-
set(t) {
|
|
220
|
-
g.value = t, t || c.setItem(f.value, "true");
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
return P([() => f.value], () => {
|
|
224
|
-
g.value = !1, setTimeout(() => {
|
|
225
|
-
y.value = !c.getItem(f.value);
|
|
226
|
-
}, 2e3);
|
|
227
|
-
}), (t, a) => {
|
|
228
|
-
const m = b("FmCollapsibleTabs");
|
|
229
|
-
return S(), I("div", ae, [
|
|
230
|
-
_(m, {
|
|
231
|
-
modelValue: p.value,
|
|
232
|
-
"onUpdate:modelValue": a[0] || (a[0] = (N) => p.value = N),
|
|
233
|
-
items: T.value
|
|
234
|
-
}, null, 8, ["modelValue", "items"])
|
|
235
|
-
]);
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
240
|
-
let l, n;
|
|
241
|
-
return { promise: new Promise((u, r) => {
|
|
242
|
-
l = u, n = r;
|
|
243
|
-
}), resolve: l, reject: n };
|
|
244
|
-
});
|
|
245
|
-
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
246
|
-
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
247
|
-
});
|
|
248
|
-
const pe = /* @__PURE__ */ h({
|
|
249
|
-
__name: "App",
|
|
250
|
-
setup(l) {
|
|
251
|
-
const n = A(), i = Q(), u = W();
|
|
252
|
-
w(() => {
|
|
253
|
-
if (window.location.href.includes("print-preview")) {
|
|
254
|
-
n.setEmbedded(!0), document.body.classList.add("print-mode");
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
n.registerSidebarComponent(re), i.initGoogleMap(u.appApi.googleMap).catch(() => {
|
|
258
|
-
console.error("Google map cannot be loaded");
|
|
259
|
-
});
|
|
260
|
-
}), P([() => n.currentCountry.value], () => {
|
|
261
|
-
r();
|
|
262
|
-
});
|
|
263
|
-
async function r() {
|
|
264
|
-
var c;
|
|
265
|
-
try {
|
|
266
|
-
await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
|
|
267
|
-
} catch (o) {
|
|
268
|
-
console.error("error when trying to reset businesses:", o);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
return (c, o) => (S(), x(ne));
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
export {
|
|
275
|
-
pe as default
|
|
276
|
-
};
|