@feedmepos/mf-inventory-portal 0.0.19-dev.1 → 0.0.19-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/{ApprovalView-BTZwnKLf.js → ApprovalView-DU7oB2Zk.js} +42 -39
- package/dist/{BindingsDialog-DpC48bqK.js → BindingsDialog-BgfV0G46.js} +2 -2
- package/dist/{BindingsPicker-BU52g6zk.js → BindingsPicker-tUI5WYBk.js} +2 -2
- package/dist/{BindingsTable-aIuFdScv.js → BindingsTable-8G-Nc4pC.js} +18 -17
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DaHXKF1s.js +273 -0
- package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-n09XXJZK.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-CxOk5ule.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B-19iYaK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D-vJDMKb.js} +3 -3
- package/dist/IngredientsView-CAh7D4tL.js +1760 -0
- package/dist/{IntegrationView-Dn_qL_vC.js → IntegrationView-Bf7yHuS8.js} +3 -3
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-BdVrpR9J.js +277 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BuyM580N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKlWhMnB.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-EeKhENYH.js → PurchaseOrderPrintPreview-YFcOtdfJ.js} +1 -1
- package/dist/ReceiveRequestView-bIXyVVX9.js +1401 -0
- package/dist/RecipeView-BD0mvxCg.js +575 -0
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +59 -0
- package/dist/StockView-BCq37bGl.js +1865 -0
- package/dist/SupplierView-BiSqTXnz.js +804 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CvbKNb0C.js +1033 -0
- package/dist/UnitView-DSdn__9m.js +643 -0
- package/dist/WarehouseView-B8UxxAL6.js +1051 -0
- package/dist/api/bill.d.ts +2 -2
- package/dist/app-RVyC2D4O.js +43892 -0
- package/dist/app.d.ts +1002 -0
- package/dist/app.js +4 -3
- package/dist/components/FmDroppableField.vue.d.ts +1 -1
- package/dist/{date2-Cvp5iJkI.js → date2-C2PfOqbB.js} +1 -1
- package/dist/{dayjs.min-D1_pOsO7.js → dayjs.min-0pzT_dbr.js} +1 -1
- package/dist/{decimal-BAZuuTcd.js → decimal-BtIn4K57.js} +1 -1
- package/dist/{fuzzy-0roCBvgC.js → fuzzy-yzIM5KUK.js} +1 -1
- package/dist/{index-B_aEOJsR.js → index-l87_vggM.js} +1 -1
- package/dist/{layout-BnTfCS_X.js → layout-ITqYtCVu.js} +1 -1
- package/dist/{number-DLj3W3RW.js → number-B5d98l0m.js} +1 -1
- package/dist/router/name.d.ts +2 -1
- package/dist/{rules-CCmXA0Yi.js → rules-CCwuHe8Y.js} +2 -2
- package/dist/{stock-estimate-CL4HShG8.js → stock-estimate-C4PL0Fcz.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{supplier-CjAH8O1y.js → supplier-CA0OR3DU.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-GkJOzE6V.js → use-inventory-binding-dialog-CTriImiV.js} +2 -2
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/{xlsx-vUzm_udV.js → xlsx-DAVatAlv.js} +660 -660
- package/dist/xlsx.util-BsZI2tNE.js +109 -0
- package/package.json +6 -5
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DjgmtvXU.js +0 -268
- package/dist/IngredientsView-DMyEGdik.js +0 -1767
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DGTLUrb9.js +0 -276
- package/dist/ReceiveRequestView-BOdgbFFM.js +0 -1394
- package/dist/RecipeView-B1aNLDIK.js +0 -573
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-B5EK101t.js +0 -58
- package/dist/StockView-C_Ur_jTg.js +0 -1862
- package/dist/SupplierView-CXfOoHTr.js +0 -796
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-kjV5Eazv.js +0 -1028
- package/dist/UnitView-DHXfAsnq.js +0 -635
- package/dist/WarehouseView-DMwbxs1q.js +0 -1043
- package/dist/app-BkcO8oNJ.js +0 -66113
- package/dist/xlsx.util-B_bqymTM.js +0 -107
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as E, mergeModels as ae, useModel as de, onMounted as ue, ref as D, computed as L, resolveComponent as B, openBlock as F, createElementBlock as S, createElementVNode as m, toDisplayString as Z, createVNode as M, createBlock as j, withCtx as I, Fragment as z, renderList as G, normalizeClass as R, normalizeStyle as ce, createSlots as fe, unref as P, createCommentVNode as O, withModifiers as me, reactive as Q, watch as X, isRef as ee, Teleport as pe } from "vue";
|
|
2
2
|
import { E as ge } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { y as ve, c as U, z as be, f as ye } from "./app-
|
|
3
|
+
import { y as ve, c as U, z as be, f as ye } from "./app-RVyC2D4O.js";
|
|
4
4
|
import { useDialogChild as he, useDialog as te, useProxiedModel as ne, useSnackbar as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { f as oe } from "./fuzzy-
|
|
6
|
-
import { _ as Ce, a as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { f as oe } from "./fuzzy-yzIM5KUK.js";
|
|
6
|
+
import { _ as Ce, a as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DaHXKF1s.js";
|
|
7
7
|
import { useCoreStore as He } from "@feedmepos/mf-common";
|
|
8
8
|
const we = "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
|
function Y(_, v) {
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { defineComponent as H, computed as _, reactive as J, resolveComponent as x, openBlock as f, createElementBlock as g, createVNode as u, unref as t, createElementVNode as n, toDisplayString as v, Fragment as R, renderList as S, createBlock as I, withCtx as F, createTextVNode as Q, createCommentVNode as E, nextTick as X } from "vue";
|
|
2
|
+
import { u as Z, i as ee } from "./app-RVyC2D4O.js";
|
|
3
|
+
import { a as V, c as ne } from "./number-B5d98l0m.js";
|
|
4
|
+
import { u as oe } from "./use-inventory-binding-dialog-CTriImiV.js";
|
|
5
|
+
import { A as te, b as ie, a as M } from "./rules-CCwuHe8Y.js";
|
|
6
|
+
import { g as le } from "./index-l87_vggM.js";
|
|
7
|
+
import { _ as se, a as de, b as ae } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D-vJDMKb.js";
|
|
8
|
+
import { useI18n as re } from "@feedmepos/mf-common";
|
|
9
|
+
const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ve = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = /* @__PURE__ */ n("div", { class: "w-[200px]" }, null, -1), xe = /* @__PURE__ */ n("div", { class: "w-[52px]" }, null, -1), he = {
|
|
10
|
+
class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
|
|
11
|
+
style: { "min-height": "48px" }
|
|
12
|
+
}, be = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, ge = { class: "w-[200px]" }, Ve = { class: "w-[52px]" }, ke = { class: "flex flex-col gap-16" }, Be = { class: "flex items-center" }, Ie = { class: "flex-1 fm-typo-en-title-sm-600" }, Fe = { class: "flex flex-col" }, we = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Ae = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Ce = /* @__PURE__ */ n("div", { class: "w-[52px]" }, null, -1), Re = {
|
|
13
|
+
class: "flex items-center w-full",
|
|
14
|
+
style: { "min-height": "48px" }
|
|
15
|
+
}, Se = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ee = { class: "line-clamp-1" }, Me = { class: "w-[150px]" }, Ne = { class: "w-[52px]" }, Te = { class: "flex flex-col px-12 pb-4" }, Pe = /* @__PURE__ */ n("div", null, null, -1), Oe = /* @__PURE__ */ H({
|
|
16
|
+
__name: "InventoryBindingForm",
|
|
17
|
+
props: {
|
|
18
|
+
id: {},
|
|
19
|
+
modelValue: { default: () => [] },
|
|
20
|
+
excludeBindingId: {},
|
|
21
|
+
iframeMode: { type: Boolean },
|
|
22
|
+
disabled: { type: Boolean }
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
25
|
+
setup(N, { emit: T }) {
|
|
26
|
+
const { t: m } = re(), h = Z(), P = _(() => h.inventory.recipe ?? []), k = _(() => h.inventory.sku ?? []), c = N, p = T, b = _(
|
|
27
|
+
() => le({
|
|
28
|
+
id: c.id ?? "",
|
|
29
|
+
skus: h.skus,
|
|
30
|
+
recipes: h.recipes
|
|
31
|
+
})
|
|
32
|
+
), z = _(() => c.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: K, promptRecipesBinding: $ } = oe();
|
|
33
|
+
async function D() {
|
|
34
|
+
if (c.iframeMode) {
|
|
35
|
+
p("click:pick-inventory-bindings", "RECIPE");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
$(
|
|
39
|
+
c.modelValue,
|
|
40
|
+
(e) => p("update:modelValue", e),
|
|
41
|
+
b.value.recipes
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
const w = _(() => c.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
45
|
+
async function G() {
|
|
46
|
+
if (c.iframeMode) {
|
|
47
|
+
p("click:pick-inventory-bindings", "SKU");
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
K(
|
|
51
|
+
c.modelValue,
|
|
52
|
+
(e) => p("update:modelValue", e),
|
|
53
|
+
c.excludeBindingId,
|
|
54
|
+
b.value.skus
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
function L(e, d, i) {
|
|
58
|
+
const l = +d;
|
|
59
|
+
let s = i;
|
|
60
|
+
d.length > 0 && isFinite(l) ? s = i.map((a) => (a.id !== e || (a.amount = ne(l)), a)) : s = i.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), p("update:modelValue", s);
|
|
61
|
+
}
|
|
62
|
+
function A(e, d) {
|
|
63
|
+
const i = d.filter((l) => l.id !== e);
|
|
64
|
+
p("update:modelValue", i);
|
|
65
|
+
}
|
|
66
|
+
function U(e) {
|
|
67
|
+
var i, l;
|
|
68
|
+
if (e.type !== ee.enum.SKU)
|
|
69
|
+
throw new Error("Non-SKU binding does not have unit");
|
|
70
|
+
if (!((i = k.value.find((s) => s._id === e.id)) == null ? void 0 : i.unit))
|
|
71
|
+
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
72
|
+
return (l = k.value.find((s) => s._id === e.id)) == null ? void 0 : l.unit;
|
|
73
|
+
}
|
|
74
|
+
function j(e) {
|
|
75
|
+
return { amount: e.amount, measurement: e.measurement };
|
|
76
|
+
}
|
|
77
|
+
function Y(e, d, i) {
|
|
78
|
+
const l = i.map((s) => s.id !== e ? s : {
|
|
79
|
+
...s,
|
|
80
|
+
amount: d.amount,
|
|
81
|
+
measurement: d.measurement
|
|
82
|
+
});
|
|
83
|
+
p("update:modelValue", l);
|
|
84
|
+
}
|
|
85
|
+
const C = J({});
|
|
86
|
+
function O(e) {
|
|
87
|
+
return C[e.id] ?? {
|
|
88
|
+
modelValue: {
|
|
89
|
+
amount: e.amount,
|
|
90
|
+
measurement: e.measurement
|
|
91
|
+
},
|
|
92
|
+
amountAsString: V(e.amount)
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function W(e, d) {
|
|
96
|
+
X(() => {
|
|
97
|
+
C[e.id] = {
|
|
98
|
+
modelValue: {
|
|
99
|
+
amount: e.amount,
|
|
100
|
+
measurement: e.measurement
|
|
101
|
+
},
|
|
102
|
+
amountAsString: d
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return (e, d) => {
|
|
107
|
+
const i = x("FmFormGroup"), l = x("FmButton"), s = x("FmIcon"), a = x("FmTooltip"), q = x("FmTextField");
|
|
108
|
+
return f(), g("div", ue, [
|
|
109
|
+
u(i, {
|
|
110
|
+
disabled: e.disabled,
|
|
111
|
+
"model-value": e.modelValue,
|
|
112
|
+
rules: e.iframeMode ? void 0 : [t(te)(1, "Must have at least one inventory binding")]
|
|
113
|
+
}, null, 8, ["disabled", "model-value", "rules"]),
|
|
114
|
+
n("div", me, [
|
|
115
|
+
n("div", ce, [
|
|
116
|
+
n("div", pe, v(t(m)("inventory.inventoryBindings.recipe")), 1),
|
|
117
|
+
u(l, {
|
|
118
|
+
variant: "secondary",
|
|
119
|
+
"text-color": "primary",
|
|
120
|
+
"border-color": "primary",
|
|
121
|
+
label: t(m)("inventory.inventoryBindings.linkRecipe"),
|
|
122
|
+
"prepend-icon": "link",
|
|
123
|
+
onClick: D
|
|
124
|
+
}, null, 8, ["label"])
|
|
125
|
+
]),
|
|
126
|
+
n("div", fe, [
|
|
127
|
+
n("div", ve, [
|
|
128
|
+
n("div", ye, v(t(m)("inventory.inventoryBindings.recipe")), 1),
|
|
129
|
+
_e,
|
|
130
|
+
xe
|
|
131
|
+
]),
|
|
132
|
+
(f(!0), g(R, null, S(z.value, (o) => (f(), I(i, {
|
|
133
|
+
key: o.id,
|
|
134
|
+
disabled: e.disabled,
|
|
135
|
+
modelValue: +t(V)(o.amount ?? { amount: 1, precision: 0 }),
|
|
136
|
+
rules: [t(ie)(0), t(M)(0)]
|
|
137
|
+
}, {
|
|
138
|
+
default: F(({ invalid: B }) => {
|
|
139
|
+
var y;
|
|
140
|
+
return [
|
|
141
|
+
n("div", he, [
|
|
142
|
+
n("div", be, [
|
|
143
|
+
Q(v((y = P.value.find((r) => r._id === o.id)) == null ? void 0 : y.name) + " ", 1),
|
|
144
|
+
b.value.recipes.includes(o.id) ? (f(), I(a, {
|
|
145
|
+
key: 0,
|
|
146
|
+
variant: "plain",
|
|
147
|
+
placement: "bottom",
|
|
148
|
+
content: "It is invalid, please verify or remove it.",
|
|
149
|
+
"hide-arrow": !0,
|
|
150
|
+
"z-index": 50
|
|
151
|
+
}, {
|
|
152
|
+
default: F(() => [
|
|
153
|
+
u(s, {
|
|
154
|
+
name: "error",
|
|
155
|
+
size: "sm",
|
|
156
|
+
color: "#ff3b30"
|
|
157
|
+
})
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
})) : E("", !0)
|
|
161
|
+
]),
|
|
162
|
+
n("div", ge, [
|
|
163
|
+
u(q, {
|
|
164
|
+
class: "w-full",
|
|
165
|
+
disabled: e.disabled,
|
|
166
|
+
modelValue: +t(V)(o.amount ?? { amount: 1, precision: 0 }),
|
|
167
|
+
"onUpdate:modelValue": (r) => L(o.id, r, e.modelValue),
|
|
168
|
+
invalid: B
|
|
169
|
+
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
170
|
+
]),
|
|
171
|
+
n("div", Ve, [
|
|
172
|
+
u(l, {
|
|
173
|
+
disabled: e.disabled,
|
|
174
|
+
type: "button",
|
|
175
|
+
variant: "plain",
|
|
176
|
+
icon: "delete",
|
|
177
|
+
"icon-color": "#000000",
|
|
178
|
+
onClick: (r) => A(o.id, e.modelValue)
|
|
179
|
+
}, null, 8, ["disabled", "onClick"])
|
|
180
|
+
])
|
|
181
|
+
])
|
|
182
|
+
];
|
|
183
|
+
}),
|
|
184
|
+
_: 2
|
|
185
|
+
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
186
|
+
])
|
|
187
|
+
]),
|
|
188
|
+
n("div", ke, [
|
|
189
|
+
n("div", Be, [
|
|
190
|
+
n("div", Ie, v(t(m)("inventory.inventoryBindings.ingredient")), 1),
|
|
191
|
+
u(l, {
|
|
192
|
+
variant: "secondary",
|
|
193
|
+
"text-color": "primary",
|
|
194
|
+
"border-color": "primary",
|
|
195
|
+
label: t(m)("inventory.inventoryBindings.linkIngredient"),
|
|
196
|
+
"prepend-icon": "link",
|
|
197
|
+
onClick: G
|
|
198
|
+
}, null, 8, ["label"])
|
|
199
|
+
]),
|
|
200
|
+
n("div", Fe, [
|
|
201
|
+
n("div", we, [
|
|
202
|
+
n("div", Ae, v(t(m)("inventory.inventoryBindings.ingredient")), 1),
|
|
203
|
+
n("div", Ue, v(t(m)("inventory.inventoryBindings.amount")), 1),
|
|
204
|
+
Ce
|
|
205
|
+
]),
|
|
206
|
+
(f(!0), g(R, null, S(w.value, (o, B) => {
|
|
207
|
+
var y;
|
|
208
|
+
return f(), g("div", {
|
|
209
|
+
key: o.id,
|
|
210
|
+
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
211
|
+
}, [
|
|
212
|
+
n("div", Re, [
|
|
213
|
+
n("div", Se, [
|
|
214
|
+
n("span", Ee, v((y = k.value.find((r) => r._id === o.id)) == null ? void 0 : y.name), 1),
|
|
215
|
+
b.value.skus.includes(o.id) ? (f(), I(a, {
|
|
216
|
+
key: 0,
|
|
217
|
+
variant: "plain",
|
|
218
|
+
placement: "bottom",
|
|
219
|
+
content: t(m)("inventory.inventoryBindings.invalidWarning"),
|
|
220
|
+
"hide-arrow": !0,
|
|
221
|
+
"z-index": 50
|
|
222
|
+
}, {
|
|
223
|
+
default: F(() => [
|
|
224
|
+
u(s, {
|
|
225
|
+
name: "error",
|
|
226
|
+
size: "sm",
|
|
227
|
+
color: "#ff3b30"
|
|
228
|
+
})
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["content"])) : E("", !0)
|
|
232
|
+
]),
|
|
233
|
+
n("div", Me, [
|
|
234
|
+
u(se, {
|
|
235
|
+
"model-value": j(o),
|
|
236
|
+
"onUpdate:modelValue": (r) => Y(o.id, r, e.modelValue),
|
|
237
|
+
"onUpdate:amount": (r) => W(o, r),
|
|
238
|
+
unit: U(o),
|
|
239
|
+
placement: B === w.value.length - 1 ? "top" : "bottom",
|
|
240
|
+
"convert-amount-on-change-unit": ""
|
|
241
|
+
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement"])
|
|
242
|
+
]),
|
|
243
|
+
n("div", Ne, [
|
|
244
|
+
u(l, {
|
|
245
|
+
disabled: e.disabled,
|
|
246
|
+
type: "button",
|
|
247
|
+
variant: "tertiary",
|
|
248
|
+
icon: "delete",
|
|
249
|
+
onClick: (r) => A(o.id, e.modelValue)
|
|
250
|
+
}, null, 8, ["disabled", "onClick"])
|
|
251
|
+
])
|
|
252
|
+
]),
|
|
253
|
+
n("div", Te, [
|
|
254
|
+
u(i, {
|
|
255
|
+
modelValue: +t(V)(o.amount ?? { amount: 1, precision: 0 }),
|
|
256
|
+
rules: [t(M)(0)]
|
|
257
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
258
|
+
u(i, {
|
|
259
|
+
modelValue: O(o),
|
|
260
|
+
rules: [
|
|
261
|
+
t(de)(),
|
|
262
|
+
t(ae)(U(o))
|
|
263
|
+
]
|
|
264
|
+
}, null, 8, ["modelValue", "rules"])
|
|
265
|
+
])
|
|
266
|
+
]);
|
|
267
|
+
}), 128))
|
|
268
|
+
]),
|
|
269
|
+
Pe
|
|
270
|
+
])
|
|
271
|
+
]);
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
export {
|
|
276
|
+
Oe as _
|
|
277
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import { c as d } from "./number-
|
|
2
|
+
import { c as d } from "./number-B5d98l0m.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
package/dist/{PurchaseOrderPrintPreview-EeKhENYH.js → PurchaseOrderPrintPreview-YFcOtdfJ.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as m, onMounted as g, openBlock as r, createElementBlock as o, createElementVNode as e, toDisplayString as t, normalizeStyle as w, createTextVNode as i, Fragment as u, createCommentVNode as h, renderList as _, normalizeClass as k, pushScopeId as S, popScopeId as C } from "vue";
|
|
2
2
|
import { useRoute as P } from "vue-router";
|
|
3
|
-
import { q as v, _ as R } from "./app-
|
|
3
|
+
import { q as v, _ as R } from "./app-RVyC2D4O.js";
|
|
4
4
|
const n = (d) => (S("data-v-54384fc1"), d = d(), C(), d), A = { class: "purchase-box" }, N = { valign: "bottom" }, E = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "title" }, "Inventory Receive Note", -1)), O = { class: "text-right" }, q = { class: "header" }, D = /* @__PURE__ */ n(() => /* @__PURE__ */ e("hr", null, null, -1)), I = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "header" }, "Supplier", -1)), T = { class: "sub-header" }, F = { class: "caption" }, L = { class: "address" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), V = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), z = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), B = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), H = { class: "text-right" }, M = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "header" }, "Delivery To", -1)), J = { class: "sub-header" }, Q = { class: "address" }, j = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), G = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), K = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), W = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), X = { class: "purchase-body" }, Y = /* @__PURE__ */ n(() => /* @__PURE__ */ e("thead", { class: "item-header" }, [
|
|
5
5
|
/* @__PURE__ */ e("tr", null, [
|
|
6
6
|
/* @__PURE__ */ e("th", {
|