@feedmepos/mf-inventory-portal 0.0.25-dev.37 → 0.0.25-dev.39
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-C0_9-oDP.js → App-B7L9LuKI.js} +2 -2
- package/dist/{ApprovalView-BDUbQAH0.js → ApprovalView-P7uUdpuJ.js} +2 -2
- package/dist/{BindingsDialog-BvKDyWAP.js → BindingsDialog-E4j9FuOl.js} +2 -2
- package/dist/{BindingsPicker-zAexcP3H.js → BindingsPicker-3mrWImf-.js} +1 -1
- package/dist/{BindingsTable-6dPndhbk.js → BindingsTable-DMoC7BEJ.js} +1 -1
- package/dist/{ClosingDraftView-NwwxcHA-.js → ClosingDraftView-hUFOQ9pI.js} +241 -237
- package/dist/{ClosingTemplateView-Cfh0BZXH.js → ClosingTemplateView-DGG2zD13.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DKxW0e2c.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BjYwi7Vb.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CD0p0eOE.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B7CfRiCR.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-eGofs51J.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5ud0qJ.js} +1 -1
- package/dist/{IngredientGroupView-Cz4zcWgF.js → IngredientGroupView-D63u-gSo.js} +1 -1
- package/dist/{IngredientsView-Ctmor1Ds.js → IngredientsView-DzzIoie9.js} +115 -106
- package/dist/{IntegrationView-DYV2ISmc.js → IntegrationView-SO7nVoSn.js} +1 -1
- package/dist/{InventoryBindingForm-Be75Cpzd.js → InventoryBindingForm-CNBLyKuy.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-D8dK7h0Z.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-gcdA5y3h.js} +3 -3
- package/dist/{InventoryBindingSummary-Cw1Woc3L.js → InventoryBindingSummary-Cx5doszw.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BhKk5nMz.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-uBLwHGx6.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DECtXs-3.js → PremiumBadge.vue_vue_type_script_setup_true_lang-U-MNov1N.js} +1 -1
- package/dist/{PublishView-D9mnP1d8.js → PublishView-C7-F5H_l.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-2DOgQczG.js → PurchaseOrderPrintPreview-Cn1MGNQG.js} +1 -1
- package/dist/ReceiveRequestView-1ltlDUjA.js +2577 -0
- package/dist/{RecipeView-DTwkk7M_.js → RecipeView-CFEr9txv.js} +3 -3
- package/dist/{StockView-cd047f5L.js → StockView-BCuZoG8u.js} +7 -7
- package/dist/{SupplierView-CkYiC3sV.js → SupplierView-BFZYyzZE.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CE3vSlpG.js → TransferDetails.vue_vue_type_script_setup_true_lang-XKOcF4q9.js} +19 -20
- package/dist/TransferTemplateView-DAcRo6jQ.js +1526 -0
- package/dist/{UnitView-C-1I-kVv.js → UnitView-IzqKR_Ue.js} +3 -3
- package/dist/{WarehouseView-CJTtNzco.js → WarehouseView-D_lYd_zi.js} +1 -1
- package/dist/api/stock.d.ts +1 -0
- package/dist/{app-C720GM9g.js → app-D8JtDgcD.js} +1660 -1659
- package/dist/app.js +1 -1
- package/dist/{decimal-BCdHyq3s.js → decimal-BzA7nhoj.js} +1 -1
- package/dist/{feature-Df0TfAlQ.js → feature-DZpzqRzb.js} +1 -1
- package/dist/{format-unit-display-DhVGfJ3A.js → format-unit-display-gJA_tWyb.js} +2 -2
- package/dist/{index-BcO0U3XD.js → index-4_4oJqYY.js} +2 -2
- package/dist/{stock-AgQ9Kd12.js → stock-Cw4_XPhT.js} +29 -25
- package/dist/{supplier-y6wN-U1P.js → supplier-FQRxjLKh.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DedAlRiZ.js → use-ingredient-select-dialog-CxxnIrMR.js} +1 -1
- package/dist/{use-inventory-binding-dialog-D6ESCCxB.js → use-inventory-binding-dialog-C9t7UpkK.js} +1 -1
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +3 -2
- package/dist/{vue-i18n-C4yPgaCz.js → vue-i18n-UenefCe4.js} +321 -321
- package/package.json +3 -3
- package/dist/ReceiveRequestView-Ss803mII.js +0 -2547
- package/dist/TransferTemplateView-C6-6Db2r.js +0 -1524
package/dist/app.js
CHANGED
|
@@ -2,7 +2,7 @@ var fe = Object.defineProperty;
|
|
|
2
2
|
var pe = (p, l, v) => l in p ? fe(p, l, { enumerable: !0, configurable: !0, writable: !0, value: v }) : p[l] = v;
|
|
3
3
|
var ct = (p, l, v) => pe(p, typeof l != "symbol" ? l + "" : l, v);
|
|
4
4
|
import { useCoreStore as ht } from "@feedmepos/mf-common";
|
|
5
|
-
import { a4 as vt, u as Dt, aH as re, a as ye } from "./app-
|
|
5
|
+
import { a4 as vt, u as Dt, aH as re, a as ye } from "./app-D8JtDgcD.js";
|
|
6
6
|
import { ref as gt, readonly as Kt } from "vue";
|
|
7
7
|
var Gt = { exports: {} };
|
|
8
8
|
(function(p, l) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { W as Ee, a as q, K as Ie, ad as U, q as Ae, ae as fe, r as ye, u as W, i as B, s as Ne, aH as ae, v as he, b as J, t as V, O as j, aG as Oe, az as De, T as Fe, w as Pe, x as Ue, d as se, e as X, R as ie, H as Be, ac as Me, D as G, h as D, f as Le } from "./app-
|
|
1
|
+
import { W as Ee, a as q, K as Ie, ad as U, q as Ae, ae as fe, r as ye, u as W, i as B, s as Ne, aH as ae, v as he, b as J, t as V, O as j, aG as Oe, az as De, T as Fe, w as Pe, x as Ue, d as se, e as X, R as ie, H as Be, ac as Me, D as G, h as D, f as Le } from "./app-D8JtDgcD.js";
|
|
2
2
|
import { useCoreStore as ee, useI18n as te } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as Qe, useSnackbar as ve, useDialog as He, FmButtonVariant as le, components as ce } from "@feedmepos/ui-library";
|
|
4
4
|
import { defineStore as ge } from "pinia";
|
|
5
5
|
import { defineComponent as be, resolveComponent as L, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as Q, createTextVNode as qe, toDisplayString as I, unref as E, createCommentVNode as H, createVNode as F, withCtx as Z, Fragment as M, renderList as K, ref as C, onMounted as Ve, computed as me, watch as je, createSlots as ze, createBlock as z, h as Y } from "vue";
|
|
6
6
|
import { useRouter as Ke } from "vue-router";
|
|
7
|
-
import { u as re } from "./supplier-
|
|
7
|
+
import { u as re } from "./supplier-FQRxjLKh.js";
|
|
8
8
|
const Se = Ee((e, t) => {
|
|
9
9
|
function a() {
|
|
10
10
|
var n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aR as be, a1 as L, aW as hu, a2 as se, a3 as Yc, a4 as st, aX as Oa } from "./app-
|
|
1
|
+
import { aR as be, a1 as L, aW as hu, a2 as se, a3 as Yc, a4 as st, aX as Oa } from "./app-D8JtDgcD.js";
|
|
2
2
|
function vp(o, u) {
|
|
3
3
|
for (var d = 0; d < u.length; d++) {
|
|
4
4
|
const h = u[d];
|
|
@@ -10699,7 +10699,7 @@ dn.FdtoV4Tax = Pi.z.object({
|
|
|
10699
10699
|
});
|
|
10700
10700
|
var Vn = {}, lo = {}, fl = {};
|
|
10701
10701
|
(function(o) {
|
|
10702
|
-
var u = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c0c7e09e-4635-486f-8203-45bf8dbcf99f", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_dependencies_zod: "3.17.9", npm_package_devDependencies__types_node: "^18.19.33", npm_config_dedupe_peer_dependents: "", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_scripts_prepublish: "pnpm check:env && pnpm build:mf && pnpm build:dts", npm_package_dependencies_fuzzy_search: "^3.2.1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.6.0", USER: "runner", npm_config_user_agent: "pnpm/9.12.1 npm/? node/v20.19.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", npm_package_devDependencies_vite_plugin_commonjs: "^0.10.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c0c7e09e-4635-486f-8203-45bf8dbcf99f", PIPX_HOME: "/opt/pipx", npm_package_scripts_dev_standalone: "vite --mode standalone", npm_package_dependencies_node_html_parser: "^7.0.1", npm_package_devDependencies_vite: "5.4.8", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", npm_package_scripts_prod_standalone: "PORTAL_ENV=production vite --mode standalone", npm_package_scripts_check_env: 'cat build-*.env | grep -qE "^[^#].*localhost" && { echo "Error: build-*.env files contains localhost reference" >&2; exit 1;} || exit 0', HOME: "/home/runner", npm_package_devDependencies_sass: "^1.77.2", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "PORTAL_ENV=production vite build --mode fmmf", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8192", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --declaration --noEmit -p tsconfig.app.json", npm_package_dependencies__feedmepos_mf_common: "1.18.0-beta.5", npm_package_devDependencies_npm_run_all2: "^6.2.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "710", npm_package_dependencies__feedmepos_ui_library: "1.5.1-beta.3", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_devDependencies__tsconfig_node18: "^18.2.4", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_devDependencies_tailwindcss: "3.4.1", npm_package_devDependencies_typescript: "5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_google_maps: "^4.3.3", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.27", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250316.1.0", npm_package_scripts_build_prod: "PORTAL_ENV=production vite build --mode standalone", npm_package_scripts_dev: "vite", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_devDependencies_prettier: "^3.2.5", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_devDependencies__vue_tsconfig: "^0.4.0", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.7/x64", JOURNAL_STREAM: "8:6306", GITHUB_WORKFLOW: "Preview FeedMe Inventory Portal V1", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_scripts_check_publish_version: "./bin/check-version.sh", npm_package_dependencies_csstype: "^3.1.3", npm_package_dependencies_fuzzy: "^0.1.3", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13983723674", STATS_VMFE: "true", npm_package_devDependencies_happy_dom: "^12.10.3", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d52437da94d7fa3637648dc181dc22057d449d14", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", GITHUB_WORKFLOW_REF: "feedmepos/inventory-service/.github/workflows/inventory-portal-dev.yaml@refs/heads/dev/portal", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies__feedmepos_zod_inventory: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_afdc81ce-f532-4f77-8a79-a6950b0f38df", INVOCATION_ID: "4f9b758d97724db2a8d9a2d7206d85a7", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.0/x64/bin/node", npm_package_name: "@feedmepos/mf-inventory-portal", GITHUB_ACTION: "publish_version", GITHUB_RUN_NUMBER: "443", GITHUB_TRIGGERING_ACTOR: "ye-yu", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_test_publish: "pnpm prepublish && pnpm pack", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_config_frozen_lockfile: "", npm_package_dependencies__typescript_eslint_typescript_estree: "^8.21.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies__vue_test_utils: "^2.4.6", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 97", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev/portal", GITHUB_REPOSITORY: "feedmepos/inventory-service", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_publish_beta: "pnpm publish --tag beta", npm_package_scripts_unpack: "tar zxf", npm_package_dependencies__feedmepos_core: "^2.12.28", npm_package_devDependencies__types_debounce: "^1.2.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", GITHUB_REPOSITORY_ID: "656626604", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/bin/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.25-dev.37", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && pnpm build-types", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__rushstack_eslint_patch: "^1.10.3", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vite build --mode standalone", npm_package_dependencies_vue_i18n: "^10.0.5", npm_config__feedmepos_registry: "https://registry.npmjs.org/", GITHUB_WORKSPACE: "/home/runner/work/inventory-service/inventory-service", ACCEPT_EULA: "Y", GITHUB_JOB: "setup", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_devDependencies__types_fuzzy_search: "^2.1.5", npm_package_devDependencies_cypress: "^13.9.0", GITHUB_SHA: "d52437da94d7fa3637648dc181dc22057d449d14", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/heads/dev/portal", GITHUB_ACTOR: "ye-yu", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies__testing_library_vue: "^8.1.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_c0c7e09e-4635-486f-8203-45bf8dbcf99f", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", GITHUB_ACTOR_ID: "30603031", RUNNER_WORKSPACE: "/home/runner/work/inventory-service", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_c0c7e09e-4635-486f-8203-45bf8dbcf99f", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_feature_flag: "^0.0.13", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.26.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_deploy: "pnpm run build-only && pnpm publish --no-git-checks .", npm_package_dependencies_debounce: "^2.0.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c0c7e09e-4635-486f-8203-45bf8dbcf99f", INIT_CWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_dependencies__feedmepos_inventory_core_js: "workspace:^", npm_package_dependencies_libphonenumber_js: "^1.11.18", NODE_ENV: "production" } }, d = typeof u < "u" && (u.versions || {}).hasOwnProperty("node"), h = d ? Object.create(globalThis) : globalThis;
|
|
10702
|
+
var u = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9524a1b1-0594-43e5-ba50-1cb01635ac63", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_dependencies_zod: "3.17.9", npm_package_devDependencies__types_node: "^18.19.33", npm_config_dedupe_peer_dependents: "", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_scripts_prepublish: "pnpm check:env && pnpm build:mf && pnpm build:dts", npm_package_dependencies_fuzzy_search: "^3.2.1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.6.0", USER: "runner", npm_config_user_agent: "pnpm/9.12.1 npm/? node/v20.19.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", npm_package_devDependencies_vite_plugin_commonjs: "^0.10.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_9524a1b1-0594-43e5-ba50-1cb01635ac63", PIPX_HOME: "/opt/pipx", npm_package_scripts_dev_standalone: "vite --mode standalone", npm_package_dependencies_node_html_parser: "^7.0.1", npm_package_devDependencies_vite: "5.4.8", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", npm_package_scripts_prod_standalone: "PORTAL_ENV=production vite --mode standalone", npm_package_scripts_check_env: 'cat build-*.env | grep -qE "^[^#].*localhost" && { echo "Error: build-*.env files contains localhost reference" >&2; exit 1;} || exit 0', HOME: "/home/runner", npm_package_devDependencies_sass: "^1.77.2", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "PORTAL_ENV=production vite build --mode fmmf", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8192", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --declaration --noEmit -p tsconfig.app.json", npm_package_dependencies__feedmepos_mf_common: "1.18.0-beta.5", npm_package_devDependencies_npm_run_all2: "^6.2.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "712", npm_package_dependencies__feedmepos_ui_library: "1.5.1-beta.3", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_devDependencies__tsconfig_node18: "^18.2.4", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_devDependencies_tailwindcss: "3.4.1", npm_package_devDependencies_typescript: "5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_google_maps: "^4.3.3", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.27", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250316.1.0", npm_package_scripts_build_prod: "PORTAL_ENV=production vite build --mode standalone", npm_package_scripts_dev: "vite", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_devDependencies_prettier: "^3.2.5", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_devDependencies__vue_tsconfig: "^0.4.0", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.7/x64", JOURNAL_STREAM: "8:6078", GITHUB_WORKFLOW: "Preview FeedMe Inventory Portal V1", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_scripts_check_publish_version: "./bin/check-version.sh", npm_package_dependencies_csstype: "^3.1.3", npm_package_dependencies_fuzzy: "^0.1.3", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13986639630", STATS_VMFE: "true", npm_package_devDependencies_happy_dom: "^12.10.3", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a43cd9c07f35f813c1d1d49581551b2629e4c293", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", GITHUB_WORKFLOW_REF: "feedmepos/inventory-service/.github/workflows/inventory-portal-dev.yaml@refs/heads/dev/portal", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies__feedmepos_zod_inventory: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_842ceb7b-b017-4b3d-8842-452a01c1fde9", INVOCATION_ID: "7a02d078238a49e6830e895052e90a4b", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.0/x64/bin/node", npm_package_name: "@feedmepos/mf-inventory-portal", GITHUB_ACTION: "publish_version", GITHUB_RUN_NUMBER: "445", GITHUB_TRIGGERING_ACTOR: "ye-yu", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_test_publish: "pnpm prepublish && pnpm pack", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_config_frozen_lockfile: "", npm_package_dependencies__typescript_eslint_typescript_estree: "^8.21.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies__vue_test_utils: "^2.4.6", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 24", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev/portal", GITHUB_REPOSITORY: "feedmepos/inventory-service", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_publish_beta: "pnpm publish --tag beta", npm_package_scripts_unpack: "tar zxf", npm_package_dependencies__feedmepos_core: "^2.12.28", npm_package_devDependencies__types_debounce: "^1.2.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", GITHUB_REPOSITORY_ID: "656626604", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/bin/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.25-dev.39", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && pnpm build-types", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__rushstack_eslint_patch: "^1.10.3", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vite build --mode standalone", npm_package_dependencies_vue_i18n: "^10.0.5", npm_config__feedmepos_registry: "https://registry.npmjs.org/", GITHUB_WORKSPACE: "/home/runner/work/inventory-service/inventory-service", ACCEPT_EULA: "Y", GITHUB_JOB: "setup", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_devDependencies__types_fuzzy_search: "^2.1.5", npm_package_devDependencies_cypress: "^13.9.0", GITHUB_SHA: "a43cd9c07f35f813c1d1d49581551b2629e4c293", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/heads/dev/portal", GITHUB_ACTOR: "ye-yu", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies__testing_library_vue: "^8.1.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_9524a1b1-0594-43e5-ba50-1cb01635ac63", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", GITHUB_ACTOR_ID: "30603031", RUNNER_WORKSPACE: "/home/runner/work/inventory-service", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_9524a1b1-0594-43e5-ba50-1cb01635ac63", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_feature_flag: "^0.0.13", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.26.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_deploy: "pnpm run build-only && pnpm publish --no-git-checks .", npm_package_dependencies_debounce: "^2.0.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_9524a1b1-0594-43e5-ba50-1cb01635ac63", INIT_CWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_dependencies__feedmepos_inventory_core_js: "workspace:^", npm_package_dependencies_libphonenumber_js: "^1.11.18", NODE_ENV: "production" } }, d = typeof u < "u" && (u.versions || {}).hasOwnProperty("node"), h = d ? Object.create(globalThis) : globalThis;
|
|
10703
10703
|
if (h.scheduleImmediate = typeof setImmediate < "u" ? function(_) {
|
|
10704
10704
|
setImmediate(_);
|
|
10705
10705
|
} : function(_) {
|
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import { W as m, u as B, a as
|
|
2
|
-
import { useCoreStore as
|
|
1
|
+
import { W as m, u as B, a as l, ao as k, K as v } from "./app-D8JtDgcD.js";
|
|
2
|
+
import { useCoreStore as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as y } from "@feedmepos/ui-library";
|
|
4
4
|
import { ref as $, computed as S } from "vue";
|
|
5
5
|
const b = m((r, o) => {
|
|
6
|
-
const
|
|
6
|
+
const c = B(), a = p(), u = y();
|
|
7
7
|
return o.onError(async (t) => {
|
|
8
|
-
t.name === "SvcForbiddenError" && (
|
|
8
|
+
t.name === "SvcForbiddenError" && (u == null || u.open({
|
|
9
9
|
title: t.title,
|
|
10
10
|
message: t.message,
|
|
11
11
|
type: "error"
|
|
12
12
|
}));
|
|
13
13
|
}), {
|
|
14
14
|
async readStockBalance() {
|
|
15
|
-
const t =
|
|
15
|
+
const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/stock-balance`;
|
|
16
16
|
return await o.get(e);
|
|
17
17
|
},
|
|
18
18
|
async readSkuBalance() {
|
|
19
19
|
var s;
|
|
20
|
-
const t =
|
|
20
|
+
const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/sku/balance`;
|
|
21
21
|
return (((s = a.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await o.get(e) : await o.get(`${e}?useInventoryDoc=true`);
|
|
22
22
|
},
|
|
23
23
|
async readSingleAdjustment(t) {
|
|
24
|
-
const e =
|
|
24
|
+
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
|
|
25
25
|
return await o.get(`${n}?adjustmentId=${t}`);
|
|
26
26
|
},
|
|
27
27
|
async readStockAdjustment(t, e, n) {
|
|
28
|
-
const s =
|
|
28
|
+
const s = c.currentLocationDBName, i = `${r.inventoryBackendUrl}/${s}/sku`;
|
|
29
29
|
return await o.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
|
|
30
30
|
},
|
|
31
|
+
async readAdjustmentById(t) {
|
|
32
|
+
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
|
|
33
|
+
return await o.get(`${n}?adjustmentId=${t}`);
|
|
34
|
+
},
|
|
31
35
|
async convertSku(t) {
|
|
32
36
|
var i;
|
|
33
|
-
const e =
|
|
37
|
+
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/convert`;
|
|
34
38
|
return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
|
|
35
39
|
},
|
|
36
40
|
async adjustSku(t) {
|
|
37
41
|
var i;
|
|
38
|
-
const e =
|
|
42
|
+
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/adjust`;
|
|
39
43
|
return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
|
|
40
44
|
},
|
|
41
45
|
recalculation: {
|
|
@@ -61,44 +65,44 @@ function g() {
|
|
|
61
65
|
productBalance: []
|
|
62
66
|
};
|
|
63
67
|
}
|
|
64
|
-
const f =
|
|
68
|
+
const f = v(0), w = {
|
|
65
69
|
id: "",
|
|
66
70
|
balance: f,
|
|
67
71
|
closing: null,
|
|
68
72
|
costs: null
|
|
69
|
-
},
|
|
70
|
-
const r =
|
|
73
|
+
}, d = $(g()), A = () => {
|
|
74
|
+
const r = l(), o = S(() => {
|
|
71
75
|
var t;
|
|
72
|
-
const a = (t =
|
|
76
|
+
const a = (t = d.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), u = (e) => {
|
|
73
77
|
var n;
|
|
74
78
|
return ((n = a == null ? void 0 : a.get(e)) == null ? void 0 : n[0]) ?? { ...w, id: e };
|
|
75
79
|
};
|
|
76
|
-
return r.skus.map((e) =>
|
|
77
|
-
}),
|
|
80
|
+
return r.skus.map((e) => u(e._id));
|
|
81
|
+
}), c = b();
|
|
78
82
|
return {
|
|
79
83
|
// state
|
|
80
84
|
get stockBalance() {
|
|
81
85
|
return {
|
|
82
|
-
...
|
|
86
|
+
...d.value.stockBalance,
|
|
83
87
|
skus: o.value
|
|
84
88
|
};
|
|
85
89
|
},
|
|
86
90
|
set stockBalance(a) {
|
|
87
|
-
|
|
91
|
+
d.value.stockBalance = a;
|
|
88
92
|
},
|
|
89
93
|
get productBalance() {
|
|
90
|
-
return
|
|
94
|
+
return d.value.productBalance;
|
|
91
95
|
},
|
|
92
96
|
set productBalance(a) {
|
|
93
|
-
|
|
97
|
+
d.value.productBalance = a;
|
|
94
98
|
},
|
|
95
99
|
// actions
|
|
96
100
|
async readStockBalance() {
|
|
97
|
-
this.stockBalance = await
|
|
101
|
+
this.stockBalance = await c.readStockBalance();
|
|
98
102
|
},
|
|
99
103
|
async readProductBalance() {
|
|
100
104
|
this.productBalance = [];
|
|
101
|
-
const a =
|
|
105
|
+
const a = l(), u = k({
|
|
102
106
|
recipes: a.recipes,
|
|
103
107
|
skus: a.skus,
|
|
104
108
|
inventoryBindingMapping: {},
|
|
@@ -108,9 +112,9 @@ const f = p(0), w = {
|
|
|
108
112
|
function t(e, n) {
|
|
109
113
|
return Object.prototype.hasOwnProperty.call(e, n);
|
|
110
114
|
}
|
|
111
|
-
for (const e in
|
|
112
|
-
if (t(
|
|
113
|
-
const n =
|
|
115
|
+
for (const e in u.convertCountdown)
|
|
116
|
+
if (t(u.convertCountdown, e)) {
|
|
117
|
+
const n = u.convertCountdown[e];
|
|
114
118
|
this.productBalance.push({
|
|
115
119
|
id: e,
|
|
116
120
|
count: n
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as m, u, s as y, ap as b, aq as v } from "./app-
|
|
1
|
+
import { W as m, u, s as y, ap as b, aq as v } from "./app-D8JtDgcD.js";
|
|
2
2
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as w } from "pinia";
|
|
4
4
|
import { ref as l, computed as d } from "vue";
|