@feedmepos/mf-inventory-portal 0.0.23-dev.4 → 0.0.23-dev.40
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-DReDvY0M.js → App-D8DXxTIq.js} +84 -72
- package/dist/{ApprovalView-BMZlYmRk.js → ApprovalView-BWGXkHV6.js} +25 -28
- package/dist/{BindingsDialog-Y2K4I7H7.js → BindingsDialog-D7WypDot.js} +6 -6
- package/dist/{BindingsPicker-DKBq9c37.js → BindingsPicker-DUlGwkwM.js} +8 -9
- package/dist/{BindingsTable-45v4SDfp.js → BindingsTable-BjeZYCaJ.js} +18 -22
- package/dist/ClosingDraftView-o2LEUfo8.js +1190 -0
- package/dist/{ClosingTemplateView-CKJVYSbj.js → ClosingTemplateView-Dt983Cg4.js} +271 -285
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dc_7IyBG.js +142 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-wocPyZls.js} +18 -19
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DzoEp-Pg.js} +25 -26
- package/dist/{IngredientGroupView-BuP-HGeg.js → IngredientGroupView-CIPpIpv1.js} +63 -69
- package/dist/IngredientsView-CFV3kX7Q.js +1707 -0
- package/dist/{IntegrationView-kYCaKG0o.js → IntegrationView-DkW32m-t.js} +89 -92
- package/dist/{InventoryBindingForm-BXHq4h-n.js → InventoryBindingForm-B4CBet9W.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DpdDVf6O.js} +112 -104
- package/dist/{InventoryBindingSummary-Bjasfc_v.js → InventoryBindingSummary-75ImZtqK.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DfpG3Fy8.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B4d0c3nk.js} +19 -20
- package/dist/{PurchaseOrderPrintPreview-CmjkfTTS.js → PurchaseOrderPrintPreview-BYO0JcQW.js} +17 -18
- package/dist/ReceiveRequestView-cFLNExw9.js +4194 -0
- package/dist/RecipeView-CjfpaHaT.js +609 -0
- package/dist/StockView-HMtD9qar.js +1818 -0
- package/dist/{SupplierView-DAx7E7sR.js → SupplierView-Cidfe-Xm.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdU3HPBC.js +1275 -0
- package/dist/TransferTemplateView-Doxr1fXP.js +1264 -0
- package/dist/{UnitView-CQPGZ8-r.js → UnitView-C1af71aM.js} +228 -227
- package/dist/{WarehouseView-jy-RNCgy.js → WarehouseView-CviOLXfX.js} +100 -106
- package/dist/api/adjustment-template.d.ts +25 -0
- package/dist/api/bill.d.ts +240 -84
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/inventory.d.ts +15 -6
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-BE8SgDqI.js +84466 -0
- package/dist/app.d.ts +64 -0
- package/dist/app.js +2 -2
- package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
- package/dist/components/FmLockableField.vue.d.ts +37 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-BAc9M88Q.js → decimal-xj3kVOP6.js} +1 -1
- package/dist/feature-CWpNYcWJ.js +946 -0
- package/dist/format-unit-display-CZ835oaL.js +1215 -0
- package/dist/index-B8IWDKYv.js +29202 -0
- package/dist/{StockView-D9no-mrA.js → index-C6SzYqK7.js} +2242 -3986
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-C2xyYnS7.js +125 -0
- package/dist/stores/feature.d.ts +6 -0
- package/dist/stores/integration/netsuite.d.ts +70 -2
- package/dist/stores/inventory.d.ts +21 -12
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DJC0UZWv.js → supplier-B-7o9hg1.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-PEQbFRvO.js → use-inventory-binding-dialog-Dm8Ky1MH.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateReason.vue.d.ts +18 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1329 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +36 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1303 -0
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +625 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +3645 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -204
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +49 -205
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
- package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +57 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +57 -24
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +6 -4
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -1
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -12
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +2 -1
- package/package.json +5 -4
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +0 -436
- package/dist/FmMultiselectDialog-D7YtdoyJ.js +0 -415
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js +0 -51
- package/dist/IngredientsView-DMRN-odY.js +0 -1613
- package/dist/ReceiveRequestView-aQZJO8sq.js +0 -4165
- package/dist/RecipeView-DXO43tFi.js +0 -597
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +0 -1209
- package/dist/TransferTemplateView-CfxdQF1t.js +0 -1261
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-KnSMkJBV.js +0 -33496
- package/dist/date2-CIeUqUIc.js +0 -117
- package/dist/dayjs.min-Df5jSnDJ.js +0 -282
- package/dist/defineDeepModel-BfuQAIoM.js +0 -13
- package/dist/feature-dwB4OxRQ.js +0 -86
- package/dist/format-time-from-id-BbvzyIN6.js +0 -15
- package/dist/format-unit-display-BBWblJEt.js +0 -1216
- package/dist/fuzzy-B9ryZ9VZ.js +0 -41
- package/dist/index-BN0CY3sZ.js +0 -22277
- package/dist/index-Bj1fJum-.js +0 -45
- package/dist/index-C4yL_7rR.js +0 -10545
- package/dist/netsuite-ByWOS6tI.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-C12nWDD1.js +0 -198
- package/dist/use-template-enabled-locations-2-k9g5t8tt.js +0 -86
- package/dist/xlsx-B4XHad7S.js +0 -24004
- package/dist/xlsx.util-BSO4SHJi.js +0 -78
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as
|
|
2
|
-
import {
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import {
|
|
5
|
-
import { c as Ne, _ as qe, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
|
-
import { u as Be, _ as ze, a as Ie } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js";
|
|
7
|
-
import { useDialogChild as je, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
8
|
-
import { R as E } from "./rules-C12nWDD1.js";
|
|
1
|
+
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as xe, openBlock as S, createElementBlock as q, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Se, normalizeStyle as Pe } from "vue";
|
|
2
|
+
import { X as Re, ak as Te, al as Ue, f as Ee, D as Ve, h as Z, e as G, am as Le, _ as Ne, l as E, d as T, u as Be, y as qe, z as ze, B as Ie, E as je, G as J } from "./app-BE8SgDqI.js";
|
|
3
|
+
import { useCoreStore as Ge, useI18n as j } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialogChild as Oe, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
|
|
9
5
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const X = Pe((m, h) => {
|
|
13
|
-
const y = Le();
|
|
6
|
+
const Q = Re((m, h) => {
|
|
7
|
+
const y = Ge();
|
|
14
8
|
return {
|
|
15
9
|
async readWarehouses() {
|
|
16
10
|
var l;
|
|
@@ -51,17 +45,17 @@ function Ce() {
|
|
|
51
45
|
},
|
|
52
46
|
// actions
|
|
53
47
|
async readWarehouses() {
|
|
54
|
-
const m =
|
|
48
|
+
const m = Q();
|
|
55
49
|
this.warehouses = await m.readWarehouses();
|
|
56
50
|
},
|
|
57
51
|
async createWarehouse(m) {
|
|
58
|
-
await
|
|
52
|
+
await Q().createWarehouse(m);
|
|
59
53
|
},
|
|
60
54
|
async updateWarehouse(m) {
|
|
61
|
-
await
|
|
55
|
+
await Q().updateWarehouse(m._id, m.profile);
|
|
62
56
|
},
|
|
63
57
|
async deleteWarehouse(m) {
|
|
64
|
-
await
|
|
58
|
+
await Q().deleteWarehouse(m._id);
|
|
65
59
|
},
|
|
66
60
|
async init() {
|
|
67
61
|
const m = Te();
|
|
@@ -73,14 +67,14 @@ function Ce() {
|
|
|
73
67
|
}
|
|
74
68
|
};
|
|
75
69
|
}
|
|
76
|
-
function
|
|
70
|
+
function Xe(m, h) {
|
|
77
71
|
function y(p, s) {
|
|
78
|
-
if (p ===
|
|
79
|
-
m(
|
|
72
|
+
if (p === Z.Edit) {
|
|
73
|
+
m(G(s));
|
|
80
74
|
return;
|
|
81
75
|
}
|
|
82
|
-
if (p ===
|
|
83
|
-
h(
|
|
76
|
+
if (p === Z.Delete) {
|
|
77
|
+
h(G(s));
|
|
84
78
|
return;
|
|
85
79
|
}
|
|
86
80
|
}
|
|
@@ -109,8 +103,8 @@ function Ze(m, h) {
|
|
|
109
103
|
id: "action",
|
|
110
104
|
header: "",
|
|
111
105
|
cell(p) {
|
|
112
|
-
return
|
|
113
|
-
[Ve[
|
|
106
|
+
return Ee(
|
|
107
|
+
[Ve[Z.Edit], Ve[Z.Delete]],
|
|
114
108
|
(s) => {
|
|
115
109
|
y(s, p.row.original.original);
|
|
116
110
|
}
|
|
@@ -145,7 +139,7 @@ function Ze(m, h) {
|
|
|
145
139
|
}
|
|
146
140
|
return { columnDefs: n, formatRowData: l };
|
|
147
141
|
}
|
|
148
|
-
const
|
|
142
|
+
const Ze = /* @__PURE__ */ I({
|
|
149
143
|
__name: "GoogleMap",
|
|
150
144
|
props: {
|
|
151
145
|
markers: {
|
|
@@ -186,25 +180,25 @@ const Je = /* @__PURE__ */ I({
|
|
|
186
180
|
};
|
|
187
181
|
}
|
|
188
182
|
function v(r, f, b) {
|
|
189
|
-
const
|
|
190
|
-
u.push(
|
|
183
|
+
const F = l.maps.event.addListener(r, f, b);
|
|
184
|
+
u.push(F);
|
|
191
185
|
}
|
|
192
186
|
const M = W([]);
|
|
193
187
|
function $(r, f, b) {
|
|
194
188
|
v(r, f, b);
|
|
195
189
|
}
|
|
196
190
|
function C(r) {
|
|
197
|
-
|
|
198
|
-
const
|
|
191
|
+
P(null), M.value = r.map((f, b) => {
|
|
192
|
+
const F = new l.maps.Marker({
|
|
199
193
|
position: f,
|
|
200
194
|
draggable: !0
|
|
201
195
|
});
|
|
202
|
-
return $(
|
|
196
|
+
return $(F, "dragend", (D) => {
|
|
203
197
|
n("marker-change", { index: b, position: _(D) });
|
|
204
|
-
}),
|
|
205
|
-
}),
|
|
198
|
+
}), F;
|
|
199
|
+
}), P(s.value);
|
|
206
200
|
}
|
|
207
|
-
function
|
|
201
|
+
function P(r) {
|
|
208
202
|
M.value.map((f) => be(f).setMap(r));
|
|
209
203
|
}
|
|
210
204
|
const i = W([]);
|
|
@@ -215,9 +209,9 @@ const Je = /* @__PURE__ */ I({
|
|
|
215
209
|
v(r, f, b);
|
|
216
210
|
}
|
|
217
211
|
function o(r) {
|
|
218
|
-
return i.value[r].getPath().getArray().map(({ lat: b, lng:
|
|
212
|
+
return i.value[r].getPath().getArray().map(({ lat: b, lng: F }) => ({
|
|
219
213
|
lat: b(),
|
|
220
|
-
lng:
|
|
214
|
+
lng: F()
|
|
221
215
|
}));
|
|
222
216
|
}
|
|
223
217
|
function e(r) {
|
|
@@ -225,24 +219,24 @@ const Je = /* @__PURE__ */ I({
|
|
|
225
219
|
n("polygon-change", { index: r, path: f });
|
|
226
220
|
}
|
|
227
221
|
function t(r, f) {
|
|
228
|
-
const
|
|
229
|
-
n("polygon-change", { index: r, path:
|
|
222
|
+
const F = o(r).filter((D, O) => O !== f);
|
|
223
|
+
n("polygon-change", { index: r, path: F });
|
|
230
224
|
}
|
|
231
|
-
function
|
|
225
|
+
function B(r, f) {
|
|
232
226
|
f.vertex !== void 0 ? t(r, f.vertex) : n("polygon-right-click", r);
|
|
233
227
|
}
|
|
234
228
|
function w(r) {
|
|
235
229
|
d(null), i.value = r.map((f, b) => {
|
|
236
|
-
const
|
|
230
|
+
const F = new l.maps.Polygon({
|
|
237
231
|
paths: f.paths,
|
|
238
232
|
strokeColor: f.strokeColor,
|
|
239
233
|
fillColor: f.fillColor,
|
|
240
234
|
fillOpacity: 0.5,
|
|
241
235
|
editable: a.editable
|
|
242
236
|
});
|
|
243
|
-
return k(
|
|
237
|
+
return k(F, "contextmenu", (D) => B(b, D)), F.getPaths().forEach((D) => {
|
|
244
238
|
A(D, "insert_at", () => e(b)), A(D, "set_at", () => e(b));
|
|
245
|
-
}),
|
|
239
|
+
}), F;
|
|
246
240
|
}), d(s.value);
|
|
247
241
|
}
|
|
248
242
|
function d(r) {
|
|
@@ -251,7 +245,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
251
245
|
function Y(r, f, b) {
|
|
252
246
|
v(r, f, b);
|
|
253
247
|
}
|
|
254
|
-
function
|
|
248
|
+
function R() {
|
|
255
249
|
s.value = new l.maps.Map(p.value, {
|
|
256
250
|
center: a.center,
|
|
257
251
|
zoom: a.zoom,
|
|
@@ -262,16 +256,16 @@ const Je = /* @__PURE__ */ I({
|
|
|
262
256
|
}), Y(s.value, "click", (r) => n("map-click", _(r)));
|
|
263
257
|
}
|
|
264
258
|
return ee(() => a.markers, C, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
|
|
265
|
-
!p.value || !l || (
|
|
266
|
-
}),
|
|
259
|
+
!p.value || !l || (R(), C(a.markers), w(a.polygons));
|
|
260
|
+
}), xe(() => {
|
|
267
261
|
u.forEach((r) => r.remove());
|
|
268
|
-
}), (r, f) => (S(),
|
|
262
|
+
}), (r, f) => (S(), q("div", {
|
|
269
263
|
ref_key: "mapRef",
|
|
270
264
|
ref: p,
|
|
271
265
|
class: "map app-map"
|
|
272
266
|
}, null, 512));
|
|
273
267
|
}
|
|
274
|
-
}),
|
|
268
|
+
}), Je = { class: "flex flex-col gap-24" }, Qe = { class: "flex flex-col gap-8" }, Ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
|
|
275
269
|
__name: "CoordinateDialog",
|
|
276
270
|
props: {
|
|
277
271
|
address: {
|
|
@@ -284,23 +278,23 @@ const Je = /* @__PURE__ */ I({
|
|
|
284
278
|
}
|
|
285
279
|
},
|
|
286
280
|
setup(m) {
|
|
287
|
-
const h = m, y =
|
|
288
|
-
|
|
289
|
-
), p = W(""), s =
|
|
281
|
+
const h = m, y = Oe(), a = se(), { t: n } = j(), l = Fe(
|
|
282
|
+
G(h.coordinate ? h.coordinate : le.jb)
|
|
283
|
+
), p = W(""), s = Le(async function() {
|
|
290
284
|
p.value = await a.getFirstMatchingAddress(
|
|
291
285
|
l.lat,
|
|
292
286
|
l.lng
|
|
293
287
|
);
|
|
294
288
|
}, 1e3);
|
|
295
289
|
te(() => {
|
|
296
|
-
y.emitData(
|
|
290
|
+
y.emitData(G(l)), s();
|
|
297
291
|
});
|
|
298
292
|
function u({ position: v }) {
|
|
299
|
-
l.lat = v.lat, l.lng = v.lng, y.emitData(
|
|
293
|
+
l.lat = v.lat, l.lng = v.lng, y.emitData(G(l)), s();
|
|
300
294
|
}
|
|
301
295
|
const _ = W();
|
|
302
|
-
return (v, M) => (S(),
|
|
303
|
-
g("div",
|
|
296
|
+
return (v, M) => (S(), q("div", Je, [
|
|
297
|
+
g("div", Qe, [
|
|
304
298
|
g("div", null, [
|
|
305
299
|
g("span", Ye, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
|
|
306
300
|
g("span", eo, U(p.value), 1)
|
|
@@ -314,7 +308,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
314
308
|
g("span", lo, U(l.lat), 1)
|
|
315
309
|
])
|
|
316
310
|
]),
|
|
317
|
-
V(
|
|
311
|
+
V(Ze, {
|
|
318
312
|
ref_key: "gmapRef",
|
|
319
313
|
ref: _,
|
|
320
314
|
class: "h-[272px] sm:h-[240px] xs:h-[240px]",
|
|
@@ -326,7 +320,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
326
320
|
}, null, 8, ["center", "markers"])
|
|
327
321
|
]));
|
|
328
322
|
}
|
|
329
|
-
}), ro = /* @__PURE__ */
|
|
323
|
+
}), ro = /* @__PURE__ */ Ne(so, [["__scopeId", "data-v-272f5e8b"]]);
|
|
330
324
|
function ke([m, h]) {
|
|
331
325
|
return {
|
|
332
326
|
lat: h,
|
|
@@ -393,12 +387,12 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
393
387
|
M($);
|
|
394
388
|
}
|
|
395
389
|
}
|
|
396
|
-
function
|
|
390
|
+
function P() {
|
|
397
391
|
a("update:modelValue", null);
|
|
398
392
|
}
|
|
399
393
|
return (i, k) => {
|
|
400
394
|
const A = L("FmField"), o = L("FmButton"), e = L("FmFormGroup");
|
|
401
|
-
return S(),
|
|
395
|
+
return S(), q("div", uo, [
|
|
402
396
|
V(e, {
|
|
403
397
|
class: "flex-1",
|
|
404
398
|
"model-value": c(s),
|
|
@@ -414,7 +408,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
414
408
|
onClick: k[0] || (k[0] = (t) => C())
|
|
415
409
|
}, $e({
|
|
416
410
|
default: N(({ invalid: t }) => [
|
|
417
|
-
i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(),
|
|
411
|
+
i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(), q("div", io, [
|
|
418
412
|
V(A, {
|
|
419
413
|
invalid: t,
|
|
420
414
|
class: "fm-typo-en-body-lg-400"
|
|
@@ -424,7 +418,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
424
418
|
]),
|
|
425
419
|
_: 2
|
|
426
420
|
}, 1032, ["invalid"])
|
|
427
|
-
])) : (S(),
|
|
421
|
+
])) : (S(), q("div", co, [
|
|
428
422
|
V(o, {
|
|
429
423
|
label: c(_)("inventory.formField.coordinate.addCoordinate"),
|
|
430
424
|
"prepend-icon": "add",
|
|
@@ -446,7 +440,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
446
440
|
key: 0,
|
|
447
441
|
"prepend-icon": "delete",
|
|
448
442
|
variant: "tertiary",
|
|
449
|
-
onClick: k[1] || (k[1] = (t) =>
|
|
443
|
+
onClick: k[1] || (k[1] = (t) => P())
|
|
450
444
|
})) : Ae("", !0)
|
|
451
445
|
]);
|
|
452
446
|
};
|
|
@@ -459,7 +453,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
459
453
|
},
|
|
460
454
|
emits: ["update:modelValue", "validation-success"],
|
|
461
455
|
setup(m, { expose: h, emit: y }) {
|
|
462
|
-
const a = m, n = y, { t: l } = j(), p =
|
|
456
|
+
const a = m, n = y, { t: l } = j(), p = x({
|
|
463
457
|
get() {
|
|
464
458
|
var o, e;
|
|
465
459
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
|
|
@@ -468,7 +462,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
468
462
|
const e = a.modelValue ?? {};
|
|
469
463
|
e.profile ?? (e.profile = {}), e.profile.name = o, n("update:modelValue", e);
|
|
470
464
|
}
|
|
471
|
-
}), s =
|
|
465
|
+
}), s = x({
|
|
472
466
|
get() {
|
|
473
467
|
var o, e;
|
|
474
468
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
|
|
@@ -477,7 +471,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
477
471
|
const e = a.modelValue ?? {};
|
|
478
472
|
e.profile ?? (e.profile = {}), e.profile.regNo = o, n("update:modelValue", e);
|
|
479
473
|
}
|
|
480
|
-
}), u =
|
|
474
|
+
}), u = x({
|
|
481
475
|
get() {
|
|
482
476
|
var o, e, t;
|
|
483
477
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line1) ?? "";
|
|
@@ -487,7 +481,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
487
481
|
const e = a.modelValue ?? {};
|
|
488
482
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line1 = o, n("update:modelValue", e);
|
|
489
483
|
}
|
|
490
|
-
}), _ =
|
|
484
|
+
}), _ = x({
|
|
491
485
|
get() {
|
|
492
486
|
var o, e, t;
|
|
493
487
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line2) ?? "";
|
|
@@ -497,7 +491,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
497
491
|
const e = a.modelValue ?? {};
|
|
498
492
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
|
|
499
493
|
}
|
|
500
|
-
}), v =
|
|
494
|
+
}), v = x({
|
|
501
495
|
get() {
|
|
502
496
|
var o, e, t;
|
|
503
497
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
|
|
@@ -507,7 +501,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
507
501
|
const e = a.modelValue ?? {};
|
|
508
502
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.city = o, n("update:modelValue", e);
|
|
509
503
|
}
|
|
510
|
-
}), M =
|
|
504
|
+
}), M = x({
|
|
511
505
|
get() {
|
|
512
506
|
var o, e, t;
|
|
513
507
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.postcode) ?? "";
|
|
@@ -517,7 +511,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
517
511
|
const e = a.modelValue ?? {};
|
|
518
512
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
|
|
519
513
|
}
|
|
520
|
-
}), $ =
|
|
514
|
+
}), $ = x({
|
|
521
515
|
get() {
|
|
522
516
|
var o, e, t;
|
|
523
517
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
|
|
@@ -527,7 +521,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
527
521
|
const e = a.modelValue ?? {};
|
|
528
522
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, n("update:modelValue", e);
|
|
529
523
|
}
|
|
530
|
-
}), C =
|
|
524
|
+
}), C = x({
|
|
531
525
|
get() {
|
|
532
526
|
var o, e, t;
|
|
533
527
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
|
|
@@ -537,7 +531,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
537
531
|
const e = a.modelValue ?? {};
|
|
538
532
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.country = o, n("update:modelValue", e);
|
|
539
533
|
}
|
|
540
|
-
}),
|
|
534
|
+
}), P = x({
|
|
541
535
|
get() {
|
|
542
536
|
var o, e, t;
|
|
543
537
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
|
|
@@ -547,7 +541,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
547
541
|
const e = a.modelValue ?? {};
|
|
548
542
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, n("update:modelValue", e);
|
|
549
543
|
}
|
|
550
|
-
}), i =
|
|
544
|
+
}), i = x({
|
|
551
545
|
get() {
|
|
552
546
|
var o, e;
|
|
553
547
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
|
|
@@ -556,7 +550,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
556
550
|
const e = a.modelValue ?? {};
|
|
557
551
|
e.profile ?? (e.profile = {}), e.profile.phoneNo = o, n("update:modelValue", e);
|
|
558
552
|
}
|
|
559
|
-
}), k =
|
|
553
|
+
}), k = x({
|
|
560
554
|
get() {
|
|
561
555
|
var o, e;
|
|
562
556
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
|
|
@@ -580,7 +574,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
580
574
|
(e = (o = A.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
|
|
581
575
|
}
|
|
582
576
|
}), (o, e) => {
|
|
583
|
-
const t = L("FmTextField"),
|
|
577
|
+
const t = L("FmTextField"), B = L("FmPhoneNumber"), w = L("FmForm");
|
|
584
578
|
return S(), z(w, {
|
|
585
579
|
ref_key: "formRef",
|
|
586
580
|
ref: A,
|
|
@@ -664,14 +658,14 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
664
658
|
disabled: o.disabled,
|
|
665
659
|
rules: [c(E)()],
|
|
666
660
|
"label-mark": "required",
|
|
667
|
-
modelValue:
|
|
668
|
-
"onUpdate:modelValue": e[8] || (e[8] = (d) =>
|
|
661
|
+
modelValue: P.value,
|
|
662
|
+
"onUpdate:modelValue": e[8] || (e[8] = (d) => P.value = d)
|
|
669
663
|
}, null, 8, ["disabled", "rules", "modelValue"])
|
|
670
664
|
]),
|
|
671
665
|
g("div", wo, [
|
|
672
666
|
g("div", Vo, U(c(l)("inventory.warehouse.contact.title")), 1),
|
|
673
667
|
g("div", _o, [
|
|
674
|
-
V(
|
|
668
|
+
V(B, {
|
|
675
669
|
disabled: o.disabled,
|
|
676
670
|
rules: [c(E)()],
|
|
677
671
|
"label-mark": "required",
|
|
@@ -703,7 +697,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
703
697
|
},
|
|
704
698
|
emits: ["update:show", "submitted"],
|
|
705
699
|
setup(m, { expose: h, emit: y }) {
|
|
706
|
-
const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u = Ce(), _ =
|
|
700
|
+
const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u = Ce(), _ = x(() => {
|
|
707
701
|
switch (a.mode) {
|
|
708
702
|
case T.READ:
|
|
709
703
|
return "";
|
|
@@ -713,7 +707,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
713
707
|
return s("inventory.warehouse.create.title");
|
|
714
708
|
}
|
|
715
709
|
return "";
|
|
716
|
-
}), v =
|
|
710
|
+
}), v = x(() => {
|
|
717
711
|
switch (a.mode) {
|
|
718
712
|
case T.READ:
|
|
719
713
|
return "";
|
|
@@ -739,7 +733,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
739
733
|
}
|
|
740
734
|
});
|
|
741
735
|
const $ = oe(a, "show"), C = oe(a, "warehouse");
|
|
742
|
-
function
|
|
736
|
+
function P() {
|
|
743
737
|
var o, e;
|
|
744
738
|
(e = (o = M.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
|
|
745
739
|
}
|
|
@@ -806,8 +800,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
806
800
|
}
|
|
807
801
|
}
|
|
808
802
|
return (o, e) => {
|
|
809
|
-
const t = L("FmButton"),
|
|
810
|
-
return S(), z(
|
|
803
|
+
const t = L("FmButton"), B = L("FmSideSheet");
|
|
804
|
+
return S(), z(B, {
|
|
811
805
|
header: _.value,
|
|
812
806
|
modelValue: c($),
|
|
813
807
|
"onUpdate:modelValue": e[1] || (e[1] = (w) => we($) ? $.value = w : null),
|
|
@@ -835,7 +829,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
835
829
|
V(t, {
|
|
836
830
|
loading: l.value,
|
|
837
831
|
label: v.value,
|
|
838
|
-
onClick:
|
|
832
|
+
onClick: P
|
|
839
833
|
}, null, 8, ["loading", "label"])
|
|
840
834
|
])
|
|
841
835
|
]),
|
|
@@ -843,13 +837,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
843
837
|
}, 8, ["header", "modelValue", "dismiss-away"]);
|
|
844
838
|
};
|
|
845
839
|
}
|
|
846
|
-
}), Co = { class: "flex flex-col py-8" },
|
|
840
|
+
}), Co = { class: "flex flex-col py-8" }, xo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $o = {
|
|
847
841
|
key: 0,
|
|
848
842
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
849
|
-
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" },
|
|
843
|
+
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Uo = /* @__PURE__ */ I({
|
|
850
844
|
__name: "WarehouseView",
|
|
851
845
|
setup(m) {
|
|
852
|
-
const h = Ce(), y =
|
|
846
|
+
const h = Ce(), y = Be(), a = x(() => h.warehouses), n = Me(), l = ae(), p = W(!1), { t: s } = j();
|
|
853
847
|
te(() => {
|
|
854
848
|
y._currentLocation && A();
|
|
855
849
|
}), ee([() => y._currentLocation], () => {
|
|
@@ -898,7 +892,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
898
892
|
n.close();
|
|
899
893
|
}
|
|
900
894
|
}
|
|
901
|
-
const { columnDefs: C, formatRowData:
|
|
895
|
+
const { columnDefs: C, formatRowData: P } = Xe(
|
|
902
896
|
v,
|
|
903
897
|
M
|
|
904
898
|
);
|
|
@@ -919,7 +913,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
919
913
|
p.value = !1;
|
|
920
914
|
}
|
|
921
915
|
}
|
|
922
|
-
const { breakpoints: o } =
|
|
916
|
+
const { breakpoints: o } = Ke(), e = x(() => o.value.xs || o.value.sm), t = x(() => e.value ? 10 : 20), B = qe();
|
|
923
917
|
return (w, d) => {
|
|
924
918
|
const Y = L("FmTable");
|
|
925
919
|
return S(), z(ze, {
|
|
@@ -948,49 +942,49 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
948
942
|
searchable: "",
|
|
949
943
|
"change-location": "",
|
|
950
944
|
search: k.value,
|
|
951
|
-
"onUpdate:search": d[0] || (d[0] = (
|
|
945
|
+
"onUpdate:search": d[0] || (d[0] = (R) => k.value = R)
|
|
952
946
|
}, null, 8, ["search"]),
|
|
953
947
|
(S(), z(Y, {
|
|
954
|
-
style:
|
|
948
|
+
style: Pe(c(B).tableHeight),
|
|
955
949
|
"column-defs": c(C),
|
|
956
|
-
"row-data": c(
|
|
950
|
+
"row-data": c(P)(a.value),
|
|
957
951
|
"search-value": k.value,
|
|
958
952
|
loading: !c(y)._currentLocation || p.value,
|
|
959
|
-
onRowClick: d[1] || (d[1] = (
|
|
953
|
+
onRowClick: d[1] || (d[1] = (R) => v(R.original.original)),
|
|
960
954
|
key: a.value.length,
|
|
961
955
|
"page-size": t.value
|
|
962
956
|
}, {
|
|
963
|
-
"list-row": N((
|
|
964
|
-
V(
|
|
965
|
-
row:
|
|
957
|
+
"list-row": N((R) => [
|
|
958
|
+
V(je, {
|
|
959
|
+
row: R,
|
|
966
960
|
onRowClick: (r) => v(r.original)
|
|
967
961
|
}, {
|
|
968
962
|
default: N((r) => {
|
|
969
|
-
var f, b,
|
|
963
|
+
var f, b, F, D, O, re, ne, ue, K, ie, de, ce, pe, me, H, fe, he, ye, ve, X, ge;
|
|
970
964
|
return [
|
|
971
965
|
g("div", Co, [
|
|
972
|
-
g("div",
|
|
973
|
-
V(c(
|
|
974
|
-
render: (
|
|
975
|
-
props: (
|
|
966
|
+
g("div", xo, [
|
|
967
|
+
V(c(J), {
|
|
968
|
+
render: (F = (b = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : F.cell,
|
|
969
|
+
props: (O = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : O.call(D)
|
|
976
970
|
}, null, 8, ["render", "props"])
|
|
977
971
|
]),
|
|
978
|
-
g("div",
|
|
979
|
-
V(c(
|
|
972
|
+
g("div", Fo, [
|
|
973
|
+
V(c(J), {
|
|
980
974
|
render: (ue = (ne = (re = r.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
|
|
981
975
|
props: (ie = (K = r.contact) == null ? void 0 : K.getContext) == null ? void 0 : ie.call(K)
|
|
982
976
|
}, null, 8, ["render", "props"])
|
|
983
977
|
]),
|
|
984
|
-
(de =
|
|
985
|
-
V(c(
|
|
978
|
+
(de = R.original) != null && de.email ? (S(), q("div", $o, [
|
|
979
|
+
V(c(J), {
|
|
986
980
|
render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
|
|
987
981
|
props: (fe = (H = r.email) == null ? void 0 : H.getContext) == null ? void 0 : fe.call(H)
|
|
988
982
|
}, null, 8, ["render", "props"])
|
|
989
983
|
])) : Ae("", !0),
|
|
990
984
|
g("div", Wo, [
|
|
991
|
-
V(c(
|
|
985
|
+
V(c(J), {
|
|
992
986
|
render: (ve = (ye = (he = r.address) == null ? void 0 : he.column) == null ? void 0 : ye.columnDef) == null ? void 0 : ve.cell,
|
|
993
|
-
props: (ge = (
|
|
987
|
+
props: (ge = (X = r.address) == null ? void 0 : X.getContext) == null ? void 0 : ge.call(X)
|
|
994
988
|
}, null, 8, ["render", "props"])
|
|
995
989
|
])
|
|
996
990
|
])
|
|
@@ -1004,10 +998,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
1004
998
|
], 2),
|
|
1005
999
|
V(Mo, {
|
|
1006
1000
|
show: u.value.show,
|
|
1007
|
-
"onUpdate:show": d[2] || (d[2] = (
|
|
1001
|
+
"onUpdate:show": d[2] || (d[2] = (R) => u.value.show = R),
|
|
1008
1002
|
warehouse: u.value.warehouse,
|
|
1009
1003
|
mode: u.value.mode,
|
|
1010
|
-
onSubmitted: d[3] || (d[3] = (
|
|
1004
|
+
onSubmitted: d[3] || (d[3] = (R) => A(!0))
|
|
1011
1005
|
}, null, 8, ["show", "warehouse", "mode"])
|
|
1012
1006
|
]),
|
|
1013
1007
|
_: 1
|
|
@@ -1016,5 +1010,5 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
1016
1010
|
}
|
|
1017
1011
|
});
|
|
1018
1012
|
export {
|
|
1019
|
-
|
|
1013
|
+
Uo as default
|
|
1020
1014
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
2
|
+
export interface RecentPublish {
|
|
3
|
+
recentJob?: PublishingJob | null;
|
|
4
|
+
publishedRevs?: FdoAdjustmentTemplatePublish['publishedRev'] | null;
|
|
5
|
+
}
|
|
6
|
+
export interface PublishingJob {
|
|
7
|
+
id: string;
|
|
8
|
+
businessId: string;
|
|
9
|
+
outlets: string[];
|
|
10
|
+
completed: string[];
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const useAdjustmentTemplateApi: () => {
|
|
15
|
+
getRecentPublishingJob(): Promise<RecentPublish>;
|
|
16
|
+
startNewPublish(): Promise<PublishingJob>;
|
|
17
|
+
getTemplate(id: string): Promise<FdoAdjustmentTemplate & RevisionIdMeta>;
|
|
18
|
+
readTemplates(): Promise<(FdoAdjustmentTemplate & RevisionIdMeta)[]>;
|
|
19
|
+
createTemplate(template: Omit<FdoAdjustmentTemplate, '_id'>): Promise<FdoAdjustmentTemplate>;
|
|
20
|
+
updateTemplate(template: FdoAdjustmentTemplate & RevisionIdMeta): Promise<FdoAdjustmentTemplate>;
|
|
21
|
+
deleteTemplate(template: FdoAdjustmentTemplate & RevisionIdMeta): Promise<any>;
|
|
22
|
+
importTemplates(templates: Array<(FdoAdjustmentTemplate & RevisionIdMeta) | Omit<FdoAdjustmentTemplate, '_id'>>): Promise<any>;
|
|
23
|
+
getReasons(): Promise<FdoAdjustmentTemplateReason>;
|
|
24
|
+
update(reason: FdoAdjustmentTemplateReason): Promise<any>;
|
|
25
|
+
};
|