@feedmepos/mf-inventory-portal 0.0.22-dev.9 → 0.0.23-dev.1
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-Y3Ez8Rjf.js +255 -0
- package/dist/ApprovalView-BUU1G4Q2.js +141 -0
- package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
- package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
- package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
- package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
- package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
- package/dist/IngredientGroupView-C3maHTCg.js +610 -0
- package/dist/IngredientsView-DCR3IBkR.js +1613 -0
- package/dist/IntegrationView-gO4h89Wj.js +1227 -0
- package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
- package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
- package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
- package/dist/RecipeView-C4-a4IEW.js +597 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-Du2txrIP.js +7778 -0
- package/dist/SupplierView-D_09FbQh.js +1474 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
- package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
- package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
- package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/bill.d.ts +86 -240
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +281 -88
- package/dist/api/netsuite.d.ts +32 -1
- package/dist/api/purchase-order-template.d.ts +4 -2
- package/dist/api/supplier.d.ts +1 -0
- package/dist/app-GUbzqEtW.js +33456 -0
- package/dist/app.d.ts +259 -6
- package/dist/app.js +8 -7
- package/dist/array-hChJVZLE.js +43 -0
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
- package/dist/date2-CLE9fB2R.js +117 -0
- package/dist/dayjs.min-CY1d38w7.js +282 -0
- package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
- package/dist/defineDeepModel-l40rX7kr.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/feature-BXruKUhX.js +78 -0
- package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
- package/dist/format-unit-display-DEKg8cJm.js +1198 -0
- package/dist/fuzzy-CVOV9zJc.js +41 -0
- package/dist/googlemap-Dm8ERVai.js +97 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/index-BX5KZXhI.js +22279 -0
- package/dist/index-CVsyOEb1.js +10545 -0
- package/dist/index-m9e9nYfl.js +45 -0
- package/dist/netsuite-DAKRv7zr.js +146 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-DlnN8IP3.js +198 -0
- package/dist/stores/integration/foodmarkethub.d.ts +391 -0
- package/dist/stores/integration/index.d.ts +7 -0
- package/dist/stores/integration/netsuite.d.ts +102 -0
- package/dist/stores/inventory.d.ts +295 -9
- package/dist/stores/location.d.ts +508 -485
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/stores/warehouse.d.ts +7 -4
- package/dist/style.css +1 -1
- package/dist/supplier-B21WlSAM.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
- package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
- package/dist/useTabStorage-BkIVScW_.js +25 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1002
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
- package/dist/views/integration/NetSuite.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1913 -53
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2370 -327
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +43 -120
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- 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/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -82
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1279 -1528
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -251
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
- package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
- package/dist/xlsx.util-BLftcF4q.js +78 -0
- package/package.json +7 -4
- package/dist/ApprovalView-BPsScR5_.js +0 -129
- package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
- package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
- package/dist/IntegrationView-CjGLRM78.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
- package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
- package/dist/RecipeView-sB0Lgmob.js +0 -581
- package/dist/StockView-CY2kNohB.js +0 -1892
- package/dist/SupplierView-DTqeZPts.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
- package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
- package/dist/app-BuyAj4kw.js +0 -69068
- package/dist/defineDeepModel-DuVmbMwq.js +0 -13
- package/dist/id-to-date-CI5Vv0Ji.js +0 -30
- package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
- package/dist/stores/netsuite.d.ts +0 -49
- package/dist/supplier-BQyK2eSZ.js +0 -69
- package/dist/xlsx.util-CZ7zYxdP.js +0 -109
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SupplierImportItemProps } from './SupplierImportItemProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SupplierImportItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SupplierImportItemProps>>> & 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,10 @@
|
|
|
1
|
+
export declare const useSupplierActions: import("pinia").StoreDefinition<"supplierActions", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
importSuppliers: () => void;
|
|
3
|
+
exportSuppliers: () => void;
|
|
4
|
+
}, never>>, Pick<{
|
|
5
|
+
importSuppliers: () => void;
|
|
6
|
+
exportSuppliers: () => void;
|
|
7
|
+
}, never>, Pick<{
|
|
8
|
+
importSuppliers: () => void;
|
|
9
|
+
exportSuppliers: () => void;
|
|
10
|
+
}, "importSuppliers" | "exportSuppliers">>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { WorkSheet } from 'xlsx';
|
|
2
|
+
export interface SupplierRow {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
regNo: string;
|
|
6
|
+
addressLine1: string;
|
|
7
|
+
addressLine2: string;
|
|
8
|
+
addressCity: string;
|
|
9
|
+
addressPostcode: string;
|
|
10
|
+
addressState: string;
|
|
11
|
+
addressCountry: string;
|
|
12
|
+
picName: string;
|
|
13
|
+
picPhoneNumber: string;
|
|
14
|
+
picEmail: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ImportCreateResult {
|
|
17
|
+
type: 'create';
|
|
18
|
+
supplier: FdoSupplier;
|
|
19
|
+
excelRowNumber: number;
|
|
20
|
+
errors: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface ImportUpdateResult {
|
|
23
|
+
type: 'update';
|
|
24
|
+
original: FdoSupplier;
|
|
25
|
+
supplier: FdoSupplier;
|
|
26
|
+
excelRowNumber: number;
|
|
27
|
+
errors: string[];
|
|
28
|
+
}
|
|
29
|
+
export type ImportResult = {
|
|
30
|
+
invalidExcel: boolean;
|
|
31
|
+
invalidExcelMessage?: string;
|
|
32
|
+
importCreateResult: ImportCreateResult[];
|
|
33
|
+
importUpdateResult: ImportUpdateResult[];
|
|
34
|
+
};
|
|
35
|
+
export type ObjectWithIndex<T> = {
|
|
36
|
+
index: number;
|
|
37
|
+
data: T;
|
|
38
|
+
};
|
|
39
|
+
export declare function supplierToExcelRow(supplier: FdoSupplier): SupplierRow;
|
|
40
|
+
export type ColIdHeader<T> = {
|
|
41
|
+
id: keyof T;
|
|
42
|
+
name: string;
|
|
43
|
+
};
|
|
44
|
+
export declare function getExcelHeaders(): ColIdHeader<SupplierRow>[];
|
|
45
|
+
export declare function getRequiredColHeaders(): ColIdHeader<SupplierRow>[];
|
|
46
|
+
export declare function exportSuppliers(): string;
|
|
47
|
+
export declare function exportSuppliersTemplate(): string;
|
|
48
|
+
export declare function worksheetToSkuRow(sheet: WorkSheet): ObjectWithIndex<SupplierRow>[];
|
|
49
|
+
export declare function importSupplierToCreateSupplier(row: SupplierRow, index: number): ImportCreateResult;
|
|
50
|
+
export declare function getSkuToCreateUpdate(sheet: WorkSheet): ImportResult;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { TransferTemplateDetailsProps } from './TransferTemplateDetailsProps';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TransferTemplateDetailsProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
"update:show": (show: boolean) => void;
|
|
4
|
-
"action:use": (locationId: string) => void;
|
|
5
4
|
"action:edit": () => void;
|
|
6
5
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TransferTemplateDetailsProps>>> & Readonly<{
|
|
7
6
|
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
8
7
|
"onAction:edit"?: (() => any) | undefined;
|
|
9
|
-
"onAction:use"?: ((locationId: string) => any) | undefined;
|
|
10
8
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
9
|
export default _default;
|
|
12
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -2,92 +2,19 @@ export declare function useTemplateEnabledLocations(controller: {
|
|
|
2
2
|
getLocations(): FdoInventoryLocation[] | undefined | null;
|
|
3
3
|
setLocations(locations: FdoInventoryLocation[] | undefined | null): void;
|
|
4
4
|
}): {
|
|
5
|
-
enabledLocations: import("vue").ComputedRef<
|
|
6
|
-
|
|
7
|
-
type: "restaurant";
|
|
8
|
-
name: string;
|
|
9
|
-
acceptRequest: boolean;
|
|
10
|
-
dbName: string;
|
|
11
|
-
} | {
|
|
12
|
-
type: "warehouse";
|
|
5
|
+
enabledLocations: import("vue").ComputedRef<{
|
|
6
|
+
type: "restaurant" | "warehouse";
|
|
13
7
|
name: string;
|
|
14
8
|
acceptRequest: boolean;
|
|
15
9
|
dbName: string;
|
|
16
10
|
doc: {
|
|
17
|
-
pf_business?: {
|
|
18
|
-
internal?: boolean | null | undefined;
|
|
19
|
-
url?: string | null | undefined;
|
|
20
|
-
expiredAt?: string | null | undefined;
|
|
21
|
-
agentId?: string | null | undefined;
|
|
22
|
-
attributeSettings?: {
|
|
23
|
-
type: "string" | "number" | "boolean" | "date";
|
|
24
|
-
key: string;
|
|
25
|
-
entity: "restaurant" | "item";
|
|
26
|
-
}[] | null | undefined;
|
|
27
|
-
pf_agent?: {
|
|
28
|
-
clickupId?: string | null | undefined;
|
|
29
|
-
members?: {
|
|
30
|
-
pf_user?: {
|
|
31
|
-
email?: string | null | undefined;
|
|
32
|
-
phoneNumber?: string | null | undefined;
|
|
33
|
-
birthday?: string | null | undefined;
|
|
34
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
35
|
-
addresses?: {
|
|
36
|
-
name: string;
|
|
37
|
-
address: string;
|
|
38
|
-
coordinates: number[];
|
|
39
|
-
}[] | null | undefined;
|
|
40
|
-
photoURL?: string | null | undefined;
|
|
41
|
-
displayName?: string | null | undefined;
|
|
42
|
-
imported?: {
|
|
43
|
-
raw: Record<string, any>;
|
|
44
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
45
|
-
} | null | undefined;
|
|
46
|
-
_id: string;
|
|
47
|
-
} | null | undefined;
|
|
48
|
-
role: "ADMIN";
|
|
49
|
-
userId: string;
|
|
50
|
-
}[] | null | undefined;
|
|
51
|
-
code: string;
|
|
52
|
-
name: string;
|
|
53
|
-
_id: string;
|
|
54
|
-
isReseller: boolean;
|
|
55
|
-
} | null | undefined;
|
|
56
|
-
thumbnail?: string | null | undefined;
|
|
57
|
-
billingInfos?: {
|
|
58
|
-
_id?: string | null | undefined;
|
|
59
|
-
name: string;
|
|
60
|
-
address: {
|
|
61
|
-
coordinates?: number[] | null | undefined;
|
|
62
|
-
line2?: string | null | undefined;
|
|
63
|
-
state: string;
|
|
64
|
-
country: string;
|
|
65
|
-
line1: string;
|
|
66
|
-
city: string;
|
|
67
|
-
postcode: string;
|
|
68
|
-
};
|
|
69
|
-
email: string;
|
|
70
|
-
companyName: string;
|
|
71
|
-
contact: string;
|
|
72
|
-
}[] | null | undefined;
|
|
73
|
-
customerDisplayImages?: {
|
|
74
|
-
url: string;
|
|
75
|
-
restaurantIds: string[];
|
|
76
|
-
}[] | null | undefined;
|
|
77
|
-
name: string;
|
|
78
|
-
_id: string;
|
|
79
|
-
ownerId: string;
|
|
80
|
-
restaurantQuota: number;
|
|
81
|
-
warehouseQuota: number;
|
|
82
|
-
menuVersion: string;
|
|
83
|
-
} | null | undefined;
|
|
84
11
|
_id: string;
|
|
85
12
|
businessId: string;
|
|
86
13
|
profile: {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
name
|
|
90
|
-
address
|
|
14
|
+
code?: string | null | undefined;
|
|
15
|
+
_id?: string | null | undefined;
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
address?: {
|
|
91
18
|
coordinates?: number[] | null | undefined;
|
|
92
19
|
line2?: string | null | undefined;
|
|
93
20
|
state: string;
|
|
@@ -95,11 +22,73 @@ export declare function useTemplateEnabledLocations(controller: {
|
|
|
95
22
|
line1: string;
|
|
96
23
|
city: string;
|
|
97
24
|
postcode: string;
|
|
98
|
-
};
|
|
99
|
-
|
|
25
|
+
} | undefined;
|
|
26
|
+
email?: string | undefined;
|
|
27
|
+
regNo?: string | undefined;
|
|
28
|
+
sstRegNo?: string | null | undefined;
|
|
29
|
+
phoneNo?: string | undefined;
|
|
30
|
+
legalName?: string | null | undefined;
|
|
31
|
+
discovery?: boolean | null | undefined;
|
|
32
|
+
coverPhoto?: string | null | undefined;
|
|
33
|
+
thumbnailPhoto?: string | null | undefined;
|
|
34
|
+
description?: string | null | undefined;
|
|
35
|
+
photos?: string[] | null | undefined;
|
|
36
|
+
operatingHours?: {
|
|
37
|
+
0: {
|
|
38
|
+
hours: {
|
|
39
|
+
end: string;
|
|
40
|
+
start: string;
|
|
41
|
+
}[];
|
|
42
|
+
enable: boolean;
|
|
43
|
+
};
|
|
44
|
+
2: {
|
|
45
|
+
hours: {
|
|
46
|
+
end: string;
|
|
47
|
+
start: string;
|
|
48
|
+
}[];
|
|
49
|
+
enable: boolean;
|
|
50
|
+
};
|
|
51
|
+
1: {
|
|
52
|
+
hours: {
|
|
53
|
+
end: string;
|
|
54
|
+
start: string;
|
|
55
|
+
}[];
|
|
56
|
+
enable: boolean;
|
|
57
|
+
};
|
|
58
|
+
3: {
|
|
59
|
+
hours: {
|
|
60
|
+
end: string;
|
|
61
|
+
start: string;
|
|
62
|
+
}[];
|
|
63
|
+
enable: boolean;
|
|
64
|
+
};
|
|
65
|
+
4: {
|
|
66
|
+
hours: {
|
|
67
|
+
end: string;
|
|
68
|
+
start: string;
|
|
69
|
+
}[];
|
|
70
|
+
enable: boolean;
|
|
71
|
+
};
|
|
72
|
+
5: {
|
|
73
|
+
hours: {
|
|
74
|
+
end: string;
|
|
75
|
+
start: string;
|
|
76
|
+
}[];
|
|
77
|
+
enable: boolean;
|
|
78
|
+
};
|
|
79
|
+
6: {
|
|
80
|
+
hours: {
|
|
81
|
+
end: string;
|
|
82
|
+
start: string;
|
|
83
|
+
}[];
|
|
84
|
+
enable: boolean;
|
|
85
|
+
};
|
|
86
|
+
} | null | undefined;
|
|
87
|
+
tags?: string[] | null | undefined;
|
|
88
|
+
url?: string | null | undefined;
|
|
100
89
|
};
|
|
101
90
|
};
|
|
102
|
-
}
|
|
91
|
+
}[] | undefined>;
|
|
103
92
|
enabledLocationsSwitch: import("vue").WritableComputedRef<boolean, boolean>;
|
|
104
93
|
promptSelectLocations: () => void;
|
|
105
94
|
removeLocation: (id: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ISelectItem } from '@feedmepos/ui-library';
|
|
2
|
-
export declare function useTransferLocations(modelGetter: () => Partial<FdoPurchaseOrder>, modelSetter: (model: Partial<FdoPurchaseOrder>) => void): {
|
|
2
|
+
export declare function useTransferLocations(modelGetter: () => Partial<FdoPurchaseOrder>, modelSetter: (model: Partial<FdoPurchaseOrder>) => void, filterCurrentLocation?: boolean, includeLocationSupplier?: boolean): {
|
|
3
3
|
transferLocationModel: import("vue").WritableComputedRef<string | undefined, string | undefined>;
|
|
4
4
|
transferLocationOptions: import("vue").ComputedRef<ISelectItem[]>;
|
|
5
5
|
locationOptionsTypePurchase: import("vue").ComputedRef<{
|
|
@@ -39,6 +39,43 @@ export declare function useTransferLocations(modelGetter: () => Partial<FdoPurch
|
|
|
39
39
|
country: string;
|
|
40
40
|
};
|
|
41
41
|
}[]>;
|
|
42
|
+
locationOptionsTypePurchaseLocationLevel: import("vue").ComputedRef<{
|
|
43
|
+
phoneNumber?: string | null | undefined;
|
|
44
|
+
email?: string | null | undefined;
|
|
45
|
+
_rev?: string | null | undefined;
|
|
46
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
47
|
+
contactName?: string | null | undefined;
|
|
48
|
+
registrationNumber?: string | undefined;
|
|
49
|
+
supplyItems?: {
|
|
50
|
+
defaultCost: {
|
|
51
|
+
measurement?: {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
abbrev: string;
|
|
55
|
+
conversion: {
|
|
56
|
+
amount: number;
|
|
57
|
+
precision: number;
|
|
58
|
+
};
|
|
59
|
+
} | null | undefined;
|
|
60
|
+
costPerUnit: {
|
|
61
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
62
|
+
amount: number;
|
|
63
|
+
precision: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
skuId: string;
|
|
67
|
+
}[] | null | undefined;
|
|
68
|
+
_id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
address: {
|
|
71
|
+
line2?: string | null | undefined;
|
|
72
|
+
line1: string;
|
|
73
|
+
state: string;
|
|
74
|
+
city: string;
|
|
75
|
+
postcode: string;
|
|
76
|
+
country: string;
|
|
77
|
+
};
|
|
78
|
+
}[]>;
|
|
42
79
|
locationOptionsTypeTransfer: import("vue").ComputedRef<{
|
|
43
80
|
phoneNumber?: string | null | undefined;
|
|
44
81
|
email?: string | null | undefined;
|
|
@@ -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,12 @@
|
|
|
1
|
+
import type { TransferTemplateImportItemProps } from './TransferTemplateImportItemProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TransferTemplateImportItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TransferTemplateImportItemProps>>> & 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 { PurchaseOrderTransactionType } from '@/views/receive-request/constants/purchase-order-transaction-type';
|
|
2
|
+
export interface TransferTemplateImportItemProps {
|
|
3
|
+
type: 'create' | 'update';
|
|
4
|
+
name: string;
|
|
5
|
+
transferType?: PurchaseOrderTransactionType;
|
|
6
|
+
locations?: FdoInventoryLocation[] | null | undefined;
|
|
7
|
+
items?: FdoPurchaseOrderItem[] | null | undefined;
|
|
8
|
+
errors: string[];
|
|
9
|
+
}
|