@feedmepos/mf-inventory-portal 0.0.25-dev.2 → 0.0.25-dev.21
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-D6WBVERc.js +278 -0
- package/dist/ApprovalView-BIBoagE8.js +146 -0
- package/dist/{BindingsDialog-qeGh3ND8.js → BindingsDialog-DHRRkK1Z.js} +6 -6
- package/dist/{BindingsPicker-SfiA8fmD.js → BindingsPicker-DohvMDDF.js} +3 -3
- package/dist/{BindingsTable-BjW-eJr6.js → BindingsTable-C_JwU9ei.js} +6 -6
- package/dist/ClosingDraftView-BBebhUj-.js +1308 -0
- package/dist/ClosingTemplateView-CXRN19-D.js +1859 -0
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BJufUQNE.js +215 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-5rldKjyh.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C5Xk19jY.js} +52 -52
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-7HNI82u-.js +51 -0
- package/dist/{IngredientGroupView-CGyyFyvj.js → IngredientGroupView-l2bAc1Kj.js} +1 -1
- package/dist/{IngredientsView-BLKk-VxQ.js → IngredientsView-zDXt7KEx.js} +394 -382
- package/dist/{IntegrationView-C6gwvZ9b.js → IntegrationView-BYnlAPrP.js} +660 -623
- package/dist/{InventoryBindingForm-BB3ZN3Lx.js → InventoryBindingForm-BuweG4Vl.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-PT7Quw7j.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DgxN0U4N.js} +99 -99
- package/dist/{InventoryBindingSummary-yr0oie3c.js → InventoryBindingSummary-BpEo0JsK.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjJGUE9a.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CcjzkzCt.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-O1mYRa5W.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ej20iSHA.js} +15 -15
- package/dist/PublishView-DCZ0zIaP.js +222 -0
- package/dist/{PurchaseOrderPrintPreview-Q_9-KVNj.js → PurchaseOrderPrintPreview-Cag7UEvz.js} +1 -1
- package/dist/ReceiveRequestView-ChIJGA98.js +2319 -0
- package/dist/{RecipeView-DBfugmRY.js → RecipeView-bBshe0eF.js} +32 -31
- package/dist/{index-CgspzSQi.js → StockView-D6-oKpAC.js} +3577 -1764
- package/dist/{SupplierView-BQViPyfj.js → SupplierView-dyIcGp9Q.js} +12 -11
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C_7wbQow.js +1771 -0
- package/dist/TransferTemplateView-D2rxV0k_.js +1660 -0
- package/dist/{UnitView-CrbFeWaB.js → UnitView-DVS5Az5c.js} +14 -14
- package/dist/{WarehouseView-Dy5GljxY.js → WarehouseView-CR03TpnA.js} +332 -314
- package/dist/api/closing-draft.d.ts +1 -0
- package/dist/api/inventory.d.ts +9 -6
- package/dist/api/purchase-order.d.ts +2 -1
- package/dist/{app-D0O4wr2X.js → app-oV9ISfFL.js} +28343 -28141
- package/dist/app.js +1 -1
- package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
- package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
- package/dist/components/FmLockableField.vue.d.ts +3 -0
- package/dist/components/FmMultiselectDialog.d.ts +46 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +20 -3
- package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
- package/dist/components/MountListener.vue.d.ts +15 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
- package/dist/{decimal-CPGmj9BT.js → decimal-C7zgfr5G.js} +1 -1
- package/dist/feature-CDQQ-mV9.js +1003 -0
- package/dist/{format-unit-display-CMM6DZJj.js → format-unit-display-CVBzrNQ4.js} +334 -327
- package/dist/helper/fuzzy.d.ts +10 -0
- package/dist/index-0VS4cuk3.js +35546 -0
- package/dist/{stock-9nTT4Amy.js → stock-BIP_NIK_.js} +3 -3
- package/dist/stores/feature.d.ts +4 -7
- package/dist/stores/integration/netsuite.d.ts +5 -0
- package/dist/stores/inventory.d.ts +135 -8
- package/dist/stores/location.d.ts +100 -0
- package/dist/stores/warehouse.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-CH4EwBZM.js → supplier-DUQ2VSMg.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-ingredient-select-dialog-VkU5_Aaj.js +51 -0
- package/dist/{use-inventory-binding-dialog-Dli3xtq4.js → use-inventory-binding-dialog-BXp0z3v_.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
- package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +1387 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +5 -1
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +3 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -2
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +48 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +490 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferSubItemTable.vue.d.ts +72 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +25 -2
- package/dist/views/receive-request/components/transfer-form/helpers/calculate-sub-item-total.helper.d.ts +4 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +693 -35
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +684 -35
- package/dist/views/receive-request/helper/po-to-po-template.util.d.ts +1 -0
- package/dist/views/receive-request/helper/print-po.d.ts +9 -2
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +270 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +286 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateSubItem.vue.d.ts +74 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateSubItemTable.vue.d.ts +92 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +36 -2
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +456 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +456 -12
- package/dist/views/transfer-template/helpers/location-to-po-supplier.util.d.ts +75 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
- package/dist/{vue-i18n-BcYt8MNZ.js → vue-i18n-CCd5_SRR.js} +212 -212
- package/package.json +3 -3
- package/dist/App-oKNdl2la.js +0 -276
- package/dist/ApprovalView-hDGkcBDy.js +0 -138
- package/dist/ClosingDraftView-CEeeL7W4.js +0 -1225
- package/dist/ClosingTemplateView-CkS9e0MV.js +0 -1819
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-CIBSvY0s.js +0 -142
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dg_7ELeT.js +0 -286
- package/dist/PublishView-ByXdmuJL.js +0 -192
- package/dist/ReceiveRequestView-CApg7LGM.js +0 -1876
- package/dist/StockView-D6o_oUlz.js +0 -1817
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D2skLe2M.js +0 -1327
- package/dist/TransferTemplateView-DVesObTd.js +0 -1284
- package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
- package/dist/index-P5iEcRw3.js +0 -29202
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -2628
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { defineComponent as Q, ref as z, computed as r, resolveComponent as s, openBlock as I, createBlock as R, unref as h, createSlots as X, withCtx as u, createElementVNode as v, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
|
|
2
|
+
import { u as oe, a as ne, aN as ae, y as se, _ as le, ai as B } from "./app-oV9ISfFL.js";
|
|
3
|
+
import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as H } from "@feedmepos/ui-library";
|
|
4
|
+
import { u as ce } from "./vue-i18n-CCd5_SRR.js";
|
|
5
|
+
const me = { class: "flex flex-col py-8" }, de = { 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" }, ge = /* @__PURE__ */ Q({
|
|
6
|
+
__name: "PublishView",
|
|
7
|
+
setup(be) {
|
|
8
|
+
const { t: o } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g = z(!1), c = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), N = se(), P = re(), Y = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20), q = r(() => [
|
|
9
|
+
{
|
|
10
|
+
label: "Refresh",
|
|
11
|
+
value: "refresh",
|
|
12
|
+
isPrimary: !1
|
|
13
|
+
},
|
|
14
|
+
{ label: o("inventory.publish.actions.publishAll"), value: "publish", isPrimary: !0 }
|
|
15
|
+
]);
|
|
16
|
+
async function E(e) {
|
|
17
|
+
switch (e) {
|
|
18
|
+
case "publish":
|
|
19
|
+
P.open({
|
|
20
|
+
title: "Publish",
|
|
21
|
+
message: "Are you sure you want to publish to all locations?",
|
|
22
|
+
primaryActions: { text: "Publish", close: !0 },
|
|
23
|
+
secondaryActions: { text: "Cancel", close: !0 }
|
|
24
|
+
}).onPrimary(async () => {
|
|
25
|
+
await S.publishAllInventory(), await l.readLocations();
|
|
26
|
+
});
|
|
27
|
+
break;
|
|
28
|
+
case "refresh":
|
|
29
|
+
g.value = !0, await l.readLocations(), g.value = !1;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const w = z(!1), K = [
|
|
34
|
+
{
|
|
35
|
+
value: "publish",
|
|
36
|
+
label: o("inventory.publish.actions.publishAll")
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
function O(e) {
|
|
40
|
+
switch (w.value = !1, e) {
|
|
41
|
+
case "publish":
|
|
42
|
+
console.log("publish all");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const W = [
|
|
46
|
+
{
|
|
47
|
+
id: "type",
|
|
48
|
+
header: () => o("inventory.publish.columns.type"),
|
|
49
|
+
enableSorting: !0,
|
|
50
|
+
cell(e) {
|
|
51
|
+
return f(H.FmChip, {
|
|
52
|
+
color: "primary",
|
|
53
|
+
label: e.row.original.type
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
accessorKey: "name",
|
|
59
|
+
header: () => o("inventory.publish.columns.location"),
|
|
60
|
+
enableSorting: !0,
|
|
61
|
+
size: 300
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "version",
|
|
65
|
+
header: () => o("inventory.publish.columns.version"),
|
|
66
|
+
enableSorting: !0,
|
|
67
|
+
cell(e) {
|
|
68
|
+
var t, a;
|
|
69
|
+
return (t = e.row.original.inventory) != null && t.updatedAt ? B((a = e.row.original.inventory) == null ? void 0 : a.updatedAt) : "";
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "status",
|
|
74
|
+
header: () => o("inventory.publish.columns.status"),
|
|
75
|
+
enableSorting: !0,
|
|
76
|
+
cell(e) {
|
|
77
|
+
var d;
|
|
78
|
+
if (!c.value)
|
|
79
|
+
return "";
|
|
80
|
+
const t = ((d = e.row.original.inventory) == null ? void 0 : d.updatedAt) == c.value, a = e.row.original.dbName, m = e.row.original.type === "warehouse";
|
|
81
|
+
return f(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
class: "flex items-center gap-8"
|
|
85
|
+
},
|
|
86
|
+
[
|
|
87
|
+
f(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
class: [
|
|
91
|
+
"fm-status-badge",
|
|
92
|
+
t ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
t ? "Published" : "Outdated"
|
|
96
|
+
),
|
|
97
|
+
!t && !m ? f(H.FmButton, {
|
|
98
|
+
class: "tertiary",
|
|
99
|
+
variant: "secondary",
|
|
100
|
+
icon: "sync",
|
|
101
|
+
onClick: () => {
|
|
102
|
+
P.open({
|
|
103
|
+
title: "Publish",
|
|
104
|
+
message: `Are you sure you want to publish this location "${e.row.original.name}"?`,
|
|
105
|
+
primaryActions: { text: "Publish", close: !0 },
|
|
106
|
+
secondaryActions: { text: "Cancel", close: !0 }
|
|
107
|
+
}).onPrimary(async () => {
|
|
108
|
+
await S.publishInventory(a.split("_")[1]), await l.readLocations(), Y.open({ message: "Publish request submitted", type: "success" });
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}) : null
|
|
112
|
+
]
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
// {
|
|
117
|
+
// id: 'action',
|
|
118
|
+
// header: '',
|
|
119
|
+
// cell(props) {
|
|
120
|
+
// return createContextMenuComponents(
|
|
121
|
+
// [DefaultRowActions[RowActionEnum.Edit], DefaultRowActions[RowActionEnum.Delete]],
|
|
122
|
+
// (action) => {
|
|
123
|
+
// onActionMenu(action, props.row.original)
|
|
124
|
+
// }
|
|
125
|
+
// )
|
|
126
|
+
// },
|
|
127
|
+
// enableSorting: false,
|
|
128
|
+
// size: 40,
|
|
129
|
+
// meta: {
|
|
130
|
+
// cellClass: '',
|
|
131
|
+
// headerClass: ''
|
|
132
|
+
// }
|
|
133
|
+
// }
|
|
134
|
+
];
|
|
135
|
+
return (e, t) => {
|
|
136
|
+
const a = s("FmChip"), m = s("FlexRender"), d = s("TableActionableRow"), j = s("FmTable"), G = s("FmCollapsibleTabs"), J = s("FmBottomSheet");
|
|
137
|
+
return I(), R(le, {
|
|
138
|
+
title: h(o)("inventory.publish.title"),
|
|
139
|
+
actions: q.value,
|
|
140
|
+
"onClick:action": E
|
|
141
|
+
}, X({
|
|
142
|
+
default: u(() => [
|
|
143
|
+
v("div", {
|
|
144
|
+
class: Z([
|
|
145
|
+
"flex flex-col gap-8 max-h-full",
|
|
146
|
+
{
|
|
147
|
+
"p-0": _.value,
|
|
148
|
+
"px-24 ": !_.value
|
|
149
|
+
}
|
|
150
|
+
])
|
|
151
|
+
}, [
|
|
152
|
+
n(j, {
|
|
153
|
+
style: ee(h(N).tableHeight),
|
|
154
|
+
"column-defs": W,
|
|
155
|
+
"row-data": $.value,
|
|
156
|
+
loading: !h(l)._currentLocation || g.value,
|
|
157
|
+
"loading-text": "Loading",
|
|
158
|
+
"page-size": U.value
|
|
159
|
+
}, {
|
|
160
|
+
"list-row": u((i) => [
|
|
161
|
+
n(d, { row: i }, {
|
|
162
|
+
default: u((p) => {
|
|
163
|
+
var C, F, k, b, M, L, T, V, y, D;
|
|
164
|
+
return [
|
|
165
|
+
v("div", me, [
|
|
166
|
+
v("div", de, [
|
|
167
|
+
n(m, {
|
|
168
|
+
render: (k = (F = (C = p.code) == null ? void 0 : C.column) == null ? void 0 : F.columnDef) == null ? void 0 : k.cell,
|
|
169
|
+
props: (M = (b = p.code) == null ? void 0 : b.getContext) == null ? void 0 : M.call(b)
|
|
170
|
+
}, null, 8, ["render", "props"])
|
|
171
|
+
]),
|
|
172
|
+
v("div", pe, [
|
|
173
|
+
n(m, {
|
|
174
|
+
render: (V = (T = (L = p.name) == null ? void 0 : L.column) == null ? void 0 : T.columnDef) == null ? void 0 : V.cell,
|
|
175
|
+
props: (D = (y = p.name) == null ? void 0 : y.getContext) == null ? void 0 : D.call(y)
|
|
176
|
+
}, null, 8, ["render", "props"])
|
|
177
|
+
])
|
|
178
|
+
])
|
|
179
|
+
];
|
|
180
|
+
}),
|
|
181
|
+
_: 2
|
|
182
|
+
}, 1032, ["row"])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["style", "row-data", "loading", "page-size"])
|
|
186
|
+
], 2),
|
|
187
|
+
(I(), R(te, { to: "body" }, [
|
|
188
|
+
n(J, {
|
|
189
|
+
"dismiss-away": "",
|
|
190
|
+
modelValue: w.value,
|
|
191
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => w.value = i)
|
|
192
|
+
}, {
|
|
193
|
+
default: u(() => [
|
|
194
|
+
n(G, {
|
|
195
|
+
class: "pb-8",
|
|
196
|
+
items: K,
|
|
197
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => O(i))
|
|
198
|
+
})
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["modelValue"])
|
|
202
|
+
]))
|
|
203
|
+
]),
|
|
204
|
+
_: 2
|
|
205
|
+
}, [
|
|
206
|
+
c.value ? {
|
|
207
|
+
name: "headerInfo",
|
|
208
|
+
fn: u(() => [
|
|
209
|
+
n(a, {
|
|
210
|
+
variant: "info",
|
|
211
|
+
label: `Latest: ${h(B)(c.value)}`
|
|
212
|
+
}, null, 8, ["label"])
|
|
213
|
+
]),
|
|
214
|
+
key: "0"
|
|
215
|
+
} : void 0
|
|
216
|
+
]), 1032, ["title", "actions"]);
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
export {
|
|
221
|
+
ge as default
|
|
222
|
+
};
|
package/dist/{PurchaseOrderPrintPreview-Q_9-KVNj.js → PurchaseOrderPrintPreview-Cag7UEvz.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { av as y, ah as C } from "./app-oV9ISfFL.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|