@feedmepos/mf-inventory-portal 1.6.0 → 1.6.1-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-EFQddl2W.js → App-D7SR5dnB.js} +4 -4
- package/dist/{ApprovalView-DQG8Ti9p.js → ApprovalView-Bi7AgvV0.js} +24 -23
- package/dist/{BindingsDialog-D2IwJvme.js → BindingsDialog-BD8B6cZy.js} +2 -2
- package/dist/{BindingsPicker-ZGbgh9Vk.js → BindingsPicker-CRvmtsFb.js} +2 -2
- package/dist/{BindingsTable-Dgs2Od1_.js → BindingsTable-DJ1lLYOb.js} +3 -3
- package/dist/BulkReceiveRequestView-CZHXfukP.js +2000 -0
- package/dist/{ClosingDraftView-DGz2x5Lp.js → ClosingDraftView-DV1KPp2W.js} +27 -28
- package/dist/{ClosingHistoryView-SvbQFffP.js → ClosingHistoryView-C8fzDS5T.js} +5 -5
- package/dist/{ClosingTemplateView-LIyUAZ7a.js → ClosingTemplateView-qPT5Li2w.js} +14 -14
- package/dist/{DefaultView-B96qddHF.js → DefaultView-NF80xSuv.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DWQ6hyoL.js → DeliveryOrderPrintPreview-B12J3W3U.js} +11 -11
- package/dist/{ReceiveRequestView-BP7KFzO6.js → EmailDialog.vue_vue_type_script_setup_true_lang-CoPqmpvz.js} +12571 -12873
- package/dist/FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DxZ_5mfo.js +61 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BfRdyxp5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B_mANlF3.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CxDZP-Qo.js +237 -0
- package/dist/{FmMultiselectDialog-B1O653NS.js → FmMultiselectDialog-Btal-2Li.js} +50 -44
- package/dist/{FmMultiselectDialog-SDMUzTex.js → FmMultiselectDialog-OVoHPzMx.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8u2M7r1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-ClqEZkaP.js} +5 -5
- package/dist/{ImportView-BSlnGvlm.js → ImportView-CKXu4c1J.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DaihxdpF.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C-fgSyVq.js} +1 -1
- package/dist/{IngredientGroupView-Dy1fLXHf.js → IngredientGroupView-pwMYUotb.js} +21 -21
- package/dist/{IngredientsView-Dno8kdrq.js → IngredientsView-BzKhRbX3.js} +17 -17
- package/dist/{IntegrationExplorerView-C_5XKtMn.js → IntegrationExplorerView-BN8bTTW9.js} +352 -352
- package/dist/IntegrationView-DcERomsi.js +5791 -0
- package/dist/{InventoryBindingForm-YQFbS1hV.js → InventoryBindingForm-q_IGvaah.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMXe46hm.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-0ti9a4bq.js} +5 -5
- package/dist/{InventoryBindingSummary-DQEoKMWr.js → InventoryBindingSummary-aMQ0ZWgu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CcJ7YBY5.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DpIGbDcW.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DdTdixxy.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CeMi5AJ0.js} +1 -1
- package/dist/{PublishView-Cv8penOo.js → PublishView-vOeknkUB.js} +61 -56
- package/dist/{PurchaseOrderPrintPreview-BvbaFNpc.js → PurchaseOrderPrintPreview-2dot6xAa.js} +9 -9
- package/dist/ReceiveRequestView-B9k1gWme.js +345 -0
- package/dist/{RecipeView-DU0QKiC9.js → RecipeView-PRj4zn8p.js} +17 -17
- package/dist/{SettingsView-DYNFioZF.js → SettingsView-CzxZ18_g.js} +4 -4
- package/dist/{StockView-CzdVLGZy.js → StockView-o-WD1-0x.js} +28 -27
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DyDTSy_F.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B9bLM6Gi.js} +1 -1
- package/dist/{SupplierView-BxbGPyPv.js → SupplierView-CMww3rSL.js} +12 -12
- package/dist/{SurchargeView-DIxfUVfT.js → SurchargeView-D9KFsMtR.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-g0AfgEFk.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-EXFK8KkU.js} +6 -5
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DsLOwuNG.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-B9xb2r9v.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CxVlssDF.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bl9bVtVE.js} +1406 -1399
- package/dist/{TransferTemplateView-DRqghp1v.js → TransferTemplateView-BTL8deN-.js} +20 -20
- package/dist/{UnitCostHistoryView-BCQDTDOB.js → UnitCostHistoryView-D6n2ujRf.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BikZCEmA.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CNpOAH0D.js} +10 -11
- package/dist/{UnitView-BXoXHqYc.js → UnitView-DNZW6dI4.js} +7 -7
- package/dist/{WarehouseView-DtnB7VJj.js → WarehouseView-gb9pJmNu.js} +5 -5
- package/dist/{WastageTemplateView-SNpTF3AP.js → WastageTemplateView-CGaEJXJv.js} +14 -14
- package/dist/api/purchase-order.d.ts +2 -1
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-DTBAhC9s.js → app-Dsbvoxur.js} +1538 -977
- package/dist/app.d.ts +549 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-DBDqx2IR.js → closing-template-p88yK47D.js} +1 -1
- package/dist/components/FmMultiselectDialog.vue.d.ts +8 -4
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/MultiLocationSelector.vue.d.ts +202 -0
- package/dist/{date2-BD3_Vr8I.js → date2-CtLHtGs5.js} +1 -1
- package/dist/{dayjs.min-CGyhCaEH.js → dayjs.min-B2OqD5Yb.js} +12 -12
- package/dist/{decimal-CnReZARa.js → decimal-Clk9Ewzg.js} +2 -2
- package/dist/{defineDeepModel-BCBQ-V52.js → defineDeepModel-B2OEZDfH.js} +1 -1
- package/dist/{duplicate-template-Dpb2sb-q.js → duplicate-template-B2POVQAS.js} +1 -1
- package/dist/{feature-BACkglr0.js → feature-CLIj8wgr.js} +70 -65
- package/dist/{format-time-from-id-CxJLjrBT.js → format-time-from-id-DdReiNfK.js} +1 -1
- package/dist/{format-unit-display-BUfzwU3m.js → format-unit-display-iz29tCVo.js} +12 -12
- package/dist/{import-export.helper-DttYDeho.js → import-export.helper-DlHAA9zA.js} +6 -6
- package/dist/{index-DGxWBGVv.js → index-B5Ojq711.js} +1 -1
- package/dist/{index-tFtJuoxA.js → index-CswTgtml.js} +3 -3
- package/dist/{index-BY8NVCx7.js → index-Dkl97ykE.js} +1 -1
- package/dist/{inventory-core-dart.default-DIKTKc_1.js → inventory-core-dart.default-FvRrnQri.js} +355 -328
- package/dist/jszip.min-dfImtC94.js +2322 -0
- package/dist/{lz-string-CwPU-SlY.js → lz-string-D1kxEFLt.js} +1 -1
- package/dist/{netsuite-B9XrL1RC.js → netsuite-C_Gph48P.js} +1570 -1509
- package/dist/{number-DKjrPhev.js → number-CTKxLav6.js} +3 -3
- package/dist/{predefined-templates-CQvQIvR-.js → predefined-templates-B2sDdw2Z.js} +1 -1
- package/dist/{purchase-order-template-NA3Qn9lf.js → purchase-order-template-DVDMAhJa.js} +1 -1
- package/dist/{recalculationUtils-Ll9Jy0C-.js → recalculationUtils-BNTXhTSX.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-DtBEn-Rn.js → rules-CRnEoheI.js} +2 -2
- package/dist/{stock-PIkXqbIP.js → stock-CeogHsSl.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/supplier-DmbVK4Tn.js +83 -0
- package/dist/{surcharge-C8PXRjfJ.js → surcharge-Bm3TRth-.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DddX9wN4.js → uom-rules-BmtdGlz9.js} +1 -1
- package/dist/{use-ingredient-select-dialog-DWQxhfQD.js → use-ingredient-select-dialog-Bm9296fn.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BWSMrzp1.js → use-inventory-binding-dialog-HYJiNm8y.js} +2 -2
- package/dist/{use-template-enabled-locations-3DN8aZBs.js → use-template-enabled-locations-DSEcyYzM.js} +2 -2
- package/dist/{use-transfer-locations-DnybeRXF.js → use-transfer-locations-vpiv_TeO.js} +8 -8
- package/dist/{useHrmPermission-ymQe-N7i.js → useHrmPermission-DAncjlGt.js} +1 -1
- package/dist/{useNavigationMenu-D88-0QxA.js → useNavigationMenu-BG_AH0Xf.js} +43 -38
- package/dist/{useSseClient-CWNMcLEX.js → useSseClient-CuLS50U2.js} +3 -3
- package/dist/views/integration/components/binding-import/BindingImportPreview.vue.d.ts +22 -0
- package/dist/views/integration/components/binding-import/ImportBindings.vue.d.ts +444 -0
- package/dist/views/integration/helper/binding-import/configs/codemax.d.ts +3 -0
- package/dist/views/integration/helper/binding-import/configs/codemax.spec.d.ts +1 -0
- package/dist/views/integration/helper/binding-import/configs/food-market-hub.d.ts +3 -0
- package/dist/views/integration/helper/binding-import/configs/food-market-hub.spec.d.ts +1 -0
- package/dist/views/integration/helper/binding-import/core.d.ts +43 -0
- package/dist/views/integration/helper/binding-import/types.d.ts +100 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +194 -0
- package/dist/views/receive-request-bulk/BulkReceiveRequestView.vue.d.ts +3 -0
- package/dist/views/receive-request-bulk/components/CreateTransferWizard.vue.d.ts +25 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +4138 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +771 -0
- package/dist/{vue-i18n-D7c0eqQP.js → vue-i18n-Tl34av_i.js} +398 -398
- package/dist/{xlsx-DXHnJflt.js → xlsx.util-CJaAO-II.js} +2594 -2497
- package/package.json +5 -4
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang--A4q92Mt.js +0 -293
- package/dist/IntegrationView-D2_2A1ve.js +0 -5100
- package/dist/supplier-B5LWMrcL.js +0 -78
- package/dist/xlsx.util-PhY8wVQG.js +0 -101
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as oe, computed as x, reactive as te, resolveComponent as B, openBlock as d, createElementBlock as c, createVNode as u, withCtx as I, createElementVNode as n, toDisplayString as p, unref as i, createBlock as w, createCommentVNode as v, Fragment as U, renderList as G, nextTick as le } from "vue";
|
|
2
|
-
import { a as ie, t as se, v as de, F as re } from "./app-
|
|
3
|
-
import { a as h, c as ae } from "./number-
|
|
4
|
-
import { u as ue } from "./use-inventory-binding-dialog-
|
|
5
|
-
import { b as $, c as A } from "./rules-
|
|
6
|
-
import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a as ie, t as se, v as de, F as re } from "./app-Dsbvoxur.js";
|
|
3
|
+
import { a as h, c as ae } from "./number-CTKxLav6.js";
|
|
4
|
+
import { u as ue } from "./use-inventory-binding-dialog-HYJiNm8y.js";
|
|
5
|
+
import { b as $, c as A } from "./rules-CRnEoheI.js";
|
|
6
|
+
import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-ClqEZkaP.js";
|
|
7
7
|
import { useI18n as ye } from "@feedmepos/mf-common";
|
|
8
8
|
const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-16" }, be = { class: "flex items-center" }, _e = { class: "flex-1 fm-typo-en-title-sm-600" }, xe = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, he = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ve = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, ke = {
|
|
9
9
|
class: "flex items-center",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-Dsbvoxur.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import { c as s } from "./number-
|
|
2
|
+
import { c as s } from "./number-CTKxLav6.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as F, u as f } from "./app-
|
|
1
|
+
import { m as F, u as f } from "./app-Dsbvoxur.js";
|
|
2
2
|
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as _, defineComponent as h, resolveComponent as l, openBlock as y, createElementBlock as g, renderSlot as k, createVNode as p, withCtx as S } from "vue";
|
|
4
4
|
const m = F((e, t) => {
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { defineComponent as D, ref as A, computed as
|
|
2
|
-
import { u as E, a as K, x as j } from "./app-
|
|
1
|
+
import { defineComponent as D, ref as A, computed as s, watch as H, resolveComponent as c, openBlock as S, createBlock as x, unref as l, createSlots as Y, withCtx as h, createElementVNode as N, normalizeClass as U, createVNode as m, normalizeStyle as $, Teleport as q, h as p } from "vue";
|
|
2
|
+
import { u as E, a as K, x as j } from "./app-Dsbvoxur.js";
|
|
3
3
|
import { u as G, _ as J } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
|
|
4
4
|
import { useBreakpoints as O, useDialog as Q, useSnackbar as R, components as I } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as X } from "./vue-i18n-
|
|
6
|
-
import { a as
|
|
7
|
-
const
|
|
5
|
+
import { u as X } from "./vue-i18n-Tl34av_i.js";
|
|
6
|
+
import { a as k } from "./date2-CtLHtGs5.js";
|
|
7
|
+
const se = /* @__PURE__ */ D({
|
|
8
8
|
__name: "PublishView",
|
|
9
9
|
setup(Z) {
|
|
10
|
-
const { t } = X(), { breakpoints: f } = O(), n = E(), g = K(), w = j(),
|
|
10
|
+
const { t: e } = X(), { breakpoints: f } = O(), n = E(), g = K(), w = j(), i = A(!1), r = s(() => g.state.inventory.updatedAt ? g.state.inventory.updatedAt : null), C = G(), _ = Q(), F = R(), M = s(() => n.locationsWithInventory), d = s(() => f.value.xs || f.value.sm), L = s(() => d.value ? 10 : 20);
|
|
11
11
|
H(
|
|
12
12
|
() => n._locations,
|
|
13
13
|
async () => {
|
|
14
|
-
var
|
|
15
|
-
|
|
14
|
+
var t;
|
|
15
|
+
i.value = !0, (!n._locationWithInventory || ((t = n._locationWithInventory) == null ? void 0 : t.length) === 0) && await n.readLocationsWithInventory(), i.value = !1;
|
|
16
16
|
},
|
|
17
17
|
{ immediate: !0 }
|
|
18
18
|
// Optional: triggers the watcher immediately on mount
|
|
19
19
|
);
|
|
20
|
-
const P =
|
|
20
|
+
const P = s(() => [
|
|
21
21
|
{
|
|
22
|
-
label:
|
|
22
|
+
label: e("inventory.common.refresh"),
|
|
23
23
|
value: "refresh",
|
|
24
24
|
isPrimary: !1
|
|
25
25
|
},
|
|
26
|
-
{ label:
|
|
26
|
+
{ label: e("inventory.publish.actions.publishAll"), value: "publish", isPrimary: !0 }
|
|
27
27
|
]);
|
|
28
|
-
async function V(
|
|
29
|
-
switch (
|
|
28
|
+
async function V(t) {
|
|
29
|
+
switch (t) {
|
|
30
30
|
case "publish":
|
|
31
31
|
_.open({
|
|
32
|
-
title:
|
|
33
|
-
message: "
|
|
34
|
-
primaryActions: { text:
|
|
35
|
-
secondaryActions: { text: "
|
|
32
|
+
title: e("inventory.publish.confirm.title"),
|
|
33
|
+
message: e("inventory.publish.confirm.publishAll"),
|
|
34
|
+
primaryActions: { text: e("inventory.publish.confirm.confirm"), close: !0 },
|
|
35
|
+
secondaryActions: { text: e("inventory.common.cancel"), close: !0 }
|
|
36
36
|
}).onPrimary(async () => {
|
|
37
37
|
await w.publishAllInventory(), await n.readLocationsWithInventory();
|
|
38
38
|
});
|
|
39
39
|
break;
|
|
40
40
|
case "refresh":
|
|
41
|
-
|
|
41
|
+
i.value = !0, await n.readLocationsWithInventory(), i.value = !1;
|
|
42
42
|
break;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const v = A(!1), B = [
|
|
46
46
|
{
|
|
47
47
|
value: "publish",
|
|
48
|
-
label:
|
|
48
|
+
label: e("inventory.publish.actions.publishAll")
|
|
49
49
|
}
|
|
50
50
|
];
|
|
51
|
-
function W(
|
|
52
|
-
switch (
|
|
51
|
+
function W(t) {
|
|
52
|
+
switch (v.value = !1, t) {
|
|
53
53
|
case "publish":
|
|
54
54
|
console.log("publish all");
|
|
55
55
|
}
|
|
@@ -57,39 +57,39 @@ const ie = /* @__PURE__ */ D({
|
|
|
57
57
|
const z = [
|
|
58
58
|
{
|
|
59
59
|
id: "type",
|
|
60
|
-
header: () =>
|
|
60
|
+
header: () => e("inventory.publish.columns.type"),
|
|
61
61
|
enableSorting: !0,
|
|
62
|
-
cell(
|
|
62
|
+
cell(t) {
|
|
63
63
|
return p(I.FmChip, {
|
|
64
64
|
color: "primary",
|
|
65
|
-
label:
|
|
65
|
+
label: t.row.original.type
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
accessorKey: "name",
|
|
71
|
-
header: () =>
|
|
71
|
+
header: () => e("inventory.publish.columns.location"),
|
|
72
72
|
enableSorting: !0,
|
|
73
73
|
size: 300
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
id: "version",
|
|
77
|
-
header: () =>
|
|
77
|
+
header: () => e("inventory.publish.columns.version"),
|
|
78
78
|
enableSorting: !0,
|
|
79
|
-
cell(
|
|
79
|
+
cell(t) {
|
|
80
80
|
var o, a;
|
|
81
|
-
return (o =
|
|
81
|
+
return (o = t.row.original.inventory) != null && o.updatedAt ? k((a = t.row.original.inventory) == null ? void 0 : a.updatedAt) : "";
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
id: "status",
|
|
86
|
-
header: () =>
|
|
86
|
+
header: () => e("inventory.publish.columns.status"),
|
|
87
87
|
enableSorting: !0,
|
|
88
|
-
cell(
|
|
89
|
-
var
|
|
90
|
-
if (!
|
|
88
|
+
cell(t) {
|
|
89
|
+
var u;
|
|
90
|
+
if (!r.value)
|
|
91
91
|
return "";
|
|
92
|
-
const o = ((
|
|
92
|
+
const o = ((u = t.row.original.inventory) == null ? void 0 : u.updatedAt) == r.value, a = t.row.original.dbName, y = t.row.original.type === "warehouse";
|
|
93
93
|
return p(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
@@ -104,20 +104,25 @@ const ie = /* @__PURE__ */ D({
|
|
|
104
104
|
o ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
|
|
105
105
|
]
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
e(o ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
108
108
|
),
|
|
109
|
-
!o && !
|
|
109
|
+
!o && !y ? p(I.FmButton, {
|
|
110
110
|
class: "tertiary",
|
|
111
111
|
variant: "secondary",
|
|
112
112
|
icon: "sync",
|
|
113
113
|
onClick: () => {
|
|
114
114
|
_.open({
|
|
115
|
-
title:
|
|
116
|
-
message:
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
title: e("inventory.publish.confirm.title"),
|
|
116
|
+
message: e("inventory.publish.confirm.publishLocation", {
|
|
117
|
+
name: t.row.original.name
|
|
118
|
+
}),
|
|
119
|
+
primaryActions: { text: e("inventory.publish.confirm.confirm"), close: !0 },
|
|
120
|
+
secondaryActions: { text: e("inventory.common.cancel"), close: !0 }
|
|
119
121
|
}).onPrimary(async () => {
|
|
120
|
-
await w.publishInventory(a.split("_")[1]), await n.readLocations(), F.open({
|
|
122
|
+
await w.publishInventory(a.split("_")[1]), await n.readLocations(), F.open({
|
|
123
|
+
message: e("inventory.publish.confirm.requestSubmitted"),
|
|
124
|
+
type: "success"
|
|
125
|
+
});
|
|
121
126
|
});
|
|
122
127
|
}
|
|
123
128
|
}) : null
|
|
@@ -144,16 +149,16 @@ const ie = /* @__PURE__ */ D({
|
|
|
144
149
|
// }
|
|
145
150
|
// }
|
|
146
151
|
];
|
|
147
|
-
return (
|
|
148
|
-
const a =
|
|
152
|
+
return (t, o) => {
|
|
153
|
+
const a = c("FmChip"), y = c("FmTable"), u = c("FmCollapsibleTabs"), T = c("FmBottomSheet");
|
|
149
154
|
return S(), x(J, {
|
|
150
|
-
title:
|
|
155
|
+
title: l(e)("inventory.publish.title"),
|
|
151
156
|
actions: P.value,
|
|
152
157
|
"onClick:action": V
|
|
153
158
|
}, Y({
|
|
154
159
|
default: h(() => [
|
|
155
160
|
N("div", {
|
|
156
|
-
class:
|
|
161
|
+
class: U([
|
|
157
162
|
"flex flex-col gap-8 max-h-full",
|
|
158
163
|
{
|
|
159
164
|
"p-0": d.value,
|
|
@@ -161,23 +166,23 @@ const ie = /* @__PURE__ */ D({
|
|
|
161
166
|
}
|
|
162
167
|
])
|
|
163
168
|
}, [
|
|
164
|
-
m(
|
|
165
|
-
style:
|
|
169
|
+
m(y, {
|
|
170
|
+
style: $(l(C).tableHeight),
|
|
166
171
|
"column-defs": z,
|
|
167
172
|
"row-data": M.value,
|
|
168
|
-
loading: !
|
|
169
|
-
"loading-text": "
|
|
173
|
+
loading: !l(n)._currentLocation || i.value,
|
|
174
|
+
"loading-text": l(e)("inventory.common.loading"),
|
|
170
175
|
"page-size": L.value
|
|
171
|
-
}, null, 8, ["style", "row-data", "loading", "page-size"])
|
|
176
|
+
}, null, 8, ["style", "row-data", "loading", "loading-text", "page-size"])
|
|
172
177
|
], 2),
|
|
173
178
|
(S(), x(q, { to: "body" }, [
|
|
174
179
|
m(T, {
|
|
175
180
|
"dismiss-away": "",
|
|
176
|
-
modelValue:
|
|
177
|
-
"onUpdate:modelValue": o[1] || (o[1] = (b) =>
|
|
181
|
+
modelValue: v.value,
|
|
182
|
+
"onUpdate:modelValue": o[1] || (o[1] = (b) => v.value = b)
|
|
178
183
|
}, {
|
|
179
184
|
default: h(() => [
|
|
180
|
-
m(
|
|
185
|
+
m(u, {
|
|
181
186
|
class: "pb-8",
|
|
182
187
|
items: B,
|
|
183
188
|
"onUpdate:modelValue": o[0] || (o[0] = (b) => W(b))
|
|
@@ -189,12 +194,12 @@ const ie = /* @__PURE__ */ D({
|
|
|
189
194
|
]),
|
|
190
195
|
_: 2
|
|
191
196
|
}, [
|
|
192
|
-
|
|
197
|
+
r.value ? {
|
|
193
198
|
name: "headerInfo",
|
|
194
199
|
fn: h(() => [
|
|
195
200
|
m(a, {
|
|
196
201
|
variant: "info",
|
|
197
|
-
label: `Latest: ${
|
|
202
|
+
label: `Latest: ${l(k)(r.value)}`
|
|
198
203
|
}, null, 8, ["label"])
|
|
199
204
|
]),
|
|
200
205
|
key: "0"
|
|
@@ -204,5 +209,5 @@ const ie = /* @__PURE__ */ D({
|
|
|
204
209
|
}
|
|
205
210
|
});
|
|
206
211
|
export {
|
|
207
|
-
|
|
212
|
+
se as default
|
|
208
213
|
};
|
package/dist/{PurchaseOrderPrintPreview-BvbaFNpc.js → PurchaseOrderPrintPreview-2dot6xAa.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as b, computed as x, ref as f, onMounted as g, openBlock as n, createElementBlock as o, createElementVNode as t, toDisplayString as e, normalizeStyle as w, createTextVNode as u, Fragment as i, createCommentVNode as v, renderList as p } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
import { L as C } from "./lz-string-
|
|
3
|
+
import { V as y } from "./app-Dsbvoxur.js";
|
|
4
|
+
import { L as C } from "./lz-string-D1kxEFLt.js";
|
|
5
5
|
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const R = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "title" }, P = { class: "text-right" }, D = { class: "header" }, O = { class: "sub-header" }, S = { class: "caption" }, F = { class: "address" }, T = { class: "text-right" }, L = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "sub-header"
|
|
9
|
-
}, U = { class: "sub-header" },
|
|
9
|
+
}, U = { class: "sub-header" }, V = { class: "address" }, q = { class: "purchase-body" }, I = { class: "text-left" }, B = { class: "text-left" }, H = { class: "text-right" }, M = { class: "text-right" }, z = { class: "text-right" }, J = { style: { "padding-top": "30px" } }, Q = { valign: "bottom" }, Z = { class: "header" }, j = { class: "caption" }, G = {
|
|
10
10
|
class: "text-left",
|
|
11
11
|
style: { width: "20%" }
|
|
12
12
|
}, K = { class: "text-left" }, W = {
|
|
@@ -73,7 +73,7 @@ const R = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "tit
|
|
|
73
73
|
l[9] || (l[9] = t("div", { class: "header" }, "Delivery To", -1)),
|
|
74
74
|
s.value.buyer.legalName ? (n(), o("div", L, e(s.value.buyer.legalName), 1)) : v("", !0),
|
|
75
75
|
t("div", U, e(s.value.buyer.name), 1),
|
|
76
|
-
t("div",
|
|
76
|
+
t("div", V, [
|
|
77
77
|
u(e(s.value.buyer.line1), 1),
|
|
78
78
|
l[6] || (l[6] = t("br", null, null, -1)),
|
|
79
79
|
s.value.buyer.line2 ? (n(), o(i, { key: 0 }, [
|
|
@@ -88,7 +88,7 @@ const R = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "tit
|
|
|
88
88
|
])
|
|
89
89
|
])
|
|
90
90
|
]),
|
|
91
|
-
t("div",
|
|
91
|
+
t("div", q, [
|
|
92
92
|
t("table", null, [
|
|
93
93
|
l[10] || (l[10] = t("thead", { class: "item-header" }, [
|
|
94
94
|
t("tr", null, [
|
|
@@ -113,18 +113,18 @@ const R = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "tit
|
|
|
113
113
|
], -1)),
|
|
114
114
|
t("tbody", null, [
|
|
115
115
|
(n(!0), o(i, null, p(s.value.items, (r, a) => (n(), o("tr", { key: a }, [
|
|
116
|
-
t("td",
|
|
116
|
+
t("td", I, e(r.code), 1),
|
|
117
117
|
t("td", B, e(r.description), 1),
|
|
118
118
|
t("td", H, e(r.quantity), 1),
|
|
119
119
|
t("td", M, e(r.unit), 1),
|
|
120
|
-
t("td",
|
|
120
|
+
t("td", z, e(r.cost ? r.cost : "N/A"), 1)
|
|
121
121
|
]))), 128))
|
|
122
122
|
])
|
|
123
123
|
])
|
|
124
124
|
]),
|
|
125
125
|
l[14] || (l[14] = t("hr", null, null, -1)),
|
|
126
126
|
t("div", null, "Remark: " + e(s.value.remark), 1),
|
|
127
|
-
t("div",
|
|
127
|
+
t("div", J, [
|
|
128
128
|
l[11] || (l[11] = t("hr", null, null, -1)),
|
|
129
129
|
l[12] || (l[12] = u(" Delivery History: ")),
|
|
130
130
|
(n(!0), o(i, null, p(s.value.deliveryOrders, (r, a) => (n(), o("div", {
|
|
@@ -132,7 +132,7 @@ const R = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "tit
|
|
|
132
132
|
style: { padding: "10px 30px" }
|
|
133
133
|
}, [
|
|
134
134
|
t("table", null, [
|
|
135
|
-
t("tr",
|
|
135
|
+
t("tr", Q, [
|
|
136
136
|
t("td", null, [
|
|
137
137
|
t("div", Z, "Ref: " + e(r.ref), 1),
|
|
138
138
|
t("div", j, e(r.createdAt), 1),
|