@feedmepos/mf-inventory-portal 1.7.1-dev.0 → 1.7.2-dev.0
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-B_ja37tB.js → App-GsVnjJ5M.js} +5 -5
- package/dist/ApprovalView-DSPu2Gk5.js +242 -0
- package/dist/{BindingsDialog-0IRWCLTc.js → BindingsDialog-B9_lCD9R.js} +2 -2
- package/dist/{BindingsPicker-DCISa6Fx.js → BindingsPicker-ZKl53ZBk.js} +2 -2
- package/dist/{BindingsTable-B3CmHp97.js → BindingsTable-CLtS3u8f.js} +3 -3
- package/dist/BulkReceiveRequestView-BbHwEPzW.js +2011 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D4Nd89xp.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-KgqYNGrB.js} +1 -1
- package/dist/ClosingDraftView-Ctc6-1-J.js +4496 -0
- package/dist/{ClosingHistoryView-KdmhszIO.js → ClosingHistoryView-CX9xtMvI.js} +7 -7
- package/dist/{ClosingTemplateView-CQRujMB9.js → ClosingTemplateView-BuoQegZF.js} +17 -17
- package/dist/{DefaultView-QAEDG6pS.js → DefaultView-BltV37jK.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-B08SSOCX.js → DeliveryOrderPrintPreview-CxzgxTJk.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DdzV_fzq.js → EmailDialog.vue_vue_type_script_setup_true_lang-5Hhoj-yj.js} +10225 -10398
- package/dist/{FmAdminBadge-DH_2w13D.js → FmAdminBadge-DlplQOHb.js} +8 -8
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CmH3uhTZ.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-jTZNZIrW.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BYTn-hpQ.js +76 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Df-yCfRe.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLYrZfPo.js} +4 -4
- package/dist/{FmMultiselectDialog-QEs0yct_.js → FmMultiselectDialog-BxAfKkDh.js} +2 -2
- package/dist/{FmMultiselectDialog-DpPyNOpJ.js → FmMultiselectDialog-DF_inpi2.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8-IQUtA.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BYhQBazV.js} +119 -121
- package/dist/{ImportView-8qlgZSTO.js → ImportView-C76r6and.js} +8 -8
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CGWRbAF2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-By-9uV57.js} +1 -1
- package/dist/{IngredientGroupView-BI9SlKfz.js → IngredientGroupView-vRbMzHBS.js} +6 -6
- package/dist/{IngredientsView-1naUkKAi.js → IngredientsView-GMSV1cL0.js} +17 -17
- package/dist/{IntegrationExplorerView-C6kyLz3y.js → IntegrationExplorerView-ClhCRTC-.js} +5 -5
- package/dist/{IntegrationView-DrmxLdlk.js → IntegrationView-DM-TvYjd.js} +15 -15
- package/dist/{InventoryBindingForm-CPNAgZkD.js → InventoryBindingForm-CpY3n5Ug.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-sz_VtHRr.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CEF1D6bJ.js} +5 -5
- package/dist/{InventoryBindingSummary-Cu98L10w.js → InventoryBindingSummary-CYOt-E-3.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-g2PDNQx-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-jZHUuEoU.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZEa61go.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bw1xCASs.js} +1 -1
- package/dist/{ProductionView-D8dxypqA.js → ProductionView-D6UC_XqI.js} +8 -8
- package/dist/{PublishView-C82UwIoz.js → PublishView-CuDaby-H.js} +4 -4
- package/dist/{PurchaseOrderPrintPreview-CP40tEma.js → PurchaseOrderPrintPreview-DcSuomzT.js} +2 -2
- package/dist/ReceiveRequestView-CMywjm4H.js +345 -0
- package/dist/{RecipeView-DB1DJQp7.js → RecipeView-BAcLGUEw.js} +18 -18
- package/dist/{SettingsView-DsS62lxW.js → SettingsView-Dy3VaVP2.js} +6 -6
- package/dist/{SingleColumnLayout.vue_vue_type_script_setup_true_lang-DWsPvPE1.js → SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js} +1 -1
- package/dist/{StockView-gcf7RCZz.js → StockView-BFSFWXEY.js} +23 -23
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-nXqFCKic.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B5qk8k2h.js} +1 -1
- package/dist/{SupplierView-BIANlKLE.js → SupplierView-BvZ4bdjb.js} +13 -13
- package/dist/{SurchargeView-kRzaixM5.js → SurchargeView-DEx1ncN0.js} +7 -7
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DvjxSkiV.js +178 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BceIOuBq.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-raGPvWWz.js} +2 -2
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dqn_ArEw.js +4660 -0
- package/dist/{TransferTemplateView-Bq68Vh7t.js → TransferTemplateView-DqwLSixK.js} +21 -21
- package/dist/{UnitCostHistoryView-d0oLssyZ.js → UnitCostHistoryView-BwuW604u.js} +6 -6
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CLOotG6K.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DI4MfA6h.js} +4 -4
- package/dist/{UnitView-BHfm2IE4.js → UnitView-DBSX7myc.js} +8 -8
- package/dist/{WarehouseView-CorSYwm6.js → WarehouseView-D9BLSUaw.js} +6 -6
- package/dist/{WastageTemplateView-CtYZwiRW.js → WastageTemplateView-BV98TGlI.js} +15 -15
- package/dist/api/closing-draft.d.ts +5 -1
- package/dist/api/purchase-order.d.ts +1 -35
- package/dist/{app-37NZKFUI.js → app-D_Ym25tG.js} +5262 -5566
- package/dist/app.d.ts +24 -88
- package/dist/app.js +1 -1
- package/dist/{closing-template-C0dl45x2.js → closing-template-CgZ_4k-K.js} +1 -1
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +2 -11
- package/dist/{date2-r4KgBCs9.js → date2-BJDb1yuY.js} +1 -1
- package/dist/{dayjs.min-BKUldDi9.js → dayjs.min-DaQY5dXC.js} +1 -1
- package/dist/{decimal-Cgmw6HIY.js → decimal-D7kHeIBp.js} +2 -2
- package/dist/{defineDeepModel-DXLwZWst.js → defineDeepModel-C6b9BBLr.js} +1 -1
- package/dist/{duplicate-template-DDA4QWPl.js → duplicate-template-B3efBcsm.js} +1 -1
- package/dist/feature-8uw1BmnH.js +1136 -0
- package/dist/{format-time-from-id-Dhjn5QgH.js → format-time-from-id-DLNUrReR.js} +1 -1
- package/dist/{format-unit-display-g95-VuYJ.js → format-unit-display-dedOq7Rd.js} +12 -12
- package/dist/{import-export.helper-DsZFPPqj.js → import-export.helper-CLJoNMDx.js} +6 -6
- package/dist/{index-B9WjF3Ox.js → index-BzcCCKB7.js} +1 -1
- package/dist/{index-C207KsUh.js → index-D0IvVK8C.js} +3 -3
- package/dist/{index-D3Bmmx66.js → index-K8Z-b9IK.js} +1 -1
- package/dist/{inventory-core-dart.default-NpD15h63.js → inventory-core-dart.default-DD-U6dYG.js} +5550 -7099
- package/dist/{jszip.min-B52cHzHI.js → jszip.min-D6DuQ9eP.js} +2 -2
- package/dist/{lz-string-CItFpr5-.js → lz-string-DPtdOdTM.js} +1 -1
- package/dist/{netsuite-R_NkLn5t.js → netsuite-6tmjDviW.js} +2 -2
- package/dist/{number-BkC_lelq.js → number-CMVOg7m3.js} +3 -3
- package/dist/{predefined-templates-CVT54o4V.js → predefined-templates-DfSWTcww.js} +1 -1
- package/dist/{purchase-order-template-DvqAncB2.js → purchase-order-template-GCzUtb6y.js} +1 -1
- package/dist/{recalculationUtils-Cak1mo4o.js → recalculationUtils-CSBScoyF.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{rules--cnFg-PI.js → rules-pC-W9ghI.js} +2 -2
- package/dist/{stock-BLYAJxMj.js → stock-C0lKfZnz.js} +1 -1
- package/dist/{stock-DvquSog3.js → stock-CIpjxe6A.js} +3 -3
- package/dist/stores/feature.d.ts +0 -2
- package/dist/style.css +1 -1
- package/dist/{supplier-C5X8p_vd.js → supplier-eYlqSO4X.js} +2 -2
- package/dist/{surcharge-CLkpleoW.js → surcharge-CX5M8xDS.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-CykFo_pB.js → uom-rules-CfUOdeZ4.js} +1 -1
- package/dist/{use-ingredient-select-dialog-DlxWMkAI.js → use-ingredient-select-dialog-DYRHuZLi.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DnWDyziu.js → use-inventory-binding-dialog-CQahb9Rn.js} +2 -2
- package/dist/{use-template-enabled-locations-SRgcWLO4.js → use-template-enabled-locations-BOO-eQch.js} +2 -2
- package/dist/{use-transfer-locations-D4f4Ib1r.js → use-transfer-locations-Ffdy6Z9C.js} +2 -2
- package/dist/{useHrmPermission-lAc6ZHVZ.js → useHrmPermission-CXSUDdlQ.js} +1 -1
- package/dist/{useNavigationMenu-CeN7TEwe.js → useNavigationMenu-DfW5RBKu.js} +49 -59
- package/dist/{useSseClient-C6ndlLpA.js → useSseClient-Bl-WWwFk.js} +1 -1
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +4 -4
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupAction.vue.d.ts +2 -2
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +2 -2
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +6 -6
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +1 -1
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +12 -12
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +0 -1
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +0 -1
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +2 -102
- package/dist/views/receive-request/composables/fn.d.ts +1 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +3 -119
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +14 -643
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +15 -721
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +10 -524
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +2 -102
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -4
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -8
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +0 -12
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -24
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -24
- package/dist/{vue-i18n-DDqVG60p.js → vue-i18n-BAu5G_RB.js} +152 -152
- package/dist/{xlsx.util-BzQcPwvM.js → xlsx.util-BgM338n0.js} +2 -2
- package/package.json +5 -5
- package/dist/ApprovalView-_wG6KeZl.js +0 -249
- package/dist/BulkReceiveRequestView-Dmqm65c9.js +0 -2025
- package/dist/ClosingDraftView-DDWU93p0.js +0 -4398
- package/dist/ConnectedBusinessView-Cu2QnRN9.js +0 -533
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dzqh8pM9.js +0 -84
- package/dist/ReceiveRequestView-DDo0Pb0J.js +0 -514
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-QMUVuthC.js +0 -211
- package/dist/TransferDetailsV3.vue_vue_type_script_setup_true_lang-DYAzxoHE.js +0 -5991
- package/dist/api/connected-business-mapping.d.ts +0 -25
- package/dist/connected-business-mapping-ywgqqyMr.js +0 -37
- package/dist/feature-B4BoCy_k.js +0 -1548
- package/dist/views/connected-business/ConnectedBusinessMappingPanel.vue.d.ts +0 -25
- package/dist/views/connected-business/ConnectedBusinessView.vue.d.ts +0 -2
- package/dist/views/receive-request/components/CreateTransferChoice.vue.d.ts +0 -27
- package/dist/views/receive-request/components/transfer-details/TransferDetailsV3.vue.d.ts +0 -18
- package/dist/views/receive-request/helper/po-version.d.ts +0 -6
- /package/dist/views/{receive-request/composables/fn.spec.d.ts → closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.spec.d.ts} +0 -0
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { defineComponent as O, ref as m, resolveComponent as p, createBlock as I, openBlock as i, withCtx as u, createElementVNode as L, createVNode as y, h, createElementBlock as v, toDisplayString as g } from "vue";
|
|
2
|
-
import { F as U } from "./FmAdminBadge-DH_2w13D.js";
|
|
3
|
-
import { m as T, u as _ } from "./app-37NZKFUI.js";
|
|
4
|
-
import { useCoreStore as q } from "@feedmepos/mf-common";
|
|
5
|
-
import { useDialog as A, components as V } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as C, a as S } from "./closing-template-C0dl45x2.js";
|
|
7
|
-
const P = T((o, a) => {
|
|
8
|
-
const s = _(), l = q();
|
|
9
|
-
return {
|
|
10
|
-
async readRequests(e, t, r) {
|
|
11
|
-
const n = e ?? s.currentLocationDBName, d = `${o.inventoryBackendUrl}/${n}/purchase-request`;
|
|
12
|
-
return t && r ? await a.get(`${d}?startDate=${t}&endDate=${r}`) : await a.get(d);
|
|
13
|
-
},
|
|
14
|
-
/** Paginated POR list: `{ data, total }`, newest first. */
|
|
15
|
-
async readRequestsPaginated(e) {
|
|
16
|
-
const t = e.dbName ?? s.currentLocationDBName, r = new URLSearchParams({
|
|
17
|
-
page: String(e.page),
|
|
18
|
-
limit: String(e.limit)
|
|
19
|
-
});
|
|
20
|
-
e.start && e.end && (r.set("startDate", e.start), r.set("endDate", e.end));
|
|
21
|
-
const n = `${o.inventoryBackendUrl}/${t}/purchase-request?${r.toString()}`;
|
|
22
|
-
return await a.get(n);
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* POR details from the SOURCE location's own route — the purchase order is
|
|
26
|
-
* resolved server-side (it may live in another business's db for a
|
|
27
|
-
* connected-business transfer).
|
|
28
|
-
*/
|
|
29
|
-
async readRequestDetailsV3(e, t) {
|
|
30
|
-
const r = t ?? s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${r}/v3/purchase-request/${e}/details`;
|
|
31
|
-
return await a.get(n);
|
|
32
|
-
},
|
|
33
|
-
/** v3 POR action (approve/reject/process) via the source-side operate endpoint. */
|
|
34
|
-
async operateRequestV3(e, t, r) {
|
|
35
|
-
const n = r ?? s.currentLocationDBName, d = `${o.inventoryBackendUrl}/${n}/v3/purchase-request/${e}/operate`;
|
|
36
|
-
return await a.put(d, t);
|
|
37
|
-
},
|
|
38
|
-
async readRequestById(e, t) {
|
|
39
|
-
const r = t ?? s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${r}/purchase-request/${e}`;
|
|
40
|
-
return await a.get(n);
|
|
41
|
-
},
|
|
42
|
-
async readRequestByIds(e, t) {
|
|
43
|
-
const r = t ?? s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${r}/purchase-request/find`;
|
|
44
|
-
return await a.post(n, { requestIds: e });
|
|
45
|
-
},
|
|
46
|
-
async getPurchaseOrders({
|
|
47
|
-
start: e,
|
|
48
|
-
end: t,
|
|
49
|
-
dbName: r
|
|
50
|
-
}) {
|
|
51
|
-
const n = r ?? s.currentLocationDBName, d = `${o.inventoryBackendUrl}/${n}/purchase-order`;
|
|
52
|
-
return await a.get(`${d}?start=${e}&end=${t}`);
|
|
53
|
-
},
|
|
54
|
-
async getLatestPurchaseOrderRequest(e) {
|
|
55
|
-
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-request/find-by-purchase-order-id`;
|
|
56
|
-
return await a.get(`${r}/${e}`);
|
|
57
|
-
},
|
|
58
|
-
async getPurchaseOrderById(e) {
|
|
59
|
-
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-order`;
|
|
60
|
-
return await a.get(`${r}/${e}`);
|
|
61
|
-
},
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Use `processPurchaseOrderV2` instead.
|
|
64
|
-
*/
|
|
65
|
-
async processPurchaseOrder(e, t) {
|
|
66
|
-
const r = s.currentLocationDBName, n = t || r, d = `${o.inventoryBackendUrl}/${n}/purchase-order/run-operation`;
|
|
67
|
-
return await a.put(d, e);
|
|
68
|
-
},
|
|
69
|
-
async createPurchaseOrder(e) {
|
|
70
|
-
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-order`;
|
|
71
|
-
return await a.post(r, e);
|
|
72
|
-
},
|
|
73
|
-
async updatePurchaseOrder(e) {
|
|
74
|
-
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-order`;
|
|
75
|
-
return await a.put(r, e);
|
|
76
|
-
},
|
|
77
|
-
async importFromXilnex(e) {
|
|
78
|
-
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/purchase-order/import-from-xilnex`;
|
|
79
|
-
return await a.post(r, e);
|
|
80
|
-
},
|
|
81
|
-
async processPurchaseOrderV2(e, t) {
|
|
82
|
-
const r = s.currentLocationDBName, n = t || r, d = `${o.inventoryBackendUrl}/${n}/v2/purchase-order/run-operation`;
|
|
83
|
-
return await a.put(d, e);
|
|
84
|
-
},
|
|
85
|
-
/**
|
|
86
|
-
* v3 (event-driven engine) run-operation. Same `{_id,_rev,action,payloads}`
|
|
87
|
-
* contract as v2, but execution goes through the v3 workflow engine — needed
|
|
88
|
-
* for connected-business (version 3) POs so `createRequest` runs on submit.
|
|
89
|
-
*/
|
|
90
|
-
async processPurchaseOrderV3(e, t) {
|
|
91
|
-
const r = s.currentLocationDBName, n = t || r, d = `${o.inventoryBackendUrl}/${n}/v3/purchase-order/run-operation`;
|
|
92
|
-
return await a.put(d, e);
|
|
93
|
-
},
|
|
94
|
-
async getWorkflowConfig() {
|
|
95
|
-
var n;
|
|
96
|
-
const t = `business_${(n = l.currentBusiness.value) == null ? void 0 : n._id}`, r = `${o.inventoryBackendUrl}/${t}/v2/purchase-order/workflow-config`;
|
|
97
|
-
return await a.get(r);
|
|
98
|
-
},
|
|
99
|
-
async updateDeliveryOrder(e) {
|
|
100
|
-
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/delivery-order`;
|
|
101
|
-
return await a.put(r, e);
|
|
102
|
-
},
|
|
103
|
-
async createDeliveryOrder(e) {
|
|
104
|
-
const t = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${t}/delivery-order`;
|
|
105
|
-
return await a.post(r, e);
|
|
106
|
-
},
|
|
107
|
-
async getDeliveryOrderTrails(e, t) {
|
|
108
|
-
const r = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${r}/delivery-order/audit-trails`;
|
|
109
|
-
return await a.post(n, { purchaseOrderId: e, deliveryOrderId: t });
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
}), F = { key: 0 }, j = { key: 1 }, R = { key: 2 }, W = /* @__PURE__ */ O({
|
|
113
|
-
__name: "SystemTrailDialog",
|
|
114
|
-
props: {
|
|
115
|
-
purchaseOrderId: {},
|
|
116
|
-
deliveryOrderId: {},
|
|
117
|
-
adjustmentId: {},
|
|
118
|
-
closingId: {}
|
|
119
|
-
},
|
|
120
|
-
setup(o) {
|
|
121
|
-
const a = o, s = P(), l = C(), e = S(), t = m(!1), r = A(), n = m([]), d = m("");
|
|
122
|
-
async function B() {
|
|
123
|
-
a.adjustmentId ? await l.getAuditTrails(a.adjustmentId).then((c) => {
|
|
124
|
-
n.value = c;
|
|
125
|
-
}) : a.closingId ? await e.getAuditTrails(a.closingId).then((c) => {
|
|
126
|
-
n.value = c;
|
|
127
|
-
}) : a.purchaseOrderId && a.deliveryOrderId && await s.getDeliveryOrderTrails(a.purchaseOrderId, a.deliveryOrderId).then((c) => {
|
|
128
|
-
n.value = c;
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
function w(c) {
|
|
132
|
-
r.open({
|
|
133
|
-
title: "Metadata",
|
|
134
|
-
contentComponent: h(
|
|
135
|
-
"pre",
|
|
136
|
-
{ class: "bg-gray-100 p-4 rounded whitespace-pre-wrap" },
|
|
137
|
-
JSON.stringify(c, null, 2)
|
|
138
|
-
)
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
const N = [
|
|
142
|
-
{
|
|
143
|
-
accessorKey: "createdAt",
|
|
144
|
-
header: () => "Created At"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
accessorKey: "createdBy",
|
|
148
|
-
header: () => "Created By",
|
|
149
|
-
cell: (c) => c.getValue().name
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
accessorKey: "message",
|
|
153
|
-
header: () => "Message"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
accessorKey: "metadata",
|
|
157
|
-
header: () => "Metadata",
|
|
158
|
-
cell: (c) => h(V.FmButton, {
|
|
159
|
-
label: "View",
|
|
160
|
-
onClick: () => w(c.getValue())
|
|
161
|
-
}),
|
|
162
|
-
meta: {
|
|
163
|
-
cellSpanClass: ""
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
];
|
|
167
|
-
return (c, $) => {
|
|
168
|
-
const D = p("FmButton"), b = p("FmTable"), f = p("FmDialog");
|
|
169
|
-
return i(), I(f, {
|
|
170
|
-
modelValue: t.value,
|
|
171
|
-
"onUpdate:modelValue": $[0] || ($[0] = (k) => t.value = k),
|
|
172
|
-
overlay: !0,
|
|
173
|
-
dismissAway: "",
|
|
174
|
-
"max-width": "800px"
|
|
175
|
-
}, {
|
|
176
|
-
"dialog-button": u(() => [
|
|
177
|
-
y(U, null, {
|
|
178
|
-
default: u(() => [
|
|
179
|
-
y(D, {
|
|
180
|
-
variant: "plain",
|
|
181
|
-
label: "Trails",
|
|
182
|
-
size: "md",
|
|
183
|
-
"prepend-icon": "overview",
|
|
184
|
-
onClick: B
|
|
185
|
-
})
|
|
186
|
-
]),
|
|
187
|
-
_: 1
|
|
188
|
-
})
|
|
189
|
-
]),
|
|
190
|
-
"dialog-header": u(() => [
|
|
191
|
-
c.adjustmentId ? (i(), v("div", F, 'Adjustment Template "' + g(c.adjustmentId) + '" Trails', 1)) : c.closingId ? (i(), v("div", j, 'Closing Template "' + g(c.closingId) + '" Trails', 1)) : (i(), v("div", R, 'Delivery Order "' + g(c.deliveryOrderId) + '" Trails', 1))
|
|
192
|
-
]),
|
|
193
|
-
default: u(() => [
|
|
194
|
-
L("div", null, [
|
|
195
|
-
y(b, {
|
|
196
|
-
"row-data": n.value,
|
|
197
|
-
"column-defs": N,
|
|
198
|
-
"search-value": d.value,
|
|
199
|
-
"shrink-at": !1
|
|
200
|
-
}, null, 8, ["row-data", "search-value"])
|
|
201
|
-
])
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
}, 8, ["modelValue"]);
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
export {
|
|
209
|
-
W as _,
|
|
210
|
-
P as u
|
|
211
|
-
};
|