@feedmepos/mf-inventory-portal 1.8.1 → 1.9.0-dev.1
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-BPhAFsnf.js → App-OAKZ4Qdf.js} +9 -9
- package/dist/{ApprovalView-DuJIX7ux.js → ApprovalView-DN0rWMUh.js} +9 -9
- package/dist/{BindingsDialog-BiNopu6T.js → BindingsDialog-BWpIeq6j.js} +2 -2
- package/dist/{BindingsPicker-C2GUK3np.js → BindingsPicker-DRROpR8i.js} +3 -3
- package/dist/{BindingsTable-DlPl5o1h.js → BindingsTable-BFEoUCIT.js} +10 -10
- package/dist/{BulkReceiveRequestPage-YtqUSPUN.js → BulkReceiveRequestPage-wnXszulg.js} +217 -217
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CAKGP0N3.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BtEblqcM.js} +1 -1
- package/dist/{ClosingDraftView-C0XEpqat.js → ClosingDraftView-BRNRWXnj.js} +19 -19
- package/dist/{ClosingHistoryView-C2Bl2vnF.js → ClosingHistoryView-DWPINMVP.js} +7 -7
- package/dist/{ClosingTemplateView-DAXyH1l9.js → ClosingTemplateView-gqjNm3Wi.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-sP8-Pw8r.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-cxhbnvht.js} +1 -1
- package/dist/{DefaultView-QUjOTT9z.js → DefaultView-CTQ0-HzQ.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CNO7dng4.js → DeliveryOrderPrintPreview-gReWM4vq.js} +9 -9
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-MiLvwxSQ.js → EmailDialog.vue_vue_type_script_setup_true_lang-IYcE8OSG.js} +11723 -11601
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Bo7xjTer.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CGkF-JhJ.js} +1 -1
- package/dist/{FeatureCapabilityGate-CQrRBMcC.js → FeatureCapabilityGate-Ce4_ozRL.js} +2 -2
- package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-CIKrUrln.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-DViz4hgB.js} +1 -1
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DfCQ8SNd.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B6f-p8K7.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BTeJz4Mm.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C-6cGWEV.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DiwH0vnm.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BALpSufj.js} +2 -2
- package/dist/{FmMultiselectDialog-Dne8GSe8.js → FmMultiselectDialog-B4Diosc4.js} +2 -2
- package/dist/{FmMultiselectDialog-BZvKKnBB.js → FmMultiselectDialog-CJLfLql2.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D1-MLyJi.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DuNzft4K.js} +5 -5
- package/dist/{ImportView-Dr-2cv9N.js → ImportView-DnYVbQ6I.js} +7 -7
- package/dist/{IngredientsView-BnaNrWb7.js → IngredientsView-COUJUWAb.js} +68 -68
- package/dist/{IntegrationExplorerView-Bjflxeha.js → IntegrationExplorerView-CgE2WN-x.js} +6 -6
- package/dist/{IntegrationPlatformView-fO7R9fGT.js → IntegrationPlatformView-BtTv4P3n.js} +2 -2
- package/dist/{IntegrationView-CxpmB0o2.js → IntegrationView-D_YkXYOW.js} +3049 -3032
- package/dist/{InventoryBindingForm-DbgvnZ9I.js → InventoryBindingForm-B4HvjUs9.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-3stkPlAW.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CjVc2mCE.js} +4 -4
- package/dist/{InventoryBindingSummary-BrIFW5dO.js → InventoryBindingSummary-CCFW8rw_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BAVjiZbm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-PJMjcN03.js} +2 -2
- package/dist/{ProductionRunDetailPage-DhImFq9B.js → ProductionRunDetailPage-ChNKrpyj.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CCUBGX4K.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-536rtKru.js} +8 -8
- package/dist/{ProductionRunPage-D9SaErg3.js → ProductionRunPage-FIUKUyDB.js} +4 -4
- package/dist/{PublishView-CmqorDCm.js → PublishView-JDX28AHk.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CvplcGNv.js → PurchaseOrderPrintPreview-C8-zlH52.js} +13 -13
- package/dist/ReceiveRequestView-DIuftfMU.js +729 -0
- package/dist/{RecipeView-CgJcpA_f.js → RecipeView-BKYAdx6j.js} +16 -16
- package/dist/{SettingsView-I1XEa1NJ.js → SettingsView-CZR-ELPO.js} +7 -7
- package/dist/{StockView-C2tK0oPv.js → StockView-C-9o5zUV.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DSz37GY_.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Db4DrwQJ.js} +1 -1
- package/dist/{SupplierView-C69gOB_i.js → SupplierView-CHX-eb1W.js} +13 -13
- package/dist/{SurchargeView-DfDtR1jP.js → SurchargeView-D1y5BUvB.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CWD44FiP.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DU2wYI2T.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-5RLeEfkg.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DKTWIz-E.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eSgt3P6r.js +4961 -0
- package/dist/{TransferTemplateView-Dc892CSr.js → TransferTemplateView-Bq7Euggq.js} +19 -19
- package/dist/{UnitCostHistoryView-DkuDLBSq.js → UnitCostHistoryView-CLpnjeEP.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-3Iyv5v10.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CiWUAHMw.js} +4 -4
- package/dist/{UnitView-CakqjGDe.js → UnitView-RxPdbO_C.js} +7 -7
- package/dist/{WarehouseView-AUPuNwRA.js → WarehouseView-Ba_77-lL.js} +8 -8
- package/dist/{WastageTemplateView-1kxcX31h.js → WastageTemplateView-DRB3J1CD.js} +15 -15
- package/dist/{app-tiHt7P8o.js → app-B2FciWDu.js} +1191 -1208
- package/dist/app.js +1 -1
- package/dist/{bulk-edit-simulation.helper-D490leZh.js → bulk-edit-simulation.helper-gZPNWgS7.js} +2 -2
- package/dist/{closing-template-CAahWrPo.js → closing-template-L7d2nmhr.js} +1 -1
- package/dist/{date2-CKKZ3b1E.js → date2--N7dpGRR.js} +1 -1
- package/dist/{dayjs.min-CXmScEL-.js → dayjs.min-CFhuhXoi.js} +1 -1
- package/dist/{decimal-CE8yRxZg.js → decimal-gywux_Ld.js} +2 -2
- package/dist/defineDeepModel-B2EkoePs.js +19 -0
- package/dist/{duplicate-template-DGrH04lc.js → duplicate-template-t-iu60N3.js} +1 -1
- package/dist/{feature-BuUIX2LY.js → feature-CvQ6eKvB.js} +51 -46
- package/dist/{format-time-from-id-BQOfGm26.js → format-time-from-id-BVk3iOfV.js} +1 -1
- package/dist/{format-unit-display-BuBfy3bb.js → format-unit-display-CLmFpKSI.js} +13 -12
- package/dist/{id-to-date-B_aPAdeF.js → id-to-date-DKmIZp6I.js} +1 -1
- package/dist/{import-export.helper-DPqodvrw.js → import-export.helper-qShUWqck.js} +5 -5
- package/dist/{index-EgLlcZ4g.js → index-CJ1pZPwZ.js} +3 -3
- package/dist/{index-yTHfPUVq.js → index-CoGFfqOs.js} +1 -1
- package/dist/{index-CBkSXbQw.js → index-CrUvC9l4.js} +1 -1
- package/dist/{lz-string-Dgq0u7oK.js → lz-string-mHxrGSbY.js} +1 -1
- package/dist/{netsuite-BgB1tjJx.js → netsuite-BDcapEOO.js} +2 -2
- package/dist/{netsuite-explorer-BMtIwGyi.js → netsuite-explorer-FeiogpVF.js} +1 -1
- package/dist/{predefined-templates-BiuP4m7R.js → predefined-templates-CVAkYLi5.js} +1 -1
- package/dist/{purchase-order-template-D5Z0bPLL.js → purchase-order-template-CrRp6r28.js} +1 -1
- package/dist/{recalculationUtils-BitV6W_8.js → recalculationUtils-BuhlMBRB.js} +1 -1
- package/dist/{row-action.enum-CTNl1V0l.js → row-action.enum-b--87Y19.js} +1 -1
- package/dist/{rules-BpG29H9Z.js → rules-CFEKk1zY.js} +3 -3
- package/dist/{stock-DNV9xfbE.js → stock-B4FZa2Ci.js} +1 -1
- package/dist/{stock-DTzUuxKl.js → stock-Bet2VY1l.js} +2 -2
- package/dist/stores/feature.d.ts +4 -2
- package/dist/{supplier-8uMx5fFa.js → supplier-DX_LR2LR.js} +2 -2
- package/dist/{surcharge-D0c44dor.js → surcharge-gnQZF_xQ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BErW6UQ4.js → uom-rules-B4qbIOqA.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CZTe4ayv.js → use-ingredient-select-dialog-BE5IHSwH.js} +2 -2
- package/dist/{use-inventory-binding-dialog-D_N7K7pw.js → use-inventory-binding-dialog-B0xEQiLV.js} +2 -2
- package/dist/{use-template-enabled-locations-C1xNZr4V.js → use-template-enabled-locations-BvAG1cJF.js} +2 -2
- package/dist/{use-transfer-locations-BlSNA3qv.js → use-transfer-locations-pyDvqZxC.js} +3 -2
- package/dist/{useHrmPermission-Bd1_Ia_U.js → useHrmPermission-kFc2vRek.js} +4 -4
- package/dist/{useNavigationMenu-DXrUeRX9.js → useNavigationMenu-C9-LqWKt.js} +31 -31
- package/dist/{useSseClient-Di0ywAz-.js → useSseClient-CoafBOe-.js} +1 -1
- package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialog.vue.d.ts +18 -0
- package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialogProps.d.ts +14 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateList.spec.d.ts +1 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateList.vue.d.ts +43 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.spec.d.ts +1 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.vue.d.ts +36 -0
- package/dist/views/receive-request/components/create-order-dialog/sections.d.ts +3 -0
- package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.d.ts +62 -0
- package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +5 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +5 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.block.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +3 -1
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2 -0
- package/dist/views/receive-request/helper/create-order-selection.d.ts +43 -0
- package/dist/views/receive-request/helper/create-order-selection.spec.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +41 -0
- package/dist/{vue-C029rfpt.js → vue-BMDdrHy_.js} +49 -53
- package/dist/{vue-i18n-Bg7KOfUG.js → vue-i18n-Bkodg08l.js} +290 -290
- package/dist/{xlsx.util-BQrh6imS.js → xlsx.util-DOCqFSat.js} +2 -2
- package/package.json +3 -2
- package/dist/ReceiveRequestView-DAN7eOH5.js +0 -346
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dzlex2fK.js +0 -4953
- package/dist/defineDeepModel-BRZrUePH.js +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0-dev.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"vue-i18n": "10.0.5",
|
|
56
56
|
"vue-router": "4.4.0",
|
|
57
57
|
"xlsx": "0.18.5",
|
|
58
|
-
"@feedmepos/inventory-core": "1.0.3-dev.0",
|
|
59
58
|
"@feedmepos/codemax-core": "1.0.0",
|
|
60
59
|
"@feedmepos/integration-portal": "0.0.1",
|
|
60
|
+
"@feedmepos/inventory-core": "1.0.3-dev.0",
|
|
61
61
|
"@feedmepos/inventory-core-2": "2.0.0",
|
|
62
62
|
"@feedmepos/inventory-core-dart": "1.0.0",
|
|
63
63
|
"@feedmepos/inventory-core-js": "1.0.1",
|
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
115
115
|
"format": "prettier --write src/",
|
|
116
116
|
"test": "vitest",
|
|
117
|
+
"test:smoke": "ls $(cat smoke-specs.txt) > /dev/null && vitest run $(cat smoke-specs.txt)",
|
|
117
118
|
"test:production-run": "NODE_OPTIONS=--max-old-space-size=8192 pnpm type-check && vitest run --no-dangerouslyIgnoreUnhandledErrors src/views/production-run src/api/production-run.spec.ts src/api/production-run-error.spec.ts src/composable/useNavigationMenu.production.spec.ts src/router/shared.production.spec.ts",
|
|
118
119
|
"test:e2e": "playwright test",
|
|
119
120
|
"type-check": "vue-tsc --declaration --noEmit -p tsconfig.app.json",
|
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Se, computed as d, ref as O, watch as ee, resolveComponent as De, createBlock as E, openBlock as y, unref as r, withCtx as q, createElementVNode as f, normalizeClass as xe, createVNode as u, normalizeStyle as Re, createElementBlock as Oe, createCommentVNode as te, toDisplayString as Ee, Teleport as Pe, normalizeProps as re, mergeProps as N, guardReactiveProps as Te, isRef as ke } from "vue";
|
|
2
|
-
import { D as P, u as Ce } from "./app-tiHt7P8o.js";
|
|
3
|
-
import { i as ae } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DfCQ8SNd.js";
|
|
4
|
-
import { u as we, P as U, a as qe, _ as Ne, g as Ue } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Dzlex2fK.js";
|
|
5
|
-
import { a as ne, d as Fe } from "./rules-BpG29H9Z.js";
|
|
6
|
-
import { i as Me } from "./id-to-date-B_aPAdeF.js";
|
|
7
|
-
import { d as se } from "./dayjs.min-CXmScEL-.js";
|
|
8
|
-
import { e as Ve } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-3Iyv5v10.js";
|
|
9
|
-
import { u as $e } from "./useTabStorage-BkIVScW_.js";
|
|
10
|
-
import { u as Ae, _ as Ye } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
11
|
-
import { useSnackbar as He, useBreakpoints as ze } from "@feedmepos/ui-library";
|
|
12
|
-
import { _ as Ie, a as je, b as Ke } from "./EmailDialog.vue_vue_type_script_setup_true_lang-MiLvwxSQ.js";
|
|
13
|
-
import { _ as Le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
|
|
14
|
-
import { F as T } from "./index-eGvSlWMU.js";
|
|
15
|
-
import { u as Qe } from "./feature-BuUIX2LY.js";
|
|
16
|
-
import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DiwH0vnm.js";
|
|
17
|
-
import { useI18n as Xe } from "@feedmepos/mf-common";
|
|
18
|
-
import { _ as Ge } from "./CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-sP8-Pw8r.js";
|
|
19
|
-
import { P as We, J as Ze } from "./app-C39bYJmq.js";
|
|
20
|
-
import { u as Be } from "./netsuite-BgB1tjJx.js";
|
|
21
|
-
import { f as et } from "./predefined-templates-BiuP4m7R.js";
|
|
22
|
-
const tt = { class: "flex flex-col py-8" }, rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, at = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, st = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
25
|
-
}, ot = { class: "pt-8" }, oe = "ReceiveRequestViewSearchCriteria", Ct = /* @__PURE__ */ Se({
|
|
26
|
-
__name: "ReceiveRequestView",
|
|
27
|
-
setup(lt) {
|
|
28
|
-
const { t: m } = Xe(), F = He();
|
|
29
|
-
et().fetchTemplates(), P.object({
|
|
30
|
-
name: P.string().optional().nullable(),
|
|
31
|
-
startDate: P.string().optional().nullable(),
|
|
32
|
-
endDate: P.string().optional().nullable()
|
|
33
|
-
});
|
|
34
|
-
const M = d(
|
|
35
|
-
() => !A._currentLocation || t.loading.value
|
|
36
|
-
), V = $e(), v = Qe(), le = Be();
|
|
37
|
-
function ie() {
|
|
38
|
-
const s = {
|
|
39
|
-
name: "",
|
|
40
|
-
...ae()
|
|
41
|
-
}, a = V.getItem(oe);
|
|
42
|
-
if (!a)
|
|
43
|
-
return s;
|
|
44
|
-
try {
|
|
45
|
-
return JSON.parse(a);
|
|
46
|
-
} catch {
|
|
47
|
-
return s;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function $() {
|
|
51
|
-
V.setItem(oe, JSON.stringify(c.value));
|
|
52
|
-
}
|
|
53
|
-
const c = O(ie()), t = we(
|
|
54
|
-
U.RECEIVE_REQUEST,
|
|
55
|
-
c.value
|
|
56
|
-
), {
|
|
57
|
-
columnDefs: ue,
|
|
58
|
-
showCustomPrintDialog: k,
|
|
59
|
-
customPrintHtml: ce,
|
|
60
|
-
customPrintTemplateName: me,
|
|
61
|
-
customPrintIsDefault: pe
|
|
62
|
-
} = qe(
|
|
63
|
-
U.RECEIVE_REQUEST,
|
|
64
|
-
t,
|
|
65
|
-
t.shipments
|
|
66
|
-
), A = Ce();
|
|
67
|
-
async function de() {
|
|
68
|
-
const s = `inventory-record_${se(c.value.startDate).format("DD-MM-YYYY_HH-mm")}-${se(c.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, a = t.purchaseOrders.value.flatMap(
|
|
69
|
-
(n) => n.items.map((o) => {
|
|
70
|
-
var p;
|
|
71
|
-
const l = new Date(Me(n._id) ?? ""), i = n.effectiveAt ? new Date(n.effectiveAt) : void 0, _ = ne(
|
|
72
|
-
Ue(o.sku, n.deliveryOrder || [])
|
|
73
|
-
), h = ne(o.quantity), S = ((p = o == null ? void 0 : o.measurement) == null ? void 0 : p.abbrev) || o.sku.unit.abbrev;
|
|
74
|
-
return {
|
|
75
|
-
"SKU code": o.code,
|
|
76
|
-
"SKU name": o.name,
|
|
77
|
-
"PO #": n.seqNumber,
|
|
78
|
-
"Effective at": i,
|
|
79
|
-
Date: l,
|
|
80
|
-
Status: n.status,
|
|
81
|
-
Reference: n.ref ?? "",
|
|
82
|
-
"Received quantity": _,
|
|
83
|
-
"Ordered quantity": h,
|
|
84
|
-
Unit: S,
|
|
85
|
-
"Total cost": o.totalCost ? Fe(o.totalCost) : null
|
|
86
|
-
};
|
|
87
|
-
})
|
|
88
|
-
), e = [
|
|
89
|
-
"SKU code",
|
|
90
|
-
"SKU name",
|
|
91
|
-
"PO #",
|
|
92
|
-
"Date",
|
|
93
|
-
"Status",
|
|
94
|
-
"Reference",
|
|
95
|
-
"Received quantity",
|
|
96
|
-
"Ordered quantity",
|
|
97
|
-
"Unit"
|
|
98
|
-
];
|
|
99
|
-
v.enableBackdatePo && e.insert("Effective at", 4), v.enableTotalCost && e.push("Total cost"), await Ve(
|
|
100
|
-
[
|
|
101
|
-
{
|
|
102
|
-
name: "purchases",
|
|
103
|
-
data: a,
|
|
104
|
-
columns: e
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
s
|
|
108
|
-
), F.open({
|
|
109
|
-
title: m("inventory.transfer.receiveRequest.export.success"),
|
|
110
|
-
message: m("inventory.transfer.receiveRequest.export.message", [s]),
|
|
111
|
-
type: "success"
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
const C = O(ae()), b = O("");
|
|
115
|
-
ee([() => C.value], ([s]) => {
|
|
116
|
-
!s.startDate || !s.endDate || (c.value.startDate = s.startDate, c.value.endDate = s.endDate, t.updateDateRange(
|
|
117
|
-
c.value.startDate,
|
|
118
|
-
c.value.endDate
|
|
119
|
-
), $());
|
|
120
|
-
}), ee([() => b.value], () => {
|
|
121
|
-
$();
|
|
122
|
-
});
|
|
123
|
-
function fe(s) {
|
|
124
|
-
if (s === "create") {
|
|
125
|
-
if (M.value) {
|
|
126
|
-
F.open({
|
|
127
|
-
title: "Loading data...",
|
|
128
|
-
message: "Please wait.",
|
|
129
|
-
type: "info"
|
|
130
|
-
});
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
return t.promptCreateTransferDialog();
|
|
134
|
-
}
|
|
135
|
-
if (s === "upload" && v.enableXilnexTransferNote)
|
|
136
|
-
return t.promptUploadTransferDialog();
|
|
137
|
-
if (s === "refresh")
|
|
138
|
-
return t.fetchData();
|
|
139
|
-
if (s === "export")
|
|
140
|
-
return de();
|
|
141
|
-
}
|
|
142
|
-
const { breakpoints: Y } = ze(), w = d(() => Y.value.xs || Y.value.sm), ve = d(() => w.value ? 10 : 20), ye = Ae(), be = d(() => [
|
|
143
|
-
{
|
|
144
|
-
label: m("inventory.transfer.receiveRequest.actions.create"),
|
|
145
|
-
value: "create",
|
|
146
|
-
isPrimary: !0,
|
|
147
|
-
prependIcon: "add"
|
|
148
|
-
},
|
|
149
|
-
...v.enableXilnexTransferNote ? [
|
|
150
|
-
{
|
|
151
|
-
label: m("inventory.common.upload"),
|
|
152
|
-
value: "upload"
|
|
153
|
-
}
|
|
154
|
-
] : [],
|
|
155
|
-
{
|
|
156
|
-
label: m("inventory.common.refresh"),
|
|
157
|
-
value: "refresh"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
label: m("inventory.common.export"),
|
|
161
|
-
value: "export"
|
|
162
|
-
}
|
|
163
|
-
]), ge = d(() => {
|
|
164
|
-
const s = [
|
|
165
|
-
{
|
|
166
|
-
type: "string",
|
|
167
|
-
key: "status",
|
|
168
|
-
entity: "purchaseOrder",
|
|
169
|
-
values: Array.from(
|
|
170
|
-
new Set(t.purchaseOrders.value.map((e) => e.status))
|
|
171
|
-
)
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
type: "string",
|
|
175
|
-
key: "transferFrom",
|
|
176
|
-
entity: "purchaseOrder",
|
|
177
|
-
values: Array.from(
|
|
178
|
-
new Set(t.purchaseOrders.value.map((e) => e.supplier.name).filter((e) => !!e))
|
|
179
|
-
)
|
|
180
|
-
}
|
|
181
|
-
], a = [
|
|
182
|
-
{
|
|
183
|
-
type: "string",
|
|
184
|
-
key: "netsuiteTransactionNumber",
|
|
185
|
-
entity: "purchaseOrder",
|
|
186
|
-
values: t.purchaseOrders.value.map((e) => {
|
|
187
|
-
var n, o;
|
|
188
|
-
return (o = (n = e.netSuite) == null ? void 0 : n.additionalInfo) == null ? void 0 : o.transactionnumber;
|
|
189
|
-
}).filter((e) => e != null)
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
type: "string",
|
|
193
|
-
key: "netsuiteOrderNo",
|
|
194
|
-
entity: "purchaseOrder",
|
|
195
|
-
values: t.purchaseOrders.value.map((e) => {
|
|
196
|
-
var n;
|
|
197
|
-
return (n = e.netSuite) == null ? void 0 : n.refNo;
|
|
198
|
-
}).filter((e) => e != null)
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
type: "string",
|
|
202
|
-
key: "netsuiteOrderId",
|
|
203
|
-
entity: "purchaseOrder",
|
|
204
|
-
values: t.purchaseOrders.value.map((e) => {
|
|
205
|
-
var n;
|
|
206
|
-
return (n = e.netSuite) == null ? void 0 : n.id;
|
|
207
|
-
}).filter((e) => e != null)
|
|
208
|
-
}
|
|
209
|
-
];
|
|
210
|
-
return [...s, ...le.isEnabled ? a : []];
|
|
211
|
-
}), g = O(null), _e = d(() => {
|
|
212
|
-
if (!g.value)
|
|
213
|
-
return t.purchaseOrders.value;
|
|
214
|
-
const s = We.build(g.value);
|
|
215
|
-
return t.purchaseOrders.value.filter((a) => {
|
|
216
|
-
var e, n, o, l;
|
|
217
|
-
return Ze(
|
|
218
|
-
{
|
|
219
|
-
netsuiteTransactionNumber: (n = (e = a.netSuite) == null ? void 0 : e.additionalInfo) == null ? void 0 : n.transactionnumber,
|
|
220
|
-
netsuiteOrderNo: (o = a.netSuite) == null ? void 0 : o.refNo,
|
|
221
|
-
netsuiteOrderId: (l = a.netSuite) == null ? void 0 : l.id,
|
|
222
|
-
status: a.status,
|
|
223
|
-
transferFrom: a.supplier.name
|
|
224
|
-
},
|
|
225
|
-
s
|
|
226
|
-
);
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
return (s, a) => {
|
|
230
|
-
const e = De("FmTable");
|
|
231
|
-
return y(), E(Ye, {
|
|
232
|
-
title: r(m)("inventory.transfer.receiveRequest.title2"),
|
|
233
|
-
actions: be.value,
|
|
234
|
-
"onClick:action": fe
|
|
235
|
-
}, {
|
|
236
|
-
default: q(() => {
|
|
237
|
-
var n, o;
|
|
238
|
-
return [
|
|
239
|
-
f("div", {
|
|
240
|
-
class: xe([
|
|
241
|
-
"flex flex-col gap-8 max-h-full",
|
|
242
|
-
{
|
|
243
|
-
"p-0": w.value,
|
|
244
|
-
"px-24 ": !w.value
|
|
245
|
-
}
|
|
246
|
-
])
|
|
247
|
-
}, [
|
|
248
|
-
u(Je, {
|
|
249
|
-
"date-range-query": "",
|
|
250
|
-
"date-range": C.value,
|
|
251
|
-
"onUpdate:dateRange": a[0] || (a[0] = (l) => C.value = l),
|
|
252
|
-
searchable: "",
|
|
253
|
-
"change-location": "",
|
|
254
|
-
search: b.value,
|
|
255
|
-
"onUpdate:search": a[1] || (a[1] = (l) => b.value = l),
|
|
256
|
-
filterable: "",
|
|
257
|
-
"filter-attributes": ge.value,
|
|
258
|
-
filter: g.value,
|
|
259
|
-
"onUpdate:filter": a[2] || (a[2] = (l) => g.value = l)
|
|
260
|
-
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
261
|
-
(y(), E(e, {
|
|
262
|
-
style: Re(r(ye).tableHeight),
|
|
263
|
-
"column-defs": r(ue),
|
|
264
|
-
"row-data": _e.value,
|
|
265
|
-
"search-value": b.value,
|
|
266
|
-
loading: M.value,
|
|
267
|
-
onRowClick: a[3] || (a[3] = (l) => r(t).promptShowTransferDetails(l.original)),
|
|
268
|
-
key: (n = r(A)._currentLocation) == null ? void 0 : n.dbName,
|
|
269
|
-
"page-size": ve.value
|
|
270
|
-
}, {
|
|
271
|
-
"list-row": q((l) => [
|
|
272
|
-
u(Le, {
|
|
273
|
-
row: l,
|
|
274
|
-
onRowClick: r(t).promptShowTransferDetails
|
|
275
|
-
}, {
|
|
276
|
-
default: q((i) => {
|
|
277
|
-
var _, h, S, p, H, z, I, j, D, K, L, Q, J, x, X, G, W, Z, R, B;
|
|
278
|
-
return [
|
|
279
|
-
f("div", tt, [
|
|
280
|
-
f("div", rt, [
|
|
281
|
-
u(r(T), {
|
|
282
|
-
render: (S = (h = (_ = i._id) == null ? void 0 : _.column) == null ? void 0 : h.columnDef) == null ? void 0 : S.cell,
|
|
283
|
-
props: (H = (p = i._id) == null ? void 0 : p.getContext) == null ? void 0 : H.call(p)
|
|
284
|
-
}, null, 8, ["render", "props"])
|
|
285
|
-
]),
|
|
286
|
-
f("div", at, [
|
|
287
|
-
u(r(T), {
|
|
288
|
-
render: (j = (I = (z = i.supplier_name) == null ? void 0 : z.column) == null ? void 0 : I.columnDef) == null ? void 0 : j.cell,
|
|
289
|
-
props: (K = (D = i.supplier_name) == null ? void 0 : D.getContext) == null ? void 0 : K.call(D)
|
|
290
|
-
}, null, 8, ["render", "props"])
|
|
291
|
-
]),
|
|
292
|
-
f("div", nt, Ee(l.original.items.map((he) => `${he.name}`).join(", ")), 1),
|
|
293
|
-
l.original.ref ? (y(), Oe("div", st, [
|
|
294
|
-
u(r(T), {
|
|
295
|
-
render: (J = (Q = (L = i.ref) == null ? void 0 : L.column) == null ? void 0 : Q.columnDef) == null ? void 0 : J.cell,
|
|
296
|
-
props: (X = (x = i.ref) == null ? void 0 : x.getContext) == null ? void 0 : X.call(x)
|
|
297
|
-
}, null, 8, ["render", "props"])
|
|
298
|
-
])) : te("", !0),
|
|
299
|
-
f("div", ot, [
|
|
300
|
-
u(r(T), {
|
|
301
|
-
render: (Z = (W = (G = i.status) == null ? void 0 : G.column) == null ? void 0 : W.columnDef) == null ? void 0 : Z.cell,
|
|
302
|
-
props: (B = (R = i.status) == null ? void 0 : R.getContext) == null ? void 0 : B.call(R)
|
|
303
|
-
}, null, 8, ["render", "props"])
|
|
304
|
-
])
|
|
305
|
-
])
|
|
306
|
-
];
|
|
307
|
-
}),
|
|
308
|
-
_: 2
|
|
309
|
-
}, 1032, ["row", "onRowClick"])
|
|
310
|
-
]),
|
|
311
|
-
_: 1
|
|
312
|
-
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
313
|
-
], 2),
|
|
314
|
-
(y(), E(Pe, { to: "body" }, [
|
|
315
|
-
r(v).enablePurchaseOrderEmail ? (y(), E(Ie, re(N({ key: 0 }, r(t).emailDialogProps.value)), null, 16)) : te("", !0),
|
|
316
|
-
u(je, N(r(t).transferDialogProps.value, {
|
|
317
|
-
onSubmitted: r(t).fetchData
|
|
318
|
-
}), null, 16, ["onSubmitted"]),
|
|
319
|
-
u(Ne, N({
|
|
320
|
-
scope: r(U).RECEIVE_REQUEST
|
|
321
|
-
}, {
|
|
322
|
-
...r(t).transferDetailsProps.value,
|
|
323
|
-
receivedMap: ((o = r(t).transferDetailsProps.value) == null ? void 0 : o.receivedMap) ?? {},
|
|
324
|
-
shipments: r(t).shipments.value ?? []
|
|
325
|
-
}, {
|
|
326
|
-
onSubmitted: r(t).fetchData
|
|
327
|
-
}), null, 16, ["scope", "onSubmitted"]),
|
|
328
|
-
u(Ke, re(Te(r(t).xilnexImportDialogProps.value)), null, 16),
|
|
329
|
-
u(Ge, {
|
|
330
|
-
modelValue: r(k),
|
|
331
|
-
"onUpdate:modelValue": a[4] || (a[4] = (l) => ke(k) ? k.value = l : null),
|
|
332
|
-
html: r(ce),
|
|
333
|
-
"template-name": r(me),
|
|
334
|
-
"is-default": r(pe)
|
|
335
|
-
}, null, 8, ["modelValue", "html", "template-name", "is-default"])
|
|
336
|
-
]))
|
|
337
|
-
];
|
|
338
|
-
}),
|
|
339
|
-
_: 1
|
|
340
|
-
}, 8, ["title", "actions"]);
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
export {
|
|
345
|
-
Ct as default
|
|
346
|
-
};
|