@feedmepos/mf-inventory-portal 1.2.13 → 1.2.14-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App-BsAX8Df8.js +286 -0
- package/dist/{ApprovalView-BWX6xBQs.js → ApprovalView-BT-A6f4_.js} +26 -26
- package/dist/{BindingsDialog-CuwkcDKX.js → BindingsDialog-CNpvAGHr.js} +2 -2
- package/dist/{BindingsPicker-BibFsY0g.js → BindingsPicker-D-vmVplT.js} +10 -10
- package/dist/{BindingsTable-AdjKwSPH.js → BindingsTable-Z7PTxSy6.js} +1 -1
- package/dist/{ClosingDraftView-DWFHP9nE.js → ClosingDraftView-C_3P7kh0.js} +44 -44
- package/dist/{ClosingTemplateView-DOCF5f_u.js → ClosingTemplateView-CimxBGT-.js} +26 -26
- package/dist/{DeliveryOrderPrintPreview-DNDtL_Vo.js → DeliveryOrderPrintPreview-CMTO9y6R.js} +10 -10
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BWhINOE8.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMK3P4pu.js} +15 -15
- package/dist/{FmMultiselectDialog-Dfo04ak5.js → FmMultiselectDialog-D6f0A92U.js} +4 -4
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DGVs4zLl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CJvnR-aO.js} +54 -54
- package/dist/ImportView-CTYLH5Mz.js +1303 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BESx2u4Y.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BbmtJ6Ge.js} +1 -1
- package/dist/{IngredientGroupView-M9sXlnE0.js → IngredientGroupView-wygIXAKy.js} +19 -20
- package/dist/IngredientsView-Ct3eNIqS.js +2240 -0
- package/dist/{IntegrationView-BlUNz1yc.js → IntegrationView-CKA76Mi6.js} +3 -3
- package/dist/{InventoryBindingForm-CvQ5zh6v.js → InventoryBindingForm-CdK2Ujur.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BEAEmPsU.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-O0bjxU.js} +12 -12
- package/dist/{InventoryBindingSummary-CsJ-6G2P.js → InventoryBindingSummary-DN6sSW2u.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjN_ktl1.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BK65pQy4.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BN_e7k7U.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DrFtLYGt.js} +1 -1
- package/dist/{PublishView-DZgCyLK2.js → PublishView-LJA3-Xmq.js} +25 -25
- package/dist/{PurchaseOrderPrintPreview-CB2xvQ33.js → PurchaseOrderPrintPreview-CpnoNRcV.js} +12 -12
- package/dist/{ReceiveRequestView-DgDHOS-Y.js → ReceiveRequestView-d7KmB_XN.js} +131 -132
- package/dist/RecipeView-B7PtWfJ-.js +636 -0
- package/dist/{StockView-eJOngk08.js → StockView-DoataAnD.js} +165 -166
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BMFfegsk.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BZNMBDJ7.js} +1 -1
- package/dist/{SupplierView-BS8rBAKC.js → SupplierView-D9Kb7rAO.js} +4 -4
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CfnN-1oC.js +3385 -0
- package/dist/{TransferTemplateView-By5Ci4Yg.js → TransferTemplateView-D9mrfBH5.js} +166 -166
- package/dist/UnitView-BP5IzLw2.js +674 -0
- package/dist/{WarehouseView-4ZLSJXYc.js → WarehouseView-B-qnAHv5.js} +32 -32
- package/dist/api/inventory.d.ts +306 -0
- package/dist/api/purchase-order.d.ts +1 -0
- package/dist/{app-D2lun71R.js → app-DDKw9H3a.js} +11730 -11115
- package/dist/app.d.ts +421 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Cm1TtVzm.js → closing-template-BYCZ8etT.js} +1 -1
- package/dist/{decimal-eeicE4jp.js → decimal-DMb7zEqx.js} +1 -1
- package/dist/{format-unit-display-vHKazw0l.js → format-unit-display-BCTXGGeT.js} +24 -24
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-B4JVPOJK.js +243 -0
- package/dist/{index-DvX9cMJV.js → index-BZIogw8R.js} +1 -1
- package/dist/{index-C5s-1g7c.js → index-B__hxI_k.js} +1 -1
- package/dist/{purchase-order-template-uTs7bR89.js → purchase-order-template-Duc9oBWo.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-CL2LNdXp.js → stock-cFTv_nsm.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/inventory.d.ts +26 -199
- package/dist/{supplier-CuzoW2k4.js → supplier-CESqvbEF.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Cpg4lHHC.js → use-ingredient-select-dialog-DRJNoQTb.js} +4 -4
- package/dist/{use-inventory-binding-dialog-h4M4ICQK.js → use-inventory-binding-dialog-DTK5yRv9.js} +1 -1
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +3 -1
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +17 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/package.json +3 -3
- package/dist/App-ZoXow3DD.js +0 -276
- package/dist/IngredientsView-DUwhH3j1.js +0 -2475
- package/dist/RecipeView-DQDfwCJd.js +0 -621
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-w98ibfql.js +0 -3060
- package/dist/UnitView-DmuWMFlA.js +0 -667
- package/dist/array-Ca8T3f_G.js +0 -44
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Q, mergeModels as Te, useModel as we, onMounted as ve, ref as O, computed as T, resolveComponent as B, openBlock as I, createElementBlock as L, createElementVNode as s, toDisplayString as R, unref as S, createVNode as b, createBlock as H, withCtx as N, Fragment as Y, renderList as W, normalizeClass as K, normalizeStyle as je, createSlots as te, createCommentVNode as z, withModifiers as ze, reactive as ge, watch as ye, isRef as le, Teleport as de, h as M, createTextVNode as q, watchEffect as He } from "vue";
|
|
2
2
|
import { E as Ue } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { b6 as Xe, aU as Qe, f as ne, u as $, b7 as Ye, b8 as Je, q as Ke, b as re, aI as me, l as Pe, b0 as fe, a8 as Ae, a9 as be, a as he, w as qe, h as ke, Z as G, a4 as Be, b9 as Ce, aN as Ee, aY as Fe, X as Le, B as Ve, a5 as ce, c as Ne, G as Ze, I as Ge } from "./app-DDKw9H3a.js";
|
|
4
4
|
import { useDialogChild as We, useDialog as ue, useProxiedModel as ie, useSnackbar as ee, useBreakpoints as De, components as oe } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Z, useCoreStore as se } from "@feedmepos/mf-common";
|
|
6
|
-
import { a as $e, b as et, c as tt, u as nt } from "./index-
|
|
7
|
-
import { _ as ot, F as st } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { a as $e, b as et, c as tt, u as nt } from "./index-BZIogw8R.js";
|
|
7
|
+
import { _ as ot, F as st } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CJvnR-aO.js";
|
|
8
8
|
const at = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
9
9
|
var Me = { exports: {} };
|
|
10
10
|
(function(C, A) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ee, computed as _, reactive as ne, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as y, withCtx as U, createElementVNode as n, toDisplayString as m, unref as i, createBlock as B, createCommentVNode as v, Fragment as E, renderList as C, nextTick as oe } from "vue";
|
|
2
|
-
import { a as te,
|
|
3
|
-
import { u as re } from "./use-inventory-binding-dialog-
|
|
4
|
-
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a as te, a2 as le, bb as ie, l as h, bc as T, a0 as G, $ as se, F as de } from "./app-DDKw9H3a.js";
|
|
3
|
+
import { u as re } from "./use-inventory-binding-dialog-DTK5yRv9.js";
|
|
4
|
+
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CJvnR-aO.js";
|
|
5
5
|
import { useI18n as ce } from "@feedmepos/mf-common";
|
|
6
6
|
const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-16" }, fe = { class: "flex items-center" }, ve = { class: "flex-1 fm-typo-en-title-sm-600" }, be = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, _e = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, he = {
|
|
7
7
|
class: "flex items-center",
|
|
@@ -21,10 +21,10 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
21
21
|
}, Pe = {
|
|
22
22
|
class: "flex items-center",
|
|
23
23
|
style: { "min-height": "48px" }
|
|
24
|
-
}, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" },
|
|
24
|
+
}, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, $e = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "w-[52px]"
|
|
27
|
-
},
|
|
27
|
+
}, De = { class: "flex flex-col gap-16" }, Ke = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, ze = { class: "flex flex-col" }, Le = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Oe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, We = {
|
|
28
28
|
class: "flex items-center w-full",
|
|
29
29
|
style: { "min-height": "48px" }
|
|
30
30
|
}, qe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, He = { class: "line-clamp-1" }, Je = { class: "w-[150px]" }, Qe = {
|
|
@@ -43,8 +43,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
43
43
|
enableIngredientGroup: { type: Boolean }
|
|
44
44
|
},
|
|
45
45
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
46
|
-
setup(M, { emit:
|
|
47
|
-
const { t: a } = ce(), x = te(),
|
|
46
|
+
setup(M, { emit: $ }) {
|
|
47
|
+
const { t: a } = ce(), x = te(), D = _(() => x.recipeById), I = _(() => x.skuById), K = _(() => x.skuGroupById), s = M, b = $, A = _(() => le({
|
|
48
48
|
parentId: s.id,
|
|
49
49
|
bindings: s.modelValue,
|
|
50
50
|
recipes: x.recipes.map((o) => o._id === s.id ? {
|
|
@@ -192,7 +192,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
192
192
|
n("div", xe, [
|
|
193
193
|
n("div", he, [
|
|
194
194
|
n("div", Ve, [
|
|
195
|
-
n("div", Be, m((g =
|
|
195
|
+
n("div", Be, m((g = D.value[l.id]) == null ? void 0 : g.name), 1)
|
|
196
196
|
]),
|
|
197
197
|
n("div", ke, [
|
|
198
198
|
y(f, {
|
|
@@ -268,7 +268,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
268
268
|
])) : v("", !0),
|
|
269
269
|
n("div", Pe, [
|
|
270
270
|
n("div", Ne, [
|
|
271
|
-
n("div", Te, m((g =
|
|
271
|
+
n("div", Te, m((g = K.value[l.id]) == null ? void 0 : g.name), 1)
|
|
272
272
|
]),
|
|
273
273
|
n("div", Me, [
|
|
274
274
|
y(f, {
|
|
@@ -279,7 +279,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
279
279
|
invalid: V
|
|
280
280
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
281
281
|
]),
|
|
282
|
-
e.readonly ? v("", !0) : (r(), p("div",
|
|
282
|
+
e.readonly ? v("", !0) : (r(), p("div", $e, [
|
|
283
283
|
y(d, {
|
|
284
284
|
disabled: e.disabled,
|
|
285
285
|
type: "button",
|
|
@@ -297,8 +297,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
297
297
|
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
298
298
|
])
|
|
299
299
|
])) : v("", !0),
|
|
300
|
-
n("div",
|
|
301
|
-
n("div",
|
|
300
|
+
n("div", De, [
|
|
301
|
+
n("div", Ke, [
|
|
302
302
|
n("div", je, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
|
|
303
303
|
e.readonly ? v("", !0) : (r(), B(d, {
|
|
304
304
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-DDKw9H3a.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as s } from "./app-DDKw9H3a.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aN as u, aO as _,
|
|
1
|
+
import { aN as u, aO as _, a7 as h, u as F } from "./app-DDKw9H3a.js";
|
|
2
2
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as O } from "vue";
|
|
4
4
|
function w(e, t) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as D, computed as c, watch as X, resolveComponent as l, openBlock as W, createBlock as z, unref as h, createSlots as Z, withCtx as u, createElementVNode as f, normalizeClass as ee, createVNode as a, normalizeStyle as te, Teleport as oe, h as g } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { useBreakpoints as ce, useDialog as ue, useSnackbar as me, components as
|
|
2
|
+
import { aI as ne, u as ae, a as se, b4 as le, E as ie, G as re, a8 as B } from "./app-DDKw9H3a.js";
|
|
3
|
+
import { useBreakpoints as ce, useDialog as ue, useSnackbar as me, components as H } from "@feedmepos/ui-library";
|
|
4
4
|
const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ Q({
|
|
5
5
|
__name: "PublishView",
|
|
6
6
|
setup(be) {
|
|
7
|
-
const { t } = ne(), { breakpoints: x } = ce(), n = ae(), A = se(), S = le(), i = D(!1), m = c(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), R = ie(),
|
|
7
|
+
const { t } = ne(), { breakpoints: x } = ce(), n = ae(), A = se(), S = le(), i = D(!1), m = c(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), R = ie(), I = ue(), Y = me(), N = c(() => n.locationsWithInventory), _ = c(() => x.value.xs || x.value.sm), $ = c(() => _.value ? 10 : 20);
|
|
8
8
|
X(
|
|
9
9
|
() => n._locations,
|
|
10
10
|
async () => {
|
|
@@ -14,7 +14,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
14
14
|
{ immediate: !0 }
|
|
15
15
|
// Optional: triggers the watcher immediately on mount
|
|
16
16
|
);
|
|
17
|
-
const
|
|
17
|
+
const E = c(() => [
|
|
18
18
|
{
|
|
19
19
|
label: t("inventory.common.refresh"),
|
|
20
20
|
value: "refresh",
|
|
@@ -22,10 +22,10 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
22
22
|
},
|
|
23
23
|
{ label: t("inventory.publish.actions.publishAll"), value: "publish", isPrimary: !0 }
|
|
24
24
|
]);
|
|
25
|
-
async function
|
|
25
|
+
async function U(e) {
|
|
26
26
|
switch (e) {
|
|
27
27
|
case "publish":
|
|
28
|
-
|
|
28
|
+
I.open({
|
|
29
29
|
title: t("inventory.common.publish"),
|
|
30
30
|
message: "Are you sure you want to publish to all locations?",
|
|
31
31
|
primaryActions: { text: t("inventory.common.publish"), close: !0 },
|
|
@@ -39,25 +39,25 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
39
39
|
break;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
const w = D(!1),
|
|
42
|
+
const w = D(!1), q = [
|
|
43
43
|
{
|
|
44
44
|
value: "publish",
|
|
45
45
|
label: t("inventory.publish.actions.publishAll")
|
|
46
46
|
}
|
|
47
47
|
];
|
|
48
|
-
function
|
|
48
|
+
function G(e) {
|
|
49
49
|
switch (w.value = !1, e) {
|
|
50
50
|
case "publish":
|
|
51
51
|
console.log("publish all");
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const K = [
|
|
55
55
|
{
|
|
56
56
|
id: "type",
|
|
57
57
|
header: () => t("inventory.publish.columns.type"),
|
|
58
58
|
enableSorting: !0,
|
|
59
59
|
cell(e) {
|
|
60
|
-
return g(
|
|
60
|
+
return g(H.FmChip, {
|
|
61
61
|
color: "primary",
|
|
62
62
|
label: e.row.original.type
|
|
63
63
|
});
|
|
@@ -75,7 +75,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
75
75
|
enableSorting: !0,
|
|
76
76
|
cell(e) {
|
|
77
77
|
var o, s;
|
|
78
|
-
return (o = e.row.original.inventory) != null && o.updatedAt ?
|
|
78
|
+
return (o = e.row.original.inventory) != null && o.updatedAt ? B((s = e.row.original.inventory) == null ? void 0 : s.updatedAt) : "";
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
{
|
|
@@ -103,12 +103,12 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
103
103
|
},
|
|
104
104
|
t(o ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
105
105
|
),
|
|
106
|
-
!o && !p ? g(
|
|
106
|
+
!o && !p ? g(H.FmButton, {
|
|
107
107
|
class: "tertiary",
|
|
108
108
|
variant: "secondary",
|
|
109
109
|
icon: "sync",
|
|
110
110
|
onClick: () => {
|
|
111
|
-
|
|
111
|
+
I.open({
|
|
112
112
|
title: t("inventory.common.publish"),
|
|
113
113
|
message: `Are you sure you want to publish this location "${e.row.original.name}"?`,
|
|
114
114
|
primaryActions: { text: t("inventory.common.publish"), close: !0 },
|
|
@@ -142,11 +142,11 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
142
142
|
// }
|
|
143
143
|
];
|
|
144
144
|
return (e, o) => {
|
|
145
|
-
const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"), j = l("FmTable"),
|
|
145
|
+
const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"), j = l("FmTable"), J = l("FmCollapsibleTabs"), O = l("FmBottomSheet");
|
|
146
146
|
return W(), z(re, {
|
|
147
147
|
title: h(t)("inventory.publish.title"),
|
|
148
|
-
actions:
|
|
149
|
-
"onClick:action":
|
|
148
|
+
actions: E.value,
|
|
149
|
+
"onClick:action": U
|
|
150
150
|
}, Z({
|
|
151
151
|
default: u(() => [
|
|
152
152
|
f("div", {
|
|
@@ -160,7 +160,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
160
160
|
}, [
|
|
161
161
|
a(j, {
|
|
162
162
|
style: te(h(R).tableHeight),
|
|
163
|
-
"column-defs":
|
|
163
|
+
"column-defs": K,
|
|
164
164
|
"row-data": N.value,
|
|
165
165
|
loading: !h(n)._currentLocation || i.value,
|
|
166
166
|
"loading-text": "Loading",
|
|
@@ -169,18 +169,18 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
169
169
|
"list-row": u((r) => [
|
|
170
170
|
a(d, { row: r }, {
|
|
171
171
|
default: u((y) => {
|
|
172
|
-
var
|
|
172
|
+
var C, F, k, b, M, L, P, T, v, V;
|
|
173
173
|
return [
|
|
174
174
|
f("div", pe, [
|
|
175
175
|
f("div", de, [
|
|
176
176
|
a(p, {
|
|
177
|
-
render: (k = (
|
|
177
|
+
render: (k = (F = (C = y.code) == null ? void 0 : C.column) == null ? void 0 : F.columnDef) == null ? void 0 : k.cell,
|
|
178
178
|
props: (M = (b = y.code) == null ? void 0 : b.getContext) == null ? void 0 : M.call(b)
|
|
179
179
|
}, null, 8, ["render", "props"])
|
|
180
180
|
]),
|
|
181
181
|
f("div", ye, [
|
|
182
182
|
a(p, {
|
|
183
|
-
render: (T = (
|
|
183
|
+
render: (T = (P = (L = y.name) == null ? void 0 : L.column) == null ? void 0 : P.columnDef) == null ? void 0 : T.cell,
|
|
184
184
|
props: (V = (v = y.name) == null ? void 0 : v.getContext) == null ? void 0 : V.call(v)
|
|
185
185
|
}, null, 8, ["render", "props"])
|
|
186
186
|
])
|
|
@@ -194,16 +194,16 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
194
194
|
}, 8, ["style", "row-data", "loading", "page-size"])
|
|
195
195
|
], 2),
|
|
196
196
|
(W(), z(oe, { to: "body" }, [
|
|
197
|
-
a(
|
|
197
|
+
a(O, {
|
|
198
198
|
"dismiss-away": "",
|
|
199
199
|
modelValue: w.value,
|
|
200
200
|
"onUpdate:modelValue": o[1] || (o[1] = (r) => w.value = r)
|
|
201
201
|
}, {
|
|
202
202
|
default: u(() => [
|
|
203
|
-
a(
|
|
203
|
+
a(J, {
|
|
204
204
|
class: "pb-8",
|
|
205
|
-
items:
|
|
206
|
-
"onUpdate:modelValue": o[0] || (o[0] = (r) =>
|
|
205
|
+
items: q,
|
|
206
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => G(r))
|
|
207
207
|
})
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
@@ -217,7 +217,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
217
217
|
fn: u(() => [
|
|
218
218
|
a(s, {
|
|
219
219
|
variant: "info",
|
|
220
|
-
label: `Latest: ${h(
|
|
220
|
+
label: `Latest: ${h(B)(m.value)}`
|
|
221
221
|
}, null, 8, ["label"])
|
|
222
222
|
]),
|
|
223
223
|
key: "0"
|
package/dist/{PurchaseOrderPrintPreview-CB2xvQ33.js → PurchaseOrderPrintPreview-CpnoNRcV.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as b, computed as m, ref as x, onMounted as f, openBlock as u, createElementBlock as n, createElementVNode as t, toDisplayString as e, normalizeStyle as g, createTextVNode as i, Fragment as o, createCommentVNode as p, renderList as v } from "vue";
|
|
2
2
|
import { useRoute as w } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" }, N = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" },
|
|
3
|
+
import { aH as y, au as k } from "./app-DDKw9H3a.js";
|
|
4
|
+
const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" }, N = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" }, H = { class: "text-left" }, L = { class: "text-left" }, U = { class: "text-right" }, V = { class: "text-right" }, B = { class: "text-right" }, I = { style: { "padding-top": "30px" } }, M = { valign: "bottom" }, z = { class: "header" }, J = { class: "caption" }, Q = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
7
|
-
},
|
|
7
|
+
}, j = { class: "text-left" }, G = {
|
|
8
8
|
class: "text-right",
|
|
9
9
|
style: { width: "15%" }
|
|
10
10
|
}, K = {
|
|
@@ -104,11 +104,11 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
104
104
|
], -1)),
|
|
105
105
|
t("tbody", null, [
|
|
106
106
|
(u(!0), n(o, null, v(s.value.items, (r, a) => (u(), n("tr", { key: a }, [
|
|
107
|
-
t("td",
|
|
108
|
-
t("td",
|
|
109
|
-
t("td",
|
|
110
|
-
t("td",
|
|
111
|
-
t("td",
|
|
107
|
+
t("td", H, e(r.code), 1),
|
|
108
|
+
t("td", L, e(r.description), 1),
|
|
109
|
+
t("td", U, e(r.quantity), 1),
|
|
110
|
+
t("td", V, e(r.unit), 1),
|
|
111
|
+
t("td", B, e(r.cost ? r.cost : "N/A"), 1)
|
|
112
112
|
]))), 128))
|
|
113
113
|
])
|
|
114
114
|
])
|
|
@@ -126,7 +126,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
126
126
|
t("tr", M, [
|
|
127
127
|
t("td", null, [
|
|
128
128
|
t("div", z, "Ref: " + e(r.ref), 1),
|
|
129
|
-
t("div",
|
|
129
|
+
t("div", J, e(r.createdAt), 1),
|
|
130
130
|
t("div", null, "Remark: " + e(r.remark), 1)
|
|
131
131
|
])
|
|
132
132
|
])
|
|
@@ -135,9 +135,9 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
|
|
|
135
135
|
t("table", null, [
|
|
136
136
|
t("tbody", null, [
|
|
137
137
|
(u(!0), n(o, null, v(r.items, (d, h) => (u(), n("tr", { key: h }, [
|
|
138
|
-
t("td",
|
|
139
|
-
t("td",
|
|
140
|
-
t("td",
|
|
138
|
+
t("td", Q, e(d.code), 1),
|
|
139
|
+
t("td", j, e(d.description), 1),
|
|
140
|
+
t("td", G, e(d.quantity), 1),
|
|
141
141
|
t("td", K, e(d.unit), 1)
|
|
142
142
|
]))), 128))
|
|
143
143
|
])
|