@feedmepos/mf-inventory-portal 1.2.52 → 1.2.53-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--VMK_Bqt.js → App-C8X881gs.js} +75 -70
- package/dist/{ApprovalView-3g89b2Ya.js → ApprovalView-CnwwVO46.js} +34 -34
- package/dist/{BindingsDialog-C_qcIKUI.js → BindingsDialog-MM6wv-je.js} +2 -2
- package/dist/{BindingsPicker-CPrS3J1t.js → BindingsPicker-C_VV8t8e.js} +2 -2
- package/dist/{BindingsTable-C5PCH5Vf.js → BindingsTable-CabKT98b.js} +4 -4
- package/dist/{ClosingDraftView-CiJV5d7M.js → ClosingDraftView-D3dwGHdG.js} +19 -18
- package/dist/{ClosingHistoryView-CvOfQF2y.js → ClosingHistoryView-CBMIWL-O.js} +27 -27
- package/dist/{ClosingTemplateView-BWvaFiHB.js → ClosingTemplateView-FHCJY1Y1.js} +18 -17
- package/dist/{DeliveryOrderPrintPreview-C9ZI8EVy.js → DeliveryOrderPrintPreview-BB4HVWaM.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dq2vcIMB.js +188 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLdaN3XH.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BSrjl8Vc.js} +12 -12
- package/dist/FmMultiselectDialog-D8E2bGwL.js +618 -0
- package/dist/{FmMultiselectDialog-M5xxjK0u.js → FmMultiselectDialog-HP5xQpLC.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CnHJwYtN.js → FmUnitInput.vue_vue_type_script_setup_true_lang--yzPFTUH.js} +3 -3
- package/dist/{ImportView-DeW2True.js → ImportView-DQPKyc1T.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYSKI3Qs.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DZAOa26T.js} +1 -1
- package/dist/{IngredientGroupView-BjZqH3dV.js → IngredientGroupView-CiR31jQz.js} +108 -107
- package/dist/{IngredientsView-BU-dONim.js → IngredientsView-Csa1Lifk.js} +126 -125
- package/dist/{IntegrationView-6m61Ipf9.js → IntegrationView-DqGXjNPx.js} +80 -80
- package/dist/{InventoryBindingForm-C-QzGErT.js → InventoryBindingForm-kZ6JIgK4.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-D-qjPLHS.js +403 -0
- package/dist/{InventoryBindingSummary-CJbJDI2o.js → InventoryBindingSummary-Cn3y7cXX.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RgGlAX33.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-5cpvf_ze.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DhsCTTsf.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DW_3XEAx.js} +2 -2
- package/dist/{PublishView-BGIPKR3R.js → PublishView-tvxBQLp2.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DNYxm9VZ.js → PurchaseOrderPrintPreview-CqSijErx.js} +1 -1
- package/dist/ReceiveRequestView-Oq87gJ1d.js +2913 -0
- package/dist/{RecipeView-ImuvouoQ.js → RecipeView-c7SNUwhq.js} +83 -82
- package/dist/{StockView-DX-M79i4.js → StockView-B3ocNf5D.js} +113 -112
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BU9OphZT.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Br3p4H5X.js} +1 -1
- package/dist/{SupplierView-DwOXRHIm.js → SupplierView-7UHgW64q.js} +28 -27
- package/dist/SurchargeView-CkBBz_W1.js +460 -0
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CFNAl2zj.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BxqwBD1A.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +84 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C-fJgXX4.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DZxJDrcN.js} +17 -17
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-vKznrul-.js → TransferDetails.vue_vue_type_script_setup_true_lang-BP7PC5FE.js} +15 -15
- package/dist/{TransferTemplateView-B6Lynxx7.js → TransferTemplateView-gnib1NSD.js} +82 -81
- package/dist/{UnitView-CPl1rpkV.js → UnitView-gccTcBDm.js} +20 -19
- package/dist/{WarehouseView-705pfGhw.js → WarehouseView-9Tzk2HFV.js} +21 -20
- package/dist/{WastageTemplateView-DAEt9fAW.js → WastageTemplateView-bxDDb0it.js} +67 -66
- package/dist/api/netsuite.d.ts +8 -0
- package/dist/api/surcharge.d.ts +31 -0
- package/dist/app-DiX-EfV6.js +8167 -0
- package/dist/{app-yA2GcbOF.js → app-S9HQBEDL.js} +4505 -4404
- package/dist/app.d.ts +52 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-C_fOjY8b.js → closing-template-DSppbNBU.js} +1 -1
- package/dist/component-DpCUABT3.js +82 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +8 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +5 -0
- package/dist/{date2-CGBF6K5g.js → date2-a0EDY-8z.js} +1 -1
- package/dist/{dayjs.min-CcXVb3N8.js → dayjs.min-D3uqC-FM.js} +26 -26
- package/dist/{decimal-o3WVGEo3.js → decimal-iC0dKSbY.js} +2 -2
- package/dist/{defineDeepModel-DHrbJI5Q.js → defineDeepModel-sBbNFqqR.js} +1 -1
- package/dist/{duplicate-template-BpR6oQr0.js → duplicate-template-Dwe_h80w.js} +1 -1
- package/dist/{feature-D8BhYTHO.js → feature-12j10xt_.js} +8956 -6221
- package/dist/{format-time-from-id-0_5FFMRS.js → format-time-from-id-Dyyvx-ha.js} +1 -1
- package/dist/{format-unit-display-Cgf9ziiC.js → format-unit-display-DstE3kKS.js} +11 -11
- package/dist/{import-export.helper-zE76m0Lr.js → import-export.helper-CR8rEBJV.js} +5 -5
- package/dist/{index-B23iGYnZ.js → index-BbpxRM23.js} +1 -1
- package/dist/{index-CbyU93I-.js → index-Ca8nKTEy.js} +1 -1
- package/dist/{index-2ApGEdTo.js → index-CvRrsISb.js} +3 -3
- package/dist/{lodash-6pJVv_NM.js → lodash-BiCqhRt2.js} +1 -1
- package/dist/netsuite-B84CfGmT.js +5454 -0
- package/dist/{purchase-order-template-Dx0eXO5h.js → purchase-order-template-ogVLqXnM.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-BDCrcRdu.js → rules-C0W8tBAK.js} +9 -9
- package/dist/{stock-DBheIzMc.js → stock-BfY956rP.js} +3 -3
- package/dist/{stock-0PfUUvpN.js → stock-Dy08ISna.js} +1 -1
- package/dist/stores/feature.d.ts +4 -0
- package/dist/stores/integration/netsuite.d.ts +5 -0
- package/dist/stores/surcharge.d.ts +18 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-BJv4rrs8.js → supplier-BGfg_Uzv.js} +2 -2
- package/dist/surcharge-DZkc9Zxa.js +71 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CubGF9kW.js → use-ingredient-select-dialog-fOf-xHgn.js} +2 -2
- package/dist/{use-inventory-binding-dialog-GiYf-Jn5.js → use-inventory-binding-dialog-CF6dmCop.js} +2 -2
- package/dist/{use-template-enabled-locations-2-1-PoWVif.js → use-template-enabled-locations-2-C9YTP8tP.js} +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +714 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/surcharge/SurchargeView.vue.d.ts +2 -0
- package/dist/{vue-i18n-Cb65g8p9.js → vue-i18n-CVvQI1xZ.js} +328 -328
- package/dist/{xlsx-C7pOdYp2.js → xlsx-C46Afq2T.js} +1 -1
- package/dist/{xlsx.util-Boe3rV7g.js → xlsx.util-iJmlHY2V.js} +1 -1
- package/package.json +2 -2
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DVOt7pfR.js +0 -231
- package/dist/FmMultiselectDialog-CMGvzBur.js +0 -598
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-B25u_7kJ.js +0 -375
- package/dist/ReceiveRequestView-BkwCM2gx.js +0 -2913
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
- package/dist/app-uBuHtW8m.js +0 -8127
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
- package/dist/netsuite-CPg7U65w.js +0 -5131
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +0 -9
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +0 -22
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { defineComponent as ne, computed as g, reactive as oe, resolveComponent as B, openBlock as a, createElementBlock as y, createVNode as m, withCtx as k, createElementVNode as n, toDisplayString as p, unref as i, createBlock as I, createCommentVNode as v, Fragment as E, renderList as C, nextTick as te } from "vue";
|
|
2
|
+
import { a as le, H as ie, aj as se, F as de } from "./app-S9HQBEDL.js";
|
|
3
|
+
import { a as h, q as D, h as G, d as re } from "./rules-C0W8tBAK.js";
|
|
4
|
+
import { u as ae } from "./use-inventory-binding-dialog-CF6dmCop.js";
|
|
5
|
+
import { _ as ue, c as me, d as ce } from "./FmUnitInput.vue_vue_type_script_setup_true_lang--yzPFTUH.js";
|
|
6
|
+
import { useI18n as pe } from "@feedmepos/mf-common";
|
|
7
|
+
const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-16" }, ve = { class: "flex items-center" }, be = { class: "flex-1 fm-typo-en-title-sm-600" }, _e = { 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" }, xe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, he = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Ve = {
|
|
8
|
+
class: "flex items-center",
|
|
9
|
+
style: { "min-height": "48px" }
|
|
10
|
+
}, Be = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, ke = { class: "flex flex-col" }, Ie = { class: "line-clamp-1" }, we = { class: "w-[200px]" }, Fe = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "w-[52px]"
|
|
13
|
+
}, Ue = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-8"
|
|
16
|
+
}, Ee = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "flex flex-col gap-16"
|
|
19
|
+
}, Ce = { class: "flex items-center" }, Ge = { class: "flex-1 fm-typo-en-title-sm-600" }, Ae = { class: "flex flex-col" }, Re = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Se = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Pe = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Te = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400"
|
|
22
|
+
}, Ne = {
|
|
23
|
+
class: "flex items-center",
|
|
24
|
+
style: { "min-height": "48px" }
|
|
25
|
+
}, Me = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, De = { class: "flex flex-col" }, Ke = { class: "w-[200px]" }, $e = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "w-[52px]"
|
|
28
|
+
}, ze = { class: "flex flex-col gap-16" }, je = { class: "flex items-center" }, Le = { class: "flex-1 fm-typo-en-title-sm-600" }, Oe = { class: "flex flex-col" }, Ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, qe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, He = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, We = {
|
|
29
|
+
class: "flex items-center w-full",
|
|
30
|
+
style: { "min-height": "48px" }
|
|
31
|
+
}, Je = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Qe = { class: "line-clamp-1 w-full" }, Xe = { class: "w-[150px]" }, Ze = {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "w-[52px]"
|
|
34
|
+
}, en = { class: "flex flex-col px-12 pb-4" }, rn = /* @__PURE__ */ ne({
|
|
35
|
+
__name: "InventoryBindingForm",
|
|
36
|
+
props: {
|
|
37
|
+
id: {},
|
|
38
|
+
modelValue: { default: () => [] },
|
|
39
|
+
excludeBindingId: {},
|
|
40
|
+
rules: { default: () => [] },
|
|
41
|
+
iframeMode: { type: Boolean },
|
|
42
|
+
disabled: { type: Boolean },
|
|
43
|
+
readonly: { type: Boolean },
|
|
44
|
+
enableIngredientGroup: { type: Boolean }
|
|
45
|
+
},
|
|
46
|
+
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
47
|
+
setup(K, { emit: $ }) {
|
|
48
|
+
const { t: u } = pe(), x = le(), A = g(() => x.recipeById), w = g(() => x.skuById), z = g(() => x.skuGroupById), s = K, b = $, R = g(() => ie({
|
|
49
|
+
parentId: s.id,
|
|
50
|
+
bindings: s.modelValue,
|
|
51
|
+
recipes: x.recipes.map((o) => o._id === s.id ? {
|
|
52
|
+
...o,
|
|
53
|
+
contains: s.modelValue
|
|
54
|
+
} : o),
|
|
55
|
+
skus: x.skus.map((o) => o._id === s.id ? {
|
|
56
|
+
...o,
|
|
57
|
+
convert: {
|
|
58
|
+
inventoryBindings: s.modelValue
|
|
59
|
+
}
|
|
60
|
+
} : o),
|
|
61
|
+
skuGroups: x.skuGroups
|
|
62
|
+
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === se.enum.circularDependency)), F = g(
|
|
63
|
+
() => new Set(R.value.map((e) => {
|
|
64
|
+
var l;
|
|
65
|
+
return (l = e.bindingPaths[0]) == null ? void 0 : l.id;
|
|
66
|
+
}))
|
|
67
|
+
), j = g(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: L, promptRecipesBinding: O, promptIngredientGroupsBinding: Y } = ae();
|
|
68
|
+
async function q() {
|
|
69
|
+
if (s.iframeMode) {
|
|
70
|
+
b("click:pick-inventory-bindings", "RECIPE");
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
O(
|
|
74
|
+
s.modelValue,
|
|
75
|
+
(e) => b("update:modelValue", e),
|
|
76
|
+
s.id ? [s.id] : []
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
const H = g(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
|
|
80
|
+
async function W() {
|
|
81
|
+
Y(
|
|
82
|
+
s.modelValue,
|
|
83
|
+
(e) => b("update:modelValue", e),
|
|
84
|
+
s.id ? [s.id] : []
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
const S = g(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
88
|
+
async function J() {
|
|
89
|
+
if (s.iframeMode) {
|
|
90
|
+
b("click:pick-inventory-bindings", "SKU");
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
L(
|
|
94
|
+
s.modelValue,
|
|
95
|
+
(e) => b("update:modelValue", e),
|
|
96
|
+
s.excludeBindingId,
|
|
97
|
+
s.id ? [s.id] : []
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
function P(e, l, o) {
|
|
101
|
+
const r = +l;
|
|
102
|
+
let f = o;
|
|
103
|
+
l.length > 0 && isFinite(r) ? f = o.map((c) => (c.id !== e || (c.amount = re(r)), c)) : f = o.map((c) => (c.id !== e || (c.amount = { amount: 0, precision: 0 }), c)), b("update:modelValue", f);
|
|
104
|
+
}
|
|
105
|
+
function U(e, l) {
|
|
106
|
+
const o = l.filter((r) => r.id !== e);
|
|
107
|
+
b("update:modelValue", o);
|
|
108
|
+
}
|
|
109
|
+
function T(e) {
|
|
110
|
+
var o, r;
|
|
111
|
+
if (e.type !== de.enum.SKU)
|
|
112
|
+
throw new Error("Non-SKU binding does not have unit");
|
|
113
|
+
if (!((o = w.value[e.id]) == null ? void 0 : o.unit))
|
|
114
|
+
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
115
|
+
return (r = w.value[e.id]) == null ? void 0 : r.unit;
|
|
116
|
+
}
|
|
117
|
+
function Q(e) {
|
|
118
|
+
return { amount: e.amount, measurement: e.measurement };
|
|
119
|
+
}
|
|
120
|
+
function X(e, l, o) {
|
|
121
|
+
const r = o.map((f) => f.id !== e ? f : {
|
|
122
|
+
...f,
|
|
123
|
+
amount: l.amount,
|
|
124
|
+
measurement: l.measurement
|
|
125
|
+
});
|
|
126
|
+
b("update:modelValue", r);
|
|
127
|
+
}
|
|
128
|
+
const N = oe({});
|
|
129
|
+
function Z(e) {
|
|
130
|
+
return N[e.id] ?? {
|
|
131
|
+
modelValue: {
|
|
132
|
+
amount: e.amount,
|
|
133
|
+
measurement: e.measurement
|
|
134
|
+
},
|
|
135
|
+
amountAsString: h(e.amount)
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function ee(e, l) {
|
|
139
|
+
te(() => {
|
|
140
|
+
N[e.id] = {
|
|
141
|
+
modelValue: {
|
|
142
|
+
amount: e.amount,
|
|
143
|
+
measurement: e.measurement
|
|
144
|
+
},
|
|
145
|
+
amountAsString: l
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
return (e, l) => {
|
|
150
|
+
const o = B("FmFormGroup"), r = B("FmButton"), f = B("FmTooltip"), c = B("FmTextField"), M = B("FmIcon");
|
|
151
|
+
return a(), y("div", ye, [
|
|
152
|
+
m(o, {
|
|
153
|
+
disabled: e.disabled,
|
|
154
|
+
"model-value": e.modelValue,
|
|
155
|
+
rules: [
|
|
156
|
+
...e.rules,
|
|
157
|
+
() => R.value.length ? "There is a binding error in your configuration" : !0
|
|
158
|
+
]
|
|
159
|
+
}, {
|
|
160
|
+
label: k(() => l[0] || (l[0] = [
|
|
161
|
+
n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Define the inventory bindings for this recipe or ingredient. ", -1)
|
|
162
|
+
])),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["disabled", "model-value", "rules"]),
|
|
165
|
+
n("div", fe, [
|
|
166
|
+
n("div", ve, [
|
|
167
|
+
n("div", be, p(i(u)("inventory.inventoryBindings.recipe")), 1),
|
|
168
|
+
e.readonly ? v("", !0) : (a(), I(r, {
|
|
169
|
+
key: 0,
|
|
170
|
+
variant: "secondary",
|
|
171
|
+
"text-color": "primary",
|
|
172
|
+
"border-color": "primary",
|
|
173
|
+
label: i(u)("inventory.inventoryBindings.linkRecipe"),
|
|
174
|
+
"prepend-icon": "link",
|
|
175
|
+
onClick: q
|
|
176
|
+
}, null, 8, ["label"]))
|
|
177
|
+
]),
|
|
178
|
+
n("div", _e, [
|
|
179
|
+
n("div", ge, [
|
|
180
|
+
n("div", xe, p(i(u)("inventory.inventoryBindings.recipe")), 1),
|
|
181
|
+
l[1] || (l[1] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
182
|
+
l[2] || (l[2] = n("div", { class: "w-[52px]" }, null, -1))
|
|
183
|
+
]),
|
|
184
|
+
(a(!0), y(E, null, C(j.value, (t) => (a(), I(o, {
|
|
185
|
+
key: t.id,
|
|
186
|
+
disabled: e.disabled,
|
|
187
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
188
|
+
rules: [i(D)(0), i(G)(-1)]
|
|
189
|
+
}, {
|
|
190
|
+
default: k(({ invalid: V }) => {
|
|
191
|
+
var _;
|
|
192
|
+
return [
|
|
193
|
+
n("div", he, [
|
|
194
|
+
n("div", Ve, [
|
|
195
|
+
n("div", Be, [
|
|
196
|
+
n("div", ke, [
|
|
197
|
+
m(f, {
|
|
198
|
+
zIndex: 51,
|
|
199
|
+
variant: "plain",
|
|
200
|
+
placement: "top",
|
|
201
|
+
content: (_ = A.value[t.id]) == null ? void 0 : _.name
|
|
202
|
+
}, {
|
|
203
|
+
default: k(() => {
|
|
204
|
+
var d;
|
|
205
|
+
return [
|
|
206
|
+
n("span", Ie, p((d = A.value[t.id]) == null ? void 0 : d.name), 1)
|
|
207
|
+
];
|
|
208
|
+
}),
|
|
209
|
+
_: 2
|
|
210
|
+
}, 1032, ["content"])
|
|
211
|
+
])
|
|
212
|
+
]),
|
|
213
|
+
n("div", we, [
|
|
214
|
+
m(c, {
|
|
215
|
+
class: "w-full",
|
|
216
|
+
disabled: e.disabled,
|
|
217
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
218
|
+
"onUpdate:modelValue": (d) => P(t.id, d, e.modelValue),
|
|
219
|
+
invalid: V
|
|
220
|
+
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
221
|
+
]),
|
|
222
|
+
e.readonly ? v("", !0) : (a(), y("div", Fe, [
|
|
223
|
+
m(r, {
|
|
224
|
+
disabled: e.disabled,
|
|
225
|
+
type: "button",
|
|
226
|
+
variant: "plain",
|
|
227
|
+
icon: "delete",
|
|
228
|
+
"icon-color": "#000000",
|
|
229
|
+
onClick: (d) => U(t.id, e.modelValue)
|
|
230
|
+
}, null, 8, ["disabled", "onClick"])
|
|
231
|
+
]))
|
|
232
|
+
]),
|
|
233
|
+
F.value.has(t.id) ? (a(), y("div", Ue, [
|
|
234
|
+
m(M, {
|
|
235
|
+
name: "error",
|
|
236
|
+
color: "system-error-300",
|
|
237
|
+
size: "sm"
|
|
238
|
+
}),
|
|
239
|
+
n("div", null, p(i(u)("inventory.inventoryBindings.circularError")), 1)
|
|
240
|
+
])) : v("", !0)
|
|
241
|
+
])
|
|
242
|
+
];
|
|
243
|
+
}),
|
|
244
|
+
_: 2
|
|
245
|
+
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
246
|
+
])
|
|
247
|
+
]),
|
|
248
|
+
e.enableIngredientGroup ? (a(), y("div", Ee, [
|
|
249
|
+
n("div", Ce, [
|
|
250
|
+
n("div", Ge, p(i(u)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
251
|
+
e.readonly ? v("", !0) : (a(), I(r, {
|
|
252
|
+
key: 0,
|
|
253
|
+
variant: "secondary",
|
|
254
|
+
"text-color": "primary",
|
|
255
|
+
"border-color": "primary",
|
|
256
|
+
label: i(u)("inventory.inventoryBindings.linkIngredientGroup"),
|
|
257
|
+
"prepend-icon": "link",
|
|
258
|
+
onClick: W
|
|
259
|
+
}, null, 8, ["label"]))
|
|
260
|
+
]),
|
|
261
|
+
n("div", Ae, [
|
|
262
|
+
n("div", Re, [
|
|
263
|
+
n("div", Se, p(i(u)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
264
|
+
l[3] || (l[3] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
265
|
+
l[4] || (l[4] = n("div", { class: "w-[52px]" }, null, -1))
|
|
266
|
+
]),
|
|
267
|
+
(a(!0), y(E, null, C(H.value, (t) => (a(), I(o, {
|
|
268
|
+
key: t.id,
|
|
269
|
+
disabled: e.disabled,
|
|
270
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
271
|
+
rules: [i(D)(0), i(G)(0)]
|
|
272
|
+
}, {
|
|
273
|
+
default: k(({ invalid: V }) => {
|
|
274
|
+
var _;
|
|
275
|
+
return [
|
|
276
|
+
n("div", Pe, [
|
|
277
|
+
F.value.has(t.id) ? (a(), y("div", Te, [
|
|
278
|
+
m(M, {
|
|
279
|
+
name: "error",
|
|
280
|
+
color: "system-error-300",
|
|
281
|
+
size: "sm"
|
|
282
|
+
}),
|
|
283
|
+
n("div", null, p(i(u)("inventory.inventoryBindings.circularError")), 1)
|
|
284
|
+
])) : v("", !0),
|
|
285
|
+
n("div", Ne, [
|
|
286
|
+
n("div", Me, [
|
|
287
|
+
n("div", De, p((_ = z.value[t.id]) == null ? void 0 : _.name), 1)
|
|
288
|
+
]),
|
|
289
|
+
n("div", Ke, [
|
|
290
|
+
m(c, {
|
|
291
|
+
class: "w-full",
|
|
292
|
+
disabled: e.disabled,
|
|
293
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
294
|
+
"onUpdate:modelValue": (d) => P(t.id, d, e.modelValue),
|
|
295
|
+
invalid: V
|
|
296
|
+
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
297
|
+
]),
|
|
298
|
+
e.readonly ? v("", !0) : (a(), y("div", $e, [
|
|
299
|
+
m(r, {
|
|
300
|
+
disabled: e.disabled,
|
|
301
|
+
type: "button",
|
|
302
|
+
variant: "plain",
|
|
303
|
+
icon: "delete",
|
|
304
|
+
"icon-color": "#000000",
|
|
305
|
+
onClick: (d) => U(t.id, e.modelValue)
|
|
306
|
+
}, null, 8, ["disabled", "onClick"])
|
|
307
|
+
]))
|
|
308
|
+
])
|
|
309
|
+
])
|
|
310
|
+
];
|
|
311
|
+
}),
|
|
312
|
+
_: 2
|
|
313
|
+
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
314
|
+
])
|
|
315
|
+
])) : v("", !0),
|
|
316
|
+
n("div", ze, [
|
|
317
|
+
n("div", je, [
|
|
318
|
+
n("div", Le, p(i(u)("inventory.inventoryBindings.ingredient")), 1),
|
|
319
|
+
e.readonly ? v("", !0) : (a(), I(r, {
|
|
320
|
+
key: 0,
|
|
321
|
+
variant: "secondary",
|
|
322
|
+
"text-color": "primary",
|
|
323
|
+
"border-color": "primary",
|
|
324
|
+
label: i(u)("inventory.inventoryBindings.linkIngredient"),
|
|
325
|
+
"prepend-icon": "link",
|
|
326
|
+
onClick: J
|
|
327
|
+
}, null, 8, ["label"]))
|
|
328
|
+
]),
|
|
329
|
+
n("div", Oe, [
|
|
330
|
+
n("div", Ye, [
|
|
331
|
+
n("div", qe, p(i(u)("inventory.inventoryBindings.ingredient")), 1),
|
|
332
|
+
n("div", He, p(i(u)("inventory.inventoryBindings.amount")), 1),
|
|
333
|
+
l[5] || (l[5] = n("div", { class: "w-[52px]" }, null, -1))
|
|
334
|
+
]),
|
|
335
|
+
(a(!0), y(E, null, C(S.value, (t, V) => {
|
|
336
|
+
var _;
|
|
337
|
+
return a(), y("div", {
|
|
338
|
+
key: t.id,
|
|
339
|
+
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
340
|
+
}, [
|
|
341
|
+
n("div", We, [
|
|
342
|
+
n("div", Je, [
|
|
343
|
+
m(f, {
|
|
344
|
+
zIndex: 51,
|
|
345
|
+
variant: "plain",
|
|
346
|
+
placement: "top",
|
|
347
|
+
content: (_ = w.value[t.id]) == null ? void 0 : _.name
|
|
348
|
+
}, {
|
|
349
|
+
default: k(() => {
|
|
350
|
+
var d;
|
|
351
|
+
return [
|
|
352
|
+
n("span", Qe, p((d = w.value[t.id]) == null ? void 0 : d.name), 1)
|
|
353
|
+
];
|
|
354
|
+
}),
|
|
355
|
+
_: 2
|
|
356
|
+
}, 1032, ["content"])
|
|
357
|
+
]),
|
|
358
|
+
n("div", Xe, [
|
|
359
|
+
m(ue, {
|
|
360
|
+
"model-value": Q(t),
|
|
361
|
+
"onUpdate:modelValue": (d) => d && X(t.id, d, e.modelValue),
|
|
362
|
+
"onUpdate:amount": (d) => ee(t, d),
|
|
363
|
+
unit: T(t),
|
|
364
|
+
placement: V === S.value.length - 1 ? "top" : "bottom",
|
|
365
|
+
"convert-amount-on-change-unit": "",
|
|
366
|
+
disabled: e.readonly
|
|
367
|
+
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
368
|
+
]),
|
|
369
|
+
e.readonly ? v("", !0) : (a(), y("div", Ze, [
|
|
370
|
+
m(r, {
|
|
371
|
+
disabled: e.disabled,
|
|
372
|
+
type: "button",
|
|
373
|
+
variant: "tertiary",
|
|
374
|
+
icon: "delete",
|
|
375
|
+
onClick: (d) => U(t.id, e.modelValue)
|
|
376
|
+
}, null, 8, ["disabled", "onClick"])
|
|
377
|
+
]))
|
|
378
|
+
]),
|
|
379
|
+
n("div", en, [
|
|
380
|
+
m(o, {
|
|
381
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
382
|
+
rules: [i(G)(0)]
|
|
383
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
384
|
+
m(o, {
|
|
385
|
+
modelValue: Z(t),
|
|
386
|
+
rules: [
|
|
387
|
+
i(me)(),
|
|
388
|
+
i(ce)(T(t)),
|
|
389
|
+
() => F.value.has(t.id) ? i(u)("inventory.inventoryBindings.invalidWarning") : !0
|
|
390
|
+
]
|
|
391
|
+
}, null, 8, ["modelValue", "rules"])
|
|
392
|
+
])
|
|
393
|
+
]);
|
|
394
|
+
}), 128))
|
|
395
|
+
])
|
|
396
|
+
])
|
|
397
|
+
]);
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
export {
|
|
402
|
+
rn as _
|
|
403
|
+
};
|
|
@@ -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-S9HQBEDL.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 d, openBlock as F, createBlock as g, withCtx as i, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import { d as s } from "./rules-
|
|
2
|
+
import { d as s } from "./rules-C0W8tBAK.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u, w as _ } from "./xlsx-
|
|
2
|
-
import { o as h, u as F } from "./app-
|
|
1
|
+
import { u, w as _ } from "./xlsx-C46Afq2T.js";
|
|
2
|
+
import { o as h, u as F } from "./app-S9HQBEDL.js";
|
|
3
3
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
4
4
|
import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as w } from "vue";
|
|
5
5
|
function O(e, t) {
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { u as ne, a as ae,
|
|
2
|
+
import { u as ne, a as ae, x as se } from "./app-S9HQBEDL.js";
|
|
3
3
|
import { u as le, _ as ie } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
4
4
|
import { useBreakpoints as re, useDialog as ce, useSnackbar as ue, components as B } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as me } from "./vue-i18n-
|
|
6
|
-
import { a as H } from "./date2-
|
|
5
|
+
import { u as me } from "./vue-i18n-CVvQI1xZ.js";
|
|
6
|
+
import { a as H } from "./date2-a0EDY-8z.js";
|
|
7
7
|
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" }, xe = /* @__PURE__ */ Q({
|
|
8
8
|
__name: "PublishView",
|
|
9
9
|
setup(ve) {
|
package/dist/{PurchaseOrderPrintPreview-DNYxm9VZ.js → PurchaseOrderPrintPreview-CqSijErx.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, 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 v, renderList as p } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { M as y } from "./app-
|
|
3
|
+
import { M as y } from "./app-S9HQBEDL.js";
|
|
4
4
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const N = { class: "purchase-box" }, A = { valign: "bottom" }, C = { class: "title" }, R = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = {
|
|
6
6
|
key: 0,
|