@feedmepos/mf-inventory-portal 1.0.8 → 1.0.9-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-DeBNx7kq.js → App-DfxhucPn.js} +50 -49
- package/dist/{ApprovalView-CYgDG4X-.js → ApprovalView-BUYgTb8S.js} +24 -24
- package/dist/{BindingsDialog-Bojdsd9h.js → BindingsDialog-Cbs9aVch.js} +2 -2
- package/dist/{BindingsPicker-TkiARkrC.js → BindingsPicker-BH9bil6g.js} +3 -3
- package/dist/{BindingsTable-BWYaPoFt.js → BindingsTable-DBsS_9yb.js} +1 -1
- package/dist/ClosingDraftView-CcQssDLY.js +1415 -0
- package/dist/{ClosingTemplateView-CUjkAFjw.js → ClosingTemplateView-BHPqi-bL.js} +10 -10
- package/dist/{DeliveryOrderPrintPreview-BOEKl7zP.js → DeliveryOrderPrintPreview-DlTLtZ1f.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bve5cng3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CtJSPDCo.js} +32 -32
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-1-G4gmCj.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B-erI7fq.js} +51 -51
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bl526zYj.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DT4nyE8i.js} +1 -1
- package/dist/{IngredientGroupView-stli1Xiv.js → IngredientGroupView-DE15kdqH.js} +11 -11
- package/dist/{IngredientsView-jmDSRSkr.js → IngredientsView-BCEznLxB.js} +15 -14
- package/dist/{IntegrationView-BQZtDqlR.js → IntegrationView-COSJuqnB.js} +146 -145
- package/dist/{InventoryBindingForm-hHgB20dI.js → InventoryBindingForm-B3C8gktf.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BK36mlQE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bn2X1jxB.js} +20 -20
- package/dist/{InventoryBindingSummary-JsAhd0Jm.js → InventoryBindingSummary-BF1OtGum.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4A6bDPB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMTXHa4I.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C6bND0mn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CZR7wF6-.js} +10 -10
- package/dist/{PublishView-BK7WwXeV.js → PublishView-Cp5tpVb0.js} +12 -12
- package/dist/{PurchaseOrderPrintPreview-CMnaZkzc.js → PurchaseOrderPrintPreview-DWOcxCH8.js} +4 -4
- package/dist/{ReceiveRequestView-Bb6RQyJ8.js → ReceiveRequestView-CRuhm8r1.js} +53 -52
- package/dist/{RecipeView-CZnElbJ8.js → RecipeView-BTS1LBKZ.js} +29 -29
- package/dist/{StockView-CDAHrTyi.js → StockView-CuK8s5rt.js} +73 -72
- package/dist/{SupplierView-WTgrwbJ_.js → SupplierView-Bwpe9RoM.js} +12 -11
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DDAZMTzq.js +1897 -0
- package/dist/{TransferTemplateView-26w6orAY.js → TransferTemplateView-BlluEiV-.js} +291 -290
- package/dist/{UnitView-DAl0OS01.js → UnitView-BWGQHOWP.js} +23 -23
- package/dist/{WarehouseView-Db2wXza_.js → WarehouseView-dOCu22dg.js} +26 -26
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/food-market-hub.d.ts +1 -1
- package/dist/api/inventory.d.ts +44 -44
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/api/purchase-order.d.ts +5 -1
- package/dist/api/stock.d.ts +1 -0
- package/dist/{app-Ch3IXeOL.js → app-BkIAyhP-.js} +16504 -16961
- package/dist/app.d.ts +7 -7
- package/dist/app.js +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +8 -8
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
- package/dist/composable/usePromise.d.ts +41 -0
- package/dist/{decimal-BFWsfQmw.js → decimal-BiC7uGww.js} +1 -1
- package/dist/feature-CCDDWpq8.js +17319 -0
- package/dist/{format-unit-display-CyBzA_Ye.js → format-unit-display-CLa0op_h.js} +60 -60
- package/dist/{index-CKB7R0y2.js → index-BbFvsU1Z.js} +7 -6
- package/dist/{index-CSjhH3PC.js → index-UgbyiGok.js} +1 -1
- package/dist/{stock-BjY9UvKO.js → stock-SxO4bxTm.js} +29 -25
- package/dist/stores/feature.d.ts +5 -20
- package/dist/stores/integration/foodmarkethub.d.ts +1 -1
- package/dist/stores/integration/netsuite.d.ts +7 -7
- package/dist/stores/inventory.d.ts +44 -44
- package/dist/stores/location.d.ts +137 -137
- package/dist/{supplier-8x-ZFcOk.js → supplier-BVdCk7nI.js} +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CxZAaSGc.js → use-ingredient-select-dialog-CDeGXhur.js} +1 -1
- package/dist/{use-inventory-binding-dialog-Kmg24YiM.js → use-inventory-binding-dialog-CeRKqMy7.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
- package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +780 -74
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +424 -409
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
- package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +204 -204
- package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +665 -637
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1190 -1142
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1192 -1144
- package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
- package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
- package/dist/{vue-i18n-CXd9SF_G.js → vue-i18n-3Mh8tKq8.js} +341 -341
- package/package.json +3 -1
- package/dist/ClosingDraftView-C0ECZ9zi.js +0 -1394
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-mHNmxBuV.js +0 -1746
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as x, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as k } from "vue";
|
|
2
|
-
import { u as M, a as D, b as H, R as e,
|
|
3
|
-
import { useCoreStore as A, useI18n as
|
|
2
|
+
import { u as M, a as D, b as H, R as e, g as s, c as W } from "./app-BkIAyhP-.js";
|
|
3
|
+
import { useCoreStore as A, useI18n as G } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as L, useRoute as K } from "vue-router";
|
|
5
|
+
import { u as O } from "./feature-CCDDWpq8.js";
|
|
5
6
|
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
6
7
|
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
7
8
|
import "./array-hChJVZLE.js";
|
|
@@ -40,19 +41,19 @@ const q = {
|
|
|
40
41
|
}, X = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Y = { class: "fm-typo-en-title-lg-600" }, Z = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ee = { class: "flex gap-16" }, te = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, oe = { href: "https://feedme.ai/form" }, ne = /* @__PURE__ */ h({
|
|
41
42
|
__name: "InventoryView",
|
|
42
43
|
setup(l) {
|
|
43
|
-
const n = M(), i = D(), u = H(),
|
|
44
|
+
const n = M(), i = D(), u = H(), a = A(), m = L(), o = z(), R = O(), { t: d } = G();
|
|
44
45
|
P(
|
|
45
|
-
[() =>
|
|
46
|
-
([t,
|
|
47
|
-
f(t,
|
|
46
|
+
[() => a.sessionUser.value, () => a.currentBusiness.value],
|
|
47
|
+
([t, r]) => {
|
|
48
|
+
f(t, r);
|
|
48
49
|
}
|
|
49
50
|
), x(async () => {
|
|
50
|
-
await R.init(), await
|
|
51
|
-
const t =
|
|
52
|
-
f(t,
|
|
51
|
+
await R.init(), await a.readBusinesses();
|
|
52
|
+
const t = a.sessionUser.value, r = a.currentBusiness.value;
|
|
53
|
+
f(t, r);
|
|
53
54
|
});
|
|
54
|
-
function f(t,
|
|
55
|
-
!t || !
|
|
55
|
+
function f(t, r) {
|
|
56
|
+
!t || !r || T();
|
|
56
57
|
}
|
|
57
58
|
async function T() {
|
|
58
59
|
return await n.init(), await u.readSetting().catch((t) => {
|
|
@@ -60,7 +61,7 @@ const q = {
|
|
|
60
61
|
}), await i.init();
|
|
61
62
|
}
|
|
62
63
|
const y = g(() => m.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
|
|
63
|
-
return (t,
|
|
64
|
+
return (t, r) => {
|
|
64
65
|
const c = b("FmSpacer"), N = b("FmCircularProgress"), C = b("FmButton"), V = b("RouterView");
|
|
65
66
|
return S(), I("div", null, [
|
|
66
67
|
v(o).isLoading ? (S(), I("div", q, [
|
|
@@ -68,9 +69,9 @@ const q = {
|
|
|
68
69
|
p("div", null, [
|
|
69
70
|
_(N, { size: "xl" })
|
|
70
71
|
]),
|
|
71
|
-
|
|
72
|
+
r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
72
73
|
_(c)
|
|
73
|
-
])) : y.value ? v(
|
|
74
|
+
])) : y.value ? v(a).sessionUser.value ? (S(), B(V, { key: 2 })) : k("", !0) : (S(), I("div", J, [
|
|
74
75
|
p("div", X, [
|
|
75
76
|
p("div", Y, w(v(d)("inventory.common.proPlan.title")), 1),
|
|
76
77
|
p("div", Z, w(v(d)("inventory.common.proPlan.subtitle")), 1)
|
|
@@ -93,66 +94,66 @@ const q = {
|
|
|
93
94
|
]);
|
|
94
95
|
};
|
|
95
96
|
}
|
|
96
|
-
}),
|
|
97
|
+
}), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
|
|
97
98
|
__name: "NavigationTab",
|
|
98
99
|
setup(l) {
|
|
99
|
-
const n = K(), i = L(), u = A(),
|
|
100
|
-
P([() => u.currentBusiness.value, () => n.name], ([t,
|
|
101
|
-
(t == null ? void 0 : t.menuVersion) === "v3" && (
|
|
100
|
+
const n = K(), i = L(), u = A(), a = O(), m = $(), { t: o } = G();
|
|
101
|
+
P([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
|
|
102
|
+
(t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
|
|
102
103
|
});
|
|
103
104
|
const R = g(() => {
|
|
104
|
-
var
|
|
105
|
+
var r;
|
|
105
106
|
const t = [
|
|
106
107
|
{
|
|
107
|
-
label:
|
|
108
|
+
label: s(e.STOCK, o),
|
|
108
109
|
// icon: 'inventory_2',
|
|
109
110
|
children: [
|
|
110
111
|
{
|
|
111
112
|
label: o("inventory.stock.stock_balance.title"),
|
|
112
113
|
value: e.STOCK
|
|
113
114
|
},
|
|
114
|
-
...
|
|
115
|
+
...a.enableWastageTemplate ? [
|
|
115
116
|
{
|
|
116
|
-
label:
|
|
117
|
+
label: s(e.WASTAGE_TEMPLATE, o),
|
|
117
118
|
value: e.WASTAGE_TEMPLATE
|
|
118
119
|
}
|
|
119
120
|
] : []
|
|
120
121
|
]
|
|
121
122
|
},
|
|
122
|
-
...
|
|
123
|
+
...a.enableClosingTemplate ? [
|
|
123
124
|
{
|
|
124
125
|
label: "Closing",
|
|
125
126
|
children: [
|
|
126
127
|
{
|
|
127
|
-
label:
|
|
128
|
+
label: s(e.CLOSING_TEMPLATE, o),
|
|
128
129
|
value: e.CLOSING_TEMPLATE
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
|
-
label:
|
|
132
|
+
label: s(e.CLOSING_DRAFT, o),
|
|
132
133
|
value: e.CLOSING_DRAFT
|
|
133
134
|
}
|
|
134
135
|
]
|
|
135
136
|
}
|
|
136
137
|
] : [],
|
|
137
138
|
{
|
|
138
|
-
label:
|
|
139
|
+
label: s(e.INGREDIENTS, o),
|
|
139
140
|
// icon: 'grocery',
|
|
140
141
|
value: e.INGREDIENTS
|
|
141
142
|
},
|
|
142
|
-
...
|
|
143
|
+
...a.enableIngredientGroup ? [
|
|
143
144
|
{
|
|
144
|
-
label:
|
|
145
|
+
label: s(e.INGREDIENT_GROUP, o),
|
|
145
146
|
// icon: 'grocery',
|
|
146
147
|
value: e.INGREDIENT_GROUP
|
|
147
148
|
}
|
|
148
149
|
] : [],
|
|
149
150
|
{
|
|
150
|
-
label:
|
|
151
|
+
label: s(e.RECIPE, o),
|
|
151
152
|
// icon: 'weight',
|
|
152
153
|
value: e.RECIPE
|
|
153
154
|
},
|
|
154
155
|
{
|
|
155
|
-
label:
|
|
156
|
+
label: s(e.UNIT, o),
|
|
156
157
|
// icon: 'fastfood',
|
|
157
158
|
value: e.UNIT
|
|
158
159
|
},
|
|
@@ -161,42 +162,42 @@ const q = {
|
|
|
161
162
|
// icon: 'swap_horiz',
|
|
162
163
|
children: [
|
|
163
164
|
{
|
|
164
|
-
label:
|
|
165
|
+
label: s(e.RECEIVE_REQUEST, o),
|
|
165
166
|
value: e.RECEIVE_REQUEST
|
|
166
167
|
},
|
|
167
168
|
{
|
|
168
|
-
label:
|
|
169
|
+
label: s(e.APPROVAL, o),
|
|
169
170
|
value: e.APPROVAL
|
|
170
171
|
},
|
|
171
|
-
...
|
|
172
|
+
...a.enablePoTemplate ? [
|
|
172
173
|
{
|
|
173
|
-
label:
|
|
174
|
+
label: s(e.TRANSFER_TEMPLATE, o),
|
|
174
175
|
value: e.TRANSFER_TEMPLATE
|
|
175
176
|
}
|
|
176
177
|
] : []
|
|
177
178
|
]
|
|
178
179
|
},
|
|
179
180
|
{
|
|
180
|
-
label:
|
|
181
|
+
label: s(e.SUPPLIER, o),
|
|
181
182
|
// icon: 'group',
|
|
182
183
|
value: e.SUPPLIER
|
|
183
184
|
},
|
|
184
185
|
{
|
|
185
|
-
label:
|
|
186
|
+
label: s(e.WAREHOUSE, o),
|
|
186
187
|
// icon: 'warehouse',
|
|
187
188
|
value: e.WAREHOUSE
|
|
188
189
|
},
|
|
189
190
|
{
|
|
190
|
-
label:
|
|
191
|
+
label: s(e.PUBLISH, o),
|
|
191
192
|
value: e.PUBLISH
|
|
192
193
|
},
|
|
193
194
|
{
|
|
194
|
-
label:
|
|
195
|
+
label: s(e.INTEGRATION, o),
|
|
195
196
|
// icon: 'integration_instructions',
|
|
196
197
|
value: e.INTEGRATION
|
|
197
198
|
}
|
|
198
199
|
];
|
|
199
|
-
return ((
|
|
200
|
+
return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
|
|
200
201
|
(c) => c.value !== e.INGREDIENTS && c.value !== e.RECIPE && c.value !== e.UNIT && c.value !== e.PUBLISH
|
|
201
202
|
) : t;
|
|
202
203
|
}), d = g({
|
|
@@ -224,12 +225,12 @@ const q = {
|
|
|
224
225
|
T.value = !1, setTimeout(() => {
|
|
225
226
|
y.value = !m.getItem(f.value);
|
|
226
227
|
}, 2e3);
|
|
227
|
-
}), (t,
|
|
228
|
+
}), (t, r) => {
|
|
228
229
|
const c = b("FmCollapsibleTabs");
|
|
229
|
-
return S(), I("div",
|
|
230
|
+
return S(), I("div", re, [
|
|
230
231
|
_(c, {
|
|
231
232
|
modelValue: d.value,
|
|
232
|
-
"onUpdate:modelValue":
|
|
233
|
+
"onUpdate:modelValue": r[0] || (r[0] = (N) => d.value = N),
|
|
233
234
|
items: R.value
|
|
234
235
|
}, null, 8, ["modelValue", "items"])
|
|
235
236
|
]);
|
|
@@ -238,14 +239,14 @@ const q = {
|
|
|
238
239
|
});
|
|
239
240
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
240
241
|
let l, n;
|
|
241
|
-
return { promise: new Promise((u,
|
|
242
|
-
l = u, n =
|
|
242
|
+
return { promise: new Promise((u, a) => {
|
|
243
|
+
l = u, n = a;
|
|
243
244
|
}), resolve: l, reject: n };
|
|
244
245
|
});
|
|
245
246
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
246
247
|
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
247
248
|
});
|
|
248
|
-
const
|
|
249
|
+
const fe = /* @__PURE__ */ h({
|
|
249
250
|
__name: "App",
|
|
250
251
|
setup(l) {
|
|
251
252
|
const n = A(), i = Q(), u = W();
|
|
@@ -254,13 +255,13 @@ const de = /* @__PURE__ */ h({
|
|
|
254
255
|
n.setEmbedded(!0);
|
|
255
256
|
return;
|
|
256
257
|
}
|
|
257
|
-
n.registerSidebarComponent(
|
|
258
|
+
n.registerSidebarComponent(ae), i.initGoogleMap(u.appApi.googleMap).catch(() => {
|
|
258
259
|
console.error("Google map cannot be loaded");
|
|
259
260
|
});
|
|
260
261
|
}), P([() => n.currentCountry.value], () => {
|
|
261
|
-
|
|
262
|
+
a();
|
|
262
263
|
});
|
|
263
|
-
async function
|
|
264
|
+
async function a() {
|
|
264
265
|
var m;
|
|
265
266
|
try {
|
|
266
267
|
await n.readBusinesses(), n.currentBusiness.value = (m = n.businesses.value) == null ? void 0 : m.find((o) => o);
|
|
@@ -272,5 +273,5 @@ const de = /* @__PURE__ */ h({
|
|
|
272
273
|
}
|
|
273
274
|
});
|
|
274
275
|
export {
|
|
275
|
-
|
|
276
|
+
fe as default
|
|
276
277
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as y, createBlock as K, unref as e, withCtx as x, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
|
|
2
|
-
import { u as de,
|
|
3
|
-
import { a as ge, P as O, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as de, av as v, aG as fe, a8 as Q, z as ve, _ as _e, B as he, C as De, E as _ } from "./app-BkIAyhP-.js";
|
|
3
|
+
import { a as ge, P as O, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DDAZMTzq.js";
|
|
4
4
|
import { useBreakpoints as xe } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Oe } from "@feedmepos/mf-common";
|
|
6
|
-
const
|
|
6
|
+
const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ce = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
9
|
}, Se = { class: "pt-8" }, $e = /* @__PURE__ */ oe({
|
|
10
10
|
__name: "ApprovalView",
|
|
11
11
|
setup(Te) {
|
|
12
12
|
const o = ge(O.APPROVAL), { columnDefs: W } = be(O.APPROVAL, o), X = de();
|
|
13
|
-
|
|
14
|
-
name:
|
|
15
|
-
start:
|
|
16
|
-
end:
|
|
13
|
+
v.object({
|
|
14
|
+
name: v.string().optional().nullable(),
|
|
15
|
+
start: v.date().optional().nullable(),
|
|
16
|
+
end: v.date().optional().nullable()
|
|
17
17
|
});
|
|
18
|
-
const
|
|
18
|
+
const R = g({
|
|
19
19
|
name: "",
|
|
20
20
|
...fe()
|
|
21
21
|
}), a = g({
|
|
22
|
-
startDate: Q(
|
|
23
|
-
endDate: Q(
|
|
22
|
+
startDate: Q(R.value.start ?? /* @__PURE__ */ new Date()),
|
|
23
|
+
endDate: Q(R.value.end ?? /* @__PURE__ */ new Date())
|
|
24
24
|
});
|
|
25
25
|
re([() => a.value.startDate], () => {
|
|
26
26
|
if (!a.value.startDate)
|
|
@@ -35,7 +35,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const h = g(""), { breakpoints:
|
|
38
|
+
const h = g(""), { breakpoints: w } = xe(), D = b(() => w.value.xs || w.value.sm), Z = b(() => D.value ? 10 : 20), B = ve(), { t: P } = Oe(), I = b(() => [
|
|
39
39
|
{
|
|
40
40
|
label: P("inventory.common.refresh"),
|
|
41
41
|
value: "refresh"
|
|
@@ -49,7 +49,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
49
49
|
}
|
|
50
50
|
return (c, l) => {
|
|
51
51
|
const te = ne("FmTable");
|
|
52
|
-
return y(), K(
|
|
52
|
+
return y(), K(_e, {
|
|
53
53
|
title: e(P)("inventory.transfer.approval.title"),
|
|
54
54
|
actions: I.value,
|
|
55
55
|
"onClick:action": ee
|
|
@@ -88,31 +88,31 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
88
88
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
89
89
|
}, {
|
|
90
90
|
default: x((t) => {
|
|
91
|
-
var k, C, S, i, T, A, V,
|
|
91
|
+
var k, C, S, i, T, A, V, z, u, L, M, p, $, m, E, F, Y, q, N, d, j, H, G, U, f, J;
|
|
92
92
|
return [
|
|
93
|
-
s("div",
|
|
94
|
-
s("div",
|
|
95
|
-
n(e(
|
|
93
|
+
s("div", Re, [
|
|
94
|
+
s("div", we, [
|
|
95
|
+
n(e(_), {
|
|
96
96
|
render: (S = (C = (k = t.purchaseOrder__id) == null ? void 0 : k.column) == null ? void 0 : C.columnDef) == null ? void 0 : S.cell,
|
|
97
97
|
props: (T = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : T.call(i)
|
|
98
98
|
}, null, 8, ["render", "props"])
|
|
99
99
|
]),
|
|
100
100
|
s("div", Pe, [
|
|
101
|
-
n(e(
|
|
102
|
-
render: (
|
|
103
|
-
props: (
|
|
101
|
+
n(e(_), {
|
|
102
|
+
render: (z = (V = (A = t.to_name) == null ? void 0 : A.column) == null ? void 0 : V.columnDef) == null ? void 0 : z.cell,
|
|
103
|
+
props: (L = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : L.call(u)
|
|
104
104
|
}, null, 8, ["render", "props"])
|
|
105
105
|
]),
|
|
106
106
|
s("div", ke, ce((E = (m = ($ = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (ae) => `${ae.name}`)) == null ? void 0 : m.join) == null ? void 0 : E.call(m, ", ")), 1),
|
|
107
107
|
(F = r.original.purchaseOrder) != null && F.ref ? (y(), ie("div", Ce, [
|
|
108
|
-
n(e(
|
|
109
|
-
render: (
|
|
110
|
-
props: (
|
|
108
|
+
n(e(_), {
|
|
109
|
+
render: (N = (q = (Y = t.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : q.columnDef) == null ? void 0 : N.cell,
|
|
110
|
+
props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
|
|
111
111
|
}, null, 8, ["render", "props"])
|
|
112
112
|
])) : ue("", !0),
|
|
113
113
|
s("div", Se, [
|
|
114
|
-
n(e(
|
|
115
|
-
render: (U = (G = (
|
|
114
|
+
n(e(_), {
|
|
115
|
+
render: (U = (G = (H = t.purchaseOrder_status) == null ? void 0 : H.column) == null ? void 0 : G.columnDef) == null ? void 0 : U.cell,
|
|
116
116
|
props: (J = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : J.call(f)
|
|
117
117
|
}, null, 8, ["render", "props"])
|
|
118
118
|
])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L, aR as S } from "./app-
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bn2X1jxB.js";
|
|
3
|
+
import { a as L, aR as S } from "./app-BkIAyhP-.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { a as M, aR as x,
|
|
2
|
+
import { a as M, aR as x, H as z } from "./app-BkIAyhP-.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
6
6
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
9
|
-
},
|
|
9
|
+
}, H = /* @__PURE__ */ S({
|
|
10
10
|
__name: "BindingsPicker",
|
|
11
11
|
setup(L) {
|
|
12
12
|
const d = M(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
|
|
@@ -119,5 +119,5 @@ const F = {
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
H as default
|
|
123
123
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as R, createBlock as z } from "vue";
|
|
2
|
-
import { F as b, a as M, aR as P } from "./app-
|
|
2
|
+
import { F as b, a as M, aR as P } from "./app-BkIAyhP-.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|