@feedmepos/mf-inventory-portal 0.0.19-dev.12 → 0.0.19-dev.14
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.vue.d.ts +1 -1
- package/dist/{ApprovalView-CuTAFiWC.js → ApprovalView-BY13XuOu.js} +5 -5
- package/dist/{BindingsDialog-C_ndNZ8f.js → BindingsDialog-B3PP-XkE.js} +22 -22
- package/dist/{BindingsPicker-CcAod_ha.js → BindingsPicker-DL17pRty.js} +17 -17
- package/dist/{BindingsTable-Bm4-kj_a.js → BindingsTable-CjKOv7Yw.js} +29 -29
- package/dist/Entry.vue.d.ts +1 -1
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js +306 -0
- package/dist/{IngredientsView-CyD65_rv.js → IngredientsView-C-rsKAsF.js} +294 -294
- package/dist/{IntegrationView-Bh1BWAq-.js → IntegrationView-BkhfPSjM.js} +278 -278
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-cw3SEkW_.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Buc21sEN.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B_kVFkxk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BRijSilS.js} +1 -1
- package/dist/PurchaseOrderPrintPreview-CGMMozPA.js +152 -0
- package/dist/{ReceiveRequestView-C0r1FIwM.js → ReceiveRequestView-Bk0pUeEm.js} +7 -7
- package/dist/{RecipeView-CYE6gi__.js → RecipeView-kzA9kIg8.js} +181 -181
- package/dist/Standalone.vue.d.ts +1 -1
- package/dist/{StockView-CKyhKuGi.js → StockView-DF-ucES_.js} +23 -23
- package/dist/SupplierView-XlzsU00G.js +813 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-8L6lwGpu.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bp7AJiJ-.js} +106 -106
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-D1NAkXMT.js +1690 -0
- package/dist/TransferTemplateView-CsA2SzQY.js +1279 -0
- package/dist/{UnitView-DXnLq5nR.js → UnitView-9VMIlEZ_.js} +242 -242
- package/dist/{WarehouseView-BCnvqHHp.js → WarehouseView-JTYLFBsu.js} +360 -362
- package/dist/api/bill.d.ts +238 -84
- package/dist/api/supplier.d.ts +4 -4
- package/dist/app-kYGuBDV8.js +68549 -0
- package/dist/app.d.ts +24 -0
- package/dist/app.js +3 -3
- package/dist/components/ChangeLocationComponent.vue.d.ts +11 -1
- package/dist/components/DeferableLoading.vue.d.ts +1 -1
- package/dist/components/DeleteDialog.vue.d.ts +1 -1
- package/dist/components/FmCoordinateInput.vue.d.ts +3 -3
- package/dist/components/FmDroppableField.vue.d.ts +6 -6
- package/dist/components/FmFilterableSelect.vue.d.ts +3 -3
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +21 -10
- package/dist/components/FmMinMaxInput.vue.d.ts +20 -0
- package/dist/components/FmMinMaxInputProps.d.ts +16 -0
- package/dist/components/FmMinMaxInputRules.d.ts +4 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +5 -5
- package/dist/components/FmMultiselectDialogProps.d.ts +3 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -0
- package/dist/components/MultiSelectDialog.vue.d.ts +1 -1
- package/dist/components/NavigationTab.vue.d.ts +1 -1
- package/dist/components/NumberPrecisionInput.vue.d.ts +3 -3
- package/dist/components/PremiumBadge.vue.d.ts +3 -3
- package/dist/components/PreviewBadge.vue.d.ts +3 -3
- package/dist/components/StockForecast.vue.d.ts +1 -1
- package/dist/components/TableActionableRow.vue.d.ts +4 -4
- package/dist/components/UnitDisplayControl.vue.d.ts +1 -1
- package/dist/components/icons/IconCommunity.vue.d.ts +1 -1
- package/dist/components/icons/IconDocumentation.vue.d.ts +1 -1
- package/dist/components/icons/IconEcosystem.vue.d.ts +1 -1
- package/dist/components/icons/IconSupport.vue.d.ts +1 -1
- package/dist/components/icons/IconTooling.vue.d.ts +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/CoordinateDialog.vue.d.ts +4 -4
- package/dist/components/map/GoogleMap.vue.d.ts +6 -6
- package/dist/components/nested-multiselect/FmNestedMultiselectDialog.vue.d.ts +3 -3
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +3 -3
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
- package/dist/components/ui-library/FmDateRangePickerChip.vue.d.ts +5 -5
- package/dist/composable/useIframe.d.ts +1 -1
- package/dist/composable/useSearch.d.ts +1 -1
- package/dist/{decimal-DN0h6619.js → decimal-E3w4eGHF.js} +1 -1
- package/dist/helper/number.d.ts +2 -0
- package/dist/{id-to-date-D1fU6Y7T.js → id-to-date-gyR82hWy.js} +1 -1
- package/dist/is-linked-ingredient-error-fJ2TJb3z.js +37 -0
- package/dist/layout/InventoryLayout.vue.d.ts +1 -1
- package/dist/layout/SingleColumnLayout.vue.d.ts +5 -5
- package/dist/layout/components/NavigationButton.vue.d.ts +4 -4
- package/dist/{layout-DcSLry7F.js → layout-BTYR4n3X.js} +1 -1
- package/dist/{purchase-order-transaction-type-D0c31GiL.js → purchase-order-transaction-type-CUtdDhYo.js} +2 -2
- package/dist/stores/feature.d.ts +2 -1
- package/dist/stores/location.d.ts +108 -148
- package/dist/stores/supplier.d.ts +672 -18
- package/dist/stores/warehouse.d.ts +9 -5
- package/dist/supplier-Ed-Bva_-.js +60 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/InventoryView.vue.d.ts +1 -1
- package/dist/views/SelectBussinessDialog.vue.d.ts +1 -1
- package/dist/views/approval/ApprovalView.vue.d.ts +1 -1
- package/dist/views/dev/ComponentPreview.vue.d.ts +1 -1
- package/dist/views/dev/components/CoordinateTest.vue.d.ts +1 -1
- package/dist/views/dev/components/DateRange.vue.d.ts +1 -1
- package/dist/views/dev/components/FmDecimalInputTest.vue.d.ts +1 -1
- package/dist/views/dev/components/FmMultiselectDialogGrouped.vue.d.ts +1 -1
- package/dist/views/dev/components/FmSelectTest.vue.d.ts +1 -1
- package/dist/views/dev/components/InventoryIframe.vue.d.ts +1 -1
- package/dist/views/dev/components/LayoutDev.vue.d.ts +1 -1
- package/dist/views/dev/components/MfCommontTest.vue.d.ts +1 -1
- package/dist/views/dev/components/NestedSelection.vue.d.ts +1 -1
- package/dist/views/dev/components/NumberStepper.vue.d.ts +1 -1
- package/dist/views/dev/components/TabStorageTest.vue.d.ts +1 -1
- package/dist/views/dev/components/UnitInput.vue.d.ts +1 -1
- package/dist/views/dev/helpers/pinia-test.d.ts +1 -1
- package/dist/views/home/HomeView.vue.d.ts +1 -1
- package/dist/views/iframe/inventory-bindings/bindings-dialog/BindingsDialog.vue.d.ts +1 -1
- package/dist/views/iframe/inventory-bindings/bindings-picker/BindingsPicker.vue.d.ts +1 -1
- package/dist/views/iframe/inventory-bindings/bindings-table/BindingsTable.vue.d.ts +1 -1
- package/dist/views/ingredients/IngredientsView.vue.d.ts +1 -1
- package/dist/views/ingredients/components/cannot-delete/CannotDelete.vue.d.ts +4 -4
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +3 -3
- package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +1 -1
- package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-binded-item/IngredientBindedItem.vue.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialog.vue.d.ts +5 -5
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -4
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +3 -3
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +8 -8
- package/dist/views/integration/IntegrationView.vue.d.ts +1 -1
- package/dist/views/integration/components/ApplyAddon.vue.d.ts +5 -5
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +5 -5
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +5 -5
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +5 -5
- package/dist/views/receive-request/ReceiveRequestView.vue.d.ts +1 -1
- package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistory.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +27 -27
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/components/TransferItem.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/composables/use-backdate-po.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-compare-price.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -8
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1012 -66
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -24
- package/dist/views/receive-request/print-preview/PurchaseOrderPrintPreview.vue.d.ts +1 -1
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -1
- package/dist/views/recipe/components/recipe-dialog/RecipeDialog.vue.d.ts +5 -5
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +4 -4
- package/dist/views/recipe/composables/use-recipe-form.d.ts +8 -8
- package/dist/views/stock/StockView.vue.d.ts +1 -1
- package/dist/views/stock/components/StockHeaderPreview.vue.d.ts +1 -1
- package/dist/views/stock/components/StockHistory.vue.d.ts +3 -3
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +123 -46
- package/dist/views/stock/components/dialog/AdjustSkuDialog.vue.d.ts +4 -4
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +3 -3
- package/dist/views/stock/components/dialog/ConvertSkuDialog.vue.d.ts +4 -4
- package/dist/views/stock/composables/use-stock-action.d.ts +11 -11
- package/dist/views/supplier/SupplierView.vue.d.ts +1 -1
- package/dist/views/supplier/components/SupplierDialog.vue.d.ts +4 -4
- package/dist/views/supplier/components/SupplierDialogProps.d.ts +1 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +10 -10
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -3
- package/dist/views/supplier/composables/use-supplier-table.d.ts +3 -3
- package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +3 -3
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +4 -4
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +3 -3
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +7 -7
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +13 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1020 -79
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +309 -11
- package/dist/views/unit/UnitView.vue.d.ts +1 -1
- package/dist/views/unit/components/unit-dialog/UnitDialog.vue.d.ts +5 -5
- package/dist/views/unit/components/unit-form/UnitForm.vue.d.ts +4 -4
- package/dist/views/unit/components/unit-summary/UnitSummary.vue.d.ts +3 -3
- package/dist/views/unit/components/unit-used-by/UnitUsedBy.vue.d.ts +1 -1
- package/dist/views/unit/composables/use-unit-form.d.ts +8 -8
- package/dist/views/warehouse/WarehouseView.vue.d.ts +1 -1
- package/dist/views/warehouse/components/WarehouseDialog.vue.d.ts +4 -4
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +22 -14
- package/dist/{xlsx-yV2SoDMC.js → xlsx-q6Ctgevr.js} +2759 -2759
- package/dist/{xlsx.util-CTIDgqw2.js → xlsx.util-Cvqg56mI.js} +2 -2
- package/package.json +4 -3
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js +0 -272
- package/dist/PurchaseOrderPrintPreview-Uf0aO8n1.js +0 -152
- package/dist/SupplierView-BSJoZFMr.js +0 -801
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-Bdby-n4P.js +0 -1676
- package/dist/TransferTemplateView-B23JFk-I.js +0 -1101
- package/dist/app-DDxzU9iC.js +0 -67196
- package/dist/is-linked-ingredient-error-C6AghEwR.js +0 -37
- package/dist/supplier-CQXRbSC3.js +0 -54
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, openBlock as f, createElementBlock as u, createElementVNode as x, toDisplayString as d, unref as w, Fragment as v, renderList as M } from "vue";
|
|
2
|
-
import { a as h, k as b } from "./app-
|
|
2
|
+
import { a as h, k as b } from "./app-kYGuBDV8.js";
|
|
3
3
|
import { useI18n as k } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as y, w as S, r as $ } from "./xlsx-
|
|
4
|
+
import { u as y, w as S, r as $ } from "./xlsx-q6Ctgevr.js";
|
|
5
5
|
const A = { class: "flex flex-col" }, B = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, E = { class: "flex-1 py-8 px-16" }, I = {
|
|
6
6
|
class: "flex-0 py-8 px-16",
|
|
7
7
|
style: { "flex-basis": "120px" }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "0.0.19-dev.
|
|
3
|
+
"version": "0.0.19-dev.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"vue-router": "^4.3.2",
|
|
39
39
|
"xlsx": "^0.18.5",
|
|
40
40
|
"zod": "3.17.9",
|
|
41
|
-
"@feedmepos/inventory-core
|
|
41
|
+
"@feedmepos/inventory-core": "^0.2.17",
|
|
42
42
|
"@feedmepos/zod-inventory": "^1.0.9",
|
|
43
|
-
"@feedmepos/inventory-core": "^0.
|
|
43
|
+
"@feedmepos/inventory-core-js": "^1.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@rushstack/eslint-patch": "^1.10.3",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"format": "prettier --write src/",
|
|
88
88
|
"test": "vitest",
|
|
89
89
|
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
|
90
|
+
"check:publish_version": "./bin/check-version.sh",
|
|
90
91
|
"check:env": "cat build-*.env | grep -qE \"^[^#].*localhost\" && { echo \"Error: build-*.env files contains localhost reference\" >&2; exit 1;} || exit 0",
|
|
91
92
|
"prepublish": "pnpm check:env && pnpm build:mf && pnpm build:dts",
|
|
92
93
|
"publish:beta": "pnpm publish --tag beta",
|
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { defineComponent as $, computed as g, resolveComponent as f, openBlock as t, createElementBlock as y, Fragment as k, createElementVNode as m, toDisplayString as R, renderList as F, createBlock as _, createCommentVNode as b, unref as d, createVNode as v, renderSlot as A, Teleport as H, ref as S, withCtx as C, watch as U, mergeModels as Y, useModel as B } from "vue";
|
|
2
|
-
import { FmButtonVariant as j, useBreakpoints as z } from "@feedmepos/ui-library";
|
|
3
|
-
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
|
-
import { j as Q, O as V } from "./app-DDxzU9iC.js";
|
|
5
|
-
const E = { class: "flex flex-col w-full bg-white h-full" }, O = { class: "flex items-center px-24 py-16 xs:p-12 sm:p-12 gap-4 h-[68px]" }, q = { class: "flex-1 fm-typo-en-title-md-800 flex items-center h-[36px] bg-white" }, G = { key: 0 }, J = { key: 1 }, K = { class: "bg-white flex-1" }, W = { class: "fixed bottom-96 right-16" }, _e = /* @__PURE__ */ $({
|
|
6
|
-
__name: "SingleColumnLayout",
|
|
7
|
-
props: {
|
|
8
|
-
actions: { default: () => [] },
|
|
9
|
-
title: { default: "Title" },
|
|
10
|
-
description: {},
|
|
11
|
-
showBackButton: { type: Boolean },
|
|
12
|
-
defaultPadding: { type: Boolean },
|
|
13
|
-
breadcrumbs: { default: () => [] }
|
|
14
|
-
},
|
|
15
|
-
emits: ["click:action"],
|
|
16
|
-
setup(i, { emit: o }) {
|
|
17
|
-
const l = i, a = o, n = g(() => l.actions.find((r) => r.isPrimary)), s = g(
|
|
18
|
-
() => l.actions.filter((r) => !r.isPrimary).map((r) => ({ ...r, variant: r.variant ?? j.Tertiary }))
|
|
19
|
-
), { breakpoints: c } = z();
|
|
20
|
-
return (r, e) => {
|
|
21
|
-
const p = f("FmButton");
|
|
22
|
-
return t(), y(k, null, [
|
|
23
|
-
m("div", E, [
|
|
24
|
-
m("div", O, [
|
|
25
|
-
m("div", q, R(r.title), 1),
|
|
26
|
-
s.value.length ? (t(), y("div", G, [
|
|
27
|
-
(t(!0), y(k, null, F(s.value, (h) => (t(), _(p, {
|
|
28
|
-
key: h.value,
|
|
29
|
-
label: h.label,
|
|
30
|
-
"prepend-icon": h.prependIcon,
|
|
31
|
-
variant: h.variant,
|
|
32
|
-
onClick: (L) => a("click:action", h.value)
|
|
33
|
-
}, null, 8, ["label", "prepend-icon", "variant", "onClick"]))), 128))
|
|
34
|
-
])) : b("", !0),
|
|
35
|
-
n.value && (d(c).lg || d(c).md) ? (t(), y("div", J, [
|
|
36
|
-
v(p, {
|
|
37
|
-
label: n.value.label,
|
|
38
|
-
"prepend-icon": n.value.prependIcon,
|
|
39
|
-
onClick: e[0] || (e[0] = (h) => a("click:action", n.value.value))
|
|
40
|
-
}, null, 8, ["label", "prepend-icon"])
|
|
41
|
-
])) : b("", !0)
|
|
42
|
-
]),
|
|
43
|
-
m("div", K, [
|
|
44
|
-
A(r.$slots, "default")
|
|
45
|
-
])
|
|
46
|
-
]),
|
|
47
|
-
n.value && (d(c).sm || d(c).xs) ? (t(), _(H, {
|
|
48
|
-
key: 0,
|
|
49
|
-
to: "body"
|
|
50
|
-
}, [
|
|
51
|
-
m("div", W, [
|
|
52
|
-
v(p, {
|
|
53
|
-
label: n.value.label,
|
|
54
|
-
"prepend-icon": n.value.prependIcon,
|
|
55
|
-
onClick: e[1] || (e[1] = (h) => a("click:action", n.value.value)),
|
|
56
|
-
variant: "fab"
|
|
57
|
-
}, null, 8, ["label", "prepend-icon"])
|
|
58
|
-
])
|
|
59
|
-
])) : b("", !0)
|
|
60
|
-
], 64);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}), X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, ee = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, te = {
|
|
64
|
-
class: "overflow-hidden overflow-y-scroll",
|
|
65
|
-
style: { maxHeight: "105px" }
|
|
66
|
-
}, ne = {
|
|
67
|
-
class: "overflow-hidden overflow-y-scroll",
|
|
68
|
-
style: { maxHeight: "105px" }
|
|
69
|
-
}, oe = /* @__PURE__ */ $({
|
|
70
|
-
__name: "ChangeLocationComponent",
|
|
71
|
-
setup(i) {
|
|
72
|
-
const o = Q(), { t: l } = T(), a = S(""), n = g(
|
|
73
|
-
() => o.locations.map((e) => ({ label: e.name, value: e.dbName, type: e.type })).filter(
|
|
74
|
-
(e) => a.value ? e.label.toLocaleLowerCase().includes(a.value.toLocaleLowerCase()) : !0
|
|
75
|
-
)
|
|
76
|
-
), s = g(
|
|
77
|
-
() => n.value.filter((e) => e.type === "restaurant")
|
|
78
|
-
), c = g(
|
|
79
|
-
() => n.value.filter((e) => e.type === "warehouse")
|
|
80
|
-
);
|
|
81
|
-
function r({ value: e }) {
|
|
82
|
-
o.selectLocation(o.locations.find((p) => p.dbName === e));
|
|
83
|
-
}
|
|
84
|
-
return (e, p) => {
|
|
85
|
-
const h = f("FmIcon"), L = f("FmSearch"), D = f("FmMenuDivider"), M = f("FmMenuHeader"), w = f("FmMenuItem"), N = f("FmMenu");
|
|
86
|
-
return t(), y("div", X, [
|
|
87
|
-
v(N, { "close-on-click": !0 }, {
|
|
88
|
-
"menu-button": C(() => {
|
|
89
|
-
var u;
|
|
90
|
-
return [
|
|
91
|
-
m("div", Z, [
|
|
92
|
-
v(h, {
|
|
93
|
-
name: "storefront",
|
|
94
|
-
size: "sm"
|
|
95
|
-
}),
|
|
96
|
-
m("div", ee, R(((u = d(o)._currentLocation) == null ? void 0 : u.name) ?? d(l)("inventory.common.noLocationSelected")), 1),
|
|
97
|
-
v(h, {
|
|
98
|
-
name: "expand_more",
|
|
99
|
-
size: "sm"
|
|
100
|
-
})
|
|
101
|
-
])
|
|
102
|
-
];
|
|
103
|
-
}),
|
|
104
|
-
default: C(() => [
|
|
105
|
-
v(L, {
|
|
106
|
-
"model-value": a.value,
|
|
107
|
-
"onUpdate:modelValue": p[0] || (p[0] = (u) => a.value = u),
|
|
108
|
-
class: "w-[200px]",
|
|
109
|
-
placeholder: d(l)("inventory.common.table.toolbar.filterItems")
|
|
110
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
111
|
-
v(D),
|
|
112
|
-
v(M, {
|
|
113
|
-
label: d(l)("inventory.common.restaurant")
|
|
114
|
-
}, null, 8, ["label"]),
|
|
115
|
-
v(D),
|
|
116
|
-
m("div", te, [
|
|
117
|
-
(t(!0), y(k, null, F(s.value, (u) => {
|
|
118
|
-
var x;
|
|
119
|
-
return t(), _(w, {
|
|
120
|
-
key: u.value,
|
|
121
|
-
"model-value": ((x = d(o)._currentLocation) == null ? void 0 : x.dbName) === u.value,
|
|
122
|
-
label: u.label,
|
|
123
|
-
onClick: (P) => r(u)
|
|
124
|
-
}, null, 8, ["model-value", "label", "onClick"]);
|
|
125
|
-
}), 128))
|
|
126
|
-
]),
|
|
127
|
-
s.value.length ? b("", !0) : (t(), _(w, {
|
|
128
|
-
key: 0,
|
|
129
|
-
disabled: "",
|
|
130
|
-
label: d(l)("inventory.common.noResultFound")
|
|
131
|
-
}, null, 8, ["label"])),
|
|
132
|
-
v(M, {
|
|
133
|
-
label: d(l)("inventory.common.warehouse")
|
|
134
|
-
}, null, 8, ["label"]),
|
|
135
|
-
v(D),
|
|
136
|
-
m("div", ne, [
|
|
137
|
-
(t(!0), y(k, null, F(c.value, (u) => {
|
|
138
|
-
var x;
|
|
139
|
-
return t(), _(w, {
|
|
140
|
-
key: u.value,
|
|
141
|
-
"model-value": ((x = d(o)._currentLocation) == null ? void 0 : x.dbName) === u.value,
|
|
142
|
-
label: u.label,
|
|
143
|
-
onClick: (P) => r(u)
|
|
144
|
-
}, null, 8, ["model-value", "label", "onClick"]);
|
|
145
|
-
}), 128))
|
|
146
|
-
]),
|
|
147
|
-
c.value.length ? b("", !0) : (t(), _(w, {
|
|
148
|
-
key: 1,
|
|
149
|
-
disabled: "",
|
|
150
|
-
label: d(l)("inventory.common.noResultFound")
|
|
151
|
-
}, null, 8, ["label"]))
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
})
|
|
155
|
-
]);
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
function he() {
|
|
160
|
-
const i = /* @__PURE__ */ new Date();
|
|
161
|
-
return i.setDate(i.getDate() - 15), {
|
|
162
|
-
start: i,
|
|
163
|
-
end: /* @__PURE__ */ new Date()
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
function I(i = 15) {
|
|
167
|
-
const o = /* @__PURE__ */ new Date();
|
|
168
|
-
o.setDate(o.getDate() - i);
|
|
169
|
-
const l = o, a = /* @__PURE__ */ new Date();
|
|
170
|
-
return {
|
|
171
|
-
startDate: `${V(l)}`,
|
|
172
|
-
endDate: `${V(a)}`
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
const le = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, ae = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, se = /* @__PURE__ */ $({
|
|
176
|
-
__name: "FmDateRangePickerChip",
|
|
177
|
-
props: {
|
|
178
|
-
modelValue: { default: (i) => i.modelValue ?? I() }
|
|
179
|
-
},
|
|
180
|
-
emits: ["update:modelValue"],
|
|
181
|
-
setup(i, { emit: o }) {
|
|
182
|
-
const l = o, a = S(I());
|
|
183
|
-
U(a, (s) => {
|
|
184
|
-
l("update:modelValue", s);
|
|
185
|
-
});
|
|
186
|
-
const n = g(() => {
|
|
187
|
-
const { startDate: s, endDate: c } = a.value;
|
|
188
|
-
return !s && !c ? "" : `${s} - ${c}`;
|
|
189
|
-
});
|
|
190
|
-
return (s, c) => {
|
|
191
|
-
const r = f("FmIcon"), e = f("FmDateRangePicker");
|
|
192
|
-
return t(), _(e, {
|
|
193
|
-
"show-predefined-range": "",
|
|
194
|
-
modelValue: a.value,
|
|
195
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p),
|
|
196
|
-
"start-label": "",
|
|
197
|
-
"end-label": ""
|
|
198
|
-
}, {
|
|
199
|
-
"trigger-button": C(() => [
|
|
200
|
-
m("div", le, [
|
|
201
|
-
v(r, {
|
|
202
|
-
name: "calendar_month",
|
|
203
|
-
size: "sm"
|
|
204
|
-
}),
|
|
205
|
-
m("div", ae, R(n.value), 1)
|
|
206
|
-
])
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
}, 8, ["modelValue"]);
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
}), re = { class: "xs:px-8 sm:px-8 flex gap-8 items-center xs:gap-4 xs:flex-col-reverse sm:gap-4 sm:flex-col-reverse h-48 sm:h-[unset] xs:h-[unset]" }, ce = {
|
|
213
|
-
key: 0,
|
|
214
|
-
class: "xs:w-full sm:w-full flex gap-8 items-center"
|
|
215
|
-
}, ie = { class: "flex-1 w-full flex items-center gap-4" }, ue = /* @__PURE__ */ m("div", { class: "flex-1 xs:hidden sm:hidden" }, null, -1), de = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, ye = /* @__PURE__ */ $({
|
|
216
|
-
__name: "FmInventoryTableToolbar",
|
|
217
|
-
props: /* @__PURE__ */ Y({
|
|
218
|
-
dateRangeQuery: { type: Boolean },
|
|
219
|
-
dateRange: {},
|
|
220
|
-
changeLocation: { type: Boolean },
|
|
221
|
-
searchable: { type: Boolean },
|
|
222
|
-
search: {},
|
|
223
|
-
actions: {}
|
|
224
|
-
}, {
|
|
225
|
-
search: {},
|
|
226
|
-
searchModifiers: {},
|
|
227
|
-
dateRange: {},
|
|
228
|
-
dateRangeModifiers: {}
|
|
229
|
-
}),
|
|
230
|
-
emits: ["update:search", "update:dateRange"],
|
|
231
|
-
setup(i) {
|
|
232
|
-
const o = B(i, "search"), l = B(i, "dateRange"), { t: a } = T();
|
|
233
|
-
return (n, s) => {
|
|
234
|
-
const c = f("FmTextField"), r = f("FmButton");
|
|
235
|
-
return t(), y("div", re, [
|
|
236
|
-
n.changeLocation || n.dateRangeQuery ? (t(), y("div", ce, [
|
|
237
|
-
n.changeLocation ? (t(), _(oe, { key: 0 })) : b("", !0),
|
|
238
|
-
n.dateRangeQuery ? (t(), _(se, {
|
|
239
|
-
key: 1,
|
|
240
|
-
"model-value": l.value,
|
|
241
|
-
"onUpdate:modelValue": s[0] || (s[0] = (e) => l.value = e)
|
|
242
|
-
}, null, 8, ["model-value"])) : b("", !0)
|
|
243
|
-
])) : b("", !0),
|
|
244
|
-
m("div", ie, [
|
|
245
|
-
ue,
|
|
246
|
-
m("div", de, [
|
|
247
|
-
n.searchable ? (t(), _(c, {
|
|
248
|
-
key: 0,
|
|
249
|
-
"model-value": o.value,
|
|
250
|
-
"onUpdate:modelValue": s[1] || (s[1] = (e) => o.value = e),
|
|
251
|
-
"prepend-icon": "search",
|
|
252
|
-
placeholder: d(a)("inventory.common.table.toolbar.filterItems"),
|
|
253
|
-
class: "w-full"
|
|
254
|
-
}, null, 8, ["model-value", "placeholder"])) : b("", !0)
|
|
255
|
-
]),
|
|
256
|
-
(t(!0), y(k, null, F(n.actions, (e, p) => (t(), _(r, {
|
|
257
|
-
key: p,
|
|
258
|
-
variant: "tertiary",
|
|
259
|
-
"prepend-icon": e.icon,
|
|
260
|
-
onClick: e.onClick
|
|
261
|
-
}, null, 8, ["prepend-icon", "onClick"]))), 128))
|
|
262
|
-
])
|
|
263
|
-
]);
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
export {
|
|
268
|
-
_e as _,
|
|
269
|
-
ye as a,
|
|
270
|
-
he as b,
|
|
271
|
-
I as i
|
|
272
|
-
};
|
|
@@ -1,152 +0,0 @@
|
|
|
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
|
-
import { useRoute as P } from "vue-router";
|
|
3
|
-
import { aa as v, i as R } from "./app-DDxzU9iC.js";
|
|
4
|
-
const n = (a) => (S("data-v-54384fc1"), a = a(), C(), a), A = { class: "purchase-box" }, N = { valign: "bottom" }, E = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "title" }, "Inventory Receive Note", -1)), O = { class: "text-right" }, D = { class: "header" }, q = /* @__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
|
-
/* @__PURE__ */ e("tr", null, [
|
|
6
|
-
/* @__PURE__ */ e("th", {
|
|
7
|
-
class: "text-left",
|
|
8
|
-
style: { width: "20%" }
|
|
9
|
-
}, "Code"),
|
|
10
|
-
/* @__PURE__ */ e("th", { class: "text-left" }, "Description"),
|
|
11
|
-
/* @__PURE__ */ e("th", {
|
|
12
|
-
class: "text-right",
|
|
13
|
-
style: { width: "10%" }
|
|
14
|
-
}, "Quantity"),
|
|
15
|
-
/* @__PURE__ */ e("th", {
|
|
16
|
-
class: "text-right",
|
|
17
|
-
style: { width: "20%" }
|
|
18
|
-
}, "Unit")
|
|
19
|
-
])
|
|
20
|
-
], -1)), Z = { class: "text-left" }, $ = { class: "text-left" }, ee = { class: "text-right" }, te = /* @__PURE__ */ n(() => /* @__PURE__ */ e("hr", null, null, -1)), se = { style: { "padding-top": "30px" } }, le = /* @__PURE__ */ n(() => /* @__PURE__ */ e("hr", null, null, -1)), ne = { valign: "bottom" }, re = { class: "header" }, oe = { class: "caption" }, ie = {
|
|
21
|
-
class: "text-left",
|
|
22
|
-
style: { width: "20%" }
|
|
23
|
-
}, ue = { class: "text-left" }, ae = {
|
|
24
|
-
class: "text-right",
|
|
25
|
-
style: { width: "15%" }
|
|
26
|
-
}, de = {
|
|
27
|
-
class: "text-right",
|
|
28
|
-
style: { width: "15%" }
|
|
29
|
-
}, ce = /* @__PURE__ */ x({
|
|
30
|
-
__name: "PurchaseOrderPrintPreview",
|
|
31
|
-
setup(a) {
|
|
32
|
-
const p = f(() => {
|
|
33
|
-
switch (s.value.status) {
|
|
34
|
-
case v.enum.CANCEL:
|
|
35
|
-
return "#FF0000";
|
|
36
|
-
case v.enum.COMPLETE:
|
|
37
|
-
return "#00D065";
|
|
38
|
-
default:
|
|
39
|
-
return "#7A7A7A";
|
|
40
|
-
}
|
|
41
|
-
}), y = P(), s = m(JSON.parse(y.query.data));
|
|
42
|
-
return g(() => window.print()), (_e, he) => (r(), o("div", A, [
|
|
43
|
-
e("table", null, [
|
|
44
|
-
e("tr", N, [
|
|
45
|
-
e("td", null, [
|
|
46
|
-
E,
|
|
47
|
-
e("div", null, "Ref: " + t(s.value.ref), 1),
|
|
48
|
-
e("div", {
|
|
49
|
-
style: w({ color: p.value })
|
|
50
|
-
}, t(s.value.status), 5)
|
|
51
|
-
]),
|
|
52
|
-
e("td", O, [
|
|
53
|
-
e("div", D, "PO #" + t(s.value.orderNumber), 1),
|
|
54
|
-
e("div", null, t(s.value.createdAt), 1)
|
|
55
|
-
])
|
|
56
|
-
])
|
|
57
|
-
]),
|
|
58
|
-
q,
|
|
59
|
-
e("table", null, [
|
|
60
|
-
e("tr", null, [
|
|
61
|
-
e("td", null, [
|
|
62
|
-
I,
|
|
63
|
-
e("div", T, t(s.value.supplier.name), 1),
|
|
64
|
-
e("div", F, t(s.value.supplier.registrationNumber), 1),
|
|
65
|
-
e("div", L, [
|
|
66
|
-
i(t(s.value.supplier.line1), 1),
|
|
67
|
-
U,
|
|
68
|
-
s.value.supplier.line2 ? (r(), o(u, { key: 0 }, [
|
|
69
|
-
i(t(s.value.supplier.line2), 1),
|
|
70
|
-
V
|
|
71
|
-
], 64)) : h("", !0),
|
|
72
|
-
i(" " + t(s.value.supplier.postcode) + " " + t(s.value.supplier.city) + " ", 1),
|
|
73
|
-
z,
|
|
74
|
-
i(" " + t(s.value.supplier.state) + " " + t(s.value.supplier.country) + " ", 1),
|
|
75
|
-
B
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
e("td", H, [
|
|
79
|
-
M,
|
|
80
|
-
e("div", J, t(s.value.buyer.name), 1),
|
|
81
|
-
e("div", Q, [
|
|
82
|
-
i(t(s.value.buyer.line1), 1),
|
|
83
|
-
j,
|
|
84
|
-
s.value.buyer.line2 ? (r(), o(u, { key: 0 }, [
|
|
85
|
-
i(t(s.value.buyer.line2), 1),
|
|
86
|
-
G
|
|
87
|
-
], 64)) : h("", !0),
|
|
88
|
-
i(" " + t(s.value.buyer.postcode) + " " + t(s.value.buyer.city) + " ", 1),
|
|
89
|
-
K,
|
|
90
|
-
i(" " + t(s.value.buyer.state) + " " + t(s.value.buyer.country) + " ", 1),
|
|
91
|
-
W
|
|
92
|
-
])
|
|
93
|
-
])
|
|
94
|
-
])
|
|
95
|
-
]),
|
|
96
|
-
e("div", X, [
|
|
97
|
-
e("table", null, [
|
|
98
|
-
Y,
|
|
99
|
-
e("tbody", null, [
|
|
100
|
-
(r(!0), o(u, null, _(s.value.items, (l, c) => (r(), o("tr", { key: c }, [
|
|
101
|
-
e("td", Z, t(l.code), 1),
|
|
102
|
-
e("td", $, t(l.description), 1),
|
|
103
|
-
e("td", {
|
|
104
|
-
class: k(["text-right", {
|
|
105
|
-
"text-green-5": l.received == l.quantity,
|
|
106
|
-
"text-danger": !l.received,
|
|
107
|
-
"text-warning": l.received != l.quantity
|
|
108
|
-
}])
|
|
109
|
-
}, t(l.received + "/" + l.quantity), 3),
|
|
110
|
-
e("td", ee, t(l.unit), 1)
|
|
111
|
-
]))), 128))
|
|
112
|
-
])
|
|
113
|
-
])
|
|
114
|
-
]),
|
|
115
|
-
te,
|
|
116
|
-
e("div", null, "Remark: " + t(s.value.remark), 1),
|
|
117
|
-
e("div", se, [
|
|
118
|
-
le,
|
|
119
|
-
i(" Delivery History: "),
|
|
120
|
-
(r(!0), o(u, null, _(s.value.deliveryOrders, (l, c) => (r(), o("div", {
|
|
121
|
-
key: c,
|
|
122
|
-
style: { padding: "10px 30px" }
|
|
123
|
-
}, [
|
|
124
|
-
e("table", null, [
|
|
125
|
-
e("tr", ne, [
|
|
126
|
-
e("td", null, [
|
|
127
|
-
e("div", re, "Ref: " + t(l.ref), 1),
|
|
128
|
-
e("div", oe, t(l.createdAt), 1),
|
|
129
|
-
e("div", null, "Remark: " + t(l.remark), 1)
|
|
130
|
-
])
|
|
131
|
-
])
|
|
132
|
-
]),
|
|
133
|
-
e("div", null, [
|
|
134
|
-
e("table", null, [
|
|
135
|
-
e("tbody", null, [
|
|
136
|
-
(r(!0), o(u, null, _(l.items, (d, b) => (r(), o("tr", { key: b }, [
|
|
137
|
-
e("td", ie, t(d.code), 1),
|
|
138
|
-
e("td", ue, t(d.description), 1),
|
|
139
|
-
e("td", ae, t(d.quantity), 1),
|
|
140
|
-
e("td", de, t(d.unit), 1)
|
|
141
|
-
]))), 128))
|
|
142
|
-
])
|
|
143
|
-
])
|
|
144
|
-
])
|
|
145
|
-
]))), 128))
|
|
146
|
-
])
|
|
147
|
-
]));
|
|
148
|
-
}
|
|
149
|
-
}), be = /* @__PURE__ */ R(ce, [["__scopeId", "data-v-54384fc1"]]);
|
|
150
|
-
export {
|
|
151
|
-
be as default
|
|
152
|
-
};
|