@feedmepos/mf-inventory-portal 1.7.0 → 1.7.1-dev.0
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-mfv976r3.js → App-B_ja37tB.js} +5 -5
- package/dist/ApprovalView-_wG6KeZl.js +249 -0
- package/dist/{BindingsDialog-DnWLIslN.js → BindingsDialog-0IRWCLTc.js} +2 -2
- package/dist/{BindingsPicker-BOPzfVXq.js → BindingsPicker-DCISa6Fx.js} +2 -2
- package/dist/{BindingsTable-Cky7o_NG.js → BindingsTable-B3CmHp97.js} +3 -3
- package/dist/BulkReceiveRequestView-Dmqm65c9.js +2025 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-dRYFLJVj.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D4Nd89xp.js} +1 -1
- package/dist/{ClosingDraftView-BsREbRBA.js → ClosingDraftView-DDWU93p0.js} +21 -21
- package/dist/{ClosingHistoryView-J8XyfB2_.js → ClosingHistoryView-KdmhszIO.js} +7 -7
- package/dist/ClosingTemplateView-CQRujMB9.js +2346 -0
- package/dist/ConnectedBusinessView-Cu2QnRN9.js +533 -0
- package/dist/{DefaultView-BqtI-DBZ.js → DefaultView-QAEDG6pS.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-Bo4KtO5Q.js → DeliveryOrderPrintPreview-B08SSOCX.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-hBB0AHTL.js → EmailDialog.vue_vue_type_script_setup_true_lang-DdzV_fzq.js} +13245 -13063
- package/dist/{FmAdminBadge-DlplQOHb.js → FmAdminBadge-DH_2w13D.js} +8 -8
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BDni_x3F.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CmH3uhTZ.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dzqh8pM9.js +84 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bu-ccw4K.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Df-yCfRe.js} +4 -4
- package/dist/{FmMultiselectDialog-DMB-1gqC.js → FmMultiselectDialog-DpPyNOpJ.js} +1 -1
- package/dist/{FmMultiselectDialog-B1vR5H5H.js → FmMultiselectDialog-QEs0yct_.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BsjlumX9.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D8-IQUtA.js} +121 -119
- package/dist/{ImportView-xLqTJPKm.js → ImportView-8qlgZSTO.js} +8 -8
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DuxQPayd.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CGWRbAF2.js} +1 -1
- package/dist/{IngredientGroupView-DQjBoKhR.js → IngredientGroupView-BI9SlKfz.js} +6 -6
- package/dist/{IngredientsView-Be4k9xvZ.js → IngredientsView-1naUkKAi.js} +17 -17
- package/dist/{IntegrationExplorerView-Dbcybdvj.js → IntegrationExplorerView-C6kyLz3y.js} +5 -5
- package/dist/{IntegrationView-C5t2Rsq1.js → IntegrationView-DrmxLdlk.js} +15 -15
- package/dist/{InventoryBindingForm-B7RefQSJ.js → InventoryBindingForm-CPNAgZkD.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-lYl5CWxn.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-sz_VtHRr.js} +5 -5
- package/dist/{InventoryBindingSummary-BKF-B5Kf.js → InventoryBindingSummary-Cu98L10w.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DhpB51X8.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-g2PDNQx-.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dhf-ROKc.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BZEa61go.js} +1 -1
- package/dist/{ProductionView-BAkzsaXt.js → ProductionView-D8dxypqA.js} +8 -8
- package/dist/{PublishView-u1DSi_3y.js → PublishView-C82UwIoz.js} +4 -4
- package/dist/{PurchaseOrderPrintPreview-spvdjRxW.js → PurchaseOrderPrintPreview-CP40tEma.js} +2 -2
- package/dist/ReceiveRequestView-DDo0Pb0J.js +514 -0
- package/dist/{RecipeView-DB_zPDd6.js → RecipeView-DB1DJQp7.js} +18 -18
- package/dist/{SettingsView-DsFxSs0T.js → SettingsView-DsS62lxW.js} +6 -6
- package/dist/{SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js → SingleColumnLayout.vue_vue_type_script_setup_true_lang-DWsPvPE1.js} +1 -1
- package/dist/{StockView-DEkXxk4b.js → StockView-gcf7RCZz.js} +23 -23
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BLWES2jH.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-nXqFCKic.js} +1 -1
- package/dist/{SupplierView-Di8rBh-_.js → SupplierView-BIANlKLE.js} +13 -13
- package/dist/{SurchargeView-s7i5_7XF.js → SurchargeView-kRzaixM5.js} +7 -7
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-QMUVuthC.js +211 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-aSnsm9Sw.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BceIOuBq.js} +2 -2
- package/dist/TransferDetailsV3.vue_vue_type_script_setup_true_lang-DYAzxoHE.js +5991 -0
- package/dist/{TransferTemplateView-C94eigII.js → TransferTemplateView-Bq68Vh7t.js} +21 -21
- package/dist/{UnitCostHistoryView-DTPzSJrM.js → UnitCostHistoryView-d0oLssyZ.js} +6 -6
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-B3NPv8Eb.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CLOotG6K.js} +4 -4
- package/dist/{UnitView-DdGUw_tx.js → UnitView-BHfm2IE4.js} +8 -8
- package/dist/{WarehouseView-BQxSYVvF.js → WarehouseView-CorSYwm6.js} +6 -6
- package/dist/{WastageTemplateView-Bjc1PUko.js → WastageTemplateView-CtYZwiRW.js} +15 -15
- package/dist/api/connected-business-mapping.d.ts +25 -0
- package/dist/api/purchase-order.d.ts +35 -1
- package/dist/{app-Ci7Aaea6.js → app-37NZKFUI.js} +5557 -5192
- package/dist/app.d.ts +88 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Chy8WrlR.js → closing-template-C0dl45x2.js} +1 -1
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +11 -2
- package/dist/connected-business-mapping-ywgqqyMr.js +37 -0
- package/dist/{date2-Bidui0P3.js → date2-r4KgBCs9.js} +1 -1
- package/dist/{dayjs.min-CFgtzCV7.js → dayjs.min-BKUldDi9.js} +1 -1
- package/dist/{decimal-C9gpKKZI.js → decimal-Cgmw6HIY.js} +2 -2
- package/dist/{defineDeepModel-jLHm8HR1.js → defineDeepModel-DXLwZWst.js} +1 -1
- package/dist/{duplicate-template-D9TiIFbd.js → duplicate-template-DDA4QWPl.js} +1 -1
- package/dist/feature-B4BoCy_k.js +1548 -0
- package/dist/{format-time-from-id-Dw-n4jjX.js → format-time-from-id-Dhjn5QgH.js} +1 -1
- package/dist/{format-unit-display-C8RuVRS1.js → format-unit-display-g95-VuYJ.js} +12 -12
- package/dist/{import-export.helper-CuhpmMlh.js → import-export.helper-DsZFPPqj.js} +6 -6
- package/dist/{index-CsDKvy88.js → index-B9WjF3Ox.js} +1 -1
- package/dist/{index-BvJJtxfs.js → index-C207KsUh.js} +3 -3
- package/dist/{index-BbLw-k2u.js → index-D3Bmmx66.js} +1 -1
- package/dist/{inventory-core-dart.default-l09rPSab.js → inventory-core-dart.default-NpD15h63.js} +7104 -5555
- package/dist/{jszip.min-Q-x0ALLG.js → jszip.min-B52cHzHI.js} +129 -129
- package/dist/{lz-string-BeXPK_xO.js → lz-string-CItFpr5-.js} +1 -1
- package/dist/{netsuite-BTb2NFU5.js → netsuite-R_NkLn5t.js} +2 -2
- package/dist/{number-Zlh6TxmH.js → number-BkC_lelq.js} +3 -3
- package/dist/{predefined-templates-CXh7OWR3.js → predefined-templates-CVT54o4V.js} +1 -1
- package/dist/{purchase-order-template-Dvr65U29.js → purchase-order-template-DvqAncB2.js} +1 -1
- package/dist/{recalculationUtils-BkF7XUdf.js → recalculationUtils-Cak1mo4o.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-FAZ-EkdF.js → rules--cnFg-PI.js} +2 -2
- package/dist/{stock-BEJdUeLP.js → stock-BLYAJxMj.js} +1 -1
- package/dist/{stock-CGowMSCF.js → stock-DvquSog3.js} +3 -3
- package/dist/stores/feature.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-JOAqqBkF.js → supplier-C5X8p_vd.js} +2 -2
- package/dist/{surcharge-gdAEvtj9.js → surcharge-CLkpleoW.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-By1vxOaF.js → uom-rules-CykFo_pB.js} +1 -1
- package/dist/{use-ingredient-select-dialog-B-bFjj3N.js → use-ingredient-select-dialog-DlxWMkAI.js} +2 -2
- package/dist/{use-inventory-binding-dialog-o-pedZ68.js → use-inventory-binding-dialog-DnWDyziu.js} +2 -2
- package/dist/{use-template-enabled-locations-5H3RhSuH.js → use-template-enabled-locations-SRgcWLO4.js} +2 -2
- package/dist/{use-transfer-locations-o51Ss7cr.js → use-transfer-locations-D4f4Ib1r.js} +2 -2
- package/dist/{useHrmPermission-DzihMP-i.js → useHrmPermission-lAc6ZHVZ.js} +1 -1
- package/dist/{useNavigationMenu-B_d4hWSX.js → useNavigationMenu-CeN7TEwe.js} +59 -49
- package/dist/{useSseClient-Cd0it8zJ.js → useSseClient-C6ndlLpA.js} +1 -1
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-search.d.ts +6 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-search.spec.d.ts +1 -0
- package/dist/views/connected-business/ConnectedBusinessMappingPanel.vue.d.ts +25 -0
- package/dist/views/connected-business/ConnectedBusinessView.vue.d.ts +2 -0
- package/dist/views/receive-request/components/CreateTransferChoice.vue.d.ts +27 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsV3.vue.d.ts +18 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +102 -2
- package/dist/views/receive-request/composables/fn.d.ts +2 -1
- package/dist/views/receive-request/composables/fn.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +119 -3
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +642 -13
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +720 -14
- package/dist/views/receive-request/helper/po-version.d.ts +6 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +524 -10
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +102 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +8 -0
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +12 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -0
- package/dist/{vue-i18n-CsIY6eJ6.js → vue-i18n-DDqVG60p.js} +479 -479
- package/dist/{xlsx.util-CuxvUzGN.js → xlsx.util-BzQcPwvM.js} +2 -2
- package/package.json +4 -4
- package/dist/ApprovalView-B3nQokUv.js +0 -242
- package/dist/BulkReceiveRequestView-CyFXAM_t.js +0 -2011
- package/dist/ClosingTemplateView-CkiPhzJ8.js +0 -2270
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BkEFIDXV.js +0 -76
- package/dist/ReceiveRequestView-TfjSKJ7q.js +0 -345
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-18j2ZpX-.js +0 -178
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CpUyhO4Q.js +0 -4660
- package/dist/feature-HqzShic7.js +0 -1136
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, computed as h, createElementBlock as l, openBlock as d, createElementVNode as r, normalizeClass as v, toDisplayString as m, unref as p, ref as V, resolveComponent as $, Fragment as k, createCommentVNode as G, createVNode as E, withCtx as S, renderList as P } from "vue";
|
|
2
2
|
import { useI18n as D, useCoreStore as N } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as O } from "./netsuite-
|
|
3
|
+
import { u as O } from "./netsuite-R_NkLn5t.js";
|
|
4
4
|
function re(e, t = !1) {
|
|
5
5
|
var c;
|
|
6
6
|
return e ? [
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as Hd, computed as E, useModel as ed, resolveComponent as D, createElementBlock as w, openBlock as S, createElementVNode as h, createVNode as C, withCtx as U, toDisplayString as A, unref as p, Fragment as oe, renderList as le, ref as k, createBlock as z, createCommentVNode as W, createTextVNode as wd, isRef as dd, normalizeClass as ae, watch as Td, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
-
import { u as ce } from "./supplier-
|
|
2
|
+
import { u as ce } from "./supplier-C5X8p_vd.js";
|
|
3
3
|
import { D as td, R as ye } from "./row-action.enum-DQ9bJ_uv.js";
|
|
4
4
|
import { c as Yd } from "./component-kqxARxvM.js";
|
|
5
|
-
import { c as we, a as ke, f as rd, h as nd, g as Xd, l as Ad, u as Pe } from "./app-
|
|
5
|
+
import { c as we, a as ke, f as rd, h as nd, g as Xd, l as Ad, u as Pe } from "./app-37NZKFUI.js";
|
|
6
6
|
import { useI18n as ee, useCoreStore as Ce } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as Ve } from "./netsuite-
|
|
7
|
+
import { u as Ve } from "./netsuite-R_NkLn5t.js";
|
|
8
8
|
import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as Zd, useBreakpoints as qd } from "@feedmepos/ui-library";
|
|
9
|
-
import { u as zd, _ as Jd } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { u as zd, _ as Jd } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DWsPvPE1.js";
|
|
10
10
|
import { F as B } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import { R as Z } from "./rules-
|
|
12
|
-
import { a as Qd } from "./FmMultiselectDialog-
|
|
11
|
+
import { R as Z } from "./rules--cnFg-PI.js";
|
|
12
|
+
import { a as Qd } from "./FmMultiselectDialog-QEs0yct_.js";
|
|
13
13
|
import { _ as et } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js";
|
|
14
|
-
import { _ as dt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { u as xe } from "./feature-
|
|
16
|
-
import { u as tt } from "./purchase-order-template-
|
|
17
|
-
import { g as rt } from "./number-
|
|
14
|
+
import { _ as dt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D8-IQUtA.js";
|
|
15
|
+
import { u as xe } from "./feature-B4BoCy_k.js";
|
|
16
|
+
import { u as tt } from "./purchase-order-template-DvqAncB2.js";
|
|
17
|
+
import { g as rt } from "./number-BkC_lelq.js";
|
|
18
18
|
import { _ as nt, F as ve } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
19
|
-
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Df-yCfRe.js";
|
|
20
20
|
import { defineStore as at } from "pinia";
|
|
21
|
-
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-
|
|
22
|
-
import { f as lt } from "./date2-
|
|
21
|
+
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-BzQcPwvM.js";
|
|
22
|
+
import { f as lt } from "./date2-r4KgBCs9.js";
|
|
23
23
|
import { F as st } from "./FmDroppableField-J0tG_U3w.js";
|
|
24
24
|
function ut(e, d) {
|
|
25
25
|
const { t } = ee(), r = Ve();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as pe, ref as v, computed as c, watch as R, onMounted as fe, resolveComponent as p, createElementBlock as ye, openBlock as j, Fragment as ge, createVNode as n, unref as s, withCtx as f, createElementVNode as u, normalizeClass as G, normalizeStyle as he, toDisplayString as E, withDirectives as be, vModelText as _e, createBlock as Se, createCommentVNode as xe, withModifiers as Fe } from "vue";
|
|
2
|
-
import { u as ke, _ as we } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as Ie, u as Ce, q as V, i as Le, w as Ve } from "./app-
|
|
4
|
-
import { u as Ae } from "./surcharge-
|
|
2
|
+
import { u as ke, _ as we } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DWsPvPE1.js";
|
|
3
|
+
import { a as Ie, u as Ce, q as V, i as Le, w as Ve } from "./app-37NZKFUI.js";
|
|
4
|
+
import { u as Ae } from "./surcharge-CLkpleoW.js";
|
|
5
5
|
import { useSnackbar as De, useDialog as Me, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as Te } from "./FmMultiselectDialog-
|
|
6
|
+
import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Df-yCfRe.js";
|
|
7
|
+
import { a as Te } from "./FmMultiselectDialog-QEs0yct_.js";
|
|
8
8
|
import { useI18n as Be } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as ze } from "./supplier-
|
|
10
|
-
import { u as Ee } from "./feature-
|
|
9
|
+
import { u as ze } from "./supplier-C5X8p_vd.js";
|
|
10
|
+
import { u as Ee } from "./feature-B4BoCy_k.js";
|
|
11
11
|
import { D as Ne, P as $e, L as qe } from "./app-C39bYJmq.js";
|
|
12
12
|
import { D as H, R as A } from "./row-action.enum-DQ9bJ_uv.js";
|
|
13
13
|
import { c as Ue } from "./component-kqxARxvM.js";
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { defineComponent as O, ref as m, resolveComponent as p, createBlock as I, openBlock as i, withCtx as u, createElementVNode as L, createVNode as y, h, createElementBlock as v, toDisplayString as g } from "vue";
|
|
2
|
+
import { F as U } from "./FmAdminBadge-DH_2w13D.js";
|
|
3
|
+
import { m as T, u as _ } from "./app-37NZKFUI.js";
|
|
4
|
+
import { useCoreStore as q } from "@feedmepos/mf-common";
|
|
5
|
+
import { useDialog as A, components as V } from "@feedmepos/ui-library";
|
|
6
|
+
import { u as C, a as S } from "./closing-template-C0dl45x2.js";
|
|
7
|
+
const P = T((o, a) => {
|
|
8
|
+
const s = _(), l = q();
|
|
9
|
+
return {
|
|
10
|
+
async readRequests(e, t, r) {
|
|
11
|
+
const n = e ?? s.currentLocationDBName, d = `${o.inventoryBackendUrl}/${n}/purchase-request`;
|
|
12
|
+
return t && r ? await a.get(`${d}?startDate=${t}&endDate=${r}`) : await a.get(d);
|
|
13
|
+
},
|
|
14
|
+
/** Paginated POR list: `{ data, total }`, newest first. */
|
|
15
|
+
async readRequestsPaginated(e) {
|
|
16
|
+
const t = e.dbName ?? s.currentLocationDBName, r = new URLSearchParams({
|
|
17
|
+
page: String(e.page),
|
|
18
|
+
limit: String(e.limit)
|
|
19
|
+
});
|
|
20
|
+
e.start && e.end && (r.set("startDate", e.start), r.set("endDate", e.end));
|
|
21
|
+
const n = `${o.inventoryBackendUrl}/${t}/purchase-request?${r.toString()}`;
|
|
22
|
+
return await a.get(n);
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* POR details from the SOURCE location's own route — the purchase order is
|
|
26
|
+
* resolved server-side (it may live in another business's db for a
|
|
27
|
+
* connected-business transfer).
|
|
28
|
+
*/
|
|
29
|
+
async readRequestDetailsV3(e, t) {
|
|
30
|
+
const r = t ?? s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${r}/v3/purchase-request/${e}/details`;
|
|
31
|
+
return await a.get(n);
|
|
32
|
+
},
|
|
33
|
+
/** v3 POR action (approve/reject/process) via the source-side operate endpoint. */
|
|
34
|
+
async operateRequestV3(e, t, r) {
|
|
35
|
+
const n = r ?? s.currentLocationDBName, d = `${o.inventoryBackendUrl}/${n}/v3/purchase-request/${e}/operate`;
|
|
36
|
+
return await a.put(d, t);
|
|
37
|
+
},
|
|
38
|
+
async readRequestById(e, t) {
|
|
39
|
+
const r = t ?? s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${r}/purchase-request/${e}`;
|
|
40
|
+
return await a.get(n);
|
|
41
|
+
},
|
|
42
|
+
async readRequestByIds(e, t) {
|
|
43
|
+
const r = t ?? s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${r}/purchase-request/find`;
|
|
44
|
+
return await a.post(n, { requestIds: e });
|
|
45
|
+
},
|
|
46
|
+
async getPurchaseOrders({
|
|
47
|
+
start: e,
|
|
48
|
+
end: t,
|
|
49
|
+
dbName: r
|
|
50
|
+
}) {
|
|
51
|
+
const n = r ?? s.currentLocationDBName, d = `${o.inventoryBackendUrl}/${n}/purchase-order`;
|
|
52
|
+
return await a.get(`${d}?start=${e}&end=${t}`);
|
|
53
|
+
},
|
|
54
|
+
async getLatestPurchaseOrderRequest(e) {
|
|
55
|
+
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-request/find-by-purchase-order-id`;
|
|
56
|
+
return await a.get(`${r}/${e}`);
|
|
57
|
+
},
|
|
58
|
+
async getPurchaseOrderById(e) {
|
|
59
|
+
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-order`;
|
|
60
|
+
return await a.get(`${r}/${e}`);
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Use `processPurchaseOrderV2` instead.
|
|
64
|
+
*/
|
|
65
|
+
async processPurchaseOrder(e, t) {
|
|
66
|
+
const r = s.currentLocationDBName, n = t || r, d = `${o.inventoryBackendUrl}/${n}/purchase-order/run-operation`;
|
|
67
|
+
return await a.put(d, e);
|
|
68
|
+
},
|
|
69
|
+
async createPurchaseOrder(e) {
|
|
70
|
+
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-order`;
|
|
71
|
+
return await a.post(r, e);
|
|
72
|
+
},
|
|
73
|
+
async updatePurchaseOrder(e) {
|
|
74
|
+
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-order`;
|
|
75
|
+
return await a.put(r, e);
|
|
76
|
+
},
|
|
77
|
+
async importFromXilnex(e) {
|
|
78
|
+
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-order/import-from-xilnex`;
|
|
79
|
+
return await a.post(r, e);
|
|
80
|
+
},
|
|
81
|
+
async processPurchaseOrderV2(e, t) {
|
|
82
|
+
const r = s.currentLocationDBName, n = t || r, d = `${o.inventoryBackendUrl}/${n}/v2/purchase-order/run-operation`;
|
|
83
|
+
return await a.put(d, e);
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* v3 (event-driven engine) run-operation. Same `{_id,_rev,action,payloads}`
|
|
87
|
+
* contract as v2, but execution goes through the v3 workflow engine — needed
|
|
88
|
+
* for connected-business (version 3) POs so `createRequest` runs on submit.
|
|
89
|
+
*/
|
|
90
|
+
async processPurchaseOrderV3(e, t) {
|
|
91
|
+
const r = s.currentLocationDBName, n = t || r, d = `${o.inventoryBackendUrl}/${n}/v3/purchase-order/run-operation`;
|
|
92
|
+
return await a.put(d, e);
|
|
93
|
+
},
|
|
94
|
+
async getWorkflowConfig() {
|
|
95
|
+
var n;
|
|
96
|
+
const t = `business_${(n = l.currentBusiness.value) == null ? void 0 : n._id}`, r = `${o.inventoryBackendUrl}/${t}/v2/purchase-order/workflow-config`;
|
|
97
|
+
return await a.get(r);
|
|
98
|
+
},
|
|
99
|
+
async updateDeliveryOrder(e) {
|
|
100
|
+
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/delivery-order`;
|
|
101
|
+
return await a.put(r, e);
|
|
102
|
+
},
|
|
103
|
+
async createDeliveryOrder(e) {
|
|
104
|
+
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/delivery-order`;
|
|
105
|
+
return await a.post(r, e);
|
|
106
|
+
},
|
|
107
|
+
async getDeliveryOrderTrails(e, t) {
|
|
108
|
+
const r = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${r}/delivery-order/audit-trails`;
|
|
109
|
+
return await a.post(n, { purchaseOrderId: e, deliveryOrderId: t });
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}), F = { key: 0 }, j = { key: 1 }, R = { key: 2 }, W = /* @__PURE__ */ O({
|
|
113
|
+
__name: "SystemTrailDialog",
|
|
114
|
+
props: {
|
|
115
|
+
purchaseOrderId: {},
|
|
116
|
+
deliveryOrderId: {},
|
|
117
|
+
adjustmentId: {},
|
|
118
|
+
closingId: {}
|
|
119
|
+
},
|
|
120
|
+
setup(o) {
|
|
121
|
+
const a = o, s = P(), l = C(), e = S(), t = m(!1), r = A(), n = m([]), d = m("");
|
|
122
|
+
async function B() {
|
|
123
|
+
a.adjustmentId ? await l.getAuditTrails(a.adjustmentId).then((c) => {
|
|
124
|
+
n.value = c;
|
|
125
|
+
}) : a.closingId ? await e.getAuditTrails(a.closingId).then((c) => {
|
|
126
|
+
n.value = c;
|
|
127
|
+
}) : a.purchaseOrderId && a.deliveryOrderId && await s.getDeliveryOrderTrails(a.purchaseOrderId, a.deliveryOrderId).then((c) => {
|
|
128
|
+
n.value = c;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function w(c) {
|
|
132
|
+
r.open({
|
|
133
|
+
title: "Metadata",
|
|
134
|
+
contentComponent: h(
|
|
135
|
+
"pre",
|
|
136
|
+
{ class: "bg-gray-100 p-4 rounded whitespace-pre-wrap" },
|
|
137
|
+
JSON.stringify(c, null, 2)
|
|
138
|
+
)
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
const N = [
|
|
142
|
+
{
|
|
143
|
+
accessorKey: "createdAt",
|
|
144
|
+
header: () => "Created At"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
accessorKey: "createdBy",
|
|
148
|
+
header: () => "Created By",
|
|
149
|
+
cell: (c) => c.getValue().name
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
accessorKey: "message",
|
|
153
|
+
header: () => "Message"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
accessorKey: "metadata",
|
|
157
|
+
header: () => "Metadata",
|
|
158
|
+
cell: (c) => h(V.FmButton, {
|
|
159
|
+
label: "View",
|
|
160
|
+
onClick: () => w(c.getValue())
|
|
161
|
+
}),
|
|
162
|
+
meta: {
|
|
163
|
+
cellSpanClass: ""
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
];
|
|
167
|
+
return (c, $) => {
|
|
168
|
+
const D = p("FmButton"), b = p("FmTable"), f = p("FmDialog");
|
|
169
|
+
return i(), I(f, {
|
|
170
|
+
modelValue: t.value,
|
|
171
|
+
"onUpdate:modelValue": $[0] || ($[0] = (k) => t.value = k),
|
|
172
|
+
overlay: !0,
|
|
173
|
+
dismissAway: "",
|
|
174
|
+
"max-width": "800px"
|
|
175
|
+
}, {
|
|
176
|
+
"dialog-button": u(() => [
|
|
177
|
+
y(U, null, {
|
|
178
|
+
default: u(() => [
|
|
179
|
+
y(D, {
|
|
180
|
+
variant: "plain",
|
|
181
|
+
label: "Trails",
|
|
182
|
+
size: "md",
|
|
183
|
+
"prepend-icon": "overview",
|
|
184
|
+
onClick: B
|
|
185
|
+
})
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
"dialog-header": u(() => [
|
|
191
|
+
c.adjustmentId ? (i(), v("div", F, 'Adjustment Template "' + g(c.adjustmentId) + '" Trails', 1)) : c.closingId ? (i(), v("div", j, 'Closing Template "' + g(c.closingId) + '" Trails', 1)) : (i(), v("div", R, 'Delivery Order "' + g(c.deliveryOrderId) + '" Trails', 1))
|
|
192
|
+
]),
|
|
193
|
+
default: u(() => [
|
|
194
|
+
L("div", null, [
|
|
195
|
+
y(b, {
|
|
196
|
+
"row-data": n.value,
|
|
197
|
+
"column-defs": N,
|
|
198
|
+
"search-value": d.value,
|
|
199
|
+
"shrink-at": !1
|
|
200
|
+
}, null, 8, ["row-data", "search-value"])
|
|
201
|
+
])
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}, 8, ["modelValue"]);
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
export {
|
|
209
|
+
W as _,
|
|
210
|
+
P as u
|
|
211
|
+
};
|
|
@@ -2,8 +2,8 @@ import { defineComponent as q, ref as f, computed as r, watch as G, h as i, reso
|
|
|
2
2
|
import { useCoreStore as W, useI18n as X } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Y, components as A } from "@feedmepos/ui-library";
|
|
4
4
|
import { K as Z, D as ee } from "./app-C39bYJmq.js";
|
|
5
|
-
import { u as le } from "./app-
|
|
6
|
-
import { F as te } from "./FmAdminBadge-
|
|
5
|
+
import { u as le } from "./app-37NZKFUI.js";
|
|
6
|
+
import { F as te } from "./FmAdminBadge-DH_2w13D.js";
|
|
7
7
|
const ae = {
|
|
8
8
|
class: "flex flex-col gap-24 h-full",
|
|
9
9
|
style: { "max-height": "50vh" }
|