@revenexx/cover 0.1.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/LICENSE +21 -0
- package/README.md +39 -0
- package/app/api/account.ts +8 -0
- package/app/api/categories.ts +3 -0
- package/app/api/checkout.ts +6 -0
- package/app/api/images.ts +4 -0
- package/app/api/markets.ts +3 -0
- package/app/api/product.ts +3 -0
- package/app/api/products.ts +4 -0
- package/app/api/search.ts +4 -0
- package/app/app.config.ts +29 -0
- package/app/assets/css/cover.css +25 -0
- package/app/components/account/AccountMenu.vue +30 -0
- package/app/components/account/AccountShell.vue +18 -0
- package/app/components/account/AccountSidebar.vue +90 -0
- package/app/components/account/address/AccountAddressCard.vue +287 -0
- package/app/components/account/carts/AccountCartsTable.vue +284 -0
- package/app/components/account/dashboard/AccountDashboard.vue +351 -0
- package/app/components/account/directorder/AccountDirectOrder.vue +512 -0
- package/app/components/account/governance/AccountApprovalLimitsTable.vue +221 -0
- package/app/components/account/governance/AccountCostCenterDetail.vue +276 -0
- package/app/components/account/governance/AccountCostCentersTable.vue +252 -0
- package/app/components/account/governance/AccountRequisitionDetail.vue +295 -0
- package/app/components/account/governance/AccountRequisitionsTable.vue +255 -0
- package/app/components/account/governance/AccountWorkflowDetail.vue +215 -0
- package/app/components/account/governance/AccountWorkflowsTable.vue +168 -0
- package/app/components/account/governance/GovernanceApprovalLimitModal.vue +183 -0
- package/app/components/account/governance/GovernanceCostCenterModal.vue +188 -0
- package/app/components/account/governance/GovernanceWorkflowModal.vue +191 -0
- package/app/components/account/orderlists/AccountOrderListDetail.vue +349 -0
- package/app/components/account/orderlists/AccountOrderListsTable.vue +352 -0
- package/app/components/account/orders/AccountOrderDetail.vue +376 -0
- package/app/components/account/orders/AccountOrdersTable.vue +281 -0
- package/app/components/account/preferences/AccountPreferences.vue +50 -0
- package/app/components/auth/AuthForgotPasswordPanel.vue +88 -0
- package/app/components/auth/AuthLoginPanel.vue +103 -0
- package/app/components/auth/AuthLoginTeaser.vue +24 -0
- package/app/components/auth/AuthPageHeader.vue +21 -0
- package/app/components/auth/AuthRegisterPanel.vue +431 -0
- package/app/components/auth/AuthRegisterTeaser.vue +24 -0
- package/app/components/auth/AuthResetPasswordPanel.vue +115 -0
- package/app/components/cart/CartButton.vue +42 -0
- package/app/components/cart/actions/CartCostCenterModal.vue +110 -0
- package/app/components/cart/actions/CartExportModal.vue +82 -0
- package/app/components/cart/actions/CartPositionTextsModal.vue +92 -0
- package/app/components/cart/actions/CartSaveToListModal.vue +177 -0
- package/app/components/cart/actions/CartWorkflowPickerModal.vue +64 -0
- package/app/components/cart/drawer/CartDrawer.vue +49 -0
- package/app/components/cart/item/CartItem.vue +318 -0
- package/app/components/cart/manage/CartNameModal.vue +68 -0
- package/app/components/cart/position/CartPosition.vue +369 -0
- package/app/components/cart/quickadd/CartQuickAdd.vue +145 -0
- package/app/components/cart/recommend/CartCrossSell.vue +102 -0
- package/app/components/cart/recommend/CartRecommendCard.vue +59 -0
- package/app/components/cart/recommend/CartReorderStrip.vue +108 -0
- package/app/components/cart/requisition/CartRequisitionGroup.vue +74 -0
- package/app/components/cart/skeleton/CartSkeleton.vue +18 -0
- package/app/components/cart/summary/CartSummary.vue +25 -0
- package/app/components/cart/summary/CartSummaryBreakdown.vue +35 -0
- package/app/components/cart/switcher/CartSwitcher.vue +147 -0
- package/app/components/cart/target/CartTargetModal.vue +129 -0
- package/app/components/cart/view/CartApprovalsPanel.vue +89 -0
- package/app/components/cart/view/CartListHeader.vue +86 -0
- package/app/components/cart/view/CartPositionList.vue +94 -0
- package/app/components/cart/view/CartSummaryPanel.vue +254 -0
- package/app/components/cart/view/CartView.vue +310 -0
- package/app/components/category/info/CategoryPrice.vue +47 -0
- package/app/components/category/info/CategorySku.vue +15 -0
- package/app/components/category/info/CategoryStock.vue +25 -0
- package/app/components/category/list/CategoryItemCount.vue +27 -0
- package/app/components/category/list/CategoryListPagination.vue +81 -0
- package/app/components/category/skeleton/CategoryDetailSkeleton.vue +12 -0
- package/app/components/category/skeleton/CategoryListSkeleton.vue +65 -0
- package/app/components/category/view/CategoryViewToggle.vue +33 -0
- package/app/components/category/view/GridView.vue +78 -0
- package/app/components/category/view/ListView.vue +80 -0
- package/app/components/checkout/confirmation/CheckoutConfirmationView.vue +289 -0
- package/app/components/checkout/form/CheckoutSchemaForm.vue +72 -0
- package/app/components/checkout/onepage/CheckoutAddressPickerModal.vue +260 -0
- package/app/components/checkout/onepage/CheckoutAddressSection.vue +186 -0
- package/app/components/checkout/onepage/CheckoutDeliverySection.vue +158 -0
- package/app/components/checkout/onepage/CheckoutGate.vue +67 -0
- package/app/components/checkout/onepage/CheckoutGuestDetailsSection.vue +154 -0
- package/app/components/checkout/onepage/CheckoutNotesSection.vue +62 -0
- package/app/components/checkout/onepage/CheckoutOnePageView.vue +77 -0
- package/app/components/checkout/onepage/CheckoutPaymentSection.vue +181 -0
- package/app/components/checkout/onepage/CheckoutSectionTitle.vue +18 -0
- package/app/components/checkout/onepage/CheckoutSummarySection.vue +211 -0
- package/app/components/checkout/onepage/CheckoutWorkflowPanel.vue +38 -0
- package/app/components/layout/AppLogo.vue +21 -0
- package/app/components/layout/footer/Footer.vue +148 -0
- package/app/components/layout/header/AppBar.vue +75 -0
- package/app/components/layout/header/CategoryNav.vue +93 -0
- package/app/components/layout/header/HeaderActionItem.vue +81 -0
- package/app/components/layout/header/LocaleSwitcher.vue +123 -0
- package/app/components/layout/header/MainNav.vue +61 -0
- package/app/components/layout/header/MobileMenu.vue +81 -0
- package/app/components/layout/header/TopBar.vue +63 -0
- package/app/components/listing/ListingView.vue +227 -0
- package/app/components/product/detail/ProductDetailAddToCart.vue +188 -0
- package/app/components/product/detail/ProductDetailDescription.vue +20 -0
- package/app/components/product/detail/ProductDetailImageGallery.vue +58 -0
- package/app/components/product/detail/ProductDetailPricing.vue +108 -0
- package/app/components/product/detail/ProductDetailSaveToList.vue +291 -0
- package/app/components/product/detail/ProductDetailSpecifications.vue +33 -0
- package/app/components/product/detail/ProductDetailStock.vue +36 -0
- package/app/components/search/filter/SearchFacets.vue +256 -0
- package/app/components/search/filter/SearchFacetsDrawer.vue +58 -0
- package/app/components/ui/AppShell.vue +7 -0
- package/app/components/ui/debug/PiniaStateCard.vue +106 -0
- package/app/components/ui/feedback/EmptyState.vue +30 -0
- package/app/components/ui/feedback/ErrorBoundary.vue +44 -0
- package/app/components/ui/feedback/NotFound.vue +34 -0
- package/app/components/ui/forms/CountrySelection.vue +14 -0
- package/app/components/ui/forms/FormKitDatePicker.vue +124 -0
- package/app/components/ui/forms/PasswordInput.vue +136 -0
- package/app/components/ui/forms/SearchInput.vue +213 -0
- package/app/components/ui/table/TableSortButton.vue +51 -0
- package/app/components/ui/table/TableToolbar.vue +66 -0
- package/app/composables/useAccount.ts +27 -0
- package/app/composables/useAccountAddresses.ts +116 -0
- package/app/composables/useAccountOrders.ts +18 -0
- package/app/composables/useAppUrl.ts +38 -0
- package/app/composables/useAuthStore.ts +202 -0
- package/app/composables/useB2BContext.ts +23 -0
- package/app/composables/useCartActions.ts +25 -0
- package/app/composables/useCartCalculation.ts +90 -0
- package/app/composables/useCartSelection.ts +46 -0
- package/app/composables/useCartStore.ts +837 -0
- package/app/composables/useCartSummaryFormatting.ts +28 -0
- package/app/composables/useCategories.ts +29 -0
- package/app/composables/useCheckoutOnePage.ts +438 -0
- package/app/composables/useCheckoutProfileSource.ts +8 -0
- package/app/composables/useCheckoutSchema.ts +28 -0
- package/app/composables/useDataTable.ts +14 -0
- package/app/composables/useFormValidation.ts +29 -0
- package/app/composables/useIcons.ts +17 -0
- package/app/composables/useLocalePreferences.ts +45 -0
- package/app/composables/useMarkets.ts +15 -0
- package/app/composables/useProduct.ts +89 -0
- package/app/composables/useProductCard.ts +8 -0
- package/app/composables/useProductCardActions.ts +106 -0
- package/app/composables/useProductImage.ts +12 -0
- package/app/composables/useProductListing.ts +210 -0
- package/app/composables/useProductUrl.ts +17 -0
- package/app/composables/useProducts.ts +130 -0
- package/app/composables/useSearch.ts +12 -0
- package/app/composables/useThemeStore.ts +81 -0
- package/app/composables/useViewMode.ts +18 -0
- package/app/config/countries.ts +74 -0
- package/app/config/icons.ts +283 -0
- package/app/config/navigation.ts +191 -0
- package/app/config/palette.ts +13 -0
- package/app/config/themes.ts +20 -0
- package/app/formkit.config.ts +50 -0
- package/app/interfaces/account/address-list.ts +34 -0
- package/app/interfaces/account/order-list.ts +47 -0
- package/app/interfaces/account/order-lists.ts +35 -0
- package/app/interfaces/account/profile.ts +17 -0
- package/app/interfaces/account.ts +3 -0
- package/app/interfaces/address.ts +9 -0
- package/app/interfaces/auth.ts +104 -0
- package/app/interfaces/b2b.ts +234 -0
- package/app/interfaces/cart-calculation.ts +131 -0
- package/app/interfaces/cart-item.ts +45 -0
- package/app/interfaces/checkout-draft.ts +4 -0
- package/app/interfaces/checkout.ts +43 -0
- package/app/interfaces/delivery.ts +13 -0
- package/app/interfaces/market.ts +24 -0
- package/app/interfaces/payment.ts +19 -0
- package/app/interfaces/persisted-cart.ts +10 -0
- package/app/interfaces/product-detail.ts +54 -0
- package/app/interfaces/product-list.ts +33 -0
- package/app/interfaces/search-facets.ts +14 -0
- package/app/interfaces/validation.ts +14 -0
- package/app/layouts/default.vue +78 -0
- package/app/layouts/focus.vue +80 -0
- package/app/plugins/formkit-locale.client.ts +23 -0
- package/app/shared/constants.ts +1 -0
- package/app/validations/companyName.ts +18 -0
- package/app/validations/emailFormat.ts +10 -0
- package/app/validations/formValidationConfig.ts +50 -0
- package/app/validations/maxLength.ts +12 -0
- package/app/validations/minLength.ts +9 -0
- package/app/validations/optionalCompanyName.ts +23 -0
- package/app/validations/passwordsMatch.ts +5 -0
- package/app/validations/phoneNumber.ts +19 -0
- package/app/validations/required.ts +11 -0
- package/app/validations/termsRequired.ts +4 -0
- package/app/validations/types.ts +10 -0
- package/app/validations/zipCode.ts +15 -0
- package/i18n/locales/de/account.json +458 -0
- package/i18n/locales/de/auth.json +155 -0
- package/i18n/locales/de/cart.json +263 -0
- package/i18n/locales/de/checkout.json +217 -0
- package/i18n/locales/de/common.json +80 -0
- package/i18n/locales/de/cover.json +33 -0
- package/i18n/locales/de/order.json +1 -0
- package/i18n/locales/de/product.json +71 -0
- package/i18n/locales/de/search.json +54 -0
- package/i18n/locales/de/validation.json +12 -0
- package/i18n/locales/en/account.json +458 -0
- package/i18n/locales/en/auth.json +155 -0
- package/i18n/locales/en/cart.json +263 -0
- package/i18n/locales/en/checkout.json +217 -0
- package/i18n/locales/en/common.json +80 -0
- package/i18n/locales/en/cover.json +33 -0
- package/i18n/locales/en/order.json +1 -0
- package/i18n/locales/en/product.json +71 -0
- package/i18n/locales/en/search.json +54 -0
- package/i18n/locales/en/validation.json +12 -0
- package/nuxt.config.ts +109 -0
- package/package.json +65 -0
- package/public/img/product-placeholder.svg +8 -0
- package/public/templates/direct-order-template.csv +3 -0
- package/public/templates/direct-order-template.xlsx +0 -0
- package/server/api/account/address/[id].delete.ts +51 -0
- package/server/api/account/address/[id].put.ts +83 -0
- package/server/api/account/address/index.post.ts +60 -0
- package/server/api/account/addresses.get.ts +25 -0
- package/server/api/account/context.get.ts +16 -0
- package/server/api/account/governance/[domain]/[id].put.ts +57 -0
- package/server/api/account/governance/[domain].post.ts +111 -0
- package/server/api/account/order-lists/[id].delete.ts +22 -0
- package/server/api/account/order-lists/[id].get.ts +17 -0
- package/server/api/account/order-lists/[id].put.ts +46 -0
- package/server/api/account/order-lists/index.get.ts +14 -0
- package/server/api/account/order-lists/index.post.ts +38 -0
- package/server/api/account/orders/[id].get.ts +35 -0
- package/server/api/account/orders.get.ts +35 -0
- package/server/api/account/profile.get.ts +56 -0
- package/server/api/account/profile.put.ts +128 -0
- package/server/api/account/requisitions/[id].get.ts +15 -0
- package/server/api/account/requisitions.get.ts +23 -0
- package/server/api/auth/login.post.ts +37 -0
- package/server/api/auth/logout.post.ts +4 -0
- package/server/api/auth/me.get.ts +3 -0
- package/server/api/auth/personas.get.ts +7 -0
- package/server/api/auth/recovery.post.ts +32 -0
- package/server/api/auth/recovery.put.ts +37 -0
- package/server/api/auth/register.post.ts +126 -0
- package/server/api/cart/calculate.post.ts +25 -0
- package/server/api/cart/export.post.ts +81 -0
- package/server/api/cart/index.delete.ts +10 -0
- package/server/api/cart/index.get.ts +10 -0
- package/server/api/cart/sync.post.ts +14 -0
- package/server/api/carts/[id]/activate.post.ts +18 -0
- package/server/api/carts/[id]/index.delete.ts +18 -0
- package/server/api/carts/[id]/index.put.ts +19 -0
- package/server/api/carts/[id]/items.post.ts +21 -0
- package/server/api/carts/index.get.ts +14 -0
- package/server/api/carts/index.post.ts +14 -0
- package/server/api/categories/[slug].get.ts +22 -0
- package/server/api/categories/index.get.ts +11 -0
- package/server/api/checkout/profile.get.ts +21 -0
- package/server/api/checkout/schema/[key].get.ts +19 -0
- package/server/api/checkout/session.post.ts +8 -0
- package/server/api/images/detail/[filename].get.ts +18 -0
- package/server/api/images/list/[filename].get.ts +17 -0
- package/server/api/markets.get.ts +9 -0
- package/server/api/orders/index.post.ts +376 -0
- package/server/api/payment/methods.post.ts +65 -0
- package/server/api/product/[id].get.ts +29 -0
- package/server/api/products/[id].get.ts +30 -0
- package/server/api/products/index.get.ts +21 -0
- package/server/api/requisitions/index.post.ts +67 -0
- package/server/api/shipping/rates.post.ts +70 -0
- package/server/api/themes/index.get.ts +9 -0
- package/server/api/typesense/drop.get.ts +22 -0
- package/server/api/typesense/health.get.ts +9 -0
- package/server/api/typesense/search.post.ts +199 -0
- package/server/api/typesense/seed.get.ts +112 -0
- package/server/api/typesense/suggest.post.ts +69 -0
- package/server/config/account/organization.json +146 -0
- package/server/config/account/personas.json +169 -0
- package/server/config/account/user.json +8 -0
- package/server/config/account/workflows.json +19 -0
- package/server/data/account/address-list.json +103 -0
- package/server/data/account/order-list.json +491 -0
- package/server/data/account/order-lists.json +149 -0
- package/server/data/account/profile.json +9 -0
- package/server/data/account/registration-requests.json +3 -0
- package/server/data/account/requisitions.json +686 -0
- package/server/data/categories.json +186 -0
- package/server/data/forms/checkout/add-address.json +24 -0
- package/server/data/list/5137-1.png +0 -0
- package/server/data/list/5498-1.png +0 -0
- package/server/data/list/5498-2.png +0 -0
- package/server/data/list/5498-3.png +0 -0
- package/server/data/list/5498-4.png +0 -0
- package/server/data/list/5498-5.png +0 -0
- package/server/data/list/5498-6.png +0 -0
- package/server/data/list/5519-1.png +0 -0
- package/server/data/list/5713-1.png +0 -0
- package/server/data/list/5789-1.png +0 -0
- package/server/data/list/5930-1.png +0 -0
- package/server/data/list/6127-1.png +0 -0
- package/server/data/list/6234-1.png +0 -0
- package/server/data/list/6238-1.png +0 -0
- package/server/data/list/6246-1.png +0 -0
- package/server/data/list/6270-1.png +0 -0
- package/server/data/list/6330-1.png +0 -0
- package/server/data/list/6336-1.png +0 -0
- package/server/data/list/6360-1.png +0 -0
- package/server/data/list/6363-1.png +0 -0
- package/server/data/list/6375-1.png +0 -0
- package/server/data/list/6385-1.png +0 -0
- package/server/data/list/6413-1.png +0 -0
- package/server/data/list/6418-1.png +0 -0
- package/server/data/list/6465-1.png +0 -0
- package/server/data/list/6477-1.png +0 -0
- package/server/data/list/6509-1.png +0 -0
- package/server/data/list/6545-1.png +0 -0
- package/server/data/list/6548-1.png +0 -0
- package/server/data/list/6566-1.png +0 -0
- package/server/data/list/6581-1.png +0 -0
- package/server/data/list/6609-1.png +0 -0
- package/server/data/list/6611-1.png +0 -0
- package/server/data/list/6641-1.png +0 -0
- package/server/data/list/6659-1.png +0 -0
- package/server/data/list/6662-1.png +0 -0
- package/server/data/list/6689-1.png +0 -0
- package/server/data/list/6698-1.png +0 -0
- package/server/data/list/6701-1.png +0 -0
- package/server/data/list/6752-1.png +0 -0
- package/server/data/list/6755-1.png +0 -0
- package/server/data/list/6837-1.png +0 -0
- package/server/data/list/6841-1.png +0 -0
- package/server/data/list/6844-1.png +0 -0
- package/server/data/list/6846-1.png +0 -0
- package/server/data/list/6886-1.png +0 -0
- package/server/data/list/6895-1.png +0 -0
- package/server/data/list/6897-1.png +0 -0
- package/server/data/list/6919-1.png +0 -0
- package/server/data/list/6977-1.png +0 -0
- package/server/data/list/6983-1.png +0 -0
- package/server/data/list/6984-1.png +0 -0
- package/server/data/list/6985-1.png +0 -0
- package/server/data/list/6986-1.png +0 -0
- package/server/data/list/6989-1.png +0 -0
- package/server/data/list/6995-1.png +0 -0
- package/server/data/list/6998-1.png +0 -0
- package/server/data/markets.json +24 -0
- package/server/data/product-detail.json +2450 -0
- package/server/data/product-list.json +2450 -0
- package/server/data/themes.json +8 -0
- package/server/interfaces/account.ts +20 -0
- package/server/interfaces/auth.ts +32 -0
- package/server/interfaces/b2bContext.ts +23 -0
- package/server/interfaces/cart.ts +46 -0
- package/server/interfaces/cartCalculation.ts +17 -0
- package/server/interfaces/category.ts +12 -0
- package/server/interfaces/checkoutProfile.ts +5 -0
- package/server/interfaces/log.ts +3 -0
- package/server/interfaces/market.ts +10 -0
- package/server/interfaces/product.ts +21 -0
- package/server/interfaces/schema.ts +20 -0
- package/server/interfaces/theme.ts +10 -0
- package/server/services/ApiAuthService.ts +138 -0
- package/server/services/ApiCartService.ts +254 -0
- package/server/services/ApiCategoryService.ts +25 -0
- package/server/services/ApiMarketService.ts +71 -0
- package/server/services/ApiProductService.ts +53 -0
- package/server/services/LocalFileCategoryService.ts +23 -0
- package/server/services/LocalFileCheckoutProfileService.ts +117 -0
- package/server/services/LocalFileProductService.ts +128 -0
- package/server/services/LocalFileSchemaService.ts +70 -0
- package/server/services/LocalFileThemeService.ts +18 -0
- package/server/services/LogService.ts +28 -0
- package/server/services/MockAccountService.ts +58 -0
- package/server/services/MockAuthService.ts +105 -0
- package/server/services/MockB2BContextService.ts +149 -0
- package/server/services/MockCartCalculationService.ts +395 -0
- package/server/services/MockMarketService.ts +18 -0
- package/server/services/SdkAccountService.ts +56 -0
- package/server/services/SdkAuthService.ts +83 -0
- package/server/services/SessionCartService.ts +31 -0
- package/server/utils/accountService.ts +30 -0
- package/server/utils/authCookie.ts +13 -0
- package/server/utils/authService.ts +43 -0
- package/server/utils/b2bService.ts +49 -0
- package/server/utils/cartService.ts +59 -0
- package/server/utils/categoryService.ts +19 -0
- package/server/utils/checkoutProfileService.ts +9 -0
- package/server/utils/checkoutSession.ts +38 -0
- package/server/utils/coverData.ts +84 -0
- package/server/utils/governanceStore.ts +38 -0
- package/server/utils/i18n.ts +76 -0
- package/server/utils/inventoryService.ts +14 -0
- package/server/utils/liveCatalog.ts +234 -0
- package/server/utils/liveInventories.ts +76 -0
- package/server/utils/liveOrders.ts +139 -0
- package/server/utils/livePrices.ts +93 -0
- package/server/utils/locale.ts +39 -0
- package/server/utils/logService.ts +19 -0
- package/server/utils/marketService.ts +24 -0
- package/server/utils/orderService.ts +14 -0
- package/server/utils/paymentService.ts +14 -0
- package/server/utils/priceService.ts +14 -0
- package/server/utils/productService.ts +28 -0
- package/server/utils/productsSchema.ts +30 -0
- package/server/utils/revenexxApi.ts +136 -0
- package/server/utils/schemaService.ts +25 -0
- package/server/utils/serviceMode.ts +70 -0
- package/server/utils/shippingService.ts +14 -0
- package/server/utils/shopSdk.ts +88 -0
- package/server/utils/themeService.ts +16 -0
- package/server/utils/typesense.ts +27 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import GovernanceApprovalLimitModal from "./GovernanceApprovalLimitModal.vue";
|
|
3
|
+
import type { TableColumn } from "@nuxt/ui";
|
|
4
|
+
|
|
5
|
+
import type { ApprovalLimit } from "../../../interfaces/b2b";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The approval limits applying to the current user as a data table:
|
|
9
|
+
* type, threshold/budget, approver, deputy and escalation time frames.
|
|
10
|
+
* Search, type filter pills and sortable columns per datatable-ux.
|
|
11
|
+
*/
|
|
12
|
+
const { icon } = useIcons();
|
|
13
|
+
const { t } = useI18n();
|
|
14
|
+
const { context, role, status, refresh } = useB2BContext();
|
|
15
|
+
const { formatCurrency } = useCartSummaryFormatting();
|
|
16
|
+
const { tableUi } = useDataTable();
|
|
17
|
+
|
|
18
|
+
const canManage = computed(() => role.value === "admin" || role.value === "approver" || role.value === "buyer");
|
|
19
|
+
const modalOpen = ref(false);
|
|
20
|
+
|
|
21
|
+
const limits = computed(() => context.value?.approvalLimits ?? []);
|
|
22
|
+
|
|
23
|
+
/* ---- search + type filter -------------------------------------------- */
|
|
24
|
+
const search = ref("");
|
|
25
|
+
const typeFilter = ref<string>("all");
|
|
26
|
+
|
|
27
|
+
const searched = computed(() => {
|
|
28
|
+
const query = search.value.trim().toLowerCase();
|
|
29
|
+
if (!query) {
|
|
30
|
+
return limits.value;
|
|
31
|
+
}
|
|
32
|
+
return limits.value.filter(limit =>
|
|
33
|
+
[limit.label, limit.approval.approverName ?? "", limit.approval.deputyName ?? ""]
|
|
34
|
+
.some(value => value.toLowerCase().includes(query)),
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const filtered = computed(() =>
|
|
39
|
+
typeFilter.value === "all"
|
|
40
|
+
? searched.value
|
|
41
|
+
: searched.value.filter(limit => limit.type === typeFilter.value),
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const LIMIT_TYPES: ApprovalLimit["type"][] = ["budget", "order-value", "unit-price", "non-catalog"];
|
|
45
|
+
|
|
46
|
+
const filterItems = computed(() => [
|
|
47
|
+
{ value: "all", label: t("table.filterAll"), count: searched.value.length },
|
|
48
|
+
...LIMIT_TYPES
|
|
49
|
+
.map(value => ({
|
|
50
|
+
value,
|
|
51
|
+
label: t(`governance.approvals.types.${value}`),
|
|
52
|
+
count: searched.value.filter(limit => limit.type === value).length,
|
|
53
|
+
}))
|
|
54
|
+
.filter(item => item.count > 0),
|
|
55
|
+
]);
|
|
56
|
+
|
|
57
|
+
/* ---- columns + sorting ------------------------------------------------ */
|
|
58
|
+
const sorting = ref([{ id: "label", desc: false }]);
|
|
59
|
+
|
|
60
|
+
const columns = computed<TableColumn<ApprovalLimit>[]>(() => [
|
|
61
|
+
{ accessorKey: "label", header: t("governance.approvals.columns.label") },
|
|
62
|
+
{ id: "type", header: t("governance.approvals.columns.type"), enableSorting: false },
|
|
63
|
+
{
|
|
64
|
+
id: "threshold",
|
|
65
|
+
accessorFn: row => row.maxAmount ?? row.availableBudget ?? row.totalBudget ?? -1,
|
|
66
|
+
header: t("governance.approvals.columns.threshold"),
|
|
67
|
+
meta: { class: { th: "text-right", td: "text-right" } },
|
|
68
|
+
},
|
|
69
|
+
{ id: "approval", header: t("governance.approvals.columns.approval"), enableSorting: false },
|
|
70
|
+
{ id: "deputy", header: t("governance.approvals.columns.deputy"), enableSorting: false },
|
|
71
|
+
]);
|
|
72
|
+
|
|
73
|
+
const typeColors: Record<ApprovalLimit["type"], "primary" | "info" | "warning" | "neutral"> = {
|
|
74
|
+
"budget": "primary",
|
|
75
|
+
"order-value": "info",
|
|
76
|
+
"unit-price": "warning",
|
|
77
|
+
"non-catalog": "neutral",
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
function thresholdLabel(limit: ApprovalLimit): string | null {
|
|
81
|
+
if (limit.type === "budget" && limit.totalBudget !== undefined) {
|
|
82
|
+
return t("governance.approvals.budgetOf", {
|
|
83
|
+
available: formatCurrency(limit.availableBudget ?? limit.totalBudget),
|
|
84
|
+
total: formatCurrency(limit.totalBudget),
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
if (limit.maxAmount !== undefined) {
|
|
88
|
+
return formatCurrency(limit.maxAmount);
|
|
89
|
+
}
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
</script>
|
|
93
|
+
|
|
94
|
+
<template>
|
|
95
|
+
<div>
|
|
96
|
+
<UiTableToolbar
|
|
97
|
+
v-model:search="search"
|
|
98
|
+
v-model:filter="typeFilter"
|
|
99
|
+
:search-placeholder="t('governance.approvals.searchPlaceholder')"
|
|
100
|
+
:filter-items="filterItems"
|
|
101
|
+
>
|
|
102
|
+
<template
|
|
103
|
+
v-if="canManage"
|
|
104
|
+
#actions
|
|
105
|
+
>
|
|
106
|
+
<UButton
|
|
107
|
+
color="primary"
|
|
108
|
+
tabindex="0"
|
|
109
|
+
:icon="icon('plus')"
|
|
110
|
+
:label="t('governance.approvals.add')"
|
|
111
|
+
@click="modalOpen = true"
|
|
112
|
+
/>
|
|
113
|
+
</template>
|
|
114
|
+
</UiTableToolbar>
|
|
115
|
+
|
|
116
|
+
<UTable
|
|
117
|
+
v-model:sorting="sorting"
|
|
118
|
+
:data="filtered"
|
|
119
|
+
:columns="columns"
|
|
120
|
+
:loading="status === 'pending'"
|
|
121
|
+
:ui="tableUi"
|
|
122
|
+
>
|
|
123
|
+
<template #label-header="{ column }">
|
|
124
|
+
<UiTableSortButton
|
|
125
|
+
:column="column"
|
|
126
|
+
:label="t('governance.approvals.columns.label')"
|
|
127
|
+
/>
|
|
128
|
+
</template>
|
|
129
|
+
<template #threshold-header="{ column }">
|
|
130
|
+
<UiTableSortButton
|
|
131
|
+
:column="column"
|
|
132
|
+
:label="t('governance.approvals.columns.threshold')"
|
|
133
|
+
/>
|
|
134
|
+
</template>
|
|
135
|
+
|
|
136
|
+
<template #label-cell="{ row }">
|
|
137
|
+
<span class="font-semibold text-highlighted">{{ row.original.label }}</span>
|
|
138
|
+
</template>
|
|
139
|
+
<template #type-cell="{ row }">
|
|
140
|
+
<UBadge
|
|
141
|
+
:color="typeColors[row.original.type]"
|
|
142
|
+
variant="subtle"
|
|
143
|
+
size="sm"
|
|
144
|
+
:label="t(`governance.approvals.types.${row.original.type}`)"
|
|
145
|
+
/>
|
|
146
|
+
</template>
|
|
147
|
+
<template #threshold-cell="{ row }">
|
|
148
|
+
<span
|
|
149
|
+
v-if="thresholdLabel(row.original)"
|
|
150
|
+
class="tabular-nums"
|
|
151
|
+
>{{ thresholdLabel(row.original) }}</span>
|
|
152
|
+
<span
|
|
153
|
+
v-else
|
|
154
|
+
class="text-dimmed"
|
|
155
|
+
>—</span>
|
|
156
|
+
</template>
|
|
157
|
+
<template #approval-cell="{ row }">
|
|
158
|
+
<template v-if="row.original.approval.required">
|
|
159
|
+
{{ row.original.approval.approverName }}
|
|
160
|
+
<span
|
|
161
|
+
v-if="row.original.approval.timeLimitHours"
|
|
162
|
+
class="text-muted"
|
|
163
|
+
>
|
|
164
|
+
· {{ t('governance.approvals.timeFrame', { hours: row.original.approval.timeLimitHours }) }}
|
|
165
|
+
</span>
|
|
166
|
+
</template>
|
|
167
|
+
<UBadge
|
|
168
|
+
v-else
|
|
169
|
+
color="neutral"
|
|
170
|
+
variant="subtle"
|
|
171
|
+
size="sm"
|
|
172
|
+
:label="t('governance.approvals.infoOnly')"
|
|
173
|
+
/>
|
|
174
|
+
</template>
|
|
175
|
+
<template #deputy-cell="{ row }">
|
|
176
|
+
<span v-if="row.original.approval.deputyName">
|
|
177
|
+
{{ row.original.approval.deputyName }}
|
|
178
|
+
<span
|
|
179
|
+
v-if="row.original.approval.deputyTimeLimitHours"
|
|
180
|
+
class="text-muted"
|
|
181
|
+
>
|
|
182
|
+
· {{ t('governance.approvals.timeFrame', { hours: row.original.approval.deputyTimeLimitHours }) }}
|
|
183
|
+
</span>
|
|
184
|
+
</span>
|
|
185
|
+
<span
|
|
186
|
+
v-else
|
|
187
|
+
class="text-dimmed"
|
|
188
|
+
>—</span>
|
|
189
|
+
</template>
|
|
190
|
+
|
|
191
|
+
<template #loading>
|
|
192
|
+
<div class="space-y-3 py-2">
|
|
193
|
+
<USkeleton
|
|
194
|
+
v-for="index in 4"
|
|
195
|
+
:key="index"
|
|
196
|
+
class="h-9 w-full"
|
|
197
|
+
/>
|
|
198
|
+
</div>
|
|
199
|
+
</template>
|
|
200
|
+
<template #empty>
|
|
201
|
+
<UiFeedbackEmptyState
|
|
202
|
+
v-if="search || typeFilter !== 'all'"
|
|
203
|
+
:icon="icon('no-results')"
|
|
204
|
+
:title="t('table.noResults.title')"
|
|
205
|
+
:description="t('table.noResults.description')"
|
|
206
|
+
/>
|
|
207
|
+
<UiFeedbackEmptyState
|
|
208
|
+
v-else
|
|
209
|
+
:icon="icon('empty')"
|
|
210
|
+
:title="t('governance.approvals.empty.title')"
|
|
211
|
+
:description="t('governance.approvals.empty.description')"
|
|
212
|
+
/>
|
|
213
|
+
</template>
|
|
214
|
+
</UTable>
|
|
215
|
+
|
|
216
|
+
<GovernanceApprovalLimitModal
|
|
217
|
+
v-model:open="modalOpen"
|
|
218
|
+
@saved="refresh"
|
|
219
|
+
/>
|
|
220
|
+
</div>
|
|
221
|
+
</template>
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import GovernanceCostCenterModal from "./GovernanceCostCenterModal.vue";
|
|
3
|
+
|
|
4
|
+
import type { Requisition, RequisitionStatus } from "../../../interfaces/b2b";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Detail page content of one cost center: budget with utilization, the
|
|
8
|
+
* full approval rule (approver, deputy, escalation time frames) and the
|
|
9
|
+
* requisitions charged to it; editing via modal.
|
|
10
|
+
*/
|
|
11
|
+
const props = defineProps<{
|
|
12
|
+
costCenterId: string;
|
|
13
|
+
}>();
|
|
14
|
+
|
|
15
|
+
const { icon } = useIcons();
|
|
16
|
+
const { t, d } = useI18n();
|
|
17
|
+
const localePath = useLocalePath();
|
|
18
|
+
const { costCenters, role, refresh, status } = useB2BContext();
|
|
19
|
+
const { formatCurrency } = useCartSummaryFormatting();
|
|
20
|
+
|
|
21
|
+
const costCenter = computed(() =>
|
|
22
|
+
costCenters.value.find(cc => cc.id === props.costCenterId) ?? null,
|
|
23
|
+
);
|
|
24
|
+
const canManage = computed(() => role.value !== null && role.value !== "requester");
|
|
25
|
+
|
|
26
|
+
const utilization = computed(() => {
|
|
27
|
+
const limit = costCenter.value?.limit;
|
|
28
|
+
if (!limit?.totalBudget || limit.availableBudget === undefined) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return Math.min(100, Math.round(((limit.totalBudget - limit.availableBudget) / limit.totalBudget) * 100));
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/* ---- requisitions charged to this cost center -------------------------- */
|
|
35
|
+
const { data: requisitions } = useFetch<Requisition[]>("/api/account/requisitions", {
|
|
36
|
+
key: "account-requisitions",
|
|
37
|
+
default: () => [],
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const chargedRequisitions = computed(() =>
|
|
41
|
+
requisitions.value
|
|
42
|
+
.filter(requisition => requisition.items.some(item => item.costCenterId === props.costCenterId))
|
|
43
|
+
.slice(0, 6));
|
|
44
|
+
|
|
45
|
+
const statusColors: Record<RequisitionStatus, "warning" | "success" | "error"> = {
|
|
46
|
+
open: "warning",
|
|
47
|
+
ordered: "success",
|
|
48
|
+
cancelled: "error",
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const formatDate = (value: string) => d(new Date(value), { dateStyle: "medium" });
|
|
52
|
+
|
|
53
|
+
const editOpen = ref(false);
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<template>
|
|
57
|
+
<div>
|
|
58
|
+
<USkeleton
|
|
59
|
+
v-if="status === 'pending'"
|
|
60
|
+
class="h-48 w-full rounded-xl"
|
|
61
|
+
/>
|
|
62
|
+
|
|
63
|
+
<UiFeedbackErrorBoundary
|
|
64
|
+
v-else-if="!costCenter"
|
|
65
|
+
:title="t('governance.costCenters.notFound')"
|
|
66
|
+
:show-retry="false"
|
|
67
|
+
/>
|
|
68
|
+
|
|
69
|
+
<div
|
|
70
|
+
v-else
|
|
71
|
+
class="space-y-6"
|
|
72
|
+
>
|
|
73
|
+
<!-- Head -->
|
|
74
|
+
<div
|
|
75
|
+
class="border border-(--ui-border) rounded-xl p-4 sm:p-5
|
|
76
|
+
flex flex-wrap items-center gap-x-8 gap-y-3"
|
|
77
|
+
>
|
|
78
|
+
<div>
|
|
79
|
+
<p class="text-xs text-muted">
|
|
80
|
+
{{ t('governance.costCenters.columns.code') }}
|
|
81
|
+
</p>
|
|
82
|
+
<p class="text-sm font-semibold text-highlighted">
|
|
83
|
+
{{ costCenter.code }}
|
|
84
|
+
</p>
|
|
85
|
+
</div>
|
|
86
|
+
<div>
|
|
87
|
+
<p class="text-xs text-muted">
|
|
88
|
+
{{ t('governance.costCenters.columns.label') }}
|
|
89
|
+
</p>
|
|
90
|
+
<p class="text-sm font-medium text-highlighted">
|
|
91
|
+
{{ costCenter.label }}
|
|
92
|
+
</p>
|
|
93
|
+
</div>
|
|
94
|
+
<UButton
|
|
95
|
+
v-if="canManage"
|
|
96
|
+
class="ms-auto"
|
|
97
|
+
color="neutral"
|
|
98
|
+
variant="outline"
|
|
99
|
+
size="sm"
|
|
100
|
+
tabindex="0"
|
|
101
|
+
:icon="icon('edit')"
|
|
102
|
+
:label="t('governance.edit')"
|
|
103
|
+
@click="editOpen = true"
|
|
104
|
+
/>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<!-- Budget + approval rule -->
|
|
108
|
+
<section
|
|
109
|
+
v-if="costCenter.limit"
|
|
110
|
+
class="border border-(--ui-border) rounded-xl overflow-hidden"
|
|
111
|
+
>
|
|
112
|
+
<h2 class="px-4 sm:px-5 py-3 text-sm font-semibold text-highlighted bg-elevated/60 border-b border-(--ui-border)">
|
|
113
|
+
{{ costCenter.limit.label }}
|
|
114
|
+
</h2>
|
|
115
|
+
<div class="p-4 sm:p-5 space-y-5">
|
|
116
|
+
<div class="grid grid-cols-2 gap-4 text-sm">
|
|
117
|
+
<div>
|
|
118
|
+
<p class="text-xs text-muted">
|
|
119
|
+
{{ t('governance.costCenters.columns.budget') }}
|
|
120
|
+
</p>
|
|
121
|
+
<p class="font-semibold text-highlighted tabular-nums text-lg">
|
|
122
|
+
{{ formatCurrency(costCenter.limit.totalBudget ?? 0) }}
|
|
123
|
+
</p>
|
|
124
|
+
</div>
|
|
125
|
+
<div>
|
|
126
|
+
<p class="text-xs text-muted">
|
|
127
|
+
{{ t('governance.costCenters.columns.available') }}
|
|
128
|
+
</p>
|
|
129
|
+
<p
|
|
130
|
+
class="font-semibold tabular-nums text-lg"
|
|
131
|
+
:class="(utilization ?? 0) >= 90 ? 'text-warning' : 'text-highlighted'"
|
|
132
|
+
>
|
|
133
|
+
{{ formatCurrency(costCenter.limit.availableBudget ?? 0) }}
|
|
134
|
+
</p>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
<div
|
|
138
|
+
v-if="utilization !== null"
|
|
139
|
+
class="space-y-1.5"
|
|
140
|
+
>
|
|
141
|
+
<div class="h-2 rounded-full bg-elevated overflow-hidden">
|
|
142
|
+
<div
|
|
143
|
+
class="h-full rounded-full w-(--budget-used)"
|
|
144
|
+
:class="utilization >= 90 ? 'bg-warning' : 'bg-primary'"
|
|
145
|
+
:style="{ '--budget-used': `${utilization}%` }"
|
|
146
|
+
/>
|
|
147
|
+
</div>
|
|
148
|
+
<p class="text-xs text-muted">
|
|
149
|
+
{{ t('governance.costCenters.utilization', { percent: utilization }) }}
|
|
150
|
+
</p>
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
<!-- Approval rule: approver + deputy escalation chain -->
|
|
154
|
+
<div class="pt-4 border-t border-(--ui-border)">
|
|
155
|
+
<h3 class="text-xs font-semibold uppercase tracking-wide text-muted mb-3">
|
|
156
|
+
{{ t('governance.costCenters.ruleTitle') }}
|
|
157
|
+
</h3>
|
|
158
|
+
<dl class="grid grid-cols-1 sm:grid-cols-2 gap-4 text-sm">
|
|
159
|
+
<div>
|
|
160
|
+
<dt class="font-medium text-highlighted flex items-center gap-1.5">
|
|
161
|
+
{{ t('governance.approvals.columns.approval') }}
|
|
162
|
+
<UBadge
|
|
163
|
+
v-if="costCenter.limit.approval.required"
|
|
164
|
+
color="warning"
|
|
165
|
+
variant="subtle"
|
|
166
|
+
size="sm"
|
|
167
|
+
:label="t('governance.approvalRequired')"
|
|
168
|
+
/>
|
|
169
|
+
<UBadge
|
|
170
|
+
v-else
|
|
171
|
+
color="neutral"
|
|
172
|
+
variant="subtle"
|
|
173
|
+
size="sm"
|
|
174
|
+
:label="t('governance.approvals.infoOnly')"
|
|
175
|
+
/>
|
|
176
|
+
</dt>
|
|
177
|
+
<dd class="mt-1.5 text-muted">
|
|
178
|
+
<template v-if="costCenter.limit.approval.approverName">
|
|
179
|
+
{{ costCenter.limit.approval.approverName }}
|
|
180
|
+
<span v-if="costCenter.limit.approval.timeLimitHours">
|
|
181
|
+
· {{ t('governance.approvals.timeFrame', { hours: costCenter.limit.approval.timeLimitHours }) }}
|
|
182
|
+
</span>
|
|
183
|
+
</template>
|
|
184
|
+
<template v-else>
|
|
185
|
+
—
|
|
186
|
+
</template>
|
|
187
|
+
</dd>
|
|
188
|
+
</div>
|
|
189
|
+
<div>
|
|
190
|
+
<dt class="font-medium text-highlighted">
|
|
191
|
+
{{ t('governance.approvals.columns.deputy') }}
|
|
192
|
+
</dt>
|
|
193
|
+
<dd class="mt-1.5 text-muted">
|
|
194
|
+
<template v-if="costCenter.limit.approval.deputyName">
|
|
195
|
+
{{ costCenter.limit.approval.deputyName }}
|
|
196
|
+
<span v-if="costCenter.limit.approval.deputyTimeLimitHours">
|
|
197
|
+
· {{ t('governance.approvals.timeFrame', { hours: costCenter.limit.approval.deputyTimeLimitHours }) }}
|
|
198
|
+
</span>
|
|
199
|
+
</template>
|
|
200
|
+
<template v-else>
|
|
201
|
+
—
|
|
202
|
+
</template>
|
|
203
|
+
</dd>
|
|
204
|
+
</div>
|
|
205
|
+
</dl>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</section>
|
|
209
|
+
<UAlert
|
|
210
|
+
v-else
|
|
211
|
+
color="neutral"
|
|
212
|
+
variant="subtle"
|
|
213
|
+
:icon="icon('info')"
|
|
214
|
+
:title="t('governance.costCenters.noBudget')"
|
|
215
|
+
/>
|
|
216
|
+
|
|
217
|
+
<!-- Requisitions charged to this cost center -->
|
|
218
|
+
<section class="border border-(--ui-border) rounded-xl overflow-hidden">
|
|
219
|
+
<header class="flex items-center justify-between px-4 sm:px-5 py-3 bg-elevated/60 border-b border-(--ui-border)">
|
|
220
|
+
<h2 class="text-sm font-semibold text-highlighted">
|
|
221
|
+
{{ t('governance.costCenters.requisitionsTitle') }}
|
|
222
|
+
</h2>
|
|
223
|
+
<ULink
|
|
224
|
+
class="text-xs font-medium text-primary hover:underline"
|
|
225
|
+
:to="localePath('/account/requisitions')"
|
|
226
|
+
>
|
|
227
|
+
{{ t('account.dashboard.viewAll') }} →
|
|
228
|
+
</ULink>
|
|
229
|
+
</header>
|
|
230
|
+
<ul
|
|
231
|
+
v-if="chargedRequisitions.length"
|
|
232
|
+
class="divide-y divide-(--ui-border)"
|
|
233
|
+
>
|
|
234
|
+
<li
|
|
235
|
+
v-for="requisition in chargedRequisitions"
|
|
236
|
+
:key="requisition.id"
|
|
237
|
+
>
|
|
238
|
+
<NuxtLink
|
|
239
|
+
:to="localePath(`/account/requisitions/${requisition.id}`)"
|
|
240
|
+
class="flex flex-wrap items-center gap-x-4 gap-y-1 px-4 sm:px-5 py-3
|
|
241
|
+
hover:bg-elevated/40 transition-colors"
|
|
242
|
+
>
|
|
243
|
+
<span class="text-sm font-semibold text-highlighted">{{ requisition.id }}</span>
|
|
244
|
+
<span class="text-xs text-muted">
|
|
245
|
+
{{ requisition.requestedBy.name }} · {{ formatDate(requisition.requestedAt) }}
|
|
246
|
+
</span>
|
|
247
|
+
<span class="flex items-center gap-3 ms-auto">
|
|
248
|
+
<UBadge
|
|
249
|
+
:color="statusColors[requisition.status]"
|
|
250
|
+
variant="subtle"
|
|
251
|
+
size="sm"
|
|
252
|
+
:label="t(`governance.requisitions.status.${requisition.status}`)"
|
|
253
|
+
/>
|
|
254
|
+
<span class="text-sm tabular-nums text-highlighted min-w-20 text-right">
|
|
255
|
+
{{ formatCurrency(requisition.totalValue) }}
|
|
256
|
+
</span>
|
|
257
|
+
</span>
|
|
258
|
+
</NuxtLink>
|
|
259
|
+
</li>
|
|
260
|
+
</ul>
|
|
261
|
+
<p
|
|
262
|
+
v-else
|
|
263
|
+
class="px-4 sm:px-5 py-6 text-sm text-muted"
|
|
264
|
+
>
|
|
265
|
+
{{ t('governance.costCenters.noRequisitions') }}
|
|
266
|
+
</p>
|
|
267
|
+
</section>
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<GovernanceCostCenterModal
|
|
271
|
+
v-model:open="editOpen"
|
|
272
|
+
:cost-center="costCenter"
|
|
273
|
+
@saved="refresh"
|
|
274
|
+
/>
|
|
275
|
+
</div>
|
|
276
|
+
</template>
|