@feedmepos/mf-inventory-portal 0.0.19-dev.4 → 0.0.19-dev.6
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-CT8w22Ga.js → ApprovalView-CzKLgsJ9.js} +16 -15
- package/dist/{BindingsDialog-CrB5aA3X.js → BindingsDialog-D7CWodmi.js} +1 -1
- package/dist/{BindingsPicker-jBTfZ4vJ.js → BindingsPicker-Dxavpg09.js} +5 -5
- package/dist/{BindingsTable-DaZ3Vxpn.js → BindingsTable-BQEyLG4F.js} +1 -1
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BWFoHqPU.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-4EAZjYHf.js} +1 -1
- package/dist/{IngredientsView-DOoXPJop.js → IngredientsView-DLeVfaAy.js} +26 -25
- package/dist/{IntegrationView-BX1nvP-k.js → IntegrationView-CZTl4lcU.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CFConGe4.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CEhOhALE.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-CCD2yMHJ.js +88 -0
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js +29 -0
- package/dist/{PurchaseOrderPrintPreview-DSXXSlof.js → PurchaseOrderPrintPreview-pVhvi2XF.js} +11 -11
- package/dist/ReceiveRequestView-CzsOfdV4.js +208 -0
- package/dist/{RecipeView-DtoX2e_9.js → RecipeView-DsTG2guX.js} +117 -116
- package/dist/{StockView-DTnY8LfO.js → StockView-ruZ30kOE.js} +17 -16
- package/dist/{SupplierView-CzWM2tH4.js → SupplierView-BT9IfLzB.js} +6 -6
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BUArpD4v.js +745 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DqaAbttB.js +1269 -0
- package/dist/TransferTemplateView-CXafUQyI.js +1130 -0
- package/dist/{UnitView-Bk-OLoW2.js → UnitView-sSGMkQo5.js} +33 -33
- package/dist/{WarehouseView-C3F_YWO-.js → WarehouseView-B2ueU0Oq.js} +4 -4
- package/dist/api/purchase-order-template.d.ts +7 -0
- package/dist/{app-YOcJA0qj.js → app-D8_IIKxj.js} +6097 -5889
- package/dist/app.d.ts +38 -0
- package/dist/app.js +5 -4
- 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-Cr-8e35u.js → decimal-BbpHeqMX.js} +1 -1
- package/dist/helper/country.d.ts +2 -0
- package/dist/id-to-date-DNUSJ_a1.js +30 -0
- package/dist/layout-D-dTwEwF.js +147 -0
- package/dist/purchase-order-transaction-type-M-fz1Vrz.js +295 -0
- package/dist/router/name.d.ts +1 -0
- 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-tz4ui5Tz.js +54 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- 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/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/TransferForm.vue.d.ts +2 -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 +6 -0
- 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 +289 -0
- package/dist/{xlsx-CUjMCYbh.js → xlsx-CjvXXGPi.js} +1 -1
- package/dist/{xlsx.util-ByRzckFP.js → xlsx.util-CTgyjOr7.js} +2 -2
- package/package.json +4 -4
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js +0 -35
- package/dist/ReceiveRequestView-5nXXoRL_.js +0 -1394
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DIc2G2jF.js +0 -1031
- package/dist/id-to-date-9OvJMyEX.js +0 -121
- package/dist/layout-DCDPTIlR.js +0 -151
- package/dist/row-action.enum-BwQbURNh.js +0 -28
- package/dist/supplier-Bos9ifGc.js +0 -65
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import type { CreateType } from '@/api/type';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier", import("pinia")._UnwrapAll<Pick<{
|
|
3
|
+
readSuppliers(): Promise<void>;
|
|
4
|
+
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
5
|
+
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
6
|
+
deleteSupplier(supplier: FdoSupplier): Promise<void>;
|
|
7
|
+
init(): Promise<void>;
|
|
8
|
+
suppliers: import("vue").Ref<{
|
|
9
|
+
_rev?: string | null | undefined;
|
|
10
|
+
email?: string | null | undefined;
|
|
11
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
12
|
+
contactName?: string | null | undefined;
|
|
13
|
+
phoneNumber?: string | null | undefined;
|
|
14
|
+
supplyItems?: {
|
|
15
|
+
defaultCost: {
|
|
16
|
+
measurement?: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
abbrev: string;
|
|
20
|
+
conversion: {
|
|
21
|
+
amount: number;
|
|
22
|
+
precision: number;
|
|
23
|
+
};
|
|
24
|
+
} | null | undefined;
|
|
25
|
+
costPerUnit: {
|
|
26
|
+
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";
|
|
27
|
+
amount: number;
|
|
28
|
+
precision: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
skuId: string;
|
|
32
|
+
}[] | null | undefined;
|
|
33
|
+
_id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
registrationNumber: string;
|
|
36
|
+
address: {
|
|
37
|
+
line2?: string | null | undefined;
|
|
38
|
+
line1: string;
|
|
39
|
+
state: string;
|
|
40
|
+
city: string;
|
|
41
|
+
postcode: string;
|
|
42
|
+
country: string;
|
|
43
|
+
};
|
|
44
|
+
}[]>;
|
|
45
|
+
}, "suppliers">>, Pick<{
|
|
46
|
+
readSuppliers(): Promise<void>;
|
|
47
|
+
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
48
|
+
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
49
|
+
deleteSupplier(supplier: FdoSupplier): Promise<void>;
|
|
50
|
+
init(): Promise<void>;
|
|
51
|
+
suppliers: import("vue").Ref<{
|
|
7
52
|
_rev?: string | null | undefined;
|
|
8
53
|
email?: string | null | undefined;
|
|
9
54
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
@@ -39,10 +84,48 @@ export declare function useSupplierStore(): {
|
|
|
39
84
|
postcode: string;
|
|
40
85
|
country: string;
|
|
41
86
|
};
|
|
42
|
-
}[]
|
|
87
|
+
}[]>;
|
|
88
|
+
}, never>, Pick<{
|
|
43
89
|
readSuppliers(): Promise<void>;
|
|
44
90
|
createSupplier(supplier: CreateType<FdoSupplier>): Promise<void>;
|
|
45
91
|
updateSupplier(supplier: FdoSupplier): Promise<void>;
|
|
46
92
|
deleteSupplier(supplier: FdoSupplier): Promise<void>;
|
|
47
93
|
init(): Promise<void>;
|
|
48
|
-
|
|
94
|
+
suppliers: import("vue").Ref<{
|
|
95
|
+
_rev?: string | null | undefined;
|
|
96
|
+
email?: string | null | undefined;
|
|
97
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
98
|
+
contactName?: string | null | undefined;
|
|
99
|
+
phoneNumber?: string | null | undefined;
|
|
100
|
+
supplyItems?: {
|
|
101
|
+
defaultCost: {
|
|
102
|
+
measurement?: {
|
|
103
|
+
id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
abbrev: string;
|
|
106
|
+
conversion: {
|
|
107
|
+
amount: number;
|
|
108
|
+
precision: number;
|
|
109
|
+
};
|
|
110
|
+
} | null | undefined;
|
|
111
|
+
costPerUnit: {
|
|
112
|
+
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";
|
|
113
|
+
amount: number;
|
|
114
|
+
precision: number;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
skuId: string;
|
|
118
|
+
}[] | null | undefined;
|
|
119
|
+
_id: string;
|
|
120
|
+
name: string;
|
|
121
|
+
registrationNumber: string;
|
|
122
|
+
address: {
|
|
123
|
+
line2?: string | null | undefined;
|
|
124
|
+
line1: string;
|
|
125
|
+
state: string;
|
|
126
|
+
city: string;
|
|
127
|
+
postcode: string;
|
|
128
|
+
country: string;
|
|
129
|
+
};
|
|
130
|
+
}[]>;
|
|
131
|
+
}, "readSuppliers" | "createSupplier" | "updateSupplier" | "deleteSupplier" | "init">>;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.v-enter-active[data-v-
|
|
1
|
+
.v-enter-active[data-v-3ab1d100],.v-leave-active[data-v-3ab1d100]{transition:opacity .1s ease}.v-enter-from[data-v-3ab1d100],.v-leave-to[data-v-3ab1d100]{opacity:0}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.fm-droppable-field[data-v-311b22a0]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-311b22a0]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-311b22a0]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-311b22a0]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-311b22a0]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-311b22a0]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-311b22a0]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-311b22a0]:disabled{display:none;cursor:not-allowed}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-54384fc1]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-54384fc1],table th[data-v-54384fc1]{padding:3px 5px;vertical-align:top}hr[data-v-54384fc1]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-54384fc1]{text-align:left}.text-right[data-v-54384fc1]{text-align:right}.purchase-box[data-v-54384fc1]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-54384fc1]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-54384fc1]{font-weight:600;color:#333}.sub-header[data-v-54384fc1]{font-size:18px;color:#333}.caption[data-v-54384fc1]{font-size:14px;color:#666}.address[data-v-54384fc1]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-54384fc1]{margin-top:30px}.item-header[data-v-54384fc1]{border:0px;background:#ccc;color:#444}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { n as o, j as s, Q as u, T as c } from "./app-D8_IIKxj.js";
|
|
2
|
+
import { defineStore as l } from "pinia";
|
|
3
|
+
import { ref as d } from "vue";
|
|
4
|
+
const n = o((t, e) => {
|
|
5
|
+
const r = s();
|
|
6
|
+
return {
|
|
7
|
+
async readSuppliers() {
|
|
8
|
+
const p = r.currentLocation.dbName, a = `${t.inventoryBackendUrl}/${p}/supplier`;
|
|
9
|
+
return await e.get(a);
|
|
10
|
+
},
|
|
11
|
+
async createSupplier(p) {
|
|
12
|
+
const a = r.currentLocation.dbName, i = `${t.inventoryBackendUrl}/${a}/supplier`;
|
|
13
|
+
return await e.post(i, p);
|
|
14
|
+
},
|
|
15
|
+
async updateSupplier(p) {
|
|
16
|
+
const a = r.currentLocation.dbName, i = `${t.inventoryBackendUrl}/${a}/supplier`;
|
|
17
|
+
return await e.put(i, p);
|
|
18
|
+
},
|
|
19
|
+
async deleteSupplier(p) {
|
|
20
|
+
const a = r.currentLocation.dbName, i = `${t.inventoryBackendUrl}/${a}/supplier`;
|
|
21
|
+
return await e.delete(i, p);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}), m = l("supplier", () => {
|
|
25
|
+
const t = d(new Array());
|
|
26
|
+
return {
|
|
27
|
+
// action
|
|
28
|
+
async readSuppliers() {
|
|
29
|
+
const e = n();
|
|
30
|
+
t.value = await e.readSuppliers();
|
|
31
|
+
},
|
|
32
|
+
async createSupplier(e) {
|
|
33
|
+
await n().createSupplier(e);
|
|
34
|
+
},
|
|
35
|
+
async updateSupplier(e) {
|
|
36
|
+
await n().updateSupplier(e);
|
|
37
|
+
},
|
|
38
|
+
async deleteSupplier(e) {
|
|
39
|
+
await n().deleteSupplier(e);
|
|
40
|
+
},
|
|
41
|
+
async init() {
|
|
42
|
+
const e = u();
|
|
43
|
+
try {
|
|
44
|
+
await this.readSuppliers();
|
|
45
|
+
} catch (r) {
|
|
46
|
+
throw r instanceof c || e.error("Error at reading suppliers"), r;
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
suppliers: t
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
m as u
|
|
54
|
+
};
|