@feedmepos/mf-inventory-portal 0.0.22-dev.5 → 0.0.22-dev.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApprovalView-CyIOcyG5.js +140 -0
- package/dist/{BindingsDialog-DQJhC3Mo.js → BindingsDialog-BXePN5iL.js} +10 -10
- package/dist/{BindingsPicker-YfbPb_dG.js → BindingsPicker-Bd_qb0aO.js} +15 -15
- package/dist/{BindingsTable-D3MVcHXZ.js → BindingsTable-BV-nP9HU.js} +4 -4
- package/dist/ClosingTemplateView-CSvWLccZ.js +1829 -0
- package/dist/FmDroppableField-DwZ6ujPh.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DpCoW_-F.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js +435 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C8k7pSPT.js +51 -0
- package/dist/IngredientGroupView-C0hPeD41.js +608 -0
- package/dist/IngredientsView-CpwVIGXd.js +1608 -0
- package/dist/IntegrationView-Bt8pGAHS.js +1225 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wsBLYBpB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yA-qJUUz.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqcqoKyN.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js} +7 -7
- package/dist/ReceiveRequestView-D14YTEEe.js +4073 -0
- package/dist/RecipeView-D0WsMfKm.js +594 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-sxI0L6MP.js +7770 -0
- package/dist/SupplierView-clAkARuW.js +1468 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js +1150 -0
- package/dist/TransferTemplateView-DpI6kVqX.js +1258 -0
- package/dist/{UnitView-B95q8Xrj.js → UnitView-CneJsDum.js} +18 -18
- package/dist/{WarehouseView-CHGXvyeS.js → WarehouseView-DYbFWTlh.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +282 -91
- package/dist/api/netsuite.d.ts +71 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-CfXF4jdF.js → app-B4pi48sM.js} +26414 -24985
- package/dist/app.d.ts +88 -3
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
- package/dist/{decimal-BZ7tX47r.js → decimal-C8O2p3Sg.js} +1 -1
- package/dist/defineDeepModel-BXP1vLGf.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/format-time-from-id-DgW7OJL_.js +15 -0
- package/dist/format-unit-display-BP4O0Pym.js +1195 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/integration/foodmarkethub.d.ts +391 -0
- package/dist/stores/integration/index.d.ts +7 -0
- package/dist/stores/integration/netsuite.d.ts +102 -0
- package/dist/stores/inventory.d.ts +294 -9
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/style.css +1 -1
- package/dist/supplier-D-8XhuF_.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-C2E4j3k-.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- 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 +877 -1038
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1049
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
- package/dist/views/integration/NetSuite.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1961 -87
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2377 -292
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2329 -244
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +32 -2
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1277 -1478
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1697 -906
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -247
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BtP1Qjj6.js → xlsx-Dsy-fxZw.js} +1525 -1525
- package/dist/xlsx.util-CxGmvsp9.js +78 -0
- package/package.json +10 -7
- package/dist/ApprovalView-BdaNwUBc.js +0 -129
- package/dist/ClosingTemplateView-BpErgepi.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js +0 -372
- package/dist/IngredientsView-GqrkpCm5.js +0 -1758
- package/dist/IntegrationView-7c3MpUzS.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIwdObb1.js +0 -88
- package/dist/ReceiveRequestView-BAuXvzQW.js +0 -215
- package/dist/RecipeView-C6tZPQ-K.js +0 -581
- package/dist/StockView-4uXHYz4E.js +0 -1892
- package/dist/SupplierView-CuWvKCWY.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js +0 -1409
- package/dist/TransferTemplateView-D1Lfi3aW.js +0 -1230
- package/dist/defineDeepModel-BKAs9qN6.js +0 -13
- package/dist/format-time-from-id-B7ZE4sdX.js +0 -15
- package/dist/id-to-date-D1lOqIir.js +0 -30
- package/dist/purchase-order-transaction-type-tZ7cj1dz.js +0 -702
- package/dist/supplier-BIDBk5S6.js +0 -69
- package/dist/use-template-enabled-locations-DlMnS9WJ.js +0 -57
- package/dist/xlsx.util-BKFiH-ig.js +0 -109
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { n as m, j as F } from "./app-CfXF4jdF.js";
|
|
2
|
-
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
|
-
import { ref as h, defineComponent as y, resolveComponent as d, openBlock as _, createElementBlock as f, renderSlot as k, createVNode as p, withCtx as g } from "vue";
|
|
4
|
-
const l = m((e, t) => {
|
|
5
|
-
const a = F(), o = v();
|
|
6
|
-
return {
|
|
7
|
-
async getInventoryForecast() {
|
|
8
|
-
var n;
|
|
9
|
-
const r = ((n = o.currentBusiness.value) == null ? void 0 : n._id) ?? "", c = a.currentLocationId ?? "", i = `${e.dataBackendUrl}/${r}/${c}/inventory-forecast`;
|
|
10
|
-
try {
|
|
11
|
-
return await t.get(i);
|
|
12
|
-
} catch {
|
|
13
|
-
return { skus: [] };
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
async getPurchaseOrderForecast(r) {
|
|
17
|
-
var u;
|
|
18
|
-
const c = ((u = o.currentBusiness.value) == null ? void 0 : u._id) ?? "", i = a.currentLocationId ?? "", n = `${e.dataBackendUrl}/${c}/${i}/purchase-order-forecast?days=${r}`;
|
|
19
|
-
try {
|
|
20
|
-
return await t.get(n);
|
|
21
|
-
} catch {
|
|
22
|
-
return { skus: [] };
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
function S() {
|
|
28
|
-
return {
|
|
29
|
-
inventoryForecast: { skus: [] },
|
|
30
|
-
purchaseOrderForecast: { skus: [] }
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
const s = h(S());
|
|
34
|
-
function P() {
|
|
35
|
-
return {
|
|
36
|
-
// state
|
|
37
|
-
get inventoryForecast() {
|
|
38
|
-
return s.value.inventoryForecast;
|
|
39
|
-
},
|
|
40
|
-
set inventoryForecast(e) {
|
|
41
|
-
s.value.inventoryForecast = e;
|
|
42
|
-
},
|
|
43
|
-
get purchaseOrderForecast() {
|
|
44
|
-
return s.value.purchaseOrderForecast;
|
|
45
|
-
},
|
|
46
|
-
set purchaseOrderForecast(e) {
|
|
47
|
-
s.value.purchaseOrderForecast = e;
|
|
48
|
-
},
|
|
49
|
-
// actions
|
|
50
|
-
async readStockEstimateBalance() {
|
|
51
|
-
const e = l();
|
|
52
|
-
this.inventoryForecast = await e.getInventoryForecast();
|
|
53
|
-
},
|
|
54
|
-
async readPurchaseOrder(e) {
|
|
55
|
-
const t = l();
|
|
56
|
-
this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
const I = { class: "flex items-center gap-8" }, O = "Experience enhanced inventory features with premium plan.", E = /* @__PURE__ */ y({
|
|
61
|
-
__name: "PremiumBadge",
|
|
62
|
-
props: {
|
|
63
|
-
zIndex: {}
|
|
64
|
-
},
|
|
65
|
-
setup(e) {
|
|
66
|
-
return (t, a) => {
|
|
67
|
-
const o = d("FmPill"), r = d("FmTooltip");
|
|
68
|
-
return _(), f("div", I, [
|
|
69
|
-
k(t.$slots, "default"),
|
|
70
|
-
p(r, {
|
|
71
|
-
variant: "plain",
|
|
72
|
-
placement: "top",
|
|
73
|
-
content: O,
|
|
74
|
-
"z-index": t.zIndex
|
|
75
|
-
}, {
|
|
76
|
-
default: g(() => [
|
|
77
|
-
p(o, { variant: "premium" })
|
|
78
|
-
]),
|
|
79
|
-
_: 1
|
|
80
|
-
}, 8, ["z-index"])
|
|
81
|
-
]);
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
export {
|
|
86
|
-
E as _,
|
|
87
|
-
P as u
|
|
88
|
-
};
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ce, ref as C, watch as Q, computed as k, resolveComponent as le, openBlock as b, createBlock as q, unref as e, withCtx as w, createElementVNode as u, normalizeClass as ue, createVNode as c, normalizeStyle as me, toDisplayString as de, createElementBlock as pe, createCommentVNode as fe, Teleport as ve, mergeProps as G } from "vue";
|
|
2
|
-
import { Z as h, j as _e, o as Z, a as W, G as ye, $ as ge, b as De } from "./app-CfXF4jdF.js";
|
|
3
|
-
import { i as X, u as be, _ as he, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js";
|
|
4
|
-
import { u as xe } from "./purchase-order-transaction-type-tZ7cj1dz.js";
|
|
5
|
-
import { u as Re, _ as Ce, g as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js";
|
|
6
|
-
import { i as qe, e as we } from "./id-to-date-D1lOqIir.js";
|
|
7
|
-
import { useSnackbar as Te, useBreakpoints as Fe } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as Me } from "./TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js";
|
|
9
|
-
import { _ as Oe, F as S } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
10
|
-
import { useI18n as $e } from "@feedmepos/mf-common";
|
|
11
|
-
const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ne = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
14
|
-
}, je = { class: "pt-8" }, B = "ReceiveRequestViewSearchCriteria", Xe = /* @__PURE__ */ ce({
|
|
15
|
-
__name: "ReceiveRequestView",
|
|
16
|
-
setup(Ae) {
|
|
17
|
-
const { t: m } = $e(), I = Te();
|
|
18
|
-
h.object({
|
|
19
|
-
name: h.string().optional().nullable(),
|
|
20
|
-
startDate: h.string().optional().nullable(),
|
|
21
|
-
endDate: h.string().optional().nullable()
|
|
22
|
-
});
|
|
23
|
-
const T = ge(), F = De();
|
|
24
|
-
function ee() {
|
|
25
|
-
const o = {
|
|
26
|
-
name: "",
|
|
27
|
-
...X()
|
|
28
|
-
}, r = T.getItem(B);
|
|
29
|
-
if (!r)
|
|
30
|
-
return o;
|
|
31
|
-
try {
|
|
32
|
-
return JSON.parse(r);
|
|
33
|
-
} catch {
|
|
34
|
-
return o;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function M() {
|
|
38
|
-
T.setItem(B, JSON.stringify(i.value));
|
|
39
|
-
}
|
|
40
|
-
const i = C(ee()), a = xe("receive/request", i.value), { columnDefs: te } = Re("receive/request", a), O = _e();
|
|
41
|
-
async function ae() {
|
|
42
|
-
const o = `inventory-record_${Z(i.value.startDate).format("DD-MM-YYYY_HH-mm")}-${Z(i.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, r = a.purchaseOrders.value.flatMap(
|
|
43
|
-
(n) => n.items.map((t) => {
|
|
44
|
-
const s = new Date(qe(n._id) ?? ""), p = n.effectiveAt ? new Date(n.effectiveAt) : void 0, f = W(
|
|
45
|
-
ke(t.sku, n.deliveryOrder || [])
|
|
46
|
-
), v = W(t.quantity);
|
|
47
|
-
return {
|
|
48
|
-
"SKU code": t.code,
|
|
49
|
-
"SKU name": t.name,
|
|
50
|
-
"PO #": n.seqNumber,
|
|
51
|
-
"Effective at": p,
|
|
52
|
-
Date: s,
|
|
53
|
-
Status: n.status,
|
|
54
|
-
Reference: n.ref ?? "",
|
|
55
|
-
"Received quantity": f,
|
|
56
|
-
"Ordered quantity": v,
|
|
57
|
-
Unit: t.sku.unit.abbrev,
|
|
58
|
-
"Total cost": t.totalCost ? ye(t.totalCost) : null
|
|
59
|
-
};
|
|
60
|
-
})
|
|
61
|
-
), l = [
|
|
62
|
-
"SKU code",
|
|
63
|
-
"SKU name",
|
|
64
|
-
"PO #",
|
|
65
|
-
"Date",
|
|
66
|
-
"Status",
|
|
67
|
-
"Reference",
|
|
68
|
-
"Received quantity",
|
|
69
|
-
"Ordered quantity",
|
|
70
|
-
"Unit"
|
|
71
|
-
];
|
|
72
|
-
F.enableBackdatePo && l.insert("Effective at", 4), F.enableTotalCost && l.push("Total cost"), await we(
|
|
73
|
-
[
|
|
74
|
-
{
|
|
75
|
-
name: "purchases",
|
|
76
|
-
data: r,
|
|
77
|
-
columns: l
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
o
|
|
81
|
-
), I.open({
|
|
82
|
-
title: m("inventory.transfer.receiveRequest.export.success"),
|
|
83
|
-
message: m("inventory.transfer.receiveRequest.export.message", [o]),
|
|
84
|
-
type: "success"
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
const x = C(X()), d = C("");
|
|
88
|
-
Q([() => x.value], ([o]) => {
|
|
89
|
-
!o.startDate || !o.endDate || (i.value.startDate = o.startDate, i.value.endDate = o.endDate, a.updateDateRange(
|
|
90
|
-
i.value.startDate,
|
|
91
|
-
i.value.endDate
|
|
92
|
-
), M());
|
|
93
|
-
}), Q([() => d.value], () => {
|
|
94
|
-
M();
|
|
95
|
-
});
|
|
96
|
-
function oe(o) {
|
|
97
|
-
o === "create" && a.promptCreateTransferDialog();
|
|
98
|
-
}
|
|
99
|
-
const { breakpoints: $ } = Fe(), R = k(() => $.value.xs || $.value.sm), re = k(() => R.value ? 10 : 20), ne = be(), se = k(() => [
|
|
100
|
-
{
|
|
101
|
-
icon: "refresh",
|
|
102
|
-
onClick: a.fetchData
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
icon: "ios_share",
|
|
106
|
-
onClick: ae
|
|
107
|
-
}
|
|
108
|
-
]);
|
|
109
|
-
return (o, r) => {
|
|
110
|
-
const l = le("FmTable");
|
|
111
|
-
return b(), q(he, {
|
|
112
|
-
title: e(m)("inventory.transfer.receiveRequest.title2"),
|
|
113
|
-
actions: [
|
|
114
|
-
{
|
|
115
|
-
label: e(m)("inventory.transfer.receiveRequest.actions.create"),
|
|
116
|
-
value: "create",
|
|
117
|
-
isPrimary: !0,
|
|
118
|
-
prependIcon: "add"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"onClick:action": oe
|
|
122
|
-
}, {
|
|
123
|
-
default: w(() => {
|
|
124
|
-
var n;
|
|
125
|
-
return [
|
|
126
|
-
u("div", {
|
|
127
|
-
class: ue([
|
|
128
|
-
"flex flex-col gap-8 max-h-full",
|
|
129
|
-
{
|
|
130
|
-
"p-0": R.value,
|
|
131
|
-
"px-24 ": !R.value
|
|
132
|
-
}
|
|
133
|
-
])
|
|
134
|
-
}, [
|
|
135
|
-
c(Se, {
|
|
136
|
-
"date-range-query": "",
|
|
137
|
-
"date-range": x.value,
|
|
138
|
-
"onUpdate:dateRange": r[0] || (r[0] = (t) => x.value = t),
|
|
139
|
-
searchable: "",
|
|
140
|
-
"change-location": "",
|
|
141
|
-
search: d.value,
|
|
142
|
-
"onUpdate:search": r[1] || (r[1] = (t) => d.value = t),
|
|
143
|
-
actions: se.value
|
|
144
|
-
}, null, 8, ["date-range", "search", "actions"]),
|
|
145
|
-
(b(), q(l, {
|
|
146
|
-
style: me(e(ne).tableHeight),
|
|
147
|
-
"column-defs": e(te),
|
|
148
|
-
"row-data": e(a).purchaseOrders.value,
|
|
149
|
-
"search-value": d.value,
|
|
150
|
-
loading: !e(O)._currentLocation || e(a).loading.value,
|
|
151
|
-
onRowClick: r[2] || (r[2] = (t) => e(a).promptShowTransferDetails(t.original)),
|
|
152
|
-
key: (n = e(O)._currentLocation) == null ? void 0 : n.dbName,
|
|
153
|
-
"page-size": re.value
|
|
154
|
-
}, {
|
|
155
|
-
"list-row": w((t) => [
|
|
156
|
-
c(Oe, {
|
|
157
|
-
row: t,
|
|
158
|
-
onRowClick: e(a).promptShowTransferDetails
|
|
159
|
-
}, {
|
|
160
|
-
default: w((s) => {
|
|
161
|
-
var p, f, v, _, E, P, U, Y, y, N, j, A, H, g, V, z, K, L, D, J;
|
|
162
|
-
return [
|
|
163
|
-
u("div", Ee, [
|
|
164
|
-
u("div", Pe, [
|
|
165
|
-
c(e(S), {
|
|
166
|
-
render: (v = (f = (p = s._id) == null ? void 0 : p.column) == null ? void 0 : f.columnDef) == null ? void 0 : v.cell,
|
|
167
|
-
props: (E = (_ = s._id) == null ? void 0 : _.getContext) == null ? void 0 : E.call(_)
|
|
168
|
-
}, null, 8, ["render", "props"])
|
|
169
|
-
]),
|
|
170
|
-
u("div", Ue, [
|
|
171
|
-
c(e(S), {
|
|
172
|
-
render: (Y = (U = (P = s.supplier_name) == null ? void 0 : P.column) == null ? void 0 : U.columnDef) == null ? void 0 : Y.cell,
|
|
173
|
-
props: (N = (y = s.supplier_name) == null ? void 0 : y.getContext) == null ? void 0 : N.call(y)
|
|
174
|
-
}, null, 8, ["render", "props"])
|
|
175
|
-
]),
|
|
176
|
-
u("div", Ye, de(t.original.items.map((ie) => `${ie.name}`).join(", ")), 1),
|
|
177
|
-
t.original.ref ? (b(), pe("div", Ne, [
|
|
178
|
-
c(e(S), {
|
|
179
|
-
render: (H = (A = (j = s.ref) == null ? void 0 : j.column) == null ? void 0 : A.columnDef) == null ? void 0 : H.cell,
|
|
180
|
-
props: (V = (g = s.ref) == null ? void 0 : g.getContext) == null ? void 0 : V.call(g)
|
|
181
|
-
}, null, 8, ["render", "props"])
|
|
182
|
-
])) : fe("", !0),
|
|
183
|
-
u("div", je, [
|
|
184
|
-
c(e(S), {
|
|
185
|
-
render: (L = (K = (z = s.status) == null ? void 0 : z.column) == null ? void 0 : K.columnDef) == null ? void 0 : L.cell,
|
|
186
|
-
props: (J = (D = s.status) == null ? void 0 : D.getContext) == null ? void 0 : J.call(D)
|
|
187
|
-
}, null, 8, ["render", "props"])
|
|
188
|
-
])
|
|
189
|
-
])
|
|
190
|
-
];
|
|
191
|
-
}),
|
|
192
|
-
_: 2
|
|
193
|
-
}, 1032, ["row", "onRowClick"])
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
197
|
-
], 2),
|
|
198
|
-
(b(), q(ve, { to: "body" }, [
|
|
199
|
-
c(Me, G(e(a).transferDialogProps.value, {
|
|
200
|
-
onSubmitted: e(a).fetchData
|
|
201
|
-
}), null, 16, ["onSubmitted"]),
|
|
202
|
-
c(Ce, G(e(a).transferDetailsProps.value, {
|
|
203
|
-
onSubmitted: e(a).fetchData
|
|
204
|
-
}), null, 16, ["onSubmitted"])
|
|
205
|
-
]))
|
|
206
|
-
];
|
|
207
|
-
}),
|
|
208
|
-
_: 1
|
|
209
|
-
}, 8, ["title", "actions"]);
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
export {
|
|
214
|
-
Xe as default
|
|
215
|
-
};
|