@feedmepos/mf-inventory-portal 1.8.1 → 1.9.0-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-BPhAFsnf.js → App-OAKZ4Qdf.js} +9 -9
- package/dist/{ApprovalView-DuJIX7ux.js → ApprovalView-DN0rWMUh.js} +9 -9
- package/dist/{BindingsDialog-BiNopu6T.js → BindingsDialog-BWpIeq6j.js} +2 -2
- package/dist/{BindingsPicker-C2GUK3np.js → BindingsPicker-DRROpR8i.js} +3 -3
- package/dist/{BindingsTable-DlPl5o1h.js → BindingsTable-BFEoUCIT.js} +10 -10
- package/dist/{BulkReceiveRequestPage-YtqUSPUN.js → BulkReceiveRequestPage-wnXszulg.js} +217 -217
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CAKGP0N3.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BtEblqcM.js} +1 -1
- package/dist/{ClosingDraftView-C0XEpqat.js → ClosingDraftView-BRNRWXnj.js} +19 -19
- package/dist/{ClosingHistoryView-C2Bl2vnF.js → ClosingHistoryView-DWPINMVP.js} +7 -7
- package/dist/{ClosingTemplateView-DAXyH1l9.js → ClosingTemplateView-gqjNm3Wi.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-sP8-Pw8r.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-cxhbnvht.js} +1 -1
- package/dist/{DefaultView-QUjOTT9z.js → DefaultView-CTQ0-HzQ.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CNO7dng4.js → DeliveryOrderPrintPreview-gReWM4vq.js} +9 -9
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-MiLvwxSQ.js → EmailDialog.vue_vue_type_script_setup_true_lang-IYcE8OSG.js} +11723 -11601
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Bo7xjTer.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CGkF-JhJ.js} +1 -1
- package/dist/{FeatureCapabilityGate-CQrRBMcC.js → FeatureCapabilityGate-Ce4_ozRL.js} +2 -2
- package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-CIKrUrln.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-DViz4hgB.js} +1 -1
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DfCQ8SNd.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B6f-p8K7.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BTeJz4Mm.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C-6cGWEV.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DiwH0vnm.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BALpSufj.js} +2 -2
- package/dist/{FmMultiselectDialog-Dne8GSe8.js → FmMultiselectDialog-B4Diosc4.js} +2 -2
- package/dist/{FmMultiselectDialog-BZvKKnBB.js → FmMultiselectDialog-CJLfLql2.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D1-MLyJi.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DuNzft4K.js} +5 -5
- package/dist/{ImportView-Dr-2cv9N.js → ImportView-DnYVbQ6I.js} +7 -7
- package/dist/{IngredientsView-BnaNrWb7.js → IngredientsView-COUJUWAb.js} +68 -68
- package/dist/{IntegrationExplorerView-Bjflxeha.js → IntegrationExplorerView-CgE2WN-x.js} +6 -6
- package/dist/{IntegrationPlatformView-fO7R9fGT.js → IntegrationPlatformView-BtTv4P3n.js} +2 -2
- package/dist/{IntegrationView-CxpmB0o2.js → IntegrationView-D_YkXYOW.js} +3049 -3032
- package/dist/{InventoryBindingForm-DbgvnZ9I.js → InventoryBindingForm-B4HvjUs9.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-3stkPlAW.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CjVc2mCE.js} +4 -4
- package/dist/{InventoryBindingSummary-BrIFW5dO.js → InventoryBindingSummary-CCFW8rw_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BAVjiZbm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-PJMjcN03.js} +2 -2
- package/dist/{ProductionRunDetailPage-DhImFq9B.js → ProductionRunDetailPage-ChNKrpyj.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CCUBGX4K.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-536rtKru.js} +8 -8
- package/dist/{ProductionRunPage-D9SaErg3.js → ProductionRunPage-FIUKUyDB.js} +4 -4
- package/dist/{PublishView-CmqorDCm.js → PublishView-JDX28AHk.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CvplcGNv.js → PurchaseOrderPrintPreview-C8-zlH52.js} +13 -13
- package/dist/ReceiveRequestView-DIuftfMU.js +729 -0
- package/dist/{RecipeView-CgJcpA_f.js → RecipeView-BKYAdx6j.js} +16 -16
- package/dist/{SettingsView-I1XEa1NJ.js → SettingsView-CZR-ELPO.js} +7 -7
- package/dist/{StockView-C2tK0oPv.js → StockView-C-9o5zUV.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DSz37GY_.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Db4DrwQJ.js} +1 -1
- package/dist/{SupplierView-C69gOB_i.js → SupplierView-CHX-eb1W.js} +13 -13
- package/dist/{SurchargeView-DfDtR1jP.js → SurchargeView-D1y5BUvB.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CWD44FiP.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DU2wYI2T.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-5RLeEfkg.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DKTWIz-E.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eSgt3P6r.js +4961 -0
- package/dist/{TransferTemplateView-Dc892CSr.js → TransferTemplateView-Bq7Euggq.js} +19 -19
- package/dist/{UnitCostHistoryView-DkuDLBSq.js → UnitCostHistoryView-CLpnjeEP.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-3Iyv5v10.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CiWUAHMw.js} +4 -4
- package/dist/{UnitView-CakqjGDe.js → UnitView-RxPdbO_C.js} +7 -7
- package/dist/{WarehouseView-AUPuNwRA.js → WarehouseView-Ba_77-lL.js} +8 -8
- package/dist/{WastageTemplateView-1kxcX31h.js → WastageTemplateView-DRB3J1CD.js} +15 -15
- package/dist/{app-tiHt7P8o.js → app-B2FciWDu.js} +1191 -1208
- package/dist/app.js +1 -1
- package/dist/{bulk-edit-simulation.helper-D490leZh.js → bulk-edit-simulation.helper-gZPNWgS7.js} +2 -2
- package/dist/{closing-template-CAahWrPo.js → closing-template-L7d2nmhr.js} +1 -1
- package/dist/{date2-CKKZ3b1E.js → date2--N7dpGRR.js} +1 -1
- package/dist/{dayjs.min-CXmScEL-.js → dayjs.min-CFhuhXoi.js} +1 -1
- package/dist/{decimal-CE8yRxZg.js → decimal-gywux_Ld.js} +2 -2
- package/dist/defineDeepModel-B2EkoePs.js +19 -0
- package/dist/{duplicate-template-DGrH04lc.js → duplicate-template-t-iu60N3.js} +1 -1
- package/dist/{feature-BuUIX2LY.js → feature-CvQ6eKvB.js} +51 -46
- package/dist/{format-time-from-id-BQOfGm26.js → format-time-from-id-BVk3iOfV.js} +1 -1
- package/dist/{format-unit-display-BuBfy3bb.js → format-unit-display-CLmFpKSI.js} +13 -12
- package/dist/{id-to-date-B_aPAdeF.js → id-to-date-DKmIZp6I.js} +1 -1
- package/dist/{import-export.helper-DPqodvrw.js → import-export.helper-qShUWqck.js} +5 -5
- package/dist/{index-EgLlcZ4g.js → index-CJ1pZPwZ.js} +3 -3
- package/dist/{index-yTHfPUVq.js → index-CoGFfqOs.js} +1 -1
- package/dist/{index-CBkSXbQw.js → index-CrUvC9l4.js} +1 -1
- package/dist/{lz-string-Dgq0u7oK.js → lz-string-mHxrGSbY.js} +1 -1
- package/dist/{netsuite-BgB1tjJx.js → netsuite-BDcapEOO.js} +2 -2
- package/dist/{netsuite-explorer-BMtIwGyi.js → netsuite-explorer-FeiogpVF.js} +1 -1
- package/dist/{predefined-templates-BiuP4m7R.js → predefined-templates-CVAkYLi5.js} +1 -1
- package/dist/{purchase-order-template-D5Z0bPLL.js → purchase-order-template-CrRp6r28.js} +1 -1
- package/dist/{recalculationUtils-BitV6W_8.js → recalculationUtils-BuhlMBRB.js} +1 -1
- package/dist/{row-action.enum-CTNl1V0l.js → row-action.enum-b--87Y19.js} +1 -1
- package/dist/{rules-BpG29H9Z.js → rules-CFEKk1zY.js} +3 -3
- package/dist/{stock-DNV9xfbE.js → stock-B4FZa2Ci.js} +1 -1
- package/dist/{stock-DTzUuxKl.js → stock-Bet2VY1l.js} +2 -2
- package/dist/stores/feature.d.ts +4 -2
- package/dist/{supplier-8uMx5fFa.js → supplier-DX_LR2LR.js} +2 -2
- package/dist/{surcharge-D0c44dor.js → surcharge-gnQZF_xQ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BErW6UQ4.js → uom-rules-B4qbIOqA.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CZTe4ayv.js → use-ingredient-select-dialog-BE5IHSwH.js} +2 -2
- package/dist/{use-inventory-binding-dialog-D_N7K7pw.js → use-inventory-binding-dialog-B0xEQiLV.js} +2 -2
- package/dist/{use-template-enabled-locations-C1xNZr4V.js → use-template-enabled-locations-BvAG1cJF.js} +2 -2
- package/dist/{use-transfer-locations-BlSNA3qv.js → use-transfer-locations-pyDvqZxC.js} +3 -2
- package/dist/{useHrmPermission-Bd1_Ia_U.js → useHrmPermission-kFc2vRek.js} +4 -4
- package/dist/{useNavigationMenu-DXrUeRX9.js → useNavigationMenu-C9-LqWKt.js} +31 -31
- package/dist/{useSseClient-Di0ywAz-.js → useSseClient-CoafBOe-.js} +1 -1
- package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialog.vue.d.ts +18 -0
- package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialogProps.d.ts +14 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateList.spec.d.ts +1 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateList.vue.d.ts +43 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.spec.d.ts +1 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.vue.d.ts +36 -0
- package/dist/views/receive-request/components/create-order-dialog/sections.d.ts +3 -0
- package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.d.ts +62 -0
- package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +5 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +5 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.block.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +3 -1
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2 -0
- package/dist/views/receive-request/helper/create-order-selection.d.ts +43 -0
- package/dist/views/receive-request/helper/create-order-selection.spec.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +41 -0
- package/dist/{vue-C029rfpt.js → vue-BMDdrHy_.js} +49 -53
- package/dist/{vue-i18n-Bg7KOfUG.js → vue-i18n-Bkodg08l.js} +290 -290
- package/dist/{xlsx.util-BQrh6imS.js → xlsx.util-DOCqFSat.js} +2 -2
- package/package.json +3 -2
- package/dist/ReceiveRequestView-DAN7eOH5.js +0 -346
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dzlex2fK.js +0 -4953
- package/dist/defineDeepModel-BRZrUePH.js +0 -19
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as at, ref as P, onBeforeUnmount as Qt, computed as B, watch as Ke, createElementBlock as y, openBlock as i, Fragment as Re, createBlock as ve, createVNode as
|
|
2
|
-
import { a as rn } from "./FeaturePageGate.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as on, l as ln } from "./netsuite-
|
|
4
|
-
import { u as mt, a as un, G as cn,
|
|
5
|
-
import { i as _t, _ as vn } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { a as
|
|
7
|
-
import { b as bn, d as hn, c as gn, e as _n, f as xn, P as Bt, h as wn, a as kn, _ as Cn, g as Fn } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { i as Sn } from "./id-to-date-
|
|
9
|
-
import { d as Xe } from "./dayjs.min-
|
|
10
|
-
import { e as Rn } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as at, ref as P, onBeforeUnmount as Qt, computed as B, watch as Ke, createElementBlock as y, openBlock as i, Fragment as Re, createBlock as ve, createVNode as E, Teleport as dt, Transition as Ht, withCtx as Ie, createCommentVNode as q, createElementVNode as e, toDisplayString as p, unref as n, normalizeClass as H, createTextVNode as rt, renderList as tt, withModifiers as Kt, mergeModels as Gt, useModel as Xt, resolveComponent as Te, getCurrentScope as Zt, onScopeDispose as en, h as Ee, onMounted as tn, onUnmounted as nn, normalizeStyle as gt, watchEffect as an, isRef as Rt, normalizeProps as Pt, mergeProps as yt, guardReactiveProps as sn } from "vue";
|
|
2
|
+
import { a as rn } from "./FeaturePageGate.vue_vue_type_script_setup_true_lang-DViz4hgB.js";
|
|
3
|
+
import { u as on, l as ln } from "./netsuite-BDcapEOO.js";
|
|
4
|
+
import { u as mt, a as un, G as cn, a1 as Dt, t as dn, a2 as Ge, q as mn, c as fn, D as ut, x as pn } from "./app-B2FciWDu.js";
|
|
5
|
+
import { i as _t, _ as vn } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B6f-p8K7.js";
|
|
6
|
+
import { a as qt, d as yn } from "./rules-CFEKk1zY.js";
|
|
7
|
+
import { b as bn, d as hn, c as gn, e as _n, f as xn, P as Bt, h as wn, a as kn, _ as Cn, g as Fn } from "./TransferDetails.vue_vue_type_script_setup_true_lang-eSgt3P6r.js";
|
|
8
|
+
import { i as Sn } from "./id-to-date-DKmIZp6I.js";
|
|
9
|
+
import { d as Xe } from "./dayjs.min-CFhuhXoi.js";
|
|
10
|
+
import { e as Rn } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-CiWUAHMw.js";
|
|
11
11
|
import { u as Pn } from "./useTabStorage-BkIVScW_.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import { components as
|
|
14
|
-
import {
|
|
12
|
+
import { u as Et, _ as Dn } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
13
|
+
import { components as qn, useSnackbar as ft, useDialog as En, useBreakpoints as Nn } from "@feedmepos/ui-library";
|
|
14
|
+
import { d as On, u as $n, _ as An, a as Bn, c as Tn } from "./EmailDialog.vue_vue_type_script_setup_true_lang-IYcE8OSG.js";
|
|
15
15
|
import { useI18n as it, useCoreStore as Tt } from "@feedmepos/mf-common";
|
|
16
|
-
import { u as It, a as In } from "./supplier-
|
|
17
|
-
import { u as xt, P as Ln } from "./feature-
|
|
18
|
-
import { b as zn } from "./vue-
|
|
19
|
-
import { u as Mn } from "./stock-
|
|
20
|
-
import { u as nt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { b as Lt, a as Un } from "./format-unit-display-
|
|
16
|
+
import { u as It, a as In } from "./supplier-DX_LR2LR.js";
|
|
17
|
+
import { u as xt, P as Ln } from "./feature-CvQ6eKvB.js";
|
|
18
|
+
import { b as zn } from "./vue-BMDdrHy_.js";
|
|
19
|
+
import { u as Mn } from "./stock-B4FZa2Ci.js";
|
|
20
|
+
import { u as nt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-DU2wYI2T.js";
|
|
21
|
+
import { b as Lt, a as Un } from "./format-unit-display-CLmFpKSI.js";
|
|
22
22
|
import { _ as Vn } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
|
|
23
23
|
import { F as ot } from "./index-eGvSlWMU.js";
|
|
24
24
|
import { P as Jn, J as jn, D as Wn } from "./app-C39bYJmq.js";
|
|
25
|
-
import { a as Yn, t as Qn } from "./date2
|
|
26
|
-
import { F as
|
|
27
|
-
import { p as Hn } from "./format-time-from-id-
|
|
25
|
+
import { a as Yn, t as Qn } from "./date2--N7dpGRR.js";
|
|
26
|
+
import { F as Nt } from "./form-mode.enum-BKiNVH6A.js";
|
|
27
|
+
import { p as Hn } from "./format-time-from-id-BVk3iOfV.js";
|
|
28
28
|
import { defineStore as Kn } from "pinia";
|
|
29
|
-
import { u as Gn } from "./useSseClient-
|
|
29
|
+
import { u as Gn } from "./useSseClient-CoafBOe-.js";
|
|
30
30
|
import { u as Xn } from "./use-row-action-Cvq6VO38.js";
|
|
31
|
-
import { R as ct, D as Zn } from "./row-action.enum-
|
|
32
|
-
import { u as ea } from "./vue-i18n-
|
|
31
|
+
import { R as ct, D as Zn } from "./row-action.enum-b--87Y19.js";
|
|
32
|
+
import { u as ea } from "./vue-i18n-Bkodg08l.js";
|
|
33
33
|
const ta = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "fixed inset-0 z-[200] bg-white flex flex-col overflow-hidden",
|
|
@@ -61,10 +61,10 @@ const ta = {
|
|
|
61
61
|
"data-testid": "wizard-destination-unavailable",
|
|
62
62
|
role: "alert",
|
|
63
63
|
class: "rounded-md border border-[#E0E0E0] bg-[#FAFAFA] px-16 py-8 mb-12 fm-typo-en-body-md-400 text-[#4B4B4B]"
|
|
64
|
-
}, wa = { class: "mb-12" }, ka = { class: "border border-[#E0E0E0] rounded-sm overflow-hidden bg-white" }, Ca = ["onClick"], Fa = { class: "w-32 h-32 rounded-full bg-[#F0F0F0] flex items-center justify-center shrink-0" }, Sa = { class: "fm-typo-en-body-xs text-[#6B6C70]" }, Ra = { class: "flex-1 min-w-0" }, Pa = { class: "fm-typo-en-body-md-600 text-[#1C1C1E]" }, Da = { class: "fm-typo-en-body-sm-400 text-[#6B6C70] truncate" },
|
|
64
|
+
}, wa = { class: "mb-12" }, ka = { class: "border border-[#E0E0E0] rounded-sm overflow-hidden bg-white" }, Ca = ["onClick"], Fa = { class: "w-32 h-32 rounded-full bg-[#F0F0F0] flex items-center justify-center shrink-0" }, Sa = { class: "fm-typo-en-body-xs text-[#6B6C70]" }, Ra = { class: "flex-1 min-w-0" }, Pa = { class: "fm-typo-en-body-md-600 text-[#1C1C1E]" }, Da = { class: "fm-typo-en-body-sm-400 text-[#6B6C70] truncate" }, qa = { class: "text-[10px] leading-[12px] font-semibold text-[#6B6C70] bg-[#F6F7F8] px-4 py-1 rounded-[4px] uppercase tracking-[0.08em] shrink-0" }, Ea = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "w-[8px] h-[8px] rounded-full bg-[#FF7823]"
|
|
67
|
-
},
|
|
67
|
+
}, Na = {
|
|
68
68
|
key: 0,
|
|
69
69
|
class: "py-40 text-center text-[#B2B3B6] fm-typo-en-body-md-400"
|
|
70
70
|
}, Oa = {
|
|
@@ -101,7 +101,7 @@ const ta = {
|
|
|
101
101
|
}, Cs = { class: "flex flex-col gap-0.5 px-10 py-4 border-b border-[#F0F0F0]" }, Fs = { class: "text-[11px] leading-[14px] font-medium text-[#6B6C70]" }, Ss = { class: "flex flex-col gap-0.5 px-10 py-4 border-b border-[#F0F0F0]" }, Rs = { class: "text-[11px] leading-[14px] font-medium text-[#6B6C70]" }, Ps = {
|
|
102
102
|
key: 0,
|
|
103
103
|
class: "text-[11px] leading-[14px] text-[#6B6C70]"
|
|
104
|
-
}, Ds = { class: "flex items-center justify-between gap-8 px-10 py-4" },
|
|
104
|
+
}, Ds = { class: "flex items-center justify-between gap-8 px-10 py-4" }, qs = { class: "text-[15px] leading-[20px] font-semibold text-[#1C1C1E]" }, Es = { class: "fm-typo-en-title-md-600" }, Ns = { class: "flex flex-col gap-16" }, Os = { class: "fm-typo-en-body-md-400" }, $s = { class: "max-h-[300px] overflow-y-auto" }, As = { class: "list-disc pl-16" }, Bs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ts = { class: "flex w-full gap-8 justify-end" }, Is = /* @__PURE__ */ at({
|
|
105
105
|
__name: "CreateTransferWizard",
|
|
106
106
|
props: {
|
|
107
107
|
show: { type: Boolean },
|
|
@@ -110,28 +110,28 @@ const ta = {
|
|
|
110
110
|
},
|
|
111
111
|
emits: ["update:show", "submitted"],
|
|
112
112
|
setup(C, { emit: _ }) {
|
|
113
|
-
const { FmButton: x, FmDialog: $, FmIcon: O, FmTextField: L } =
|
|
113
|
+
const { FmButton: x, FmDialog: $, FmIcon: O, FmTextField: L } = qn, K = C, V = _, { t: o } = it(), s = ft(), g = mt(), J = It(), Fe = un(), m = Mn(), d = nt(), h = Lt(), c = xt(), w = zn("bulk-receive-transfer"), l = P(0), f = P(!1), T = P(null), W = P(""), R = P(null), j = P(null), I = P(null), se = P(""), ce = P(""), de = P(!1), me = P(!1), Je = P(!1), Se = P(!1), je = P(!1), We = P(/* @__PURE__ */ new Map()), Me = P(), le = P([]), re = P("idle");
|
|
114
114
|
let Ce = null, we = null;
|
|
115
|
-
function
|
|
115
|
+
function Ne() {
|
|
116
116
|
we == null || we.abort(), we = null;
|
|
117
117
|
}
|
|
118
|
-
Qt(
|
|
118
|
+
Qt(Ne);
|
|
119
119
|
const Ze = B(
|
|
120
|
-
() => re.value === "ready" && c.
|
|
120
|
+
() => re.value === "ready" && c.warehouseRequestRequiresTemplate
|
|
121
121
|
);
|
|
122
122
|
function Oe(t) {
|
|
123
|
-
return !c.
|
|
123
|
+
return !c.warehouseRequestRequiresTemplate || !!t.template || t.supplier.internal === "restaurant";
|
|
124
124
|
}
|
|
125
125
|
function Ye() {
|
|
126
126
|
var a;
|
|
127
127
|
const t = T.value;
|
|
128
128
|
return !!t && re.value === "ready" && Ce === t.dbName && ((a = g._currentLocation) == null ? void 0 : a.dbName) === t.dbName && w.state.value === "enabled";
|
|
129
129
|
}
|
|
130
|
-
const
|
|
130
|
+
const N = B(
|
|
131
131
|
() => !!T.value && re.value !== "checking"
|
|
132
132
|
), k = B(() => R.value === "transfer" ? !!j.value : R.value === "template" ? !!I.value : !1), z = B(() => (le.value.length ? le.value : Y.value.items ?? []).some((a) => a.quantity.amount > 0)), ne = B(() => de.value), ae = B(
|
|
133
133
|
() => z.value && me.value && Je.value && !de.value
|
|
134
|
-
), fe = B(() => l.value === 0 ?
|
|
134
|
+
), fe = B(() => l.value === 0 ? N.value : l.value === 1 ? k.value : l.value === 2 ? ae.value : !1), Le = B(
|
|
135
135
|
() => l.value === 2 ? o("inventory.transfer.receiveRequest.bulk.wizard.createTransferBtn") : o("inventory.transfer.receiveRequest.bulk.wizard.continueBtn")
|
|
136
136
|
), $e = B(
|
|
137
137
|
() => u.value === "Purchase" ? "Purchase method" : "Transfer method"
|
|
@@ -296,7 +296,7 @@ const ta = {
|
|
|
296
296
|
Ke(
|
|
297
297
|
() => K.show,
|
|
298
298
|
(t) => {
|
|
299
|
-
if (
|
|
299
|
+
if (Ne(), t && (l.value = 0, f.value = !1, T.value = null, re.value = "idle", Ce = null, R.value = null, j.value = null, I.value = null, W.value = "", se.value = "", ce.value = "", me.value = !1, Je.value = !1, le.value = [], Y.value = ge(), G.value = `${Math.random()}`, K.selectedOutletIds && K.selectedOutletIds.length === 1)) {
|
|
300
300
|
const a = g.locations.find(
|
|
301
301
|
(S) => S.doc._id === K.selectedOutletIds[0]
|
|
302
302
|
);
|
|
@@ -306,7 +306,7 @@ const ta = {
|
|
|
306
306
|
);
|
|
307
307
|
async function De(t) {
|
|
308
308
|
var X;
|
|
309
|
-
|
|
309
|
+
Ne();
|
|
310
310
|
const a = new AbortController();
|
|
311
311
|
we = a, Ce !== t.dbName && (Ce = null, R.value = null, j.value = null, I.value = null, le.value = []), me.value = !1, re.value = "checking", g._currentLocation = t;
|
|
312
312
|
const S = await c.awaitLocationFeatures(t.dbName, {
|
|
@@ -329,7 +329,7 @@ const ta = {
|
|
|
329
329
|
re.value = "ready", Ce = t.dbName, pt(a.signal), Mt(a.signal), h.fetchTemplates(), l.value = 1;
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function qe(t) {
|
|
333
333
|
T.value = t, re.value !== "checking" && (re.value = "idle");
|
|
334
334
|
}
|
|
335
335
|
function D() {
|
|
@@ -495,7 +495,7 @@ const ta = {
|
|
|
495
495
|
}
|
|
496
496
|
return (t, a) => (i(), y(Re, null, [
|
|
497
497
|
(i(), ve(dt, { to: "body" }, [
|
|
498
|
-
|
|
498
|
+
E(Ht, {
|
|
499
499
|
"enter-active-class": "transition-opacity duration-150 ease-out",
|
|
500
500
|
"enter-from-class": "opacity-0",
|
|
501
501
|
"enter-to-class": "opacity-100",
|
|
@@ -507,10 +507,10 @@ const ta = {
|
|
|
507
507
|
var S, X;
|
|
508
508
|
return [
|
|
509
509
|
t.show ? (i(), y("div", ta, [
|
|
510
|
-
f.value ?
|
|
510
|
+
f.value ? q("", !0) : (i(), y("div", na, [
|
|
511
511
|
e("span", aa, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.title")), 1),
|
|
512
512
|
e("div", sa, [
|
|
513
|
-
|
|
513
|
+
E(n(x), {
|
|
514
514
|
variant: "tertiary",
|
|
515
515
|
size: "md",
|
|
516
516
|
label: n(o)("inventory.transfer.receiveRequest.bulk.wizard.cancelBtn"),
|
|
@@ -523,8 +523,8 @@ const ta = {
|
|
|
523
523
|
"prepend-icon": "arrow_back",
|
|
524
524
|
label: n(o)("inventory.transfer.receiveRequest.bulk.wizard.backBtn"),
|
|
525
525
|
onClick: he
|
|
526
|
-
}, null, 8, ["label"])) :
|
|
527
|
-
|
|
526
|
+
}, null, 8, ["label"])) : q("", !0),
|
|
527
|
+
E(n(x), {
|
|
528
528
|
size: "md",
|
|
529
529
|
disabled: !fe.value,
|
|
530
530
|
loading: de.value || re.value === "checking",
|
|
@@ -533,7 +533,7 @@ const ta = {
|
|
|
533
533
|
}, null, 8, ["disabled", "loading", "label"])
|
|
534
534
|
])
|
|
535
535
|
])),
|
|
536
|
-
f.value ?
|
|
536
|
+
f.value ? q("", !0) : (i(), y("div", ra, [
|
|
537
537
|
e("div", oa, [
|
|
538
538
|
e("button", {
|
|
539
539
|
class: "flex flex-col items-center gap-4 min-w-0 group",
|
|
@@ -606,21 +606,21 @@ const ta = {
|
|
|
606
606
|
e("p", ba, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.step1Desc")), 1)
|
|
607
607
|
]),
|
|
608
608
|
re.value === "checking" ? (i(), y("div", ha, [
|
|
609
|
-
|
|
609
|
+
E(n(O), {
|
|
610
610
|
name: "progress_activity",
|
|
611
611
|
class: "text-[#FF7823] animate-spin"
|
|
612
612
|
}),
|
|
613
613
|
a[12] || (a[12] = rt(" Checking outlet settings… "))
|
|
614
614
|
])) : re.value === "error" ? (i(), y("div", ga, [
|
|
615
615
|
e("span", _a, " Settings for " + p((S = T.value) == null ? void 0 : S.name) + " couldn’t load, so its transfer requirements are unconfirmed. ", 1),
|
|
616
|
-
|
|
616
|
+
E(n(x), {
|
|
617
617
|
variant: "secondary",
|
|
618
618
|
label: "Retry",
|
|
619
619
|
onClick: D
|
|
620
620
|
})
|
|
621
|
-
])) : re.value === "unavailable" ? (i(), y("div", xa, " Bulk Receive / Transfer isn’t available for " + p((X = T.value) == null ? void 0 : X.name) + ". Choose another outlet. ", 1)) :
|
|
621
|
+
])) : re.value === "unavailable" ? (i(), y("div", xa, " Bulk Receive / Transfer isn’t available for " + p((X = T.value) == null ? void 0 : X.name) + ". Choose another outlet. ", 1)) : q("", !0),
|
|
622
622
|
e("div", wa, [
|
|
623
|
-
|
|
623
|
+
E(n(L), {
|
|
624
624
|
"model-value": W.value,
|
|
625
625
|
"onUpdate:modelValue": a[2] || (a[2] = (v) => W.value = v),
|
|
626
626
|
"prepend-icon": "search",
|
|
@@ -636,7 +636,7 @@ const ta = {
|
|
|
636
636
|
((ue = T.value) == null ? void 0 : ue.dbName) === v.dbName ? "bg-[#FFF5EE]" : "hover:bg-[#FAFAFA]",
|
|
637
637
|
xe > 0 ? "border-t border-[#F0F0F0]" : ""
|
|
638
638
|
]]),
|
|
639
|
-
onClick: (Xr) =>
|
|
639
|
+
onClick: (Xr) => qe(v)
|
|
640
640
|
}, [
|
|
641
641
|
e("div", Fa, [
|
|
642
642
|
e("span", Sa, p(v.name.slice(0, 2).toUpperCase()), 1)
|
|
@@ -647,23 +647,23 @@ const ta = {
|
|
|
647
647
|
rt(p(v.doc.profile.code ? `#${v.doc.profile.code}` : n(o)("inventory.transfer.receiveRequest.bulk.wizard.noCode")) + " ", 1),
|
|
648
648
|
(ze = v.doc.profile.address) != null && ze.line1 || (He = v.doc.profile.address) != null && He.city ? (i(), y(Re, { key: 0 }, [
|
|
649
649
|
rt(" · " + p([(vt = v.doc.profile.address) == null ? void 0 : vt.line1, (Ct = v.doc.profile.address) == null ? void 0 : Ct.city].filter(Boolean).join(" · ")), 1)
|
|
650
|
-
], 64)) :
|
|
650
|
+
], 64)) : q("", !0)
|
|
651
651
|
])
|
|
652
652
|
]),
|
|
653
|
-
e("span",
|
|
653
|
+
e("span", qa, p(v.type === "warehouse" ? "Warehouse" : "Restaurant"), 1),
|
|
654
654
|
e("div", {
|
|
655
655
|
class: H([
|
|
656
656
|
"w-[18px] h-[18px] rounded-full border flex items-center justify-center shrink-0 transition-colors duration-150",
|
|
657
657
|
((Ft = T.value) == null ? void 0 : Ft.dbName) === v.dbName ? "border-[#FF7823]" : "border-[#CCCCCC]"
|
|
658
658
|
])
|
|
659
659
|
}, [
|
|
660
|
-
((St = T.value) == null ? void 0 : St.dbName) === v.dbName ? (i(), y("div",
|
|
660
|
+
((St = T.value) == null ? void 0 : St.dbName) === v.dbName ? (i(), y("div", Ea)) : q("", !0)
|
|
661
661
|
], 2)
|
|
662
662
|
], 10, Ca);
|
|
663
663
|
}), 128)),
|
|
664
|
-
ye.value.length === 0 ? (i(), y("div",
|
|
664
|
+
ye.value.length === 0 ? (i(), y("div", Na, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.noOutletsAvailable")), 1)) : q("", !0)
|
|
665
665
|
])
|
|
666
|
-
])) :
|
|
666
|
+
])) : q("", !0),
|
|
667
667
|
l.value === 1 ? (i(), y("div", Oa, [
|
|
668
668
|
e("div", $a, [
|
|
669
669
|
e("h3", Aa, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.step2Heading")), 1),
|
|
@@ -681,7 +681,7 @@ const ta = {
|
|
|
681
681
|
e("div", {
|
|
682
682
|
class: H(["w-36 h-36 rounded-xl flex items-center justify-center shrink-0", R.value === "transfer" ? "bg-[#FF7823]" : "bg-[#F0F0F0]"])
|
|
683
683
|
}, [
|
|
684
|
-
|
|
684
|
+
E(n(O), {
|
|
685
685
|
name: "swap_horiz",
|
|
686
686
|
size: "md",
|
|
687
687
|
class: H(R.value === "transfer" ? "text-white" : "text-[#6B6C70]")
|
|
@@ -695,7 +695,7 @@ const ta = {
|
|
|
695
695
|
name: "check",
|
|
696
696
|
size: "sm",
|
|
697
697
|
class: "text-white"
|
|
698
|
-
})) :
|
|
698
|
+
})) : q("", !0)
|
|
699
699
|
], 2)
|
|
700
700
|
]),
|
|
701
701
|
e("div", La, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.outletToOutlet")), 1),
|
|
@@ -712,7 +712,7 @@ const ta = {
|
|
|
712
712
|
e("div", {
|
|
713
713
|
class: H(["w-36 h-36 rounded-xl flex items-center justify-center shrink-0", R.value === "template" ? "bg-[#FF7823]" : "bg-[#F0F0F0]"])
|
|
714
714
|
}, [
|
|
715
|
-
|
|
715
|
+
E(n(O), {
|
|
716
716
|
name: "description",
|
|
717
717
|
size: "md",
|
|
718
718
|
class: H(R.value === "template" ? "text-white" : "text-[#6B6C70]")
|
|
@@ -726,7 +726,7 @@ const ta = {
|
|
|
726
726
|
name: "check",
|
|
727
727
|
size: "sm",
|
|
728
728
|
class: "text-white"
|
|
729
|
-
})) :
|
|
729
|
+
})) : q("", !0)
|
|
730
730
|
], 2)
|
|
731
731
|
]),
|
|
732
732
|
e("div", Ua, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.fromTemplate")), 1),
|
|
@@ -735,9 +735,9 @@ const ta = {
|
|
|
735
735
|
]),
|
|
736
736
|
R.value === "transfer" ? (i(), y(Re, { key: 0 }, [
|
|
737
737
|
e("div", Ja, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.step2SourceHeading")), 1),
|
|
738
|
-
Ze.value ? (i(), y("p", ja, " This outlet requires a template for purchases and warehouse transfers. Transfers from another outlet are still available. ")) :
|
|
738
|
+
Ze.value ? (i(), y("p", ja, " This outlet requires a template for purchases and warehouse transfers. Transfers from another outlet are still available. ")) : q("", !0),
|
|
739
739
|
e("div", Wa, [
|
|
740
|
-
|
|
740
|
+
E(n(L), {
|
|
741
741
|
"model-value": se.value,
|
|
742
742
|
"onUpdate:modelValue": a[5] || (a[5] = (v) => se.value = v),
|
|
743
743
|
"prepend-icon": "search",
|
|
@@ -766,7 +766,7 @@ const ta = {
|
|
|
766
766
|
rt(p(Z(v) ? `#${Z(v)}` : n(o)("inventory.transfer.receiveRequest.bulk.wizard.noCode")) + " ", 1),
|
|
767
767
|
ee(v) ? (i(), y(Re, { key: 0 }, [
|
|
768
768
|
rt(" · " + p(ee(v)), 1)
|
|
769
|
-
], 64)) :
|
|
769
|
+
], 64)) : q("", !0)
|
|
770
770
|
])
|
|
771
771
|
]),
|
|
772
772
|
e("span", es, p(v.type === "warehouse" ? "Warehouse" : v.type === "supplier" ? "Supplier" : "Restaurant"), 1),
|
|
@@ -776,17 +776,17 @@ const ta = {
|
|
|
776
776
|
((ze = j.value) == null ? void 0 : ze.doc._id) === v.doc._id ? "border-[#FF7823]" : "border-[#CCCCCC]"
|
|
777
777
|
])
|
|
778
778
|
}, [
|
|
779
|
-
((He = j.value) == null ? void 0 : He.doc._id) === v.doc._id ? (i(), y("div", ts)) :
|
|
779
|
+
((He = j.value) == null ? void 0 : He.doc._id) === v.doc._id ? (i(), y("div", ts)) : q("", !0)
|
|
780
780
|
], 2)
|
|
781
781
|
], 10, Qa);
|
|
782
782
|
}), 128)),
|
|
783
|
-
Ue.value.length === 0 ? (i(), y("div", ns, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.noOutletsAvailable")), 1)) :
|
|
783
|
+
Ue.value.length === 0 ? (i(), y("div", ns, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.noOutletsAvailable")), 1)) : q("", !0)
|
|
784
784
|
])
|
|
785
|
-
], 64)) :
|
|
785
|
+
], 64)) : q("", !0),
|
|
786
786
|
R.value === "template" ? (i(), y(Re, { key: 1 }, [
|
|
787
787
|
e("div", as, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.step2TemplateHeading")), 1),
|
|
788
788
|
e("div", ss, [
|
|
789
|
-
|
|
789
|
+
E(n(L), {
|
|
790
790
|
"model-value": ce.value,
|
|
791
791
|
"onUpdate:modelValue": a[6] || (a[6] = (v) => ce.value = v),
|
|
792
792
|
"prepend-icon": "search",
|
|
@@ -796,7 +796,7 @@ const ta = {
|
|
|
796
796
|
}, null, 8, ["model-value", "placeholder"])
|
|
797
797
|
]),
|
|
798
798
|
n(h).loading ? (i(), y("div", rs, [
|
|
799
|
-
|
|
799
|
+
E(n(O), {
|
|
800
800
|
name: "progress_activity",
|
|
801
801
|
class: "text-[#FF7823] animate-spin"
|
|
802
802
|
})
|
|
@@ -819,12 +819,12 @@ const ta = {
|
|
|
819
819
|
I.value === v._id ? "border-[#FF7823]" : "border-[#CCCCCC]"
|
|
820
820
|
])
|
|
821
821
|
}, [
|
|
822
|
-
I.value === v._id ? (i(), y("div", ms)) :
|
|
822
|
+
I.value === v._id ? (i(), y("div", ms)) : q("", !0)
|
|
823
823
|
], 2)
|
|
824
824
|
], 10, is))), 128))
|
|
825
825
|
]))
|
|
826
|
-
], 64)) :
|
|
827
|
-
])) :
|
|
826
|
+
], 64)) : q("", !0)
|
|
827
|
+
])) : q("", !0),
|
|
828
828
|
l.value === 2 ? (i(), y("div", fs, [
|
|
829
829
|
e("div", ps, [
|
|
830
830
|
e("h3", vs, p(U.value), 1)
|
|
@@ -847,7 +847,7 @@ const ta = {
|
|
|
847
847
|
"sku-balance-map": We.value,
|
|
848
848
|
"is-balance-loading": je.value
|
|
849
849
|
}, null, 8, ["modelValue", "disabled", "locked-supplier", "suppliers", "skus", "last-closing-date", "sku-balance-map", "is-balance-loading"]))
|
|
850
|
-
])) :
|
|
850
|
+
])) : q("", !0)
|
|
851
851
|
]),
|
|
852
852
|
e("div", ys, [
|
|
853
853
|
e("div", bs, [
|
|
@@ -860,7 +860,7 @@ const ta = {
|
|
|
860
860
|
e("span", {
|
|
861
861
|
class: H(["text-[15px] leading-[20px] font-semibold transition-colors duration-200", T.value ? "text-[#1C1C1E]" : "text-[#B2B3B6]"])
|
|
862
862
|
}, p(b.value), 3),
|
|
863
|
-
oe.value ? (i(), y("span", ks, p(oe.value), 1)) :
|
|
863
|
+
oe.value ? (i(), y("span", ks, p(oe.value), 1)) : q("", !0)
|
|
864
864
|
]),
|
|
865
865
|
e("div", Cs, [
|
|
866
866
|
e("span", Fs, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.summaryMethod")), 1),
|
|
@@ -876,10 +876,10 @@ const ta = {
|
|
|
876
876
|
j.value || I.value ? "text-[#1C1C1E]" : "text-[#B2B3B6]"
|
|
877
877
|
])
|
|
878
878
|
}, p(M.value), 3),
|
|
879
|
-
te.value ? (i(), y("span", Ps, p(te.value), 1)) :
|
|
879
|
+
te.value ? (i(), y("span", Ps, p(te.value), 1)) : q("", !0)
|
|
880
880
|
]),
|
|
881
881
|
e("div", Ds, [
|
|
882
|
-
e("span",
|
|
882
|
+
e("span", qs, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.summaryItems")), 1),
|
|
883
883
|
e("span", {
|
|
884
884
|
class: H(["text-[15px] leading-[20px] font-medium transition-colors duration-200", z.value ? "text-[#1C1C1E]" : "text-[#6B6C70]"])
|
|
885
885
|
}, p(pe.value), 3)
|
|
@@ -888,29 +888,29 @@ const ta = {
|
|
|
888
888
|
])
|
|
889
889
|
])
|
|
890
890
|
])
|
|
891
|
-
])) :
|
|
891
|
+
])) : q("", !0)
|
|
892
892
|
];
|
|
893
893
|
}),
|
|
894
894
|
_: 1
|
|
895
895
|
})
|
|
896
896
|
])),
|
|
897
|
-
|
|
897
|
+
E(n($), {
|
|
898
898
|
modelValue: Se.value,
|
|
899
899
|
"onUpdate:modelValue": a[10] || (a[10] = (S) => Se.value = S),
|
|
900
900
|
overlay: !0
|
|
901
901
|
}, {
|
|
902
902
|
"dialog-header": Ie(() => [
|
|
903
|
-
e("div",
|
|
903
|
+
e("div", Es, p(n(o)("inventory.transfer.template.zeroQuantity.title")), 1)
|
|
904
904
|
]),
|
|
905
905
|
"dialog-footer": Ie(() => [
|
|
906
906
|
e("div", Ts, [
|
|
907
|
-
|
|
907
|
+
E(n(x), {
|
|
908
908
|
label: n(o)("common.cancel"),
|
|
909
909
|
variant: "tertiary",
|
|
910
910
|
size: "md",
|
|
911
911
|
onClick: a[9] || (a[9] = (S) => Se.value = !1)
|
|
912
912
|
}, null, 8, ["label"]),
|
|
913
|
-
|
|
913
|
+
E(n(x), {
|
|
914
914
|
label: n(o)("inventory.transfer.template.zeroQuantity.removeAll"),
|
|
915
915
|
variant: "primary",
|
|
916
916
|
size: "md",
|
|
@@ -920,7 +920,7 @@ const ta = {
|
|
|
920
920
|
])
|
|
921
921
|
]),
|
|
922
922
|
default: Ie(() => [
|
|
923
|
-
e("div",
|
|
923
|
+
e("div", Ns, [
|
|
924
924
|
e("div", Os, p(n(o)("inventory.transfer.template.zeroQuantity.message", {
|
|
925
925
|
count: ke.value.length
|
|
926
926
|
})), 1),
|
|
@@ -1015,10 +1015,10 @@ const ta = {
|
|
|
1015
1015
|
ref: O,
|
|
1016
1016
|
src: V.blobUrl,
|
|
1017
1017
|
class: "w-full h-full border-none"
|
|
1018
|
-
}, null, 8, js)) :
|
|
1018
|
+
}, null, 8, js)) : q("", !0)
|
|
1019
1019
|
])
|
|
1020
1020
|
])
|
|
1021
|
-
])) :
|
|
1021
|
+
])) : q("", !0)
|
|
1022
1022
|
]));
|
|
1023
1023
|
}
|
|
1024
1024
|
}), Ys = /* @__PURE__ */ at({
|
|
@@ -1069,12 +1069,12 @@ const ta = {
|
|
|
1069
1069
|
})
|
|
1070
1070
|
}, {
|
|
1071
1071
|
"menu-button": Ie(() => [
|
|
1072
|
-
|
|
1072
|
+
E(w, {
|
|
1073
1073
|
label: g.value,
|
|
1074
1074
|
class: "text-fm-color-neutral-gray-400 cursor-pointer"
|
|
1075
1075
|
}, {
|
|
1076
1076
|
default: Ie(() => [
|
|
1077
|
-
|
|
1077
|
+
E(c, {
|
|
1078
1078
|
name: "storefront",
|
|
1079
1079
|
outline: "",
|
|
1080
1080
|
size: "sm"
|
|
@@ -1082,7 +1082,7 @@ const ta = {
|
|
|
1082
1082
|
e("div", {
|
|
1083
1083
|
class: H(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap max-w-[200px]", { "text-fm-color-typo-primary": V.value > 0 }])
|
|
1084
1084
|
}, p(g.value), 3),
|
|
1085
|
-
|
|
1085
|
+
E(c, {
|
|
1086
1086
|
name: O.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
1087
1087
|
outline: "",
|
|
1088
1088
|
size: "sm"
|
|
@@ -1092,13 +1092,13 @@ const ta = {
|
|
|
1092
1092
|
}, 8, ["label"])
|
|
1093
1093
|
]),
|
|
1094
1094
|
default: Ie(() => [
|
|
1095
|
-
|
|
1095
|
+
E(l, {
|
|
1096
1096
|
"model-value": L.value,
|
|
1097
1097
|
"onUpdate:modelValue": h[0] || (h[0] = (W) => L.value = W),
|
|
1098
1098
|
placeholder: n(_)("inventory.common.table.toolbar.filterItems"),
|
|
1099
1099
|
class: "my-8"
|
|
1100
1100
|
}, null, 8, ["model-value", "placeholder"]),
|
|
1101
|
-
|
|
1101
|
+
E(f, {
|
|
1102
1102
|
"model-value": o.value,
|
|
1103
1103
|
label: n(_)("inventory.common.selectAll"),
|
|
1104
1104
|
"has-checkbox": !0,
|
|
@@ -1117,7 +1117,7 @@ const ta = {
|
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
disabled: "",
|
|
1119
1119
|
label: n(_)("inventory.common.noResultFound")
|
|
1120
|
-
}, null, 8, ["label"])) :
|
|
1120
|
+
}, null, 8, ["label"])) : q("", !0)
|
|
1121
1121
|
]),
|
|
1122
1122
|
_: 1
|
|
1123
1123
|
}, 8, ["model-value"]);
|
|
@@ -1283,7 +1283,7 @@ const wt = Kn("bulkJob", () => {
|
|
|
1283
1283
|
let bt = 0;
|
|
1284
1284
|
const ht = P();
|
|
1285
1285
|
function Xs(C) {
|
|
1286
|
-
const _ =
|
|
1286
|
+
const _ = En(), x = mt(), $ = xt(), O = It(), L = Tt(), K = Un(), V = Lt(), o = P(!1), s = ft(), { t: g } = it(), J = nt(), Fe = bn(), m = wt(), d = P([]), h = P([]), c = P(new Array()), w = P(
|
|
1287
1287
|
new Array()
|
|
1288
1288
|
), l = P(
|
|
1289
1289
|
C != null && C.startDate && (C != null && C.endDate) ? C : _t()
|
|
@@ -1386,7 +1386,7 @@ function Xs(C) {
|
|
|
1386
1386
|
title: "Outlet settings couldn’t load",
|
|
1387
1387
|
message: "Transfer template requirements are unconfirmed. Refresh to try again.",
|
|
1388
1388
|
type: "warning"
|
|
1389
|
-
}), F === "ready" && $.
|
|
1389
|
+
}), F === "ready" && $.warehouseRequestRequiresTemplate && await V.fetchTemplates();
|
|
1390
1390
|
} catch (b) {
|
|
1391
1391
|
if (r.signal.aborted) return;
|
|
1392
1392
|
s.open({
|
|
@@ -1422,7 +1422,7 @@ function Xs(C) {
|
|
|
1422
1422
|
function we(r, u) {
|
|
1423
1423
|
l.value = { startDate: r, endDate: u }, re();
|
|
1424
1424
|
}
|
|
1425
|
-
const
|
|
1425
|
+
const Ne = P();
|
|
1426
1426
|
async function Ze(r) {
|
|
1427
1427
|
var Z, ee, oe;
|
|
1428
1428
|
const u = d.value[0];
|
|
@@ -1450,7 +1450,7 @@ function Xs(C) {
|
|
|
1450
1450
|
var be;
|
|
1451
1451
|
if (b.signal.aborted || ((be = x._currentLocation) == null ? void 0 : be.dbName) !== A) return;
|
|
1452
1452
|
const pe = {
|
|
1453
|
-
mode:
|
|
1453
|
+
mode: Nt.CREATE,
|
|
1454
1454
|
modelValue: r || void 0,
|
|
1455
1455
|
show: !0,
|
|
1456
1456
|
"onUpdate:show"(Pe) {
|
|
@@ -1462,7 +1462,7 @@ function Xs(C) {
|
|
|
1462
1462
|
lt.value = pe;
|
|
1463
1463
|
}
|
|
1464
1464
|
let Q;
|
|
1465
|
-
if ($.
|
|
1465
|
+
if ($.warehouseRequestRequiresTemplate && !(r != null && r.template)) {
|
|
1466
1466
|
if (await V.fetchTemplates(), b.signal.aborted || ((oe = x._currentLocation) == null ? void 0 : oe.dbName) !== A) return;
|
|
1467
1467
|
_.open({
|
|
1468
1468
|
title: "Create transfer",
|
|
@@ -1481,11 +1481,11 @@ function Xs(C) {
|
|
|
1481
1481
|
async function Ye(r, u) {
|
|
1482
1482
|
return r.items != null ? r : await J.getPurchaseOrderById(r._id, void 0, u);
|
|
1483
1483
|
}
|
|
1484
|
-
async function
|
|
1484
|
+
async function N(r) {
|
|
1485
1485
|
await Oe.run(async (u) => {
|
|
1486
1486
|
Se(r);
|
|
1487
1487
|
const b = await Ye(r, u), A = {
|
|
1488
|
-
mode:
|
|
1488
|
+
mode: Nt.UPDATE,
|
|
1489
1489
|
modelValue: fn(b),
|
|
1490
1490
|
show: !0,
|
|
1491
1491
|
"onUpdate:show"(M) {
|
|
@@ -1522,7 +1522,7 @@ function Xs(C) {
|
|
|
1522
1522
|
async onDispatch({ sender: G, message: ke }) {
|
|
1523
1523
|
var De;
|
|
1524
1524
|
try {
|
|
1525
|
-
const { jobId:
|
|
1525
|
+
const { jobId: qe } = await J.enqueueBulkEmail(F, {
|
|
1526
1526
|
senderEmail: G.emailAddress,
|
|
1527
1527
|
senderName: G.name || ((De = L.currentBusiness.value) == null ? void 0 : De.name) || "FeedMe Inventory",
|
|
1528
1528
|
items: [
|
|
@@ -1536,7 +1536,7 @@ function Xs(C) {
|
|
|
1536
1536
|
]
|
|
1537
1537
|
});
|
|
1538
1538
|
m.addJob({
|
|
1539
|
-
jobId:
|
|
1539
|
+
jobId: qe,
|
|
1540
1540
|
type: "email",
|
|
1541
1541
|
dbName: F,
|
|
1542
1542
|
title: `Email PO #${r.seqNumber ?? r._id}`,
|
|
@@ -1552,12 +1552,12 @@ function Xs(C) {
|
|
|
1552
1552
|
message: g("inventory.transfer.receiveRequest.bulk.emailQueued"),
|
|
1553
1553
|
type: "success"
|
|
1554
1554
|
});
|
|
1555
|
-
} catch (
|
|
1556
|
-
throw console.error("Single email enqueue failed",
|
|
1555
|
+
} catch (qe) {
|
|
1556
|
+
throw console.error("Single email enqueue failed", qe), s.open({
|
|
1557
1557
|
title: g("inventory.transfer.receiveRequest.bulk.emailSendError"),
|
|
1558
1558
|
message: g("inventory.transfer.receiveRequest.bulk.emailErrorMsg"),
|
|
1559
1559
|
type: "error"
|
|
1560
|
-
}),
|
|
1560
|
+
}), qe;
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
1563
|
};
|
|
@@ -1603,13 +1603,13 @@ function Xs(C) {
|
|
|
1603
1603
|
canResubmit: !1,
|
|
1604
1604
|
canApprove: !1,
|
|
1605
1605
|
"onUpdate:show"(Z) {
|
|
1606
|
-
|
|
1606
|
+
Ne.value && (Ne.value = { ...Ne.value, show: Z });
|
|
1607
1607
|
},
|
|
1608
1608
|
scope: Bt.RECEIVE_REQUEST,
|
|
1609
1609
|
receivedMap: xn(b) ?? {},
|
|
1610
1610
|
shipments: c.value
|
|
1611
1611
|
};
|
|
1612
|
-
|
|
1612
|
+
Ne.value = F;
|
|
1613
1613
|
}
|
|
1614
1614
|
async function ae(r, u, b, A, M) {
|
|
1615
1615
|
const F = wn();
|
|
@@ -1773,7 +1773,7 @@ function Xs(C) {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
async function Ue(r) {
|
|
1776
|
-
var ke, De,
|
|
1776
|
+
var ke, De, qe;
|
|
1777
1777
|
if (!await U("email")) return;
|
|
1778
1778
|
const u = [
|
|
1779
1779
|
Dt.enum.RECEIVING,
|
|
@@ -1811,7 +1811,7 @@ function Xs(C) {
|
|
|
1811
1811
|
const te = [], pe = [];
|
|
1812
1812
|
for (const D of b)
|
|
1813
1813
|
oe(D) ? te.push(D) : pe.push(D);
|
|
1814
|
-
const be =
|
|
1814
|
+
const be = Ee(
|
|
1815
1815
|
"p",
|
|
1816
1816
|
{ class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
1817
1817
|
g("inventory.transfer.receiveRequest.bulk.emailAllowedStatusInfo")
|
|
@@ -1822,24 +1822,24 @@ function Xs(C) {
|
|
|
1822
1822
|
const Ve = _e.supplier._id;
|
|
1823
1823
|
D.has(Ve) || D.set(Ve, { supplierName: _e.supplier.name, pos: [] }), D.get(Ve).pos.push(_e);
|
|
1824
1824
|
}
|
|
1825
|
-
const ie =
|
|
1825
|
+
const ie = Ee("div", { class: "flex flex-col gap-12" }, [
|
|
1826
1826
|
be,
|
|
1827
|
-
|
|
1827
|
+
Ee(
|
|
1828
1828
|
"p",
|
|
1829
1829
|
{ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
1830
1830
|
g("inventory.transfer.receiveRequest.bulk.missingEmailMsg", [pe.length])
|
|
1831
1831
|
),
|
|
1832
|
-
|
|
1832
|
+
Ee(
|
|
1833
1833
|
"div",
|
|
1834
1834
|
{ class: "flex flex-col gap-4 max-h-[320px] overflow-y-auto rounded-md border border-fm-color-neutral-gray-100 p-8" },
|
|
1835
1835
|
[...D.values()].map(
|
|
1836
|
-
({ supplierName: _e, pos: Ve }) =>
|
|
1837
|
-
|
|
1838
|
-
|
|
1836
|
+
({ supplierName: _e, pos: Ve }) => Ee("div", { class: "flex flex-col gap-2 py-6 border-b border-fm-color-neutral-gray-100 last:border-0" }, [
|
|
1837
|
+
Ee("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, _e),
|
|
1838
|
+
Ee(
|
|
1839
1839
|
"div",
|
|
1840
1840
|
{ class: "flex flex-wrap gap-4" },
|
|
1841
1841
|
Ve.map(
|
|
1842
|
-
(Qe) =>
|
|
1842
|
+
(Qe) => Ee("span", {
|
|
1843
1843
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 rounded px-6 py-2"
|
|
1844
1844
|
}, `PO #${Qe.seqNumber ?? Qe._id}`)
|
|
1845
1845
|
)
|
|
@@ -1847,12 +1847,12 @@ function Xs(C) {
|
|
|
1847
1847
|
])
|
|
1848
1848
|
)
|
|
1849
1849
|
),
|
|
1850
|
-
|
|
1850
|
+
Ee(
|
|
1851
1851
|
"p",
|
|
1852
1852
|
{ class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
1853
1853
|
g("inventory.transfer.receiveRequest.bulk.emailWillSendCount", [te.length, b.length])
|
|
1854
1854
|
),
|
|
1855
|
-
|
|
1855
|
+
Ee(
|
|
1856
1856
|
"p",
|
|
1857
1857
|
{ class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
1858
1858
|
g("inventory.transfer.receiveRequest.bulk.missingEmailConfirm")
|
|
@@ -1871,9 +1871,9 @@ function Xs(C) {
|
|
|
1871
1871
|
}).onPrimary(() => _e(!0)).onSecondary(() => _e(!1));
|
|
1872
1872
|
})) return;
|
|
1873
1873
|
} else {
|
|
1874
|
-
const D =
|
|
1874
|
+
const D = Ee("div", { class: "flex flex-col gap-12" }, [
|
|
1875
1875
|
be,
|
|
1876
|
-
|
|
1876
|
+
Ee(
|
|
1877
1877
|
"p",
|
|
1878
1878
|
{ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
1879
1879
|
g("inventory.transfer.receiveRequest.bulk.emailAllConfirmMsg", [te.length])
|
|
@@ -1941,7 +1941,7 @@ function Xs(C) {
|
|
|
1941
1941
|
try {
|
|
1942
1942
|
const { jobId: D } = await J.enqueueBulkEmail(G, {
|
|
1943
1943
|
senderEmail: Ae.emailAddress,
|
|
1944
|
-
senderName: Ae.name || ((
|
|
1944
|
+
senderName: Ae.name || ((qe = L.currentBusiness.value) == null ? void 0 : qe.name) || "FeedMe Inventory",
|
|
1945
1945
|
items: Y
|
|
1946
1946
|
});
|
|
1947
1947
|
m.addJob({
|
|
@@ -1985,8 +1985,8 @@ function Xs(C) {
|
|
|
1985
1985
|
loading: o,
|
|
1986
1986
|
transferDialogProps: lt,
|
|
1987
1987
|
promptCreateTransferDialog: Ze,
|
|
1988
|
-
promptUpdateTransferDialog:
|
|
1989
|
-
transferDetailsProps:
|
|
1988
|
+
promptUpdateTransferDialog: N,
|
|
1989
|
+
transferDetailsProps: Ne,
|
|
1990
1990
|
promptShowTransferDetails: ne,
|
|
1991
1991
|
resolvePO: z,
|
|
1992
1992
|
submitAction: fe,
|
|
@@ -2167,17 +2167,17 @@ const nr = {
|
|
|
2167
2167
|
ref: K,
|
|
2168
2168
|
class: "fixed bottom-24 right-24 z-[9998] flex flex-col items-end gap-8"
|
|
2169
2169
|
}, [
|
|
2170
|
-
L.value ?
|
|
2170
|
+
L.value ? q("", !0) : (i(), y("button", {
|
|
2171
2171
|
key: 0,
|
|
2172
2172
|
class: "flex items-center gap-8 bg-fm-color-primary text-white rounded-full px-16 py-[6px] shadow-lg fm-typo-en-body-sm-600 cursor-pointer",
|
|
2173
2173
|
onClick: w[0] || (w[0] = (f) => L.value = !0)
|
|
2174
2174
|
}, [
|
|
2175
|
-
|
|
2175
|
+
E(l, {
|
|
2176
2176
|
name: "cloud_upload",
|
|
2177
2177
|
size: "sm"
|
|
2178
2178
|
}),
|
|
2179
2179
|
e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.backgroundJobsTitle")), 1),
|
|
2180
|
-
n(x).activeJobs.length > 0 ? (i(), y("span", nr, p(n(x).activeJobs.length), 1)) :
|
|
2180
|
+
n(x).activeJobs.length > 0 ? (i(), y("span", nr, p(n(x).activeJobs.length), 1)) : q("", !0)
|
|
2181
2181
|
])),
|
|
2182
2182
|
L.value ? (i(), y("div", ar, [
|
|
2183
2183
|
e("div", sr, [
|
|
@@ -2187,7 +2187,7 @@ const nr = {
|
|
|
2187
2187
|
onClick: w[1] || (w[1] = (f) => L.value = !1),
|
|
2188
2188
|
class: "text-fm-color-typo-secondary hover:text-fm-color-typo-primary"
|
|
2189
2189
|
}, [
|
|
2190
|
-
|
|
2190
|
+
E(l, {
|
|
2191
2191
|
name: "close",
|
|
2192
2192
|
size: "sm"
|
|
2193
2193
|
})
|
|
@@ -2214,11 +2214,11 @@ const nr = {
|
|
|
2214
2214
|
"aria-label": "Download",
|
|
2215
2215
|
onClick: (W) => g(f)
|
|
2216
2216
|
}, [
|
|
2217
|
-
|
|
2217
|
+
E(l, {
|
|
2218
2218
|
name: o.value.has(f.jobId) ? "progress_activity" : "download",
|
|
2219
2219
|
size: "sm"
|
|
2220
2220
|
}, null, 8, ["name"])
|
|
2221
|
-
], 8, mr)) :
|
|
2221
|
+
], 8, mr)) : q("", !0),
|
|
2222
2222
|
f.status === "waiting" || f.status === "active" ? (i(), y("button", {
|
|
2223
2223
|
key: 1,
|
|
2224
2224
|
class: "text-fm-color-semantic-error-500 hover:opacity-80 disabled:opacity-40",
|
|
@@ -2227,11 +2227,11 @@ const nr = {
|
|
|
2227
2227
|
"aria-label": "Cancel",
|
|
2228
2228
|
onClick: (W) => J(f)
|
|
2229
2229
|
}, [
|
|
2230
|
-
|
|
2230
|
+
E(l, {
|
|
2231
2231
|
name: s.value.has(f.jobId) ? "progress_activity" : "cancel",
|
|
2232
2232
|
size: "sm"
|
|
2233
2233
|
}, null, 8, ["name"])
|
|
2234
|
-
], 8, fr)) :
|
|
2234
|
+
], 8, fr)) : q("", !0),
|
|
2235
2235
|
m(f.status) ? (i(), y("button", {
|
|
2236
2236
|
key: 2,
|
|
2237
2237
|
class: "text-fm-color-typo-secondary hover:text-fm-color-typo-primary",
|
|
@@ -2239,11 +2239,11 @@ const nr = {
|
|
|
2239
2239
|
"aria-label": "Dismiss",
|
|
2240
2240
|
onClick: (W) => Fe(f.jobId)
|
|
2241
2241
|
}, [
|
|
2242
|
-
|
|
2242
|
+
E(l, {
|
|
2243
2243
|
name: "close",
|
|
2244
2244
|
size: "sm"
|
|
2245
2245
|
})
|
|
2246
|
-
], 8, pr)) :
|
|
2246
|
+
], 8, pr)) : q("", !0)
|
|
2247
2247
|
])
|
|
2248
2248
|
]),
|
|
2249
2249
|
f.status === "active" || f.status === "waiting" ? (i(), y("div", vr, [
|
|
@@ -2254,60 +2254,60 @@ const nr = {
|
|
|
2254
2254
|
}, null, 4)
|
|
2255
2255
|
]),
|
|
2256
2256
|
e("div", br, [
|
|
2257
|
-
f.currentItem ? (i(), y("span", hr, p(f.currentItem), 1)) :
|
|
2257
|
+
f.currentItem ? (i(), y("span", hr, p(f.currentItem), 1)) : q("", !0),
|
|
2258
2258
|
e("span", gr, p(f.current) + " / " + p(f.total), 1)
|
|
2259
2259
|
])
|
|
2260
|
-
])) :
|
|
2260
|
+
])) : q("", !0),
|
|
2261
2261
|
f.status === "completed" && f.errorCount === 0 ? (i(), y("div", _r, [
|
|
2262
|
-
|
|
2262
|
+
E(l, {
|
|
2263
2263
|
name: "check_circle",
|
|
2264
2264
|
size: "sm"
|
|
2265
2265
|
}),
|
|
2266
2266
|
e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.jobDone")), 1)
|
|
2267
|
-
])) :
|
|
2267
|
+
])) : q("", !0),
|
|
2268
2268
|
f.status === "completed" && (((T = f.stalePoIds) == null ? void 0 : T.length) ?? 0) > 0 ? (i(), y("div", xr, [
|
|
2269
|
-
|
|
2269
|
+
E(l, {
|
|
2270
2270
|
name: "warning",
|
|
2271
2271
|
size: "sm"
|
|
2272
2272
|
}),
|
|
2273
2273
|
e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.jobStalePos", [f.stalePoIds.length])), 1)
|
|
2274
|
-
])) :
|
|
2274
|
+
])) : q("", !0),
|
|
2275
2275
|
f.status === "cancelled" ? (i(), y("div", wr, [
|
|
2276
|
-
|
|
2276
|
+
E(l, {
|
|
2277
2277
|
name: "do_not_disturb_on",
|
|
2278
2278
|
size: "sm"
|
|
2279
2279
|
}),
|
|
2280
2280
|
e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.jobCancelled")), 1)
|
|
2281
|
-
])) :
|
|
2281
|
+
])) : q("", !0),
|
|
2282
2282
|
f.status === "failed" ? (i(), y("div", kr, [
|
|
2283
|
-
|
|
2283
|
+
E(l, {
|
|
2284
2284
|
name: "cancel",
|
|
2285
2285
|
size: "sm"
|
|
2286
2286
|
}),
|
|
2287
2287
|
f.errorCount > 0 ? (i(), y("span", Cr, p(n(_)("inventory.transfer.receiveRequest.bulk.jobDoneWithErrors", [f.errorCount])), 1)) : (i(), y("span", Fr, p(n(_)("inventory.transfer.receiveRequest.bulk.jobFailed")), 1))
|
|
2288
|
-
])) :
|
|
2288
|
+
])) : q("", !0),
|
|
2289
2289
|
m(f.status) && f.completedAt ? (i(), y("div", Sr, [
|
|
2290
2290
|
e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.jobCompletedIn", [d(f.completedAt - f.startedAt)])), 1),
|
|
2291
2291
|
f.zipSizeBytes ? (i(), y(Re, { key: 0 }, [
|
|
2292
2292
|
w[2] || (w[2] = e("span", null, "·", -1)),
|
|
2293
2293
|
e("span", null, p(h(f.zipSizeBytes)), 1)
|
|
2294
|
-
], 64)) :
|
|
2295
|
-
])) :
|
|
2294
|
+
], 64)) : q("", !0)
|
|
2295
|
+
])) : q("", !0)
|
|
2296
2296
|
]);
|
|
2297
2297
|
}), 128))
|
|
2298
2298
|
])
|
|
2299
|
-
])) :
|
|
2300
|
-
], 512)) :
|
|
2299
|
+
])) : q("", !0)
|
|
2300
|
+
], 512)) : q("", !0)
|
|
2301
2301
|
]);
|
|
2302
2302
|
};
|
|
2303
2303
|
}
|
|
2304
2304
|
}), Pr = {
|
|
2305
2305
|
key: 0,
|
|
2306
2306
|
class: "flex flex-col items-center justify-center py-48 gap-8 text-fm-color-typo-secondary"
|
|
2307
|
-
}, Dr = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" },
|
|
2307
|
+
}, Dr = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" }, qr = { class: "flex-1 xs:w-full sm:w-full" }, Er = {
|
|
2308
2308
|
key: 0,
|
|
2309
2309
|
class: "flex-1"
|
|
2310
|
-
},
|
|
2310
|
+
}, Nr = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, Or = {
|
|
2311
2311
|
key: 0,
|
|
2312
2312
|
class: "flex flex-col items-center justify-center py-48 gap-8 text-fm-color-typo-secondary"
|
|
2313
2313
|
}, $r = { class: "fm-typo-en-body-md-400" }, Ar = {
|
|
@@ -2336,29 +2336,29 @@ const nr = {
|
|
|
2336
2336
|
});
|
|
2337
2337
|
const $ = Pn(), O = xt(), L = on();
|
|
2338
2338
|
function K() {
|
|
2339
|
-
const
|
|
2339
|
+
const N = {
|
|
2340
2340
|
name: "",
|
|
2341
2341
|
..._t()
|
|
2342
2342
|
}, k = $.getItem(At);
|
|
2343
|
-
if (!k) return
|
|
2343
|
+
if (!k) return N;
|
|
2344
2344
|
try {
|
|
2345
2345
|
return JSON.parse(k);
|
|
2346
2346
|
} catch {
|
|
2347
|
-
return
|
|
2347
|
+
return N;
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
2350
|
function V() {
|
|
2351
2351
|
$.setItem(At, JSON.stringify(o.value));
|
|
2352
2352
|
}
|
|
2353
|
-
const o = P(K()), s = Xs(o.value), g = P(!1), { selectedLocationDbNames: J } = s, Fe = B(() => T.value.filter((
|
|
2353
|
+
const o = P(K()), s = Xs(o.value), g = P(!1), { selectedLocationDbNames: J } = s, Fe = B(() => T.value.filter((N) => J.value.includes(N.dbName)).map((N) => N.doc._id)), {
|
|
2354
2354
|
columnDefs: m,
|
|
2355
2355
|
showPdfDialog: d,
|
|
2356
2356
|
pdfPreviewLoading: h,
|
|
2357
2357
|
pdfPreviewBlobUrl: c
|
|
2358
2358
|
} = tr(s, s.shipments), w = mt(), l = pn(), f = Tt(), T = P([]);
|
|
2359
2359
|
an(() => {
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2360
|
+
const N = w.locations;
|
|
2361
|
+
N.length > 0 && (T.value = N);
|
|
2362
2362
|
});
|
|
2363
2363
|
async function W() {
|
|
2364
2364
|
var k;
|
|
@@ -2371,25 +2371,25 @@ const nr = {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
Ke(
|
|
2373
2373
|
[() => f.sessionUser.value, () => f.currentBusiness.value],
|
|
2374
|
-
([
|
|
2375
|
-
|
|
2374
|
+
([N, k]) => {
|
|
2375
|
+
N && k && W();
|
|
2376
2376
|
},
|
|
2377
2377
|
{ immediate: !0 }
|
|
2378
2378
|
);
|
|
2379
2379
|
const R = B(() => s.loading.value), j = B(
|
|
2380
|
-
() => s.failedLocations.value.map((
|
|
2380
|
+
() => s.failedLocations.value.map((N) => {
|
|
2381
2381
|
var k;
|
|
2382
|
-
return ((k = w.locations.find((z) => z.dbName ===
|
|
2382
|
+
return ((k = w.locations.find((z) => z.dbName === N.dbName)) == null ? void 0 : k.name) ?? N.dbName;
|
|
2383
2383
|
}).join(", ")
|
|
2384
2384
|
), I = B(
|
|
2385
|
-
() => s.failedLocations.value.some((
|
|
2385
|
+
() => s.failedLocations.value.some((N) => N.retryable)
|
|
2386
2386
|
);
|
|
2387
|
-
function se(
|
|
2387
|
+
function se(N) {
|
|
2388
2388
|
var k;
|
|
2389
|
-
return
|
|
2389
|
+
return N.itemCount ?? ((k = N.items) == null ? void 0 : k.length) ?? 0;
|
|
2390
2390
|
}
|
|
2391
2391
|
async function ce() {
|
|
2392
|
-
const
|
|
2392
|
+
const N = `inventory-record_${Xe(o.value.startDate).format("DD-MM-YYYY_HH-mm")}-${Xe(o.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`;
|
|
2393
2393
|
let k = [];
|
|
2394
2394
|
try {
|
|
2395
2395
|
k = await s.fetchFullPurchaseOrders();
|
|
@@ -2404,9 +2404,9 @@ const nr = {
|
|
|
2404
2404
|
const z = k.flatMap(
|
|
2405
2405
|
(ae) => ae.items.map((fe) => {
|
|
2406
2406
|
var u, b;
|
|
2407
|
-
const Le = new Date(Sn(ae._id) ?? ""), $e = ae.effectiveAt ? new Date(ae.effectiveAt) : void 0, U =
|
|
2407
|
+
const Le = new Date(Sn(ae._id) ?? ""), $e = ae.effectiveAt ? new Date(ae.effectiveAt) : void 0, U = qt(
|
|
2408
2408
|
Fn(fe.sku, ae.deliveryOrder || [])
|
|
2409
|
-
), ye =
|
|
2409
|
+
), ye = qt(fe.quantity), Ue = ((u = fe == null ? void 0 : fe.measurement) == null ? void 0 : u.abbrev) || fe.sku.unit.abbrev;
|
|
2410
2410
|
return {
|
|
2411
2411
|
Location: ((b = w.locations.find((A) => A.dbName === ae._locationDbName)) == null ? void 0 : b.name) ?? "",
|
|
2412
2412
|
"SKU code": fe.code,
|
|
@@ -2434,27 +2434,27 @@ const nr = {
|
|
|
2434
2434
|
"Ordered quantity",
|
|
2435
2435
|
"Unit"
|
|
2436
2436
|
];
|
|
2437
|
-
O.enableBackdatePo && ne.insert("Effective at", 5), O.enableTotalCost && ne.push("Total cost"), await Rn([{ name: "purchases", data: z, columns: ne }],
|
|
2437
|
+
O.enableBackdatePo && ne.insert("Effective at", 5), O.enableTotalCost && ne.push("Total cost"), await Rn([{ name: "purchases", data: z, columns: ne }], N), x.open({
|
|
2438
2438
|
title: _("inventory.transfer.receiveRequest.export.success"),
|
|
2439
|
-
message: _("inventory.transfer.receiveRequest.export.message", [
|
|
2439
|
+
message: _("inventory.transfer.receiveRequest.export.message", [N]),
|
|
2440
2440
|
type: "success"
|
|
2441
2441
|
});
|
|
2442
2442
|
}
|
|
2443
2443
|
const de = P(_t()), me = P("");
|
|
2444
|
-
Ke([() => de.value], ([
|
|
2445
|
-
if (!
|
|
2446
|
-
if (Xe(
|
|
2444
|
+
Ke([() => de.value], ([N]) => {
|
|
2445
|
+
if (!N.startDate || !N.endDate) return;
|
|
2446
|
+
if (Xe(N.endDate).diff(Xe(N.startDate), "day") > 60) {
|
|
2447
2447
|
x.open({
|
|
2448
2448
|
title: _("inventory.transfer.receiveRequest.bulk.dateRangeLimitTitle"),
|
|
2449
2449
|
message: _("inventory.transfer.receiveRequest.bulk.dateRangeLimitMsg"),
|
|
2450
2450
|
type: "warning"
|
|
2451
2451
|
}), de.value = {
|
|
2452
|
-
startDate:
|
|
2453
|
-
endDate: Xe(
|
|
2452
|
+
startDate: N.startDate,
|
|
2453
|
+
endDate: Xe(N.startDate).add(60, "day").format("YYYY-MM-DD")
|
|
2454
2454
|
};
|
|
2455
2455
|
return;
|
|
2456
2456
|
}
|
|
2457
|
-
o.value.startDate =
|
|
2457
|
+
o.value.startDate = N.startDate, o.value.endDate = N.endDate, s.updateDateRange(o.value.startDate, o.value.endDate), V();
|
|
2458
2458
|
}), Ke([() => me.value], () => {
|
|
2459
2459
|
V();
|
|
2460
2460
|
});
|
|
@@ -2465,8 +2465,8 @@ const nr = {
|
|
|
2465
2465
|
s.abortOngoingBrowse(), Je();
|
|
2466
2466
|
}
|
|
2467
2467
|
);
|
|
2468
|
-
function Se(
|
|
2469
|
-
if (
|
|
2468
|
+
function Se(N) {
|
|
2469
|
+
if (N === "create") {
|
|
2470
2470
|
if (R.value) {
|
|
2471
2471
|
x.open({ title: "Loading data...", message: "Please wait.", type: "info" });
|
|
2472
2472
|
return;
|
|
@@ -2482,12 +2482,12 @@ const nr = {
|
|
|
2482
2482
|
g.value = !0;
|
|
2483
2483
|
return;
|
|
2484
2484
|
}
|
|
2485
|
-
if (
|
|
2485
|
+
if (N === "upload" && O.enableXilnexTransferNote)
|
|
2486
2486
|
return s.promptUploadTransferDialog();
|
|
2487
|
-
if (
|
|
2488
|
-
if (
|
|
2489
|
-
if (
|
|
2490
|
-
if (
|
|
2487
|
+
if (N === "refresh") return s.fetchData();
|
|
2488
|
+
if (N === "export") return ce();
|
|
2489
|
+
if (N === "downloadAll") return je();
|
|
2490
|
+
if (N === "emailAll") return We();
|
|
2491
2491
|
}
|
|
2492
2492
|
async function je() {
|
|
2493
2493
|
if (J.value.length === 0) {
|
|
@@ -2513,7 +2513,7 @@ const nr = {
|
|
|
2513
2513
|
await s.emailAll(Ye.value);
|
|
2514
2514
|
}
|
|
2515
2515
|
}
|
|
2516
|
-
const { breakpoints: Me } =
|
|
2516
|
+
const { breakpoints: Me } = Nn(), le = B(() => Me.value.xs || Me.value.sm), re = B(() => le.value ? 10 : 20), Ce = Et(), we = Et(), Ne = B(() => O.enableReceiveRequestBeta ? [
|
|
2517
2517
|
{
|
|
2518
2518
|
label: _("inventory.transfer.receiveRequest.actions.create"),
|
|
2519
2519
|
value: "create",
|
|
@@ -2538,7 +2538,7 @@ const nr = {
|
|
|
2538
2538
|
}
|
|
2539
2539
|
] : []
|
|
2540
2540
|
] : []), Ze = B(() => {
|
|
2541
|
-
const
|
|
2541
|
+
const N = [
|
|
2542
2542
|
{
|
|
2543
2543
|
type: "string",
|
|
2544
2544
|
key: "status",
|
|
@@ -2593,10 +2593,10 @@ const nr = {
|
|
|
2593
2593
|
}).filter((z) => z != null)
|
|
2594
2594
|
}
|
|
2595
2595
|
];
|
|
2596
|
-
return [...
|
|
2596
|
+
return [...N, ...L.isEnabled ? k : []];
|
|
2597
2597
|
}), Oe = P(null), Ye = B(() => {
|
|
2598
2598
|
if (!Oe.value) return s.purchaseOrders.value;
|
|
2599
|
-
const
|
|
2599
|
+
const N = Jn.build(Oe.value);
|
|
2600
2600
|
return s.purchaseOrders.value.filter((k) => {
|
|
2601
2601
|
var ne, ae, fe, Le, $e;
|
|
2602
2602
|
const z = ((ne = w.locations.find((U) => U.dbName === k._locationDbName)) == null ? void 0 : ne.name) ?? k._locationDbName;
|
|
@@ -2609,22 +2609,22 @@ const nr = {
|
|
|
2609
2609
|
transferFrom: k.supplier.name,
|
|
2610
2610
|
location: z
|
|
2611
2611
|
},
|
|
2612
|
-
|
|
2612
|
+
N
|
|
2613
2613
|
);
|
|
2614
2614
|
});
|
|
2615
2615
|
});
|
|
2616
|
-
return (
|
|
2616
|
+
return (N, k) => {
|
|
2617
2617
|
const z = Te("FmIcon"), ne = Te("FmTextField"), ae = Te("FmButton"), fe = Te("FmTable"), Le = Te("FmCircularProgress");
|
|
2618
2618
|
return i(), ve(Dn, {
|
|
2619
2619
|
title: n(_)("inventory.transfer.receiveRequest.bulk.title"),
|
|
2620
|
-
actions:
|
|
2620
|
+
actions: Ne.value,
|
|
2621
2621
|
"onClick:action": Se
|
|
2622
2622
|
}, {
|
|
2623
2623
|
default: Ie(() => {
|
|
2624
2624
|
var $e;
|
|
2625
2625
|
return [
|
|
2626
2626
|
n(O).isLoaded && !n(O).enableReceiveRequestBeta ? (i(), y("div", Pr, [
|
|
2627
|
-
|
|
2627
|
+
E(z, {
|
|
2628
2628
|
name: "block",
|
|
2629
2629
|
size: "xl"
|
|
2630
2630
|
}),
|
|
@@ -2649,27 +2649,27 @@ const nr = {
|
|
|
2649
2649
|
e("div", {
|
|
2650
2650
|
class: H(["flex gap-8 items-center", { "w-full overflow-x-auto": le.value }])
|
|
2651
2651
|
}, [
|
|
2652
|
-
|
|
2652
|
+
E(Ys, {
|
|
2653
2653
|
modelValue: n(J),
|
|
2654
2654
|
"onUpdate:modelValue": k[0] || (k[0] = (U) => Rt(J) ? J.value = U : null),
|
|
2655
2655
|
locations: T.value
|
|
2656
2656
|
}, null, 8, ["modelValue", "locations"]),
|
|
2657
|
-
|
|
2657
|
+
E(vn, {
|
|
2658
2658
|
"model-value": de.value,
|
|
2659
2659
|
"onUpdate:modelValue": k[1] || (k[1] = (U) => de.value = U)
|
|
2660
2660
|
}, null, 8, ["model-value"])
|
|
2661
2661
|
], 2),
|
|
2662
2662
|
e("div", Dr, [
|
|
2663
|
-
e("div",
|
|
2664
|
-
|
|
2663
|
+
e("div", qr, [
|
|
2664
|
+
E(n(Wn), {
|
|
2665
2665
|
modelValue: Oe.value,
|
|
2666
2666
|
"onUpdate:modelValue": k[2] || (k[2] = (U) => Oe.value = U),
|
|
2667
2667
|
attributes: Ze.value
|
|
2668
2668
|
}, null, 8, ["modelValue", "attributes"])
|
|
2669
2669
|
]),
|
|
2670
|
-
le.value ?
|
|
2671
|
-
e("div",
|
|
2672
|
-
|
|
2670
|
+
le.value ? q("", !0) : (i(), y("div", Er)),
|
|
2671
|
+
e("div", Nr, [
|
|
2672
|
+
E(ne, {
|
|
2673
2673
|
"model-value": me.value,
|
|
2674
2674
|
"onUpdate:modelValue": k[3] || (k[3] = (U) => me.value = U),
|
|
2675
2675
|
"prepend-icon": "search",
|
|
@@ -2681,7 +2681,7 @@ const nr = {
|
|
|
2681
2681
|
], 2)
|
|
2682
2682
|
], 512),
|
|
2683
2683
|
n(J).length === 0 && !R.value ? (i(), y("div", Or, [
|
|
2684
|
-
|
|
2684
|
+
E(z, {
|
|
2685
2685
|
name: "storefront",
|
|
2686
2686
|
size: "xl"
|
|
2687
2687
|
}),
|
|
@@ -2703,7 +2703,7 @@ const nr = {
|
|
|
2703
2703
|
}, null, 4)
|
|
2704
2704
|
]),
|
|
2705
2705
|
e("span", Ir, p(n(s).fetchProgress.value.done) + "/" + p(n(s).fetchProgress.value.total) + " locations ", 1)
|
|
2706
|
-
])) :
|
|
2706
|
+
])) : q("", !0),
|
|
2707
2707
|
n(s).failedLocations.value.length > 0 ? (i(), y("div", Lr, [
|
|
2708
2708
|
e("span", zr, " Failed to load: " + p(j.value), 1),
|
|
2709
2709
|
I.value ? (i(), ve(ae, {
|
|
@@ -2712,10 +2712,10 @@ const nr = {
|
|
|
2712
2712
|
disabled: n(s).retryingFailed.value || R.value,
|
|
2713
2713
|
label: n(s).retryingFailed.value ? "Retrying…" : "Retry failed locations",
|
|
2714
2714
|
onClick: n(s).retryFailedLocations
|
|
2715
|
-
}, null, 8, ["disabled", "label", "onClick"])) :
|
|
2716
|
-
])) :
|
|
2715
|
+
}, null, 8, ["disabled", "label", "onClick"])) : q("", !0)
|
|
2716
|
+
])) : q("", !0)
|
|
2717
2717
|
], 512),
|
|
2718
|
-
|
|
2718
|
+
E(fe, {
|
|
2719
2719
|
style: gt(n(Ce).tableHeight),
|
|
2720
2720
|
"column-defs": n(m),
|
|
2721
2721
|
"row-data": Ye.value,
|
|
@@ -2725,42 +2725,42 @@ const nr = {
|
|
|
2725
2725
|
"page-size": re.value
|
|
2726
2726
|
}, {
|
|
2727
2727
|
"list-row": Ie((U) => [
|
|
2728
|
-
|
|
2728
|
+
E(Vn, {
|
|
2729
2729
|
row: U,
|
|
2730
2730
|
onRowClick: n(s).promptShowTransferDetails
|
|
2731
2731
|
}, {
|
|
2732
2732
|
default: Ie((ye) => {
|
|
2733
|
-
var Ue, r, u, b, A, M, F, Q, Z, ee, oe, te, pe, be, Pe, Ae, ge, Y, G, ke, De,
|
|
2733
|
+
var Ue, r, u, b, A, M, F, Q, Z, ee, oe, te, pe, be, Pe, Ae, ge, Y, G, ke, De, qe, D, ie, he;
|
|
2734
2734
|
return [
|
|
2735
2735
|
e("div", Mr, [
|
|
2736
2736
|
e("div", Ur, [
|
|
2737
|
-
|
|
2737
|
+
E(n(ot), {
|
|
2738
2738
|
render: (u = (r = (Ue = ye._id) == null ? void 0 : Ue.column) == null ? void 0 : r.columnDef) == null ? void 0 : u.cell,
|
|
2739
2739
|
props: (A = (b = ye._id) == null ? void 0 : b.getContext) == null ? void 0 : A.call(b)
|
|
2740
2740
|
}, null, 8, ["render", "props"])
|
|
2741
2741
|
]),
|
|
2742
2742
|
e("div", Vr, [
|
|
2743
|
-
|
|
2743
|
+
E(n(ot), {
|
|
2744
2744
|
render: (Q = (F = (M = ye.location) == null ? void 0 : M.column) == null ? void 0 : F.columnDef) == null ? void 0 : Q.cell,
|
|
2745
2745
|
props: (ee = (Z = ye.location) == null ? void 0 : Z.getContext) == null ? void 0 : ee.call(Z)
|
|
2746
2746
|
}, null, 8, ["render", "props"])
|
|
2747
2747
|
]),
|
|
2748
2748
|
e("div", Jr, [
|
|
2749
|
-
|
|
2749
|
+
E(n(ot), {
|
|
2750
2750
|
render: (pe = (te = (oe = ye.supplier_name) == null ? void 0 : oe.column) == null ? void 0 : te.columnDef) == null ? void 0 : pe.cell,
|
|
2751
2751
|
props: (Pe = (be = ye.supplier_name) == null ? void 0 : be.getContext) == null ? void 0 : Pe.call(be)
|
|
2752
2752
|
}, null, 8, ["render", "props"])
|
|
2753
2753
|
]),
|
|
2754
2754
|
e("div", jr, p(n(_)("inventory.transfer.table.noOfItems")) + ": " + p(se(U.original)), 1),
|
|
2755
2755
|
U.original.ref ? (i(), y("div", Wr, [
|
|
2756
|
-
|
|
2756
|
+
E(n(ot), {
|
|
2757
2757
|
render: (Y = (ge = (Ae = ye.ref) == null ? void 0 : Ae.column) == null ? void 0 : ge.columnDef) == null ? void 0 : Y.cell,
|
|
2758
2758
|
props: (ke = (G = ye.ref) == null ? void 0 : G.getContext) == null ? void 0 : ke.call(G)
|
|
2759
2759
|
}, null, 8, ["render", "props"])
|
|
2760
|
-
])) :
|
|
2760
|
+
])) : q("", !0),
|
|
2761
2761
|
e("div", Yr, [
|
|
2762
|
-
|
|
2763
|
-
render: (D = (
|
|
2762
|
+
E(n(ot), {
|
|
2763
|
+
render: (D = (qe = (De = ye.status) == null ? void 0 : De.column) == null ? void 0 : qe.columnDef) == null ? void 0 : D.cell,
|
|
2764
2764
|
props: (he = (ie = ye.status) == null ? void 0 : ie.getContext) == null ? void 0 : he.call(ie)
|
|
2765
2765
|
}, null, 8, ["render", "props"])
|
|
2766
2766
|
])
|
|
@@ -2774,28 +2774,28 @@ const nr = {
|
|
|
2774
2774
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]),
|
|
2775
2775
|
n(s).rowAction.pending.value ? (i(), y("div", Qr, [
|
|
2776
2776
|
e("div", Hr, [
|
|
2777
|
-
|
|
2777
|
+
E(Le, { size: "md" }),
|
|
2778
2778
|
e("span", Kr, p(n(_)("inventory.common.loading")), 1),
|
|
2779
|
-
|
|
2779
|
+
E(ae, {
|
|
2780
2780
|
variant: "secondary",
|
|
2781
2781
|
label: n(_)("inventory.common.cancel"),
|
|
2782
2782
|
onClick: n(s).rowAction.cancel
|
|
2783
2783
|
}, null, 8, ["label", "onClick"])
|
|
2784
2784
|
])
|
|
2785
|
-
])) :
|
|
2785
|
+
])) : q("", !0)
|
|
2786
2786
|
]))
|
|
2787
2787
|
], 2),
|
|
2788
2788
|
(i(), ve(dt, { to: "body" }, [
|
|
2789
|
-
|
|
2790
|
-
n(O).enablePurchaseOrderEmail ? (i(), ve(An, Pt(yt({ key: 0 }, n(s).emailDialogProps.value)), null, 16)) :
|
|
2791
|
-
|
|
2789
|
+
E(Rr),
|
|
2790
|
+
n(O).enablePurchaseOrderEmail ? (i(), ve(An, Pt(yt({ key: 0 }, n(s).emailDialogProps.value)), null, 16)) : q("", !0),
|
|
2791
|
+
E(Is, {
|
|
2792
2792
|
show: g.value,
|
|
2793
2793
|
"onUpdate:show": k[9] || (k[9] = (U) => g.value = U),
|
|
2794
2794
|
"last-closing-date": n(s).lastClosingDate.value,
|
|
2795
2795
|
"selected-outlet-ids": Fe.value,
|
|
2796
2796
|
onSubmitted: n(s).fetchData
|
|
2797
2797
|
}, null, 8, ["show", "last-closing-date", "selected-outlet-ids", "onSubmitted"]),
|
|
2798
|
-
|
|
2798
|
+
E(Bn, yt(n(s).transferDialogProps.value, {
|
|
2799
2799
|
onSubmitted: n(s).fetchData
|
|
2800
2800
|
}), null, 16, ["onSubmitted"]),
|
|
2801
2801
|
n(s).transferDetailsProps.value != null ? (i(), ve(Cn, yt({ key: 1 }, {
|
|
@@ -2804,23 +2804,23 @@ const nr = {
|
|
|
2804
2804
|
shipments: n(s).shipments.value ?? []
|
|
2805
2805
|
}, {
|
|
2806
2806
|
onSubmitted: n(s).fetchData
|
|
2807
|
-
}), null, 16, ["onSubmitted"])) :
|
|
2808
|
-
|
|
2809
|
-
|
|
2807
|
+
}), null, 16, ["onSubmitted"])) : q("", !0),
|
|
2808
|
+
E(Tn, Pt(sn(n(s).xilnexImportDialogProps.value)), null, 16),
|
|
2809
|
+
E(Ws, {
|
|
2810
2810
|
modelValue: n(d),
|
|
2811
2811
|
"onUpdate:modelValue": k[10] || (k[10] = (U) => Rt(d) ? d.value = U : null),
|
|
2812
2812
|
loading: n(h),
|
|
2813
2813
|
"blob-url": n(c)
|
|
2814
2814
|
}, null, 8, ["modelValue", "loading", "blob-url"])
|
|
2815
2815
|
]))
|
|
2816
|
-
], 64)) :
|
|
2816
|
+
], 64)) : q("", !0)
|
|
2817
2817
|
];
|
|
2818
2818
|
}),
|
|
2819
2819
|
_: 1
|
|
2820
2820
|
}, 8, ["title", "actions"]);
|
|
2821
2821
|
};
|
|
2822
2822
|
}
|
|
2823
|
-
}),
|
|
2823
|
+
}), No = /* @__PURE__ */ at({
|
|
2824
2824
|
__name: "BulkReceiveRequestPage",
|
|
2825
2825
|
setup(C) {
|
|
2826
2826
|
return (_, x) => (i(), ve(rn, {
|
|
@@ -2828,12 +2828,12 @@ const nr = {
|
|
|
2828
2828
|
"keep-across-locations": ""
|
|
2829
2829
|
}, {
|
|
2830
2830
|
default: Ie(() => [
|
|
2831
|
-
|
|
2831
|
+
E(Gr)
|
|
2832
2832
|
]),
|
|
2833
2833
|
_: 1
|
|
2834
2834
|
}));
|
|
2835
2835
|
}
|
|
2836
2836
|
});
|
|
2837
2837
|
export {
|
|
2838
|
-
|
|
2838
|
+
No as default
|
|
2839
2839
|
};
|