@feedmepos/mf-inventory-portal 1.2.22-dev.1 → 1.2.22-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-CVo40hoN.js → App-DtwLZ9Ng.js} +1 -1
- package/dist/{ApprovalView-B99YGXOt.js → ApprovalView-DTiPzA1y.js} +9 -9
- package/dist/{BindingsDialog-DGFYmVX9.js → BindingsDialog--1wB_TX2.js} +2 -2
- package/dist/{BindingsPicker-CVWxRkDE.js → BindingsPicker-JjZfjlvz.js} +9 -9
- package/dist/{BindingsTable-Cxs_cQrM.js → BindingsTable-M2CGWdTD.js} +1 -1
- package/dist/{ClosingDraftView-gBO5Icdy.js → ClosingDraftView-B800NjEZ.js} +101 -101
- package/dist/ClosingTemplateView-B1TVIzzy.js +2001 -0
- package/dist/{DeliveryOrderPrintPreview-D-H7S-4t.js → DeliveryOrderPrintPreview-CUXfCixj.js} +8 -8
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BsPMd4IE.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bdw3Q4Dz.js} +33 -33
- package/dist/{FmMultiselectDialog-DXVvibUU.js → FmMultiselectDialog-CyYcvvyg.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dq8lMkNV.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D-FDSjxY.js} +49 -49
- package/dist/{ImportView-DUPfQshy.js → ImportView-BR7JpsG8.js} +27 -27
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DxLVS1Ar.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bae5DUA9.js} +8 -8
- package/dist/{IngredientGroupView-CqPl6RZI.js → IngredientGroupView-c6XH5Fzg.js} +17 -17
- package/dist/{IngredientsView--7ro7P7J.js → IngredientsView-D4JiQ6Bp.js} +72 -73
- package/dist/{IntegrationView-BZnq8gYp.js → IntegrationView-BdOTe6FG.js} +3 -3
- package/dist/{InventoryBindingForm-DASUGZuO.js → InventoryBindingForm-kqrZutMr.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-l_EgNW0u.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DZ-Mr8-U.js} +12 -12
- package/dist/{InventoryBindingSummary-BoUAsK9S.js → InventoryBindingSummary-D4p9cOiy.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DimqJCjO.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bj_2aQiY.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C_wNgXUC.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CX9H2gLU.js} +7 -7
- package/dist/{PublishView-B-Zal--Y.js → PublishView-DcQQtuF8.js} +10 -10
- package/dist/{PurchaseOrderPrintPreview-CoXu4VO-.js → PurchaseOrderPrintPreview-Ueo4Yftu.js} +13 -13
- package/dist/{ReceiveRequestView-B7rprDy7.js → ReceiveRequestView-Cikz66hY.js} +115 -115
- package/dist/{RecipeView-BbMlUt0v.js → RecipeView-DL1kKy2w.js} +50 -50
- package/dist/{StockView-Bko2-Rzd.js → StockView-DzaCcxc5.js} +7 -7
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DONtcweN.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DP5AFZM2.js} +1 -1
- package/dist/{SupplierView-D4hAT4CW.js → SupplierView-CJuI_jPc.js} +93 -93
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BoZEbHkN.js +3233 -0
- package/dist/{TransferTemplateView-BLWYhdZG.js → TransferTemplateView-DiGdnr0-.js} +140 -140
- package/dist/{UnitView-Boi_sRGP.js → UnitView-CA2isH5r.js} +44 -44
- package/dist/{WarehouseView-B1aAyncU.js → WarehouseView-BMUJN1D1.js} +66 -66
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/{app-C4dN86_k.js → app-DdrL4md8.js} +8229 -7971
- package/dist/app.js +4 -4
- package/dist/{decimal-Cf4voIJl.js → decimal-DJjE7Vf3.js} +1 -1
- package/dist/{format-unit-display-CjsVuoHS.js → format-unit-display-CK-PNM0G.js} +33 -33
- package/dist/{import-export.helper-DmouV6nF.js → import-export.helper-CJeCekEB.js} +6 -6
- package/dist/{index-DK93lkR_.js → index-Crgf6sCC.js} +1 -1
- package/dist/{index-D2C87f4k.js → index-D4F6boO1.js} +1 -1
- package/dist/{purchase-order-template-CQcIyT35.js → purchase-order-template-BOLP3UzN.js} +1 -1
- package/dist/{stock-CRKwCBhd.js → stock-DqL6z9wL.js} +1 -1
- package/dist/{supplier-BGeDlnSm.js → supplier-CW3GGX9U.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Dg3hbUaX.js → use-ingredient-select-dialog-CrCo-DHA.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DRCiAYUs.js → use-inventory-binding-dialog-RdX9Q4q9.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +8 -4
- package/package.json +4 -4
- package/dist/ClosingTemplateView-C61_1m3k.js +0 -1970
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Cr30q-Ft.js +0 -3394
- package/dist/closing-template-CNtgIoiQ.js +0 -53
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as q, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as
|
|
2
|
-
import {
|
|
1
|
+
import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as q, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Pe } from "vue";
|
|
2
|
+
import { aa as Re, aD as Ue, aE as Ee, i as Ne, D as _e, j as Z, f as G, aF as Le, aw as Ie, aG as Be, r as L, c as qe, e as U, S as ze, u as je, G as Oe, I as Ge, J as Ke, K as He, L as Q } from "./app-DdrL4md8.js";
|
|
3
3
|
import { useCoreStore as Ce, useI18n as O } from "@feedmepos/mf-common";
|
|
4
|
-
import { useDialogChild as Je, useDialog as
|
|
4
|
+
import { useDialogChild as Je, useDialog as Fe, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Ye } from "@feedmepos/ui-library";
|
|
5
5
|
import { c as se, u as re } from "./googlemap-Dm8ERVai.js";
|
|
6
6
|
import { _ as Ze } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
7
7
|
const X = Re((v, h) => {
|
|
@@ -35,7 +35,7 @@ function Qe() {
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
const ke = D(Qe());
|
|
38
|
-
function
|
|
38
|
+
function xe() {
|
|
39
39
|
return {
|
|
40
40
|
// state
|
|
41
41
|
get warehouses() {
|
|
@@ -187,12 +187,12 @@ const eo = /* @__PURE__ */ j({
|
|
|
187
187
|
const p = i.maps.event.addListener(s, y, _);
|
|
188
188
|
d.push(p);
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const F = D([]);
|
|
191
191
|
function T(s, y, _) {
|
|
192
192
|
w(s, y, _);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
R(null),
|
|
194
|
+
function x(s) {
|
|
195
|
+
R(null), F.value = s.map((y, _) => {
|
|
196
196
|
const p = new i.maps.Marker({
|
|
197
197
|
position: y,
|
|
198
198
|
draggable: !0
|
|
@@ -203,7 +203,7 @@ const eo = /* @__PURE__ */ j({
|
|
|
203
203
|
}), R(l.value);
|
|
204
204
|
}
|
|
205
205
|
function R(s) {
|
|
206
|
-
|
|
206
|
+
F.value.map((y) => we(y).setMap(s));
|
|
207
207
|
}
|
|
208
208
|
const c = D([]);
|
|
209
209
|
function C(s, y, _) {
|
|
@@ -259,8 +259,8 @@ const eo = /* @__PURE__ */ j({
|
|
|
259
259
|
scrollwheel: !0
|
|
260
260
|
}), e(l.value, "click", (s) => n("map-click", M(s)));
|
|
261
261
|
}
|
|
262
|
-
return ee(() => a.markers,
|
|
263
|
-
!r.value || !i || (t(),
|
|
262
|
+
return ee(() => a.markers, x, { deep: !0 }), ee(() => a.polygons, V, { deep: !0 }), te(() => {
|
|
263
|
+
!r.value || !i || (t(), x(a.markers), V(a.polygons));
|
|
264
264
|
}), $e(() => {
|
|
265
265
|
d.forEach((s) => s.remove());
|
|
266
266
|
}), (s, y) => (W(), q("div", {
|
|
@@ -284,7 +284,7 @@ const eo = /* @__PURE__ */ j({
|
|
|
284
284
|
setup(v) {
|
|
285
285
|
const h = v, b = Je(), a = re(), { t: n } = O(), i = Se(
|
|
286
286
|
G(h.coordinate ? h.coordinate : se.jb)
|
|
287
|
-
), r = D(""), l =
|
|
287
|
+
), r = D(""), l = Le(async function() {
|
|
288
288
|
r.value = await a.getFirstMatchingAddress(
|
|
289
289
|
i.lat,
|
|
290
290
|
i.lng
|
|
@@ -297,7 +297,7 @@ const eo = /* @__PURE__ */ j({
|
|
|
297
297
|
i.lat = w.lat, i.lng = w.lng, b.emitData(G(i)), l();
|
|
298
298
|
}
|
|
299
299
|
const M = D();
|
|
300
|
-
return (w,
|
|
300
|
+
return (w, F) => (W(), q("div", oo, [
|
|
301
301
|
g("div", to, [
|
|
302
302
|
g("div", null, [
|
|
303
303
|
g("span", ao, E(u(n)("inventory.formField.coordinate.address")) + ": ", 1),
|
|
@@ -320,11 +320,11 @@ const eo = /* @__PURE__ */ j({
|
|
|
320
320
|
center: i,
|
|
321
321
|
markers: [i],
|
|
322
322
|
onMarkerChange: d,
|
|
323
|
-
onMapClick:
|
|
323
|
+
onMapClick: F[0] || (F[0] = (T) => d({ position: T }))
|
|
324
324
|
}, null, 8, ["center", "markers"])
|
|
325
325
|
]));
|
|
326
326
|
}
|
|
327
|
-
}), co = /* @__PURE__ */
|
|
327
|
+
}), co = /* @__PURE__ */ Ie(io, [["__scopeId", "data-v-272f5e8b"]]);
|
|
328
328
|
function Ae([v, h]) {
|
|
329
329
|
return {
|
|
330
330
|
lat: h,
|
|
@@ -351,12 +351,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
351
351
|
},
|
|
352
352
|
emits: ["update:modelValue"],
|
|
353
353
|
setup(v, { emit: h }) {
|
|
354
|
-
const b = v, a = h, n = re(), i =
|
|
354
|
+
const b = v, a = h, n = re(), i = Fe(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = O();
|
|
355
355
|
function w(c) {
|
|
356
356
|
if (c != null && c[0] && (c != null && c[1]))
|
|
357
357
|
return M("inventory.formField.coordinate.longLat", [c[0].toFixed(3), c[1].toFixed(3)]);
|
|
358
358
|
}
|
|
359
|
-
async function
|
|
359
|
+
async function F(c) {
|
|
360
360
|
var f, A;
|
|
361
361
|
const C = b.modelValue, S = !C && ((f = b.address) != null && f.formatted) ? await n.getFirstMatchingCoordinate(b.address.formatted) : null, m = C ? Ae(C) : S ? Ae(S) : se.jb;
|
|
362
362
|
i.open({
|
|
@@ -378,7 +378,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
378
378
|
}).onPrimary(c);
|
|
379
379
|
}
|
|
380
380
|
const T = (c) => a("update:modelValue", c ? po(c) : null);
|
|
381
|
-
async function
|
|
381
|
+
async function x() {
|
|
382
382
|
if (!b.disabled) {
|
|
383
383
|
if (!n.isGoogleMapReady) {
|
|
384
384
|
r.open({
|
|
@@ -388,7 +388,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
388
388
|
});
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
F(T);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
function R() {
|
|
@@ -409,15 +409,15 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
409
409
|
focused: d.value,
|
|
410
410
|
"helper-text": c.helperText,
|
|
411
411
|
"helper-state": c.helperState,
|
|
412
|
-
onClick: C[0] || (C[0] = (A) =>
|
|
412
|
+
onClick: C[0] || (C[0] = (A) => x())
|
|
413
413
|
}, Te({
|
|
414
|
-
default:
|
|
414
|
+
default: I(({ invalid: A }) => [
|
|
415
415
|
c.modelValue && c.modelValue[0] && c.modelValue[1] ? (W(), q("div", fo, [
|
|
416
416
|
k(S, {
|
|
417
417
|
invalid: A,
|
|
418
418
|
class: "fm-typo-en-body-lg-400"
|
|
419
419
|
}, {
|
|
420
|
-
default:
|
|
420
|
+
default: I(() => [
|
|
421
421
|
Me(E(w(c.modelValue)), 1)
|
|
422
422
|
]),
|
|
423
423
|
_: 2
|
|
@@ -434,7 +434,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
434
434
|
}, [
|
|
435
435
|
c.$slots.label ? {
|
|
436
436
|
name: "label",
|
|
437
|
-
fn:
|
|
437
|
+
fn: I(() => [
|
|
438
438
|
De(c.$slots, "label")
|
|
439
439
|
]),
|
|
440
440
|
key: "0"
|
|
@@ -452,7 +452,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
452
452
|
}), ho = { class: "flex flex-col gap-40" }, bo = { class: "flex flex-col gap-16" }, go = { class: "flex flex-col gap-8" }, wo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "grid grid-cols-2 gap-24" }, _o = { class: "flex flex-col gap-8" }, ko = { class: "fm-typo-en-title-sm-600" }, Ao = {
|
|
453
453
|
key: 0,
|
|
454
454
|
class: "flex flex-col gap-8"
|
|
455
|
-
}, Mo = { class: "fm-typo-en-title-sm-600" }, Co = { class: "flex flex-col gap-8" },
|
|
455
|
+
}, Mo = { class: "fm-typo-en-title-sm-600" }, Co = { class: "flex flex-col gap-8" }, Fo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */ j({
|
|
456
456
|
__name: "WarehouseForm",
|
|
457
457
|
props: {
|
|
458
458
|
modelValue: {},
|
|
@@ -498,7 +498,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
498
498
|
const e = a.modelValue ?? {};
|
|
499
499
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
|
|
500
500
|
}
|
|
501
|
-
}),
|
|
501
|
+
}), F = $({
|
|
502
502
|
get() {
|
|
503
503
|
var o, e, t;
|
|
504
504
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
|
|
@@ -518,7 +518,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
518
518
|
const e = a.modelValue ?? {};
|
|
519
519
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
|
|
520
520
|
}
|
|
521
|
-
}),
|
|
521
|
+
}), x = $({
|
|
522
522
|
get() {
|
|
523
523
|
var o, e, t;
|
|
524
524
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
|
|
@@ -611,12 +611,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
611
611
|
ref: V,
|
|
612
612
|
onValidationSuccess: e[13] || (e[13] = (p) => n("validation-success"))
|
|
613
613
|
}, {
|
|
614
|
-
default:
|
|
614
|
+
default: I(() => [
|
|
615
615
|
g("div", ho, [
|
|
616
616
|
g("div", bo, [
|
|
617
617
|
k(t, {
|
|
618
618
|
disabled: o.disabled,
|
|
619
|
-
rules: [u(
|
|
619
|
+
rules: [u(L)()],
|
|
620
620
|
"label-mark": "required",
|
|
621
621
|
label: u(r)("inventory.warehouse.companyName"),
|
|
622
622
|
modelValue: l.value,
|
|
@@ -624,7 +624,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
624
624
|
}, null, 8, ["disabled", "rules", "label", "modelValue"]),
|
|
625
625
|
k(t, {
|
|
626
626
|
disabled: o.disabled,
|
|
627
|
-
rules: [u(
|
|
627
|
+
rules: [u(L)()],
|
|
628
628
|
"label-mark": "required",
|
|
629
629
|
label: u(r)("inventory.warehouse.registrationNo"),
|
|
630
630
|
modelValue: d.value,
|
|
@@ -636,7 +636,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
636
636
|
g("div", Vo, [
|
|
637
637
|
k(t, {
|
|
638
638
|
disabled: o.disabled,
|
|
639
|
-
rules: [u(
|
|
639
|
+
rules: [u(L)()],
|
|
640
640
|
"label-mark": "required",
|
|
641
641
|
label: u(r)("inventory.warehouse.address.line1"),
|
|
642
642
|
modelValue: M.value,
|
|
@@ -651,15 +651,15 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
651
651
|
}, null, 8, ["disabled", "label", "modelValue"]),
|
|
652
652
|
k(t, {
|
|
653
653
|
disabled: o.disabled,
|
|
654
|
-
rules: [u(
|
|
654
|
+
rules: [u(L)()],
|
|
655
655
|
"label-mark": "required",
|
|
656
656
|
label: u(r)("inventory.warehouse.address.city"),
|
|
657
|
-
modelValue:
|
|
658
|
-
"onUpdate:modelValue": e[4] || (e[4] = (p) =>
|
|
657
|
+
modelValue: F.value,
|
|
658
|
+
"onUpdate:modelValue": e[4] || (e[4] = (p) => F.value = p)
|
|
659
659
|
}, null, 8, ["disabled", "rules", "label", "modelValue"]),
|
|
660
660
|
k(t, {
|
|
661
661
|
disabled: o.disabled,
|
|
662
|
-
rules: [u(
|
|
662
|
+
rules: [u(L)()],
|
|
663
663
|
"label-mark": "required",
|
|
664
664
|
label: u(r)("inventory.warehouse.address.postcode"),
|
|
665
665
|
modelValue: T.value,
|
|
@@ -667,15 +667,15 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
667
667
|
}, null, 8, ["disabled", "rules", "label", "modelValue"]),
|
|
668
668
|
k(t, {
|
|
669
669
|
disabled: o.disabled,
|
|
670
|
-
rules: [u(
|
|
670
|
+
rules: [u(L)()],
|
|
671
671
|
"label-mark": "required",
|
|
672
672
|
label: u(r)("inventory.warehouse.address.state"),
|
|
673
|
-
modelValue:
|
|
674
|
-
"onUpdate:modelValue": e[6] || (e[6] = (p) =>
|
|
673
|
+
modelValue: x.value,
|
|
674
|
+
"onUpdate:modelValue": e[6] || (e[6] = (p) => x.value = p)
|
|
675
675
|
}, null, 8, ["disabled", "rules", "label", "modelValue"]),
|
|
676
676
|
k(t, {
|
|
677
677
|
disabled: o.disabled,
|
|
678
|
-
rules: [u(
|
|
678
|
+
rules: [u(L)()],
|
|
679
679
|
"label-mark": "required",
|
|
680
680
|
label: u(r)("inventory.warehouse.address.country"),
|
|
681
681
|
modelValue: R.value,
|
|
@@ -687,7 +687,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
687
687
|
g("div", ko, E(u(r)("inventory.warehouse.coordinate.title")), 1),
|
|
688
688
|
k(vo, {
|
|
689
689
|
disabled: o.disabled,
|
|
690
|
-
rules: [u(
|
|
690
|
+
rules: [u(L)()],
|
|
691
691
|
"label-mark": "required",
|
|
692
692
|
modelValue: C.value,
|
|
693
693
|
"onUpdate:modelValue": e[8] || (e[8] = (p) => C.value = p)
|
|
@@ -707,11 +707,11 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
707
707
|
}, null, 8, ["disabled", "label", "modelValue"])
|
|
708
708
|
])) : ae("", !0),
|
|
709
709
|
g("div", Co, [
|
|
710
|
-
g("div",
|
|
711
|
-
g("div",
|
|
710
|
+
g("div", Fo, E(u(r)("inventory.warehouse.contact.title")), 1),
|
|
711
|
+
g("div", xo, [
|
|
712
712
|
k(y, {
|
|
713
713
|
disabled: o.disabled,
|
|
714
|
-
rules: [u(
|
|
714
|
+
rules: [u(L)()],
|
|
715
715
|
"label-mark": "required",
|
|
716
716
|
label: u(r)("inventory.warehouse.contact.phoneNumber"),
|
|
717
717
|
modelValue: S.value,
|
|
@@ -750,7 +750,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
750
750
|
},
|
|
751
751
|
emits: ["update:show", "submitted"],
|
|
752
752
|
setup(v, { expose: h, emit: b }) {
|
|
753
|
-
const a = v, n = b, i = D(!1), r = le(), { t: l } = O(), d =
|
|
753
|
+
const a = v, n = b, i = D(!1), r = le(), { t: l } = O(), d = xe(), M = $(() => {
|
|
754
754
|
switch (a.mode) {
|
|
755
755
|
case U.READ:
|
|
756
756
|
return "";
|
|
@@ -770,25 +770,25 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
770
770
|
return l("common.add");
|
|
771
771
|
}
|
|
772
772
|
return "";
|
|
773
|
-
}),
|
|
773
|
+
}), F = D();
|
|
774
774
|
h({
|
|
775
775
|
validateInputs: () => {
|
|
776
776
|
var m, f;
|
|
777
|
-
(f = (m =
|
|
777
|
+
(f = (m = F.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
|
|
778
778
|
},
|
|
779
779
|
resetInputsValidation: () => {
|
|
780
780
|
var m, f;
|
|
781
|
-
(f = (m =
|
|
781
|
+
(f = (m = F.value) == null ? void 0 : m.resetInputsValidation) == null || f.call(m);
|
|
782
782
|
},
|
|
783
783
|
resetInputs: () => {
|
|
784
784
|
var m, f;
|
|
785
|
-
(f = (m =
|
|
785
|
+
(f = (m = F.value) == null ? void 0 : m.resetInputs) == null || f.call(m);
|
|
786
786
|
}
|
|
787
787
|
});
|
|
788
|
-
const T = oe(a, "show"),
|
|
788
|
+
const T = oe(a, "show"), x = oe(a, "warehouse");
|
|
789
789
|
function R() {
|
|
790
790
|
var m, f;
|
|
791
|
-
(f = (m =
|
|
791
|
+
(f = (m = F.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
|
|
792
792
|
}
|
|
793
793
|
function c() {
|
|
794
794
|
switch (a.mode) {
|
|
@@ -805,11 +805,11 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
805
805
|
i.value = !0;
|
|
806
806
|
try {
|
|
807
807
|
await Promise.all([
|
|
808
|
-
d.createWarehouse(
|
|
808
|
+
d.createWarehouse(x.value),
|
|
809
809
|
new Promise((A) => setTimeout(A, 1e3))
|
|
810
810
|
]), r.open({
|
|
811
811
|
title: l("inventory.common.success"),
|
|
812
|
-
message: l("inventory.warehouse.create.success", { name: (f = (m =
|
|
812
|
+
message: l("inventory.warehouse.create.success", { name: (f = (m = x.value) == null ? void 0 : m.profile) == null ? void 0 : f.name }),
|
|
813
813
|
type: "success"
|
|
814
814
|
}), n("update:show", !1), n("submitted");
|
|
815
815
|
} catch (A) {
|
|
@@ -824,7 +824,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
824
824
|
}
|
|
825
825
|
async function S() {
|
|
826
826
|
var m, f;
|
|
827
|
-
if (
|
|
827
|
+
if (x.value === null) {
|
|
828
828
|
r.open({
|
|
829
829
|
title: l("inventory.warehouse.update.error.title"),
|
|
830
830
|
message: l("inventory.warehouse.update.error.emptyWarehouse"),
|
|
@@ -835,11 +835,11 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
835
835
|
i.value = !0;
|
|
836
836
|
try {
|
|
837
837
|
await Promise.all([
|
|
838
|
-
d.updateWarehouse(
|
|
838
|
+
d.updateWarehouse(x.value),
|
|
839
839
|
new Promise((A) => setTimeout(A, 1e3))
|
|
840
840
|
]), r.open({
|
|
841
841
|
title: l("inventory.common.success"),
|
|
842
|
-
message: l("inventory.warehouse.update.success", { name: (f = (m =
|
|
842
|
+
message: l("inventory.warehouse.update.success", { name: (f = (m = x.value) == null ? void 0 : m.profile) == null ? void 0 : f.name }),
|
|
843
843
|
type: "success"
|
|
844
844
|
}), n("update:show", !1), n("submitted");
|
|
845
845
|
} catch (A) {
|
|
@@ -862,22 +862,22 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
862
862
|
"close-button": "",
|
|
863
863
|
"max-width": 500
|
|
864
864
|
}, {
|
|
865
|
-
default:
|
|
865
|
+
default: I(() => {
|
|
866
866
|
var V;
|
|
867
867
|
return [
|
|
868
868
|
(W(), z($o, {
|
|
869
869
|
class: "w-full",
|
|
870
870
|
ref_key: "formRef",
|
|
871
|
-
ref:
|
|
872
|
-
modelValue: u(
|
|
873
|
-
"onUpdate:modelValue": f[0] || (f[0] = (o) => Ve(
|
|
871
|
+
ref: F,
|
|
872
|
+
modelValue: u(x),
|
|
873
|
+
"onUpdate:modelValue": f[0] || (f[0] = (o) => Ve(x) ? x.value = o : null),
|
|
874
874
|
onValidationSuccess: c,
|
|
875
875
|
key: ((V = m.warehouse) == null ? void 0 : V._id) ?? "",
|
|
876
876
|
disabled: i.value
|
|
877
877
|
}, null, 8, ["modelValue", "disabled"]))
|
|
878
878
|
];
|
|
879
879
|
}),
|
|
880
|
-
"side-sheet-footer":
|
|
880
|
+
"side-sheet-footer": I(() => [
|
|
881
881
|
g("div", So, [
|
|
882
882
|
k(A, {
|
|
883
883
|
loading: i.value,
|
|
@@ -896,7 +896,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
896
896
|
}, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, zo = /* @__PURE__ */ j({
|
|
897
897
|
__name: "WarehouseView",
|
|
898
898
|
setup(v) {
|
|
899
|
-
const h =
|
|
899
|
+
const h = xe(), b = je(), a = $(() => h.warehouses), n = Fe(), i = le(), r = D(!1), { t: l } = O();
|
|
900
900
|
te(() => {
|
|
901
901
|
b._currentLocation && S();
|
|
902
902
|
}), ee([() => b._currentLocation], () => {
|
|
@@ -909,7 +909,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
909
909
|
function w(V) {
|
|
910
910
|
d.value.mode = U.UPDATE, d.value.warehouse = V, d.value.show = !0;
|
|
911
911
|
}
|
|
912
|
-
async function
|
|
912
|
+
async function F(V) {
|
|
913
913
|
n.open({
|
|
914
914
|
title: l("inventory.warehouse.delete.confirm"),
|
|
915
915
|
message: l("inventory.warehouse.delete.confirmMessage", { name: V.profile.name }),
|
|
@@ -945,9 +945,9 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
945
945
|
n.close();
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
const { columnDefs:
|
|
948
|
+
const { columnDefs: x, formatRowData: R } = Xe(
|
|
949
949
|
w,
|
|
950
|
-
|
|
950
|
+
F
|
|
951
951
|
);
|
|
952
952
|
function c(V) {
|
|
953
953
|
V === "create" && M();
|
|
@@ -981,7 +981,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
981
981
|
],
|
|
982
982
|
"onClick:action": c
|
|
983
983
|
}, {
|
|
984
|
-
default:
|
|
984
|
+
default: I(() => [
|
|
985
985
|
g("div", {
|
|
986
986
|
class: We([
|
|
987
987
|
"flex flex-col gap-8 max-h-full",
|
|
@@ -998,7 +998,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
998
998
|
}, null, 8, ["search"]),
|
|
999
999
|
(W(), z(e, {
|
|
1000
1000
|
style: Pe(u(B).tableHeight),
|
|
1001
|
-
"column-defs": u(
|
|
1001
|
+
"column-defs": u(x),
|
|
1002
1002
|
"row-data": u(R)(a.value),
|
|
1003
1003
|
"search-value": C.value,
|
|
1004
1004
|
loading: !u(b)._currentLocation || r.value,
|
|
@@ -1006,12 +1006,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
1006
1006
|
key: a.value.length,
|
|
1007
1007
|
"page-size": A.value
|
|
1008
1008
|
}, {
|
|
1009
|
-
"list-row":
|
|
1009
|
+
"list-row": I((t) => [
|
|
1010
1010
|
k(He, {
|
|
1011
1011
|
row: t,
|
|
1012
1012
|
onRowClick: (s) => w(s.original)
|
|
1013
1013
|
}, {
|
|
1014
|
-
default:
|
|
1014
|
+
default: I((s) => {
|
|
1015
1015
|
var y, _, p, P, K, ne, ue, ie, H, de, ce, pe, me, fe, J, ye, ve, he, be, Y, ge;
|
|
1016
1016
|
return [
|
|
1017
1017
|
g("div", Do, [
|
|
@@ -24,4 +24,5 @@ export declare const useAdjustmentTemplateApi: () => {
|
|
|
24
24
|
importTemplates(templates: Array<(FdoAdjustmentTemplate & RevisionIdMeta) | Omit<FdoAdjustmentTemplate, '_id'>>): Promise<any>;
|
|
25
25
|
getReasons(): Promise<FdoAdjustmentTemplateReason>;
|
|
26
26
|
update(reason: FdoAdjustmentTemplateReason): Promise<any>;
|
|
27
|
+
getAuditTrails(templateId: string): Promise<FdoInventorySystemTrail[]>;
|
|
27
28
|
};
|
|
@@ -22,4 +22,5 @@ export declare const useClosingTemplateApi: () => {
|
|
|
22
22
|
updateTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<FdoClosingTemplate>;
|
|
23
23
|
deleteTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<any>;
|
|
24
24
|
importTemplates(templates: Array<(FdoClosingTemplate & RevisionIdMeta) | Omit<FdoClosingTemplate, '_id'>>): Promise<any>;
|
|
25
|
+
getAuditTrails(templateId: string): Promise<FdoInventorySystemTrail[]>;
|
|
25
26
|
};
|