@feedmepos/mf-inventory-portal 1.2.6 → 1.2.7-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-B2pFxU6Q.js → App-Dg4euzi-.js} +1 -1
- package/dist/{ApprovalView-MLCuBCV2.js → ApprovalView-CPEajz8D.js} +50 -49
- package/dist/{BindingsDialog-CL68c1d8.js → BindingsDialog-D69Lz-W9.js} +2 -2
- package/dist/{BindingsPicker-C1PiRtoM.js → BindingsPicker-CvM0o8k2.js} +1 -1
- package/dist/{BindingsTable-B4VyAoNq.js → BindingsTable-DX9KrKZx.js} +1 -1
- package/dist/{ClosingDraftView-bLQW2std.js → ClosingDraftView-zo2KEPba.js} +2 -2
- package/dist/{ClosingTemplateView-CABbUEYU.js → ClosingTemplateView-DfkfCFdy.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BybM2hq8.js → DeliveryOrderPrintPreview-Cl_G1v2L.js} +8 -8
- package/dist/{FmAdminBadge-iN9PJ5nY.js → FmAdminBadge--YYdqDeq.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BnxjX2Nv.js +230 -0
- package/dist/{FmMultiselectDialog-nsl8cwzo.js → FmMultiselectDialog-CENHExht.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-COw0sQLE.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DTfMfCVb.js} +15 -15
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYcFWA7r.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-D65OfkW-.js} +1 -1
- package/dist/{IngredientGroupView-oIBLqCBm.js → IngredientGroupView-BBw9UqRf.js} +2 -2
- package/dist/{IngredientsView-DfGezD1v.js → IngredientsView-WtOZ9Ara.js} +71 -61
- package/dist/{IntegrationView-jcuZnZ67.js → IntegrationView-YFafrCnU.js} +84 -84
- package/dist/{InventoryBindingForm-CQlTv-66.js → InventoryBindingForm-DNljyNN-.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CevEjjIF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-C2dTKKAj.js} +3 -3
- package/dist/{InventoryBindingSummary-DRJn6ORe.js → InventoryBindingSummary-DOONgjR-.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CwwxbHy9.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D3Elw6_K.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-O2GL2zkX.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CYiwHmvH.js} +7 -7
- package/dist/{PublishView-CY3Gvt3-.js → PublishView-CL5U8cyq.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-Ck5HQc6r.js → PurchaseOrderPrintPreview-PfG5JjNN.js} +8 -8
- package/dist/{ReceiveRequestView-Da8bRntN.js → ReceiveRequestView-DB-Df7af.js} +82 -79
- package/dist/{RecipeView-B0_ddeT-.js → RecipeView-DYYehKGI.js} +3 -3
- package/dist/{StockView-BetJ_LZd.js → StockView-lbA_CgVg.js} +7 -7
- package/dist/{SupplierView-DpDWVeHg.js → SupplierView-DKq68lkF.js} +862 -831
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DKR568Dl.js +2578 -0
- package/dist/{TransferTemplateView-L0NONcqq.js → TransferTemplateView-CYdVExkv.js} +57 -57
- package/dist/{UnitView-DSTeDI8u.js → UnitView-BLDTNtXw.js} +3 -3
- package/dist/WarehouseView-ByfTvgQq.js +1066 -0
- package/dist/api/inventory.d.ts +8 -0
- package/dist/api/shipment.d.ts +11 -0
- package/dist/api/warehouse.d.ts +3 -1
- package/dist/{app-B7cGGPpZ.js → app-DEpHnIaM.js} +13795 -13214
- package/dist/app.d.ts +24 -9
- package/dist/app.js +1 -1
- package/dist/{decimal-DYg5n_FX.js → decimal-BdGG2NHb.js} +1 -1
- package/dist/{format-unit-display-DHgB2J8m.js → format-unit-display-DoCxmNPB.js} +21 -21
- package/dist/{index-C6Wn55RU.js → index-BI2zM3ru.js} +1 -1
- package/dist/{index-C9zJBvXv.js → index-CCmaDOGB.js} +1 -1
- package/dist/{stock-BcEKPJrt.js → stock-CtzGgdTO.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/inventory.d.ts +1 -0
- package/dist/stores/location.d.ts +57 -1
- package/dist/stores/supplier.d.ts +96 -0
- package/dist/stores/warehouse.d.ts +4 -0
- package/dist/{supplier-DFoYi5-b.js → supplier-hiLnFx22.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-C7mHdhdS.js → use-ingredient-select-dialog-BWBy-LTC.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CPjMBzhD.js → use-inventory-binding-dialog-6H3lD9xF.js} +1 -1
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +60 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +10 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +94 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +72 -1
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
- package/package.json +2 -2
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-1G6EEocg.js +0 -227
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-AIFutKLT.js +0 -2494
- package/dist/WarehouseView-DGJhvS_u.js +0 -1034
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as Y, mergeModels as Te, useModel as Se, onMounted as pe, ref as
|
|
1
|
+
import { defineComponent as Y, mergeModels as Te, useModel as Se, onMounted as pe, ref as R, computed as _, resolveComponent as F, openBlock as I, createElementBlock as V, createElementVNode as a, toDisplayString as T, unref as S, createVNode as h, createBlock as U, withCtx as O, Fragment as J, renderList as W, normalizeClass as q, normalizeStyle as je, createSlots as se, createCommentVNode as z, withModifiers as _e, reactive as ve, watch as ge, isRef as ae, Teleport as ce, h as D, createTextVNode as P, watchEffect as ze } from "vue";
|
|
2
2
|
import { E as He } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { b2 as Ue, aR as Xe, f as te, u as $, b3 as Qe, b as ie, aD as de, j as Ye, aZ as me, a5 as ye, a6 as Ae, a as be, a3 as Je, T as G, a0 as we, b4 as ke, aJ as Be, aV as Ce, v as Ee, z as Fe, a1 as ue, c as Le, _ as Ke, E as Pe } from "./app-DEpHnIaM.js";
|
|
4
4
|
import { useDialogChild as qe, useDialog as re, useProxiedModel as le, useSnackbar as ee, useBreakpoints as Ve, components as ne } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Z, useCoreStore as oe } from "@feedmepos/mf-common";
|
|
6
|
-
import { a as Ze, b as Ge, c as We, u as $e } from "./index-
|
|
7
|
-
import { _ as et, F as tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { F as Ne } from "./FmAdminBadge
|
|
6
|
+
import { a as Ze, b as Ge, c as We, u as $e } from "./index-BI2zM3ru.js";
|
|
7
|
+
import { _ as et, F as tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DTfMfCVb.js";
|
|
8
|
+
import { F as Ne } from "./FmAdminBadge--YYdqDeq.js";
|
|
9
9
|
const nt = "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";
|
|
10
10
|
var De = { exports: {} };
|
|
11
11
|
(function(C, y) {
|
|
@@ -92,7 +92,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
92
92
|
}, ut = ["data-cy"], ct = { class: "flex flex-col" }, dt = { class: "fm-typo-en-body-md-400" }, mt = {
|
|
93
93
|
key: 1,
|
|
94
94
|
class: "w-full py-16 text-fm-color-typo-disabled fm-typo-en-body-md-400 text-center"
|
|
95
|
-
},
|
|
95
|
+
}, Re = /* @__PURE__ */ Y({
|
|
96
96
|
__name: "FmNestedMultiselectDialog",
|
|
97
97
|
props: /* @__PURE__ */ Te({
|
|
98
98
|
modelValue: {}
|
|
@@ -106,7 +106,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
106
106
|
pe(() => {
|
|
107
107
|
o.emitData(y.value);
|
|
108
108
|
});
|
|
109
|
-
const r =
|
|
109
|
+
const r = R(""), { t: n } = Z();
|
|
110
110
|
function t(e) {
|
|
111
111
|
return he(
|
|
112
112
|
r.value,
|
|
@@ -131,7 +131,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
131
131
|
function w(e, l, B = 0, L = !1) {
|
|
132
132
|
if (K(e) && e.children.length) {
|
|
133
133
|
const { children: N, ...H } = e, X = N.flatMap(
|
|
134
|
-
(
|
|
134
|
+
(M, j) => w(M, [...l, j], B + 1, L || e.disabled)
|
|
135
135
|
);
|
|
136
136
|
return [
|
|
137
137
|
{
|
|
@@ -221,7 +221,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
221
221
|
} : H
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
|
-
const g =
|
|
224
|
+
const g = R(new Array());
|
|
225
225
|
function p(e) {
|
|
226
226
|
const l = e.join();
|
|
227
227
|
return g.value.find((B) => l === B);
|
|
@@ -248,7 +248,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
248
248
|
a("div", rt, [
|
|
249
249
|
h(B, {
|
|
250
250
|
modelValue: r.value,
|
|
251
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
251
|
+
"onUpdate:modelValue": l[0] || (l[0] = (M) => r.value = M),
|
|
252
252
|
placeholder: S(n)("inventory.formField.filterItems")
|
|
253
253
|
}, null, 8, ["modelValue", "placeholder"])
|
|
254
254
|
])
|
|
@@ -258,65 +258,65 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
258
258
|
class: "flex-1 overflow-y-auto"
|
|
259
259
|
}, {
|
|
260
260
|
default: O(() => [
|
|
261
|
-
(I(!0), V(J, null, W(f.value, (
|
|
262
|
-
key:
|
|
261
|
+
(I(!0), V(J, null, W(f.value, (M) => (I(), V("div", {
|
|
262
|
+
key: M.keys.join(),
|
|
263
263
|
class: q([
|
|
264
264
|
"transition-all overflow-y-clip",
|
|
265
|
-
c(
|
|
265
|
+
c(M.keys) ? "max-h-0 opacity-0" : "max-h-[50px] opacity-100"
|
|
266
266
|
]),
|
|
267
|
-
"data-cy": `nested-${
|
|
267
|
+
"data-cy": `nested-${M.keys.join("-")}-${M.label}`
|
|
268
268
|
}, [
|
|
269
269
|
h(H, {
|
|
270
|
-
clickable:
|
|
271
|
-
onClick: () =>
|
|
270
|
+
clickable: M.selectable !== !1,
|
|
271
|
+
onClick: () => M.selectable === !1 || M.disabled || v(M.keys, y.value, !s(M.keys, y.value)),
|
|
272
272
|
style: je({
|
|
273
|
-
paddingLeft: `${16 +
|
|
273
|
+
paddingLeft: `${16 + M.indent * 16}px`,
|
|
274
274
|
paddingTop: "4px",
|
|
275
275
|
paddingBottom: "4px"
|
|
276
276
|
}),
|
|
277
|
-
disabled:
|
|
277
|
+
disabled: M.selectable !== !1 && M.disabled
|
|
278
278
|
}, se({
|
|
279
279
|
default: O(() => [
|
|
280
280
|
a("div", ct, [
|
|
281
281
|
a("div", dt, [
|
|
282
|
-
(I(!0), V(J, null, W(S(st)(r.value,
|
|
282
|
+
(I(!0), V(J, null, W(S(st)(r.value, M.label).segments, (j, Q) => (I(), V("span", {
|
|
283
283
|
key: Q,
|
|
284
284
|
class: q({
|
|
285
285
|
"font-bold": j.isMatch
|
|
286
286
|
})
|
|
287
287
|
}, T(j.segment), 3))), 128))
|
|
288
288
|
]),
|
|
289
|
-
|
|
289
|
+
M.sublabel ? (I(), V("div", {
|
|
290
290
|
key: 0,
|
|
291
291
|
class: q([
|
|
292
292
|
"fm-typo-en-body-sm-400",
|
|
293
|
-
|
|
293
|
+
M.disabled ? "" : "text-fm-color-typo-secondary"
|
|
294
294
|
])
|
|
295
|
-
}, T(
|
|
295
|
+
}, T(M.sublabel), 3)) : z("", !0)
|
|
296
296
|
])
|
|
297
297
|
]),
|
|
298
298
|
_: 2
|
|
299
299
|
}, [
|
|
300
|
-
|
|
300
|
+
M.selectable !== !1 ? {
|
|
301
301
|
name: "prepend",
|
|
302
302
|
fn: O(() => [
|
|
303
303
|
h(L, {
|
|
304
|
-
disabled:
|
|
305
|
-
"model-value": s(
|
|
306
|
-
value:
|
|
307
|
-
indeterminate: x(
|
|
304
|
+
disabled: M.disabled,
|
|
305
|
+
"model-value": s(M.keys, y.value),
|
|
306
|
+
value: M.keys,
|
|
307
|
+
indeterminate: x(M.keys, y.value)
|
|
308
308
|
}, null, 8, ["disabled", "model-value", "value", "indeterminate"])
|
|
309
309
|
]),
|
|
310
310
|
key: "0"
|
|
311
311
|
} : void 0,
|
|
312
|
-
|
|
312
|
+
M.collapsible ? {
|
|
313
313
|
name: "append",
|
|
314
314
|
fn: O(() => [
|
|
315
315
|
h(N, {
|
|
316
|
-
"prepend-icon": p(
|
|
316
|
+
"prepend-icon": p(M.keys) ? "expand_less" : "expand_more",
|
|
317
317
|
size: "md",
|
|
318
318
|
variant: "tertiary",
|
|
319
|
-
onClick: _e(() => d(
|
|
319
|
+
onClick: _e(() => d(M.keys), ["stop"])
|
|
320
320
|
}, null, 8, ["prepend-icon", "onClick"])
|
|
321
321
|
]),
|
|
322
322
|
key: "1"
|
|
@@ -415,7 +415,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
415
415
|
};
|
|
416
416
|
n.open({
|
|
417
417
|
title: "Select Addons",
|
|
418
|
-
contentComponent:
|
|
418
|
+
contentComponent: Re,
|
|
419
419
|
contentComponentProps: u,
|
|
420
420
|
primaryActions: {
|
|
421
421
|
text: "Confirm",
|
|
@@ -538,10 +538,10 @@ function kt(C, y, o) {
|
|
|
538
538
|
items: r[t._id || ""] || []
|
|
539
539
|
}));
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Me(C, y) {
|
|
542
542
|
if (C.length == 1)
|
|
543
543
|
return C[0];
|
|
544
|
-
const o = C[0], r = C.slice(1, C.length), n =
|
|
544
|
+
const o = C[0], r = C.slice(1, C.length), n = Me(r, y);
|
|
545
545
|
return o.reduce((i, b) => [...i, ...n.map((w) => y(b, w))], new Array());
|
|
546
546
|
}
|
|
547
547
|
function Bt(C) {
|
|
@@ -554,7 +554,7 @@ function Bt(C) {
|
|
|
554
554
|
})
|
|
555
555
|
)
|
|
556
556
|
);
|
|
557
|
-
return
|
|
557
|
+
return Me(y, (r, n) => ({
|
|
558
558
|
combinationKey: [...r.combinationKey, ...n.combinationKey],
|
|
559
559
|
selectionName: [...r.selectionName, ...n.selectionName]
|
|
560
560
|
})).map((r) => {
|
|
@@ -569,10 +569,10 @@ function Bt(C) {
|
|
|
569
569
|
const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-100 px-5 py-5 gap-5 mb-3" }, Et = { class: "flex items-center" }, Ft = { class: "text-lg font-bold flex-grow" }, Lt = {
|
|
570
570
|
key: 0,
|
|
571
571
|
class: "table-auto w-full"
|
|
572
|
-
}, Vt = { class: "text-left" }, Nt = { class: "min-w-64" }, Dt = { class: "flex flex-col" }, Ot = { class: "fm-typo-en-body-md-400" },
|
|
572
|
+
}, Vt = { class: "text-left" }, Nt = { class: "min-w-64" }, Dt = { class: "flex flex-col" }, Ot = { class: "fm-typo-en-body-md-400" }, Rt = {
|
|
573
573
|
key: 0,
|
|
574
574
|
class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400"
|
|
575
|
-
},
|
|
575
|
+
}, Mt = { class: "w-1" }, fe = /* @__PURE__ */ Y({
|
|
576
576
|
__name: "ApplyProduct",
|
|
577
577
|
props: {
|
|
578
578
|
isAddon: {
|
|
@@ -711,11 +711,11 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
711
711
|
productId: B,
|
|
712
712
|
combinationKey: L,
|
|
713
713
|
code: ((N = d.find(
|
|
714
|
-
({ productId: X, combinationKey:
|
|
714
|
+
({ productId: X, combinationKey: M }) => B === X && L === M
|
|
715
715
|
)) == null ? void 0 : N.code) ?? ""
|
|
716
716
|
} : {
|
|
717
717
|
productId: B,
|
|
718
|
-
code: ((H = d.find(({ productId: X, combinationKey:
|
|
718
|
+
code: ((H = d.find(({ productId: X, combinationKey: M }) => B === X && !M)) == null ? void 0 : H.code) ?? ""
|
|
719
719
|
};
|
|
720
720
|
});
|
|
721
721
|
if (!A.active)
|
|
@@ -749,7 +749,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
749
749
|
};
|
|
750
750
|
n.open({
|
|
751
751
|
title: `Select ${t.value}`,
|
|
752
|
-
contentComponent:
|
|
752
|
+
contentComponent: Re,
|
|
753
753
|
contentComponentProps: d,
|
|
754
754
|
primaryActions: {
|
|
755
755
|
text: "Confirm",
|
|
@@ -791,7 +791,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
791
791
|
a("td", null, [
|
|
792
792
|
a("div", Dt, [
|
|
793
793
|
a("div", Ot, T(v.itemCode) + " " + T(v.name), 1),
|
|
794
|
-
v.variantName ? (I(), V("div",
|
|
794
|
+
v.variantName ? (I(), V("div", Rt, T(v.variantName), 1)) : z("", !0)
|
|
795
795
|
])
|
|
796
796
|
]),
|
|
797
797
|
a("td", null, [
|
|
@@ -805,7 +805,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
805
805
|
]
|
|
806
806
|
}, null, 8, ["model-value", "onUpdate:modelValue", "rules"])
|
|
807
807
|
]),
|
|
808
|
-
a("td",
|
|
808
|
+
a("td", Mt, [
|
|
809
809
|
h(c, {
|
|
810
810
|
type: "button",
|
|
811
811
|
variant: "tertiary",
|
|
@@ -842,7 +842,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
842
842
|
for (const s of Object.keys(o.setting))
|
|
843
843
|
n[s] = o.setting[s];
|
|
844
844
|
});
|
|
845
|
-
const t =
|
|
845
|
+
const t = R(), i = le(o, "show");
|
|
846
846
|
function b() {
|
|
847
847
|
var m, s;
|
|
848
848
|
(s = (m = t.value) == null ? void 0 : m.validateInputs) == null || s.call(m);
|
|
@@ -935,7 +935,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
935
935
|
function m(g) {
|
|
936
936
|
n.bindings = [...w.value, ...g];
|
|
937
937
|
}
|
|
938
|
-
const s =
|
|
938
|
+
const s = R(), u = le(o, "show");
|
|
939
939
|
function x() {
|
|
940
940
|
var g, p;
|
|
941
941
|
(p = (g = s.value) == null ? void 0 : g.validateInputs) == null || p.call(g);
|
|
@@ -1000,12 +1000,12 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1000
1000
|
}), Ht = { key: 0 }, Ut = { class: "flex justify-center" }, Xt = ["src"], Qt = { class: "flex flex-col items-center gap-2" }, Yt = { class: "text-lg font-bold" }, Jt = { class: "text-fm-color-neutral-gray-300" }, Kt = { key: 0 }, Pt = /* @__PURE__ */ Y({
|
|
1001
1001
|
__name: "FoodMarketHub",
|
|
1002
1002
|
setup(C) {
|
|
1003
|
-
const y = oe(), o = ee(), r = $(), n =
|
|
1003
|
+
const y = oe(), o = ee(), r = $(), n = R(!1), t = Ze(), i = _(() => t.state.menu ?? []), b = _(() => t.state.group ?? []), w = _(() => t.state.variants ?? []), f = _(() => t.state.categories ?? []), m = Qe(), s = _(() => {
|
|
1004
1004
|
var c;
|
|
1005
1005
|
return (c = y.currentBusiness.value) == null ? void 0 : c.menuVersion;
|
|
1006
1006
|
});
|
|
1007
1007
|
r.watchLocation(t.init);
|
|
1008
|
-
const u =
|
|
1008
|
+
const u = R(!1);
|
|
1009
1009
|
async function x() {
|
|
1010
1010
|
u.value = !0;
|
|
1011
1011
|
}
|
|
@@ -1231,7 +1231,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1231
1231
|
});
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
], t = C, i = y, b =
|
|
1234
|
+
], t = C, i = y, b = R({}), w = R(), f = R(""), m = _(() => t.nsLocationsNotBeingUsed.map((x) => ({
|
|
1235
1235
|
label: x.name,
|
|
1236
1236
|
value: x
|
|
1237
1237
|
}))), s = _(() => Object.values(b.value).length === 0 || Object.values(b.value).some(
|
|
@@ -1310,13 +1310,13 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1310
1310
|
},
|
|
1311
1311
|
emits: ["update:setting", "update:show", "update:loading", "submit"],
|
|
1312
1312
|
setup(C, { emit: y }) {
|
|
1313
|
-
const o = oe(), r = $(), n =
|
|
1313
|
+
const o = oe(), r = $(), n = R(!1), t = C, i = y, b = ve(te(t.setting));
|
|
1314
1314
|
ge([() => t.show], ([d]) => {
|
|
1315
1315
|
if (d)
|
|
1316
1316
|
for (const c of Object.keys(t.setting))
|
|
1317
1317
|
b[c] = t.setting[c];
|
|
1318
1318
|
});
|
|
1319
|
-
const w =
|
|
1319
|
+
const w = R(), f = le(t, "show"), m = R(), s = R(""), u = _(() => t.setting.locations.filter(
|
|
1320
1320
|
(d) => d.name.toLowerCase().includes(s.value.toLowerCase()) || d.netSuiteId.toLowerCase().includes(s.value.toLowerCase())
|
|
1321
1321
|
)), x = [
|
|
1322
1322
|
{
|
|
@@ -1593,7 +1593,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1593
1593
|
}), pn = { class: "flex items-center gap-8 mb-8" }, vn = /* @__PURE__ */ Y({
|
|
1594
1594
|
__name: "InventoryTransferOutTable",
|
|
1595
1595
|
setup(C) {
|
|
1596
|
-
const y =
|
|
1596
|
+
const y = R([]), o = me(), r = R(!1), n = R(!1), t = ee(), i = $();
|
|
1597
1597
|
pe(async () => {
|
|
1598
1598
|
const m = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
|
|
1599
1599
|
s.setDate(s.getDate() - 30), r.value = !0;
|
|
@@ -1713,7 +1713,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1713
1713
|
},
|
|
1714
1714
|
size: 150
|
|
1715
1715
|
}
|
|
1716
|
-
], f =
|
|
1716
|
+
], f = R();
|
|
1717
1717
|
return (m, s) => {
|
|
1718
1718
|
const u = F("FmButton"), x = F("FmTable");
|
|
1719
1719
|
return I(), V(J, null, [
|
|
@@ -1760,7 +1760,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1760
1760
|
currentLocationSubsidiary: {}
|
|
1761
1761
|
},
|
|
1762
1762
|
setup(C) {
|
|
1763
|
-
const y = re(), o = ie(), r = be(), n = me(), t = ee(), { t: i } = de(), b =
|
|
1763
|
+
const y = re(), o = ie(), r = be(), n = me(), t = ee(), { t: i } = de(), b = R([]), w = [{ label: "Transfer Out" }, { label: "History" }], f = R(w[0]), m = R(!1), s = R(null), u = R(null), x = C, E = _(() => {
|
|
1764
1764
|
const A = o.currentLocationSetting, v = o.configuredLocations;
|
|
1765
1765
|
return x.nsLocations.map((e) => ({
|
|
1766
1766
|
label: e.name,
|
|
@@ -1854,8 +1854,8 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1854
1854
|
}
|
|
1855
1855
|
}).onPrimary((L) => {
|
|
1856
1856
|
const N = b.value, H = L.map((X) => {
|
|
1857
|
-
const
|
|
1858
|
-
return
|
|
1857
|
+
const M = N.find((Q) => Q.sku._id === X._id);
|
|
1858
|
+
return M || {
|
|
1859
1859
|
sku: X,
|
|
1860
1860
|
code: X.code,
|
|
1861
1861
|
name: X.name,
|
|
@@ -1865,11 +1865,11 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1865
1865
|
}
|
|
1866
1866
|
};
|
|
1867
1867
|
});
|
|
1868
|
-
H.sort((X,
|
|
1868
|
+
H.sort((X, M) => X.sku.code.localeCompare(M.sku.code)), b.value = H;
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
1871
|
return (A, v) => {
|
|
1872
|
-
const e = F("FmButtonGroup"), l = F("FmLabel"), B = F("FmField"), L = F("FmSimpleDatePicker"), N = F("FmTimePicker"), H = F("FmSelect"), X = F("FmIcon"),
|
|
1872
|
+
const e = F("FmButtonGroup"), l = F("FmLabel"), B = F("FmField"), L = F("FmSimpleDatePicker"), N = F("FmTimePicker"), H = F("FmSelect"), X = F("FmIcon"), M = F("FmButton");
|
|
1873
1873
|
return I(), V("div", gn, [
|
|
1874
1874
|
h(e, {
|
|
1875
1875
|
modelValue: f.value,
|
|
@@ -1959,7 +1959,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1959
1959
|
a("span", In, "ID: " + T(u.value.netsuiteId), 1),
|
|
1960
1960
|
a("span", Sn, "Subsidiary: " + T(u.value.subsidiaryName), 1)
|
|
1961
1961
|
]),
|
|
1962
|
-
h(
|
|
1962
|
+
h(M, {
|
|
1963
1963
|
class: "ml-2",
|
|
1964
1964
|
variant: "secondary",
|
|
1965
1965
|
label: "Clear",
|
|
@@ -1968,7 +1968,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1968
1968
|
])) : z("", !0)
|
|
1969
1969
|
]),
|
|
1970
1970
|
a("div", wn, [
|
|
1971
|
-
h(
|
|
1971
|
+
h(M, {
|
|
1972
1972
|
class: "ml-auto",
|
|
1973
1973
|
variant: "secondary",
|
|
1974
1974
|
"prepend-icon": "add",
|
|
@@ -1981,7 +1981,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1981
1981
|
"onUpdate:modelValue": v[5] || (v[5] = (j) => b.value = j)
|
|
1982
1982
|
}, null, 8, ["modelValue"]),
|
|
1983
1983
|
a("div", kn, [
|
|
1984
|
-
h(
|
|
1984
|
+
h(M, {
|
|
1985
1985
|
class: "ml-auto mt-4",
|
|
1986
1986
|
variant: "primary",
|
|
1987
1987
|
"prepend-icon": "add",
|
|
@@ -2017,7 +2017,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2017
2017
|
setup(C) {
|
|
2018
2018
|
const y = re();
|
|
2019
2019
|
oe();
|
|
2020
|
-
const o = me(), r = ee(), n =
|
|
2020
|
+
const o = me(), r = ee(), n = R(!1), t = C, i = R([]);
|
|
2021
2021
|
async function b() {
|
|
2022
2022
|
var f;
|
|
2023
2023
|
n.value = !0;
|
|
@@ -2103,7 +2103,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2103
2103
|
}), Dn = { class: "flex flex-col gap-8" }, On = {
|
|
2104
2104
|
key: 0,
|
|
2105
2105
|
class: "flex flex-col gap-4"
|
|
2106
|
-
},
|
|
2106
|
+
}, Rn = { style: { "list-style-type": "initial", "padding-left": "1rem" } }, Mn = /* @__PURE__ */ Y({
|
|
2107
2107
|
__name: "PurchaseOrder",
|
|
2108
2108
|
props: {
|
|
2109
2109
|
currentLocationSetting: {}
|
|
@@ -2111,7 +2111,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2111
2111
|
setup(C) {
|
|
2112
2112
|
const y = re();
|
|
2113
2113
|
oe();
|
|
2114
|
-
const o = me(), r = ee(), n =
|
|
2114
|
+
const o = me(), r = ee(), n = R(!1), t = C, i = R([]);
|
|
2115
2115
|
async function b() {
|
|
2116
2116
|
var f;
|
|
2117
2117
|
n.value = !0;
|
|
@@ -2172,7 +2172,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2172
2172
|
}, null, 8, ["disabled", "loading"]),
|
|
2173
2173
|
i.value.length > 0 ? (I(), V("div", On, [
|
|
2174
2174
|
m[0] || (m[0] = a("p", null, "Purchase Order NetSuite ID not match with existing orders", -1)),
|
|
2175
|
-
a("ul",
|
|
2175
|
+
a("ul", Rn, [
|
|
2176
2176
|
(I(!0), V(J, null, W(i.value, (u) => (I(), V("li", { key: u }, T(u), 1))), 128))
|
|
2177
2177
|
]),
|
|
2178
2178
|
a("div", null, [
|
|
@@ -2220,7 +2220,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2220
2220
|
value: "purchaseOrder"
|
|
2221
2221
|
/* PURCHASE_ORDER */
|
|
2222
2222
|
}
|
|
2223
|
-
], s =
|
|
2223
|
+
], s = R(m[0].value), u = _(() => r.currentLocationSubsidiary()), x = _(() => r.currentLocationSetting), E = _(() => n.nsLocations.filter(
|
|
2224
2224
|
(g) => g.subsidiaryId === u.value.id || g.netsuiteId === u.value.id
|
|
2225
2225
|
));
|
|
2226
2226
|
return (g, p) => {
|
|
@@ -2246,7 +2246,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2246
2246
|
key: 1,
|
|
2247
2247
|
currentLocationSetting: x.value
|
|
2248
2248
|
}, null, 8, ["currentLocationSetting"])) : z("", !0),
|
|
2249
|
-
s.value === "purchaseOrder" ? (I(), U(
|
|
2249
|
+
s.value === "purchaseOrder" ? (I(), U(Mn, {
|
|
2250
2250
|
key: 2,
|
|
2251
2251
|
currentLocationSetting: x.value
|
|
2252
2252
|
}, null, 8, ["currentLocationSetting"])) : z("", !0)
|
|
@@ -2295,11 +2295,11 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2295
2295
|
}), Qn = { class: "flex justify-center" }, Yn = ["src"], Jn = { class: "flex flex-col items-center gap-2" }, Kn = { class: "text-lg font-bold" }, Pn = { class: "text-fm-color-neutral-gray-300" }, qn = /* @__PURE__ */ Y({
|
|
2296
2296
|
__name: "NetSuite",
|
|
2297
2297
|
setup(C) {
|
|
2298
|
-
const y = ie(), o = ee(), r =
|
|
2298
|
+
const y = ie(), o = ee(), r = R(!1), n = R(!1);
|
|
2299
2299
|
async function t() {
|
|
2300
2300
|
n.value = !0;
|
|
2301
2301
|
}
|
|
2302
|
-
const i =
|
|
2302
|
+
const i = R([]);
|
|
2303
2303
|
ze(async () => {
|
|
2304
2304
|
if (y.isReady && y.isEnabled) {
|
|
2305
2305
|
r.value = !0;
|
|
@@ -2522,7 +2522,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2522
2522
|
disabledReason: "Current location is not binded to NetSuite"
|
|
2523
2523
|
}
|
|
2524
2524
|
] : []
|
|
2525
|
-
]), b =
|
|
2525
|
+
]), b = R(i.value[0].value), { t: w } = de(), f = R(null), m = R(), s = R(""), u = R([]), x = R([]), E = [
|
|
2526
2526
|
{
|
|
2527
2527
|
id: "ingredient",
|
|
2528
2528
|
header: () => "Ingredient",
|
|
@@ -2613,7 +2613,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2613
2613
|
accessorKey: "message",
|
|
2614
2614
|
header: "Error Message"
|
|
2615
2615
|
}
|
|
2616
|
-
], g =
|
|
2616
|
+
], g = R(!1);
|
|
2617
2617
|
async function p() {
|
|
2618
2618
|
if (f.value) {
|
|
2619
2619
|
g.value = !0;
|
|
@@ -2665,7 +2665,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
2667
|
}
|
|
2668
|
-
const c =
|
|
2668
|
+
const c = R(""), A = _({
|
|
2669
2669
|
get() {
|
|
2670
2670
|
return c.value;
|
|
2671
2671
|
},
|
|
@@ -2678,7 +2678,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2678
2678
|
return isNaN(e.getTime()) ? null : ye(e);
|
|
2679
2679
|
});
|
|
2680
2680
|
return (e, l) => {
|
|
2681
|
-
const B = F("FmLabel"), L = F("FmField"), N = F("FmSimpleDatePicker"), H = F("FmButton"), X = F("FmRadio"),
|
|
2681
|
+
const B = F("FmLabel"), L = F("FmField"), N = F("FmSimpleDatePicker"), H = F("FmButton"), X = F("FmRadio"), M = F("FmRadioGroup"), j = F("FmTable");
|
|
2682
2682
|
return I(), V("div", $n, [
|
|
2683
2683
|
a("div", eo, [
|
|
2684
2684
|
h(B, { label: "Latest closing" })
|
|
@@ -2743,7 +2743,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2743
2743
|
key: "0"
|
|
2744
2744
|
} : void 0
|
|
2745
2745
|
]), 1024),
|
|
2746
|
-
h(
|
|
2746
|
+
h(M, {
|
|
2747
2747
|
modelValue: b.value,
|
|
2748
2748
|
"onUpdate:modelValue": l[2] || (l[2] = (Q) => b.value = Q),
|
|
2749
2749
|
label: "Retrieve cost from",
|
|
@@ -2833,7 +2833,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2833
2833
|
"transferNote"
|
|
2834
2834
|
/* TRANSFER_NOTE */
|
|
2835
2835
|
) }
|
|
2836
|
-
], m =
|
|
2836
|
+
], m = R(f[0]);
|
|
2837
2837
|
return (u, x) => {
|
|
2838
2838
|
var d;
|
|
2839
2839
|
const E = F("FmIcon"), k = F("FmButtonGroup"), g = F("FmButton"), p = F("FmSideSheet");
|
|
@@ -2903,7 +2903,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2903
2903
|
}), wo = /* @__PURE__ */ Y({
|
|
2904
2904
|
__name: "XilnexView",
|
|
2905
2905
|
setup(C) {
|
|
2906
|
-
const y = Le(), o = $(), r =
|
|
2906
|
+
const y = Le(), o = $(), r = R(!1);
|
|
2907
2907
|
async function n() {
|
|
2908
2908
|
r.value = !0, console.log("Opening Xilnex migration dialog");
|
|
2909
2909
|
}
|
|
@@ -3057,7 +3057,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3057
3057
|
class: /* @__PURE__ */ q(["fm-corner-radius-md p-16 flex items-center gap-16"])
|
|
3058
3058
|
}, Oo = {
|
|
3059
3059
|
class: /* @__PURE__ */ q(["fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center gap-3"])
|
|
3060
|
-
},
|
|
3060
|
+
}, Ro = { class: "line-clamp-2 text-ellipsis break-all" }, Mo = { class: "flex flex-col" }, To = { class: "font-medium" }, jo = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, _o = { class: "flex" }, zo = { class: "flex" }, Ho = { key: 1 }, Uo = /* @__PURE__ */ Y({
|
|
3061
3061
|
__name: "SynergyOpeningImport",
|
|
3062
3062
|
setup(C) {
|
|
3063
3063
|
const y = We(), o = be(), r = Ce(), n = ee(), t = _(() => [
|
|
@@ -3066,7 +3066,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3066
3066
|
label: "Synergy",
|
|
3067
3067
|
subLabel: "Based on Synergy's item cost from excel file"
|
|
3068
3068
|
}
|
|
3069
|
-
]), i =
|
|
3069
|
+
]), i = R(t.value[0].value), { t: b } = de(), w = R(null), f = R(), m = R(""), s = R([]), u = R([]), x = [
|
|
3070
3070
|
{
|
|
3071
3071
|
id: "ingredient",
|
|
3072
3072
|
header: () => "Ingredient",
|
|
@@ -3157,7 +3157,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3157
3157
|
accessorKey: "message",
|
|
3158
3158
|
header: "Error Message"
|
|
3159
3159
|
}
|
|
3160
|
-
], k =
|
|
3160
|
+
], k = R(!1);
|
|
3161
3161
|
async function g() {
|
|
3162
3162
|
if (w.value) {
|
|
3163
3163
|
k.value = !0;
|
|
@@ -3208,7 +3208,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3208
3208
|
}
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
|
-
const d =
|
|
3211
|
+
const d = R(""), c = _({
|
|
3212
3212
|
get() {
|
|
3213
3213
|
return d.value;
|
|
3214
3214
|
},
|
|
@@ -3221,7 +3221,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3221
3221
|
return isNaN(v.getTime()) ? null : ye(v);
|
|
3222
3222
|
});
|
|
3223
3223
|
return (v, e) => {
|
|
3224
|
-
const l = F("FmLabel"), B = F("FmField"), L = F("FmSimpleDatePicker"), N = F("FmButton"), H = F("FmRadio"), X = F("FmRadioGroup"),
|
|
3224
|
+
const l = F("FmLabel"), B = F("FmField"), L = F("FmSimpleDatePicker"), N = F("FmButton"), H = F("FmRadio"), X = F("FmRadioGroup"), M = F("FmTable");
|
|
3225
3225
|
return I(), V("div", Eo, [
|
|
3226
3226
|
a("div", Fo, [
|
|
3227
3227
|
h(l, { label: "Latest closing" })
|
|
@@ -3272,7 +3272,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3272
3272
|
a("div", No, [
|
|
3273
3273
|
a("div", Do, [
|
|
3274
3274
|
a("div", Oo, [
|
|
3275
|
-
a("div",
|
|
3275
|
+
a("div", Ro, T(w.value.name), 1),
|
|
3276
3276
|
h(N, {
|
|
3277
3277
|
label: S(b)("inventory.ingredient.import.replaceFile"),
|
|
3278
3278
|
variant: "secondary",
|
|
@@ -3301,7 +3301,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3301
3301
|
disabled: j.disabled
|
|
3302
3302
|
}, {
|
|
3303
3303
|
label: O(() => [
|
|
3304
|
-
a("div",
|
|
3304
|
+
a("div", Mo, [
|
|
3305
3305
|
a("span", To, T(j.label), 1),
|
|
3306
3306
|
a("span", jo, T(j.disabled ? j.disabledReason : j.subLabel), 1)
|
|
3307
3307
|
])
|
|
@@ -3324,7 +3324,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3324
3324
|
]),
|
|
3325
3325
|
w.value && u.value.length > 0 ? (I(), V(J, { key: 0 }, [
|
|
3326
3326
|
e[4] || (e[4] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4" }, "Results", -1)),
|
|
3327
|
-
h(
|
|
3327
|
+
h(M, {
|
|
3328
3328
|
modelValue: f.value,
|
|
3329
3329
|
"onUpdate:modelValue": e[3] || (e[3] = (j) => f.value = j),
|
|
3330
3330
|
"row-data": u.value,
|
|
@@ -3335,7 +3335,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3335
3335
|
], 64)) : z("", !0),
|
|
3336
3336
|
s.value.length > 0 ? (I(), V(J, { key: 1 }, [
|
|
3337
3337
|
e[5] || (e[5] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4 text-red-600" }, "Errors", -1)),
|
|
3338
|
-
h(
|
|
3338
|
+
h(M, {
|
|
3339
3339
|
"row-data": s.value,
|
|
3340
3340
|
"column-defs": E
|
|
3341
3341
|
}, null, 8, ["row-data"])
|
|
@@ -3425,7 +3425,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3425
3425
|
}), Go = /* @__PURE__ */ Y({
|
|
3426
3426
|
__name: "SynergyView",
|
|
3427
3427
|
setup(C) {
|
|
3428
|
-
const y = Le(), o = $(), r =
|
|
3428
|
+
const y = Le(), o = $(), r = R(!1);
|
|
3429
3429
|
async function n() {
|
|
3430
3430
|
r.value = !0, console.log("Opening Synergy migration dialog");
|
|
3431
3431
|
}
|
|
@@ -3481,7 +3481,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3481
3481
|
}, ds = /* @__PURE__ */ Y({
|
|
3482
3482
|
__name: "IntegrationView",
|
|
3483
3483
|
setup(C) {
|
|
3484
|
-
const y = $(), o =
|
|
3484
|
+
const y = $(), o = R(!1), r = $e(), { breakpoints: n } = Ve(), t = _(() => n.value.xs || n.value.sm), { t: i } = Z();
|
|
3485
3485
|
return pe(async () => {
|
|
3486
3486
|
if (y._currentLocation) {
|
|
3487
3487
|
o.value = !0;
|
|
@@ -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, Y as le,
|
|
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, Y as le, b6 as ie, j as h, b7 as T, W as G, V as se, F as de } from "./app-DEpHnIaM.js";
|
|
3
|
+
import { u as re } from "./use-inventory-binding-dialog-6H3lD9xF.js";
|
|
4
|
+
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DTfMfCVb.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",
|
|
@@ -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-DEpHnIaM.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 { V as s } from "./app-
|
|
2
|
+
import { V as s } from "./app-DEpHnIaM.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|