@nixweb/nixloc-ui 0.0.273 → 0.0.274
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/package.json +1 -1
- package/src/App.vue +13 -217
- package/src/component/forms/Button.vue +166 -0
- package/src/component/forms/ButtonFilter.vue +75 -0
- package/src/component/forms/ButtonGroup.vue +67 -0
- package/src/component/forms/ButtonSub.vue +98 -0
- package/src/component/forms/CheckboxGroup.vue +69 -0
- package/src/component/forms/CheckboxServer.vue +192 -0
- package/src/component/forms/CheckboxSimple.vue +59 -0
- package/src/component/forms/Color.vue +38 -0
- package/src/component/forms/DateTime.vue +170 -0
- package/src/component/forms/Dropdown.vue +236 -0
- package/src/component/forms/EditorHtml.vue +132 -0
- package/src/component/forms/FileUpload.vue +170 -0
- package/src/component/forms/ImageUpload.vue +214 -0
- package/src/component/forms/IncrementDecrement.vue +141 -0
- package/src/component/forms/InputAddressGoogle.vue +171 -0
- package/src/component/forms/InputCallToAction.vue +135 -0
- package/src/component/forms/InputDecimal.vue +153 -0
- package/src/component/forms/InputDecimalDiscount.vue +78 -0
- package/src/component/forms/InputNumber.vue +160 -0
- package/src/component/forms/InputPassword.vue +155 -0
- package/src/component/forms/InputTag.vue +125 -0
- package/src/component/forms/InputText.vue +174 -0
- package/src/component/forms/InputTextEdit.vue +69 -0
- package/src/component/forms/InputWhatsApp.vue +48 -0
- package/src/component/forms/Modal.vue +57 -0
- package/src/component/forms/RadioGroup.vue +91 -0
- package/src/component/forms/Select.vue +326 -0
- package/src/component/forms/SelectStatic.vue +198 -0
- package/src/component/forms/SideBar.vue +110 -0
- package/src/component/forms/Slider.vue +18 -0
- package/src/component/forms/TextArea.vue +138 -0
- package/src/component/forms/Toggle.vue +72 -0
- package/src/component/layout/Account.vue +131 -0
- package/src/component/layout/Alert.vue +88 -0
- package/src/component/layout/Badge.vue +111 -0
- package/src/component/layout/BarFloating.vue +68 -0
- package/src/component/layout/FixedBar.vue +113 -0
- package/src/component/layout/Gantt.vue +130 -0
- package/src/component/layout/Header.vue +56 -0
- package/src/component/layout/HideShow.vue +62 -0
- package/src/component/layout/IconMolded.vue +59 -0
- package/src/component/layout/LoadingFullPage.vue +27 -0
- package/src/component/layout/Menu.vue +267 -0
- package/src/component/layout/Molded.vue +29 -0
- package/src/component/layout/Panel.vue +169 -0
- package/src/component/layout/Popover.vue +126 -0
- package/src/component/layout/ScrollBar.vue +57 -0
- package/src/component/layout/Tab.vue +135 -0
- package/src/component/layout/Tag.vue +90 -0
- package/src/component/layout/Wizard.vue +211 -0
- package/src/component/rental/DisplayCalculatePeriod.vue +49 -0
- package/src/component/rental/DisplayPeriodRent.vue +55 -0
- package/src/component/rental/DisplayTotalization.vue +86 -0
- package/src/component/shared/CodeEditor.vue +80 -0
- package/src/component/shared/Collapse.vue +131 -0
- package/src/component/shared/Confirmation.vue +74 -0
- package/src/component/shared/DocumentEditor.vue +150 -0
- package/src/component/shared/DocumentPreview.vue +61 -0
- package/src/component/shared/DocumentPublic.vue +31 -0
- package/src/component/shared/ExportExcel.vue +60 -0
- package/src/component/shared/ExportPDF.vue +116 -0
- package/src/component/shared/FullCalendar.vue +174 -0
- package/src/component/shared/HeaderReport.vue +47 -0
- package/src/component/shared/HorizontalFilter.vue +76 -0
- package/src/component/shared/ListNotifications.vue +70 -0
- package/src/component/shared/Loading.vue +107 -0
- package/src/component/shared/LoadingMoreButton.vue +23 -0
- package/src/component/shared/Messages.vue +83 -0
- package/src/component/shared/PDFViewer.vue +24 -0
- package/src/component/shared/Pagination.vue +106 -0
- package/src/component/shared/ParameterLegend.vue +169 -0
- package/src/component/shared/ProgressBar.vue +22 -0
- package/src/component/shared/QueryButton.vue +66 -0
- package/src/component/shared/Report.vue +200 -0
- package/src/component/shared/SaveCancel.vue +92 -0
- package/src/component/shared/Search.vue +174 -0
- package/src/component/shared/SelectOption.vue +162 -0
- package/src/component/shared/Table.vue +155 -0
- package/src/component/shared/TableButton.vue +36 -0
- package/src/component/shared/TableDraggable.vue +117 -0
- package/src/component/shared/TableImport.vue +98 -0
- package/src/component/shared/TableItem.vue +174 -0
- package/src/component/shared/TableTotalRecords.vue +44 -0
- package/src/component/shared/TableTotalization.vue +47 -0
- package/src/component/shared/TimeLine.vue +47 -0
- package/src/component/shared/Timer.vue +78 -0
- package/src/component/shared/Tip.vue +42 -0
- package/src/component/shared/Toast.vue +69 -0
- package/src/component/shared/TotalizationReport.vue +86 -0
- package/src/component/shared/VerticalFilter.vue +97 -0
- package/src/component/shared/automation/ActivitiesList.vue +44 -0
- package/src/component/shared/automation/AddRule.vue +61 -0
- package/src/component/shared/automation/AutomationBuilder.vue +27 -0
- package/src/component/shared/automation/DynamicComponentList.vue +86 -0
- package/src/component/shared/automation/SelectRule.vue +98 -0
- package/src/component/shared/automation/components/BillingByRent.vue +98 -0
- package/src/component/shared/automation/components/SendEmail.vue +94 -0
- package/src/component/shared/file-manager/FileManager.vue +390 -0
- package/src/component/shared/filter-builder/FilterBuilder.vue +198 -0
- package/src/component/shared/filter-builder/FilterQuery.vue +92 -0
- package/src/component/shared/query-builder/AddRule.vue +203 -0
- package/src/component/shared/query-builder/ConvertToOdata.js +86 -0
- package/src/component/shared/query-builder/DynamicComponent.vue +161 -0
- package/src/component/shared/query-builder/DynamicComponentList.vue +70 -0
- package/src/component/shared/query-builder/Fields.vue +93 -0
- package/src/component/shared/query-builder/QueryBuilder.vue +69 -0
- package/src/component/shared/query-builder/Rules.vue +68 -0
- package/src/component/shared/query-builder/SelectRule.vue +97 -0
- package/src/component/shared/query-builder/Tags.vue +59 -0
- package/src/component/shared/query-builder/utilities.js +22 -0
- package/src/component/signature/Payment.vue +161 -0
- package/src/component/signature/Warning.vue +76 -0
- package/src/component/template/ListViewWithDataHandler.vue +424 -0
- package/src/component/template/ReportCreateUpdate.vue +124 -0
- package/src/component/template/ViewTemplateConfiguration.vue +64 -0
- package/src/component/template/ViewTemplateDocumentView.vue +213 -0
- package/src/component/template/ViewTemplateImportFile.vue +347 -0
- package/src/component/template/ViewTemplateReportList.vue +216 -0
- package/src/component/template/ViewTemplateReportPreview.vue +432 -0
- package/src/component/template/ViewTemplateSelectOption.vue +46 -0
- package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -0
- package/src/component/template/ViewTemplateWithTable.vue +64 -0
- package/src/component/template/model/Report.js +6 -0
- package/src/component/training/Course.vue +344 -0
- package/src/component/training/CourseView.vue +190 -0
- package/src/component/value-objects/Address.js +11 -0
- package/src/component/value-objects/Address.vue +157 -0
- package/src/component/value-objects/Contact.js +7 -0
- package/src/component/value-objects/Contact.vue +106 -0
- package/src/component/value-objects/Person.js +10 -0
- package/src/component/value-objects/Person.vue +129 -0
- package/src/config/axios.js +9 -9
- package/src/config/dicas.js +14 -14
- package/src/config/router.js +13 -272
- package/src/config/token.js +14 -13
- package/src/main.js +23 -74
- package/src/store/modules/automation.js +31 -0
- package/src/store/modules/generic.js +764 -0
- package/src/store/modules/report.js +278 -0
- package/src/store/modules/user.js +67 -0
- package/src/store/modules/util.js +26 -0
- package/src/store/modules/validation.js +39 -0
- package/src/store/store.js +13 -22
- package/src/assets/logo.png +0 -0
- package/src/components/modules/adm/company/Company.js +0 -9
- package/src/components/modules/adm/company/Company.vue +0 -114
- package/src/components/modules/adm/document/Document.js +0 -41
- package/src/components/modules/adm/document/DocumentCreateUpdate.vue +0 -269
- package/src/components/modules/adm/document/DocumentPreview.vue +0 -123
- package/src/components/modules/adm/document/Link.vue +0 -118
- package/src/components/modules/adm/document/PrintDetail.vue +0 -123
- package/src/components/modules/adm/document/PrintPreview.vue +0 -123
- package/src/components/modules/adm/document/SelectOptionDocument.vue +0 -219
- package/src/components/modules/adm/document/SendMail.vue +0 -245
- package/src/components/modules/adm/document/SendSignature.vue +0 -289
- package/src/components/modules/adm/login/ConfirmMailMobile.vue +0 -101
- package/src/components/modules/adm/login/ForgotPassword.js +0 -8
- package/src/components/modules/adm/login/ForgotPassword.vue +0 -159
- package/src/components/modules/adm/login/Login.js +0 -7
- package/src/components/modules/adm/login/Login.vue +0 -150
- package/src/components/modules/adm/login/Menu.js +0 -868
- package/src/components/modules/adm/login/ResetPassword.vue +0 -136
- package/src/components/modules/adm/login/SendConfirmMailMobile.vue +0 -72
- package/src/components/modules/adm/login/SignalrUser.vue +0 -147
- package/src/components/modules/adm/parameter/ParameterBilling.js +0 -9
- package/src/components/modules/adm/parameter/ParameterBilling.vue +0 -91
- package/src/components/modules/adm/parameter/ParameterDangerZone.js +0 -12
- package/src/components/modules/adm/parameter/ParameterDangerZone.vue +0 -159
- package/src/components/modules/adm/parameter/ParameterRental.js +0 -39
- package/src/components/modules/adm/parameter/ParameterRental.vue +0 -213
- package/src/components/modules/adm/parameter/ParameterStock.js +0 -14
- package/src/components/modules/adm/parameter/ParameterStock.vue +0 -127
- package/src/components/modules/adm/parameter/ParameterSystem.js +0 -23
- package/src/components/modules/adm/parameter/ParameterSystem.vue +0 -92
- package/src/components/modules/adm/register/Register.js +0 -9
- package/src/components/modules/adm/register/Register.vue +0 -306
- package/src/components/modules/adm/store/Store.vue +0 -340
- package/src/components/modules/adm/store/Success.vue +0 -79
- package/src/components/modules/adm/store/Term.vue +0 -198
- package/src/components/modules/adm/user/Profile.vue +0 -131
- package/src/components/modules/adm/user/Rules.vue +0 -219
- package/src/components/modules/adm/user/User.js +0 -27
- package/src/components/modules/adm/user/UserCreateUpdate.vue +0 -184
- package/src/components/modules/adm/user/UserRule.vue +0 -82
- package/src/components/modules/automation/AutomationBuilder.vue +0 -54
- package/src/components/modules/billing/billet/Billet.vue +0 -133
- package/src/components/modules/billing/billet/CancelBillet.vue +0 -68
- package/src/components/modules/billing/billet/CheckBillet.vue +0 -122
- package/src/components/modules/billing/billet/CreateBillet.vue +0 -83
- package/src/components/modules/billing/billet/PDFBillet.vue +0 -116
- package/src/components/modules/billing/billet/UpdateBillet.vue +0 -78
- package/src/components/modules/billing/billet-config/BilletConfig.js +0 -12
- package/src/components/modules/billing/billet-config/BilletConfigCreateUpdate.vue +0 -91
- package/src/components/modules/billing/generate-billing/GenerateBilling.vue +0 -252
- package/src/components/modules/billing/generate-billing/GenerateInvoice.vue +0 -98
- package/src/components/modules/billing/generate-billing/GenerateTaxDocument.vue +0 -159
- package/src/components/modules/billing/generate-billing/InvoiceOrTaxDocument.vue +0 -61
- package/src/components/modules/billing/generate-billing/ItemsRentForInvoice.vue +0 -205
- package/src/components/modules/billing/generate-billing/SuccessBilling.vue +0 -124
- package/src/components/modules/billing/history-billet/HistoryBillet.vue +0 -85
- package/src/components/modules/billing/invoice/DropdownOptionsInvoice.vue +0 -218
- package/src/components/modules/billing/invoice/Invoice.js +0 -18
- package/src/components/modules/billing/invoice/InvoiceCreateUpdate.vue +0 -164
- package/src/components/modules/billing/invoice/InvoiceTotalization.vue +0 -62
- package/src/components/modules/billing/items-invoice/ItemsInvoice.js +0 -20
- package/src/components/modules/billing/items-invoice/ItemsInvoiceCreateUpdate.vue +0 -138
- package/src/components/modules/billing/items-invoice/ItemsInvoiceList.vue +0 -235
- package/src/components/modules/cashier/CashierMovementList.vue +0 -186
- package/src/components/modules/cashier/CloseCashier.js +0 -9
- package/src/components/modules/cashier/CloseCashier.vue +0 -112
- package/src/components/modules/cashier/OpenCashier.js +0 -9
- package/src/components/modules/cashier/OpenCashier.vue +0 -174
- package/src/components/modules/cashier/Totalization.vue +0 -114
- package/src/components/modules/crm/category-customer/CategoryCustomer.js +0 -10
- package/src/components/modules/crm/category-customer/CategoryCustomerCreateUpdate.vue +0 -92
- package/src/components/modules/crm/category-customer/OriginCustomer.js +0 -10
- package/src/components/modules/crm/category-customer/OriginCustomerCreateUpdate.vue +0 -92
- package/src/components/modules/dashboard/alert/Alert.vue +0 -115
- package/src/components/modules/dashboard/billing/PanelBillet.vue +0 -210
- package/src/components/modules/dashboard/billing/PanelInvoice.vue +0 -188
- package/src/components/modules/dashboard/config/ConfigDashboard.vue +0 -253
- package/src/components/modules/dashboard/favorite/Favorite.js +0 -126
- package/src/components/modules/dashboard/favorite/Favorite.vue +0 -117
- package/src/components/modules/dashboard/favorite/FavoriteCreateRemove.vue +0 -136
- package/src/components/modules/dashboard/favorite/_Favorite.vue +0 -265
- package/src/components/modules/dashboard/finance/BalanceBank.vue +0 -124
- package/src/components/modules/dashboard/finance/BalanceFinance.vue +0 -180
- package/src/components/modules/dashboard/finance/BillsToPay.vue +0 -137
- package/src/components/modules/dashboard/finance/BillsToReceive.vue +0 -141
- package/src/components/modules/dashboard/finance/PanelFinance.vue +0 -146
- package/src/components/modules/dashboard/finance/PaymentByStatus.vue +0 -121
- package/src/components/modules/dashboard/operational/DeliveryDevolution.vue +0 -163
- package/src/components/modules/dashboard/operational/PanelOperational.vue +0 -230
- package/src/components/modules/dashboard/rent/BalanceRent.vue +0 -156
- package/src/components/modules/dashboard/rent/PanelRent.vue +0 -72
- package/src/components/modules/dashboard/rent/RankingCollaborator.vue +0 -166
- package/src/components/modules/dashboard/rent/TotalRent.vue +0 -133
- package/src/components/modules/dashboard/rent/_BalanceRent.vue +0 -176
- package/src/components/modules/dashboard/rent/_RankingCollaborator.vue +0 -173
- package/src/components/modules/dashboard/rent/_TotalRent.vue +0 -154
- package/src/components/modules/dashboard/shared/SelectFilter.vue +0 -79
- package/src/components/modules/dashboard/signature/PanelSignature.vue +0 -144
- package/src/components/modules/dashboard/stock/TotalStock.vue +0 -127
- package/src/components/modules/dashboard/task/PanelTask.vue +0 -121
- package/src/components/modules/finance/bank/Bank.js +0 -12
- package/src/components/modules/finance/bank/BankCreateUpdate.vue +0 -101
- package/src/components/modules/finance/bank-account/BankAccountCreateUpdate.js +0 -34
- package/src/components/modules/finance/bank-account/BankAccountCreateUpdate.vue +0 -224
- package/src/components/modules/finance/bank-reconciliation/AddTransactionsList.vue +0 -137
- package/src/components/modules/finance/bank-reconciliation/BankReconciliation.js +0 -7
- package/src/components/modules/finance/bank-reconciliation/BankReconciliation.vue +0 -164
- package/src/components/modules/finance/bank-reconciliation/ImportPluggy.vue +0 -99
- package/src/components/modules/finance/bank-reconciliation/ItemFixedBar.vue +0 -39
- package/src/components/modules/finance/bank-reconciliation/ItemReconciliation.vue +0 -124
- package/src/components/modules/finance/bank-reconciliation/ReconciliationList.vue +0 -185
- package/src/components/modules/finance/bank-reconciliation/SuggestionList.vue +0 -281
- package/src/components/modules/finance/bank-reconciliation/TransactionsList.vue +0 -202
- package/src/components/modules/finance/chart-of-accounts/ChartOfAccounts.js +0 -12
- package/src/components/modules/finance/chart-of-accounts/ChartOfAccountsCreateUpdate.vue +0 -122
- package/src/components/modules/finance/cost-center/CostCenter.js +0 -12
- package/src/components/modules/finance/cost-center/CostCenterCreateUpdate.vue +0 -127
- package/src/components/modules/finance/cost-center/CostCenterList.vue +0 -414
- package/src/components/modules/finance/payable-receivable/PayableReceivable.js +0 -53
- package/src/components/modules/finance/payable-receivable/PayableReceivableCreateUpdate.vue +0 -333
- package/src/components/modules/finance/pluggy/PluggyConnect.vue +0 -91
- package/src/components/modules/finance/relationship-rent/RelationshipRentCreateUpdate.vue +0 -127
- package/src/components/modules/finance/relationship-rent/RelationshipRentList.vue +0 -166
- package/src/components/modules/finance/transfer-account/TransferAccount.js +0 -18
- package/src/components/modules/finance/transfer-account/TransferAccountCreateUpdate.vue +0 -130
- package/src/components/modules/finance/type-payment/TypePayment.js +0 -14
- package/src/components/modules/finance/type-payment/TypePaymentCreateUpdate.vue +0 -125
- package/src/components/modules/human-resources/collaborator/Collaborator.js +0 -38
- package/src/components/modules/human-resources/collaborator/CollaboratorCreate.vue +0 -127
- package/src/components/modules/human-resources/collaborator/CollaboratorCreateUpdate.vue +0 -190
- package/src/components/modules/human-resources/collaborator/ConsultantCreateUpdate.vue +0 -86
- package/src/components/modules/maintenance/items-order-service/ItemsOrderService.js +0 -32
- package/src/components/modules/maintenance/items-order-service/ItemsOrderServiceCreateUpdate.vue +0 -171
- package/src/components/modules/maintenance/items-order-service/ItemsOrderServiceItem.vue +0 -97
- package/src/components/modules/maintenance/items-order-service/ItemsOrderServiceList.vue +0 -94
- package/src/components/modules/maintenance/order-service/OrderService.js +0 -20
- package/src/components/modules/maintenance/order-service/OrderServiceCreateUpdate.vue +0 -124
- package/src/components/modules/notifications/Comunication.vue +0 -51
- package/src/components/modules/notifications/Emails.vue +0 -91
- package/src/components/modules/notifications/Messaging.vue +0 -33
- package/src/components/modules/operational/AddressRentList.vue +0 -124
- package/src/components/modules/operational/ButtonMovimentStock.vue +0 -97
- package/src/components/modules/operational/ItemsRentList.vue +0 -221
- package/src/components/modules/operational/OperationRent.vue +0 -131
- package/src/components/modules/operational/OsPanel.vue +0 -487
- package/src/components/modules/operational/ReservationPanel.vue +0 -224
- package/src/components/modules/operational/items-rent/ItemRentOperationalUpdate.vue +0 -131
- package/src/components/modules/operational/items-rent/ItemsRent.js +0 -28
- package/src/components/modules/operational/items-rent/ItemsRentOperationalCreate.vue +0 -122
- package/src/components/modules/operational/items-rent/ItemsRentOperationalList.vue +0 -479
- package/src/components/modules/operational/rent/DropdownOptionsRentOperational.vue +0 -172
- package/src/components/modules/operational/rent/RentOperational.js +0 -33
- package/src/components/modules/operational/rent/RentOperationalCreateUpdate.vue +0 -310
- package/src/components/modules/pdv/rent/AddressRentList.vue +0 -135
- package/src/components/modules/pdv/rent/FinalizeRent.vue +0 -147
- package/src/components/modules/pdv/rent/ItemsRentList.vue +0 -235
- package/src/components/modules/pdv/rent/ItemsRentUpdate.vue +0 -137
- package/src/components/modules/pdv/rent/PrintPdv.vue +0 -84
- package/src/components/modules/pdv/rent/Rent.js +0 -12
- package/src/components/modules/pdv/rent/RentCreate.vue +0 -470
- package/src/components/modules/pdv/rent/SearchByBarcode.vue +0 -92
- package/src/components/modules/pdv/rent/SearchByFilter.vue +0 -146
- package/src/components/modules/pdv/rent/SearchList.vue +0 -166
- package/src/components/modules/pdv/rent/SearchManual.vue +0 -125
- package/src/components/modules/pdv/rent/SuccessPdvRent.vue +0 -82
- package/src/components/modules/rental/Rental.drawio +0 -85
- package/src/components/modules/rental/address-rent/AddressRent.js +0 -13
- package/src/components/modules/rental/address-rent/AddressRentCreateUpdate.vue +0 -149
- package/src/components/modules/rental/address-rent/AddressRentList.vue +0 -63
- package/src/components/modules/rental/address-rent/ImportAddress.vue +0 -58
- package/src/components/modules/rental/billing/InvoiceList.vue +0 -232
- package/src/components/modules/rental/clone-rent/CloneRent.vue +0 -143
- package/src/components/modules/rental/group-rent/GroupRent.js +0 -10
- package/src/components/modules/rental/group-rent/GroupRentCreateUpdate.vue +0 -97
- package/src/components/modules/rental/items-kit-rent/ItemsKitRent.js +0 -18
- package/src/components/modules/rental/items-kit-rent/ItemsKitRentList.vue +0 -154
- package/src/components/modules/rental/items-kit-rent/ItemsKitRentUpdate.vue +0 -119
- package/src/components/modules/rental/items-rent/ApplyDiscount.vue +0 -52
- package/src/components/modules/rental/items-rent/DisableMovement.vue +0 -54
- package/src/components/modules/rental/items-rent/ItemRentFixedBar.vue +0 -193
- package/src/components/modules/rental/items-rent/ItemRentStockAvailability.vue +0 -120
- package/src/components/modules/rental/items-rent/ItemRentUpdate.vue +0 -188
- package/src/components/modules/rental/items-rent/ItemsAccessoryCreate.vue +0 -199
- package/src/components/modules/rental/items-rent/ItemsAccessoryList.vue +0 -269
- package/src/components/modules/rental/items-rent/ItemsRent.js +0 -39
- package/src/components/modules/rental/items-rent/ItemsRentCreate.vue +0 -130
- package/src/components/modules/rental/items-rent/ItemsRentList.vue +0 -566
- package/src/components/modules/rental/items-rent/ItemsRentStatusStock.vue +0 -122
- package/src/components/modules/rental/items-rent/ItemsRentalInvoice.vue +0 -45
- package/src/components/modules/rental/items-rent/ItemsRentalTotalization.vue +0 -73
- package/src/components/modules/rental/items-rent/RecalculateValue.vue +0 -52
- package/src/components/modules/rental/items-rent/UpdateStatusInvoicing.vue +0 -50
- package/src/components/modules/rental/kit-rent/KitRent.js +0 -16
- package/src/components/modules/rental/kit-rent/KitRentCreateUpdate.vue +0 -146
- package/src/components/modules/rental/moviment/MovimentList.vue +0 -367
- package/src/components/modules/rental/nfse/NfseList.vue +0 -250
- package/src/components/modules/rental/payment-rent/PaymentRent.js +0 -16
- package/src/components/modules/rental/payment-rent/PaymentRentCreateUpdate.vue +0 -122
- package/src/components/modules/rental/payment-rent/PaymentRentList.vue +0 -215
- package/src/components/modules/rental/period-rental/GeneratePeriodRent.js +0 -8
- package/src/components/modules/rental/period-rental/GeneratePeriodRent.vue +0 -201
- package/src/components/modules/rental/period-rental/PeriodRent.js +0 -20
- package/src/components/modules/rental/period-rental/PeriodRentCreateUpdate.vue +0 -184
- package/src/components/modules/rental/period-rental/PeriodRentItem.vue +0 -63
- package/src/components/modules/rental/period-rental/PeriodRentList.vue +0 -71
- package/src/components/modules/rental/period-rental/SelectOptionPeriodRent.vue +0 -153
- package/src/components/modules/rental/rent/Rent.js +0 -42
- package/src/components/modules/rental/rent/RentAccept.vue +0 -40
- package/src/components/modules/rental/rent/RentCreateUpdate.vue +0 -432
- package/src/components/modules/rental/rent/RentProgress.vue +0 -46
- package/src/components/modules/rental/rent/RentReject.vue +0 -46
- package/src/components/modules/rental/rent/RentTotalizationRent.vue +0 -153
- package/src/components/modules/rental/shared/CollaboratorWithUser.vue +0 -84
- package/src/components/modules/rental/shared/CustomerWithCreate.vue +0 -79
- package/src/components/modules/rental/shared/DropdownOptionsRent.vue +0 -306
- package/src/components/modules/rental/shared/import-product-rent/ImportProductByRent.vue +0 -122
- package/src/components/modules/rental/shared/import-product-rent/ItemsImportList.vue +0 -196
- package/src/components/modules/rental/team/Team.js +0 -29
- package/src/components/modules/rental/team/TeamCreateUpdate.vue +0 -141
- package/src/components/modules/rental/team/TeamList.vue +0 -150
- package/src/components/modules/rental/type-rent/TypeRent.js +0 -10
- package/src/components/modules/rental/type-rent/TypeRentCreateUpdate.vue +0 -111
- package/src/components/modules/shared/address/Address.js +0 -32
- package/src/components/modules/shared/address/AddressCreateUpdate.vue +0 -134
- package/src/components/modules/shared/address/AddressList.vue +0 -101
- package/src/components/modules/shared/contact/Contact.js +0 -20
- package/src/components/modules/shared/contact/ContactCreateUpdate.vue +0 -176
- package/src/components/modules/shared/contact/ContactList.vue +0 -100
- package/src/components/modules/shared/customer-supplier/CustomerSupplier.js +0 -52
- package/src/components/modules/shared/customer-supplier/CustomerSupplierCreate.vue +0 -166
- package/src/components/modules/shared/customer-supplier/CustomerSupplierCreateUpdate.vue +0 -212
- package/src/components/modules/shared/job/Job.js +0 -33
- package/src/components/modules/shared/job/JobCreateUpdate.vue +0 -219
- package/src/components/modules/shared/payment-items/Payment.js +0 -18
- package/src/components/modules/shared/payment-items/PaymentCreate.vue +0 -114
- package/src/components/modules/shared/payment-items/PaymentUpdate.vue +0 -69
- package/src/components/modules/shared/payment-items/PaymentsList.vue +0 -170
- package/src/components/modules/signature/send-signature/SendSingleSignature.vue +0 -57
- package/src/components/modules/signature/signature-config/SignatureConfig.vue +0 -118
- package/src/components/modules/signature/signature-file/SignatureFileList.vue +0 -125
- package/src/components/modules/signature/signer/SignerList.vue +0 -149
- package/src/components/modules/signature/signer/SignerListForMessaging.vue +0 -116
- package/src/components/modules/stock/accessory/Accessory.js +0 -16
- package/src/components/modules/stock/accessory/AccessoryList.vue +0 -134
- package/src/components/modules/stock/accessory/AccessoryUpdate.vue +0 -155
- package/src/components/modules/stock/availability-product/AvailabilityProduct.vue +0 -83
- package/src/components/modules/stock/category-product/CategoryProduct.js +0 -12
- package/src/components/modules/stock/category-product/CategoryProductCreateUpdate.vue +0 -102
- package/src/components/modules/stock/history-moviment/HistoryMoviment.vue +0 -93
- package/src/components/modules/stock/items-moviment/PatrimonyMoviment.vue +0 -133
- package/src/components/modules/stock/manufacturer/Manufacturer.js +0 -10
- package/src/components/modules/stock/manufacturer/ManufacturerCreateUpdate.vue +0 -111
- package/src/components/modules/stock/moviment/ItemProductRent.vue +0 -114
- package/src/components/modules/stock/moviment/ItemProductSelected.vue +0 -78
- package/src/components/modules/stock/moviment/ItemsRentForRecalculatePrice.vue +0 -113
- package/src/components/modules/stock/moviment/PrintMoviment.vue +0 -70
- package/src/components/modules/stock/moviment/ProductAdd.vue +0 -187
- package/src/components/modules/stock/moviment/ProductRent.vue +0 -198
- package/src/components/modules/stock/moviment/ProductSelected.vue +0 -149
- package/src/components/modules/stock/moviment/RentAndSelected.vue +0 -48
- package/src/components/modules/stock/moviment/SuccessMoviment.vue +0 -78
- package/src/components/modules/stock/moviment/TotalizationItemsMoviment.vue +0 -97
- package/src/components/modules/stock/moviment/output/CheckOutput.vue +0 -314
- package/src/components/modules/stock/moviment/output/GenerateOutput.vue +0 -127
- package/src/components/modules/stock/moviment/renewed/CheckRenewed.vue +0 -405
- package/src/components/modules/stock/moviment/renewed/GenerateRenewed.vue +0 -192
- package/src/components/modules/stock/moviment/return/CheckReturn.vue +0 -494
- package/src/components/modules/stock/moviment/return/GenerateReturn.vue +0 -127
- package/src/components/modules/stock/patrimony/Patrimony.js +0 -20
- package/src/components/modules/stock/patrimony/PatrimonyCreateUpdate.vue +0 -157
- package/src/components/modules/stock/patrimony/PatrimonyList.vue +0 -112
- package/src/components/modules/stock/price-table/PriceTable.js +0 -19
- package/src/components/modules/stock/price-table/PriceTableCreateUpdate.vue +0 -210
- package/src/components/modules/stock/price-table/PriceTableList.vue +0 -104
- package/src/components/modules/stock/product/Product.js +0 -56
- package/src/components/modules/stock/product/ProductCreateUpdate.vue +0 -324
- package/src/components/modules/stock/search-product/SearchByBarcode.vue +0 -163
- package/src/components/modules/stock/search-product/SearchProduct.vue +0 -440
- package/src/components/modules/stock/shared/TimeLineAvailability.vue +0 -100
- package/src/components/modules/stock/type-product/TypeProduct.js +0 -12
- package/src/components/modules/stock/type-product/TypeProductCreateUpdate.vue +0 -108
- package/src/components/modules/stock/unit-of-measurement/UnitOfMeasurement.js +0 -12
- package/src/components/modules/stock/unit-of-measurement/UnitOfMeasurementCreateUpdate.vue +0 -124
- package/src/components/modules/tax-document/certificate/Certificate.vue +0 -193
- package/src/components/modules/tax-document/cfop/Cfop.js +0 -12
- package/src/components/modules/tax-document/cfop/CfopCreateUpdate.vue +0 -96
- package/src/components/modules/tax-document/company/CompanyTaxation.vue +0 -121
- package/src/components/modules/tax-document/company/ConfigCompany.vue +0 -149
- package/src/components/modules/tax-document/company/Logo.vue +0 -54
- package/src/components/modules/tax-document/items-nfe/ItemsNfe.js +0 -19
- package/src/components/modules/tax-document/items-nfe/ItemsNfeCreate.vue +0 -79
- package/src/components/modules/tax-document/items-nfe/ItemsNfeList.vue +0 -227
- package/src/components/modules/tax-document/items-nfe/ItemsNfeUpdate.vue +0 -123
- package/src/components/modules/tax-document/nature-operation/NatureOperation.js +0 -10
- package/src/components/modules/tax-document/nature-operation/NatureOperationCreateUpdate.vue +0 -92
- package/src/components/modules/tax-document/nfe/Nfe.js +0 -28
- package/src/components/modules/tax-document/nfe/NfeCreateUpdate.vue +0 -227
- package/src/components/modules/tax-document/nfse/ConfigNfse.vue +0 -233
- package/src/components/modules/tax-document/nfse/Nfse.js +0 -73
- package/src/components/modules/tax-document/nfse/NfseCreateUpdate.vue +0 -239
- package/src/components/modules/tax-document/nfse/NfseCreateUpdate_Plug.vue +0 -221
- package/src/components/modules/tax-document/nfse/Tributacao.vue +0 -209
- package/src/components/modules/tax-document/nfse/Tributacao_Plug.vue +0 -185
- package/src/components/modules/tax-document/notification/InputTagEmail.vue +0 -89
- package/src/components/modules/tax-document/notification/Notificacao.vue +0 -122
- package/src/components/modules/tax-document/shared/DropdownOptionsNfs.vue +0 -271
- package/src/components/modules/tax-document/taxation/Taxation.js +0 -28
- package/src/components/modules/tax-document/taxation/TaxationCreateUpdate.vue +0 -141
- package/src/components/modules/tax-document/taxation/TaxationCreateUpdate_Plug.vue +0 -160
- package/src/config/tips.js +0 -9
- package/src/store/modules/generateMoviment.js +0 -98
- package/src/store/modules/paymentShared.js +0 -39
- package/src/store/modules/pdv.js +0 -107
- package/src/views/modules/adm/BilletFranchise.vue +0 -38
- package/src/views/modules/adm/Company.vue +0 -34
- package/src/views/modules/adm/ConfirmMailMobile.vue +0 -85
- package/src/views/modules/adm/DocumentCreateUpdate.vue +0 -88
- package/src/views/modules/adm/DocumentList.vue +0 -99
- package/src/views/modules/adm/DocumentPreviewPublic.vue +0 -124
- package/src/views/modules/adm/DocumentPublic.vue +0 -73
- package/src/views/modules/adm/Login.vue +0 -88
- package/src/views/modules/adm/LoginTemp.vue +0 -65
- package/src/views/modules/adm/NfeFranchise.vue +0 -38
- package/src/views/modules/adm/NfseFranchise.vue +0 -38
- package/src/views/modules/adm/Parameter.vue +0 -98
- package/src/views/modules/adm/Plan.vue +0 -74
- package/src/views/modules/adm/Register.vue +0 -82
- package/src/views/modules/adm/ReportAdm.vue +0 -35
- package/src/views/modules/adm/ReportAudit.vue +0 -216
- package/src/views/modules/adm/ResetPassword.vue +0 -73
- package/src/views/modules/adm/SignatureFranchise.vue +0 -38
- package/src/views/modules/adm/Store.vue +0 -47
- package/src/views/modules/adm/UserCreateUpdate.vue +0 -66
- package/src/views/modules/adm/UserList.vue +0 -178
- package/src/views/modules/adm/model/ParameterExemple.js +0 -421
- package/src/views/modules/adm/model/ParameterLegend.js +0 -1195
- package/src/views/modules/billing/BilletConfigList.vue +0 -90
- package/src/views/modules/billing/BilletList.vue +0 -294
- package/src/views/modules/billing/CancelInvoice.vue +0 -97
- package/src/views/modules/billing/GenerateBilling.vue +0 -41
- package/src/views/modules/billing/InvoiceCreateUpdate.vue +0 -45
- package/src/views/modules/billing/InvoiceList.vue +0 -167
- package/src/views/modules/billing/ReportBillet.vue +0 -35
- package/src/views/modules/billing/ReportBilling.vue +0 -35
- package/src/views/modules/billing/ReportInvoice.vue +0 -228
- package/src/views/modules/billing/ReturnShipment.vue +0 -196
- package/src/views/modules/billing/Shipment.vue +0 -141
- package/src/views/modules/billing/ShipmentReturnList.vue +0 -54
- package/src/views/modules/billing/ToProfitList.vue +0 -177
- package/src/views/modules/billing/_ReportBillet.vue +0 -178
- package/src/views/modules/calendar/Calendar.vue +0 -305
- package/src/views/modules/cashier/CashierList.vue +0 -192
- package/src/views/modules/course/Course.vue +0 -31
- package/src/views/modules/crm/CategoryCustomer.vue +0 -70
- package/src/views/modules/crm/ConfigCrm.vue +0 -53
- package/src/views/modules/crm/CustomerCreateUpdate.vue +0 -58
- package/src/views/modules/crm/CustomerList.vue +0 -131
- package/src/views/modules/crm/ImportCustomer.vue +0 -149
- package/src/views/modules/crm/OriginCustomer.vue +0 -82
- package/src/views/modules/crm/ReportCrm.vue +0 -35
- package/src/views/modules/crm/ReportCustomer.vue +0 -331
- package/src/views/modules/dashboard/Dashboard.vue +0 -538
- package/src/views/modules/dashboard/DashboardProfile.js +0 -16
- package/src/views/modules/dashboard/_Dashboard.vue +0 -257
- package/src/views/modules/faturamento/AFaturar.vue +0 -189
- package/src/views/modules/faturamento/HistoricoAFaturar.vue +0 -167
- package/src/views/modules/faturamento/ListaConfigAFaturar.vue +0 -47
- package/src/views/modules/faturamento/Semaforo.vue +0 -135
- package/src/views/modules/finance/Bank.vue +0 -80
- package/src/views/modules/finance/BankAccountCreateUpdate.vue +0 -58
- package/src/views/modules/finance/BankAccountList.vue +0 -96
- package/src/views/modules/finance/BankReconciliation.vue +0 -50
- package/src/views/modules/finance/ConfigFinance.vue +0 -59
- package/src/views/modules/finance/CostCenter.vue +0 -26
- package/src/views/modules/finance/PayableReceivableCreateUpdate.vue +0 -58
- package/src/views/modules/finance/PayableReceivableList.vue +0 -636
- package/src/views/modules/finance/ReportFinance.vue +0 -40
- package/src/views/modules/finance/ReportPayableReceivable.vue +0 -355
- package/src/views/modules/finance/TransferAccountList.vue +0 -130
- package/src/views/modules/finance/TypePayment.vue +0 -80
- package/src/views/modules/financeiro/CentroCusto.vue +0 -112
- package/src/views/modules/financeiro/PlanoConta.vue +0 -111
- package/src/views/modules/financeiro/TipoPagamento.vue +0 -111
- package/src/views/modules/human-resources/CollaboratorCreateUpdate.vue +0 -68
- package/src/views/modules/human-resources/CollaboratorList.vue +0 -114
- package/src/views/modules/locacao/InserirLocacaoPadrao.vue +0 -54
- package/src/views/modules/locacao/InserirLocacaoPdv.vue +0 -104
- package/src/views/modules/locacao/LocacaoPdvFinalizada.vue +0 -75
- package/src/views/modules/maintenance/OrderServiceCreateUpdate.vue +0 -56
- package/src/views/modules/maintenance/OrderServiceList.vue +0 -94
- package/src/views/modules/manutencao/InserirEditarOrdemServico.vue +0 -94
- package/src/views/modules/manutencao/Material.vue +0 -123
- package/src/views/modules/manutencao/OrdemServico.vue +0 -145
- package/src/views/modules/manutencao/TipoManutencao.vue +0 -94
- package/src/views/modules/operational/OsPanel.vue +0 -32
- package/src/views/modules/operational/RentOperationalCreateUpdate.vue +0 -47
- package/src/views/modules/operational/RentOperationalList.vue +0 -217
- package/src/views/modules/operational/ReportDeliveryDevolution.vue +0 -210
- package/src/views/modules/operational/ReportOperational.vue +0 -35
- package/src/views/modules/operational/ReservationPanel.vue +0 -34
- package/src/views/modules/pdv/PdvRentCreateUpdate.vue +0 -55
- package/src/views/modules/pdv/PdvRentList.vue +0 -103
- package/src/views/modules/pdv/PdvRentSelectOption.vue +0 -89
- package/src/views/modules/pdv/PdvSearch.vue +0 -47
- package/src/views/modules/pdv/SuccessPdvRent.vue +0 -59
- package/src/views/modules/rental/ConfigRental.vue +0 -59
- package/src/views/modules/rental/GroupRent.vue +0 -80
- package/src/views/modules/rental/KitRent.vue +0 -78
- package/src/views/modules/rental/KitRentCreateUpdate.vue +0 -58
- package/src/views/modules/rental/RentCreateUpdate.vue +0 -46
- package/src/views/modules/rental/RentSelectOption.vue +0 -53
- package/src/views/modules/rental/RentalList.vue +0 -297
- package/src/views/modules/rental/ReportRentByCustomer.vue +0 -303
- package/src/views/modules/rental/ReportRentByPayment.vue +0 -242
- package/src/views/modules/rental/ReportRentByPeriodRent.vue +0 -312
- package/src/views/modules/rental/ReportRentByProduct.vue +0 -323
- package/src/views/modules/rental/ReportRentPerformance.vue +0 -346
- package/src/views/modules/rental/ReportRental.vue +0 -50
- package/src/views/modules/rental/TypeRent.vue +0 -86
- package/src/views/modules/rental/_RentalList.vue +0 -285
- package/src/views/modules/shared/JobList.vue +0 -178
- package/src/views/modules/signature/ConfigSignature.vue +0 -43
- package/src/views/modules/signature/SignatureList.vue +0 -208
- package/src/views/modules/stock/CategoryProduct.vue +0 -75
- package/src/views/modules/stock/ConfigStock.vue +0 -71
- package/src/views/modules/stock/GenerateOutput.vue +0 -35
- package/src/views/modules/stock/GenerateRenewed.vue +0 -36
- package/src/views/modules/stock/GenerateReturn.vue +0 -35
- package/src/views/modules/stock/ImportProduct.vue +0 -134
- package/src/views/modules/stock/Manufacturer.vue +0 -81
- package/src/views/modules/stock/ProductCreateUpdate.vue +0 -58
- package/src/views/modules/stock/ProductList.vue +0 -175
- package/src/views/modules/stock/ProductSelectOption.vue +0 -80
- package/src/views/modules/stock/ReportHistoryPatrimony.vue +0 -154
- package/src/views/modules/stock/ReportPatrimony.vue +0 -239
- package/src/views/modules/stock/ReportProduct.vue +0 -421
- package/src/views/modules/stock/ReportProductByCustomer.vue +0 -392
- package/src/views/modules/stock/ReportStock.vue +0 -50
- package/src/views/modules/stock/TypeProduct.vue +0 -86
- package/src/views/modules/stock/UnitOfMeasurement.vue +0 -86
- package/src/views/modules/tax-document/CancelNfse.vue +0 -97
- package/src/views/modules/tax-document/Cfop.vue +0 -72
- package/src/views/modules/tax-document/ConfigTaxDocument.vue +0 -43
- package/src/views/modules/tax-document/NatureOperation.vue +0 -72
- package/src/views/modules/tax-document/NfeCreateUpdate.vue +0 -37
- package/src/views/modules/tax-document/NfeList.vue +0 -173
- package/src/views/modules/tax-document/NfeReceivedList.vue +0 -236
- package/src/views/modules/tax-document/NfseCreateUpdate.vue +0 -36
- package/src/views/modules/tax-document/NfseList.vue +0 -162
- package/src/views/modules/tax-document/Taxation.vue +0 -85
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="margin">
|
|
3
|
-
<br />
|
|
4
|
-
<Button v-if="id" _key="btnRentCreate" title="Locação" classIcon="fas fa-plus-circle" type="primary" size="small"
|
|
5
|
-
eventName="rentCreate" :clicked="newRent" />
|
|
6
|
-
<DropdownOptionsRent v-if="id" :rent="rent" :statusMovimentStock="statusMovimentStock"
|
|
7
|
-
:totalProductForInvoice="totalProductForInvoice" />
|
|
8
|
-
<div v-if="id">
|
|
9
|
-
<br />
|
|
10
|
-
<b-row>
|
|
11
|
-
<b-col sm="5">
|
|
12
|
-
<Badge :title="'Nº' + rent.number.toString()" type="primary" size="medium" />
|
|
13
|
-
<Badge :title="statusRental.title" :type="statusRental.type" size="small" />
|
|
14
|
-
</b-col></b-row>
|
|
15
|
-
<br />
|
|
16
|
-
</div>
|
|
17
|
-
<RentTotalization v-if="id" :statusRental="rent.statusRental" :rentId="id" />
|
|
18
|
-
<Molded>
|
|
19
|
-
<b-row>
|
|
20
|
-
<b-col xs="12" sm="12" md="12" lg="12" xl="4">
|
|
21
|
-
<InputText title="Identificação" field="name" :formName="formName" :required="false" :maxLength="100"
|
|
22
|
-
v-model="rent.identification" />
|
|
23
|
-
</b-col>
|
|
24
|
-
<b-col xs="12" sm="12" md="12" lg="12" xl="4">
|
|
25
|
-
<Select title="Tipo" field="type" :formName="formName" :required="false"
|
|
26
|
-
url="/api/v1/rental/type-rent/select-all" v-model="rent.typeRent" nameNewRegister="typeRentalCreateUpdate"
|
|
27
|
-
titleNewRegister="Tipo" :widthNewRegister="500" :heightNewRegister="250">
|
|
28
|
-
<TypeRentCreateUpdate :registerInSelect="true" v-model="rent.typeRent" />
|
|
29
|
-
</Select>
|
|
30
|
-
</b-col>
|
|
31
|
-
<b-col xs="12" sm="12" md="12" lg="12" xl="4">
|
|
32
|
-
<Select title="Consultor" field="type" :formName="formName" :required="true" :disabled="disabled"
|
|
33
|
-
url="/api/v1/human-resources/collaborator/select-all" :propsParams="{ isConsultant: true }"
|
|
34
|
-
v-model="rent.collaborator" nameNewRegister="consultantCreateUpdate"
|
|
35
|
-
:showNewRegister="hasRule('HumanResources')" titleNewRegister="Consultor" :widthNewRegister="800"
|
|
36
|
-
:heightNewRegister="250">
|
|
37
|
-
<ConsultantCreateUpdate :registerInSelect="true" v-model="rent.collaborator" />
|
|
38
|
-
</Select>
|
|
39
|
-
</b-col>
|
|
40
|
-
</b-row>
|
|
41
|
-
<b-row>
|
|
42
|
-
<b-col xs="12" sm="12" md="12" lg="12" xl="8">
|
|
43
|
-
<CustomerWithCreate :formName="formName" v-model="rent.customer" />
|
|
44
|
-
</b-col>
|
|
45
|
-
<b-col xs="12" sm="12" md="12" lg="12" xl="4">
|
|
46
|
-
<Select title="Contato" field="type" :formName="formName" :required="true" :disabled="!rent.customer.id"
|
|
47
|
-
url="/api/v1/shared/contact/select-all" :propsParams="{ any: rent.customer.id }" v-model="rent.contact"
|
|
48
|
-
nameNewRegister="contactCreateUpdate" :showNewRegister="hasRule('CRM')" titleNewRegister="Contato"
|
|
49
|
-
:widthNewRegister="750" :heightNewRegister="250">
|
|
50
|
-
<ContactCreateUpdate :registerInSelect="true" :customerSupplierId="rent.customer.id"
|
|
51
|
-
v-model="rent.contact" />
|
|
52
|
-
</Select>
|
|
53
|
-
</b-col>
|
|
54
|
-
</b-row>
|
|
55
|
-
<br />
|
|
56
|
-
</Molded>
|
|
57
|
-
<div v-if="!id">
|
|
58
|
-
<br />
|
|
59
|
-
<Molded>
|
|
60
|
-
<div class="div-period">
|
|
61
|
-
<PeriodRentCreateUpdate msg="Como deseja Gerar o Período de Locação?" :showBtnSave="false"
|
|
62
|
-
v-model="rent.periodRent" />
|
|
63
|
-
</div>
|
|
64
|
-
</Molded>
|
|
65
|
-
</div>
|
|
66
|
-
<div v-if="rent.id">
|
|
67
|
-
<br />
|
|
68
|
-
<Tab v-model="tabIndex" :initialTabs="tabsByModule">
|
|
69
|
-
<div :slot="0">
|
|
70
|
-
<PeriodRentList v-if="tabIndex == 0" :rentId="id" />
|
|
71
|
-
</div>
|
|
72
|
-
<div :slot="1">
|
|
73
|
-
<ItemsRentList v-if="tabIndex == 1" :rent="rent" />
|
|
74
|
-
</div>
|
|
75
|
-
<div :slot="2">
|
|
76
|
-
<PaymentRentList v-if="tabIndex == 2" :rentId="id" :showBtnLaunchFinance="rent.statusRental == 2" />
|
|
77
|
-
</div>
|
|
78
|
-
<div :slot="3">
|
|
79
|
-
<AddressRentList v-if="tabIndex == 3" :rent="rent" />
|
|
80
|
-
</div>
|
|
81
|
-
<div :slot="4">
|
|
82
|
-
<b-row>
|
|
83
|
-
<b-col sm="12">
|
|
84
|
-
<EditorHtml title="Observações da Locação" field="observationRental" :required="false" :maxLength="3000"
|
|
85
|
-
v-model="rent.observationRental" />
|
|
86
|
-
</b-col>
|
|
87
|
-
</b-row>
|
|
88
|
-
<b-row>
|
|
89
|
-
<b-col sm="12">
|
|
90
|
-
<EditorHtml title="Observações da OS" field="observationServiceOrder" :required="false" :maxLength="3000"
|
|
91
|
-
v-model="rent.observationServiceOrder" />
|
|
92
|
-
</b-col>
|
|
93
|
-
</b-row>
|
|
94
|
-
</div>
|
|
95
|
-
<div :slot="5">
|
|
96
|
-
<TeamList :rent="rent" />
|
|
97
|
-
</div>
|
|
98
|
-
<div :slot="6">
|
|
99
|
-
<SignatureFileList :genericId="rent.id" />
|
|
100
|
-
</div>
|
|
101
|
-
<div :slot="7">
|
|
102
|
-
<InvoiceList :rent="rent" />
|
|
103
|
-
</div>
|
|
104
|
-
<div :slot="8">
|
|
105
|
-
<NfseList :rent="rent" />
|
|
106
|
-
</div>
|
|
107
|
-
<div :slot="9">
|
|
108
|
-
<MovimentList :rent="rent" />
|
|
109
|
-
</div>
|
|
110
|
-
<div :slot="10">
|
|
111
|
-
<br>
|
|
112
|
-
<FileManager :showInModal="true" source="rent" :genericId="id" />
|
|
113
|
-
</div>
|
|
114
|
-
<div :slot="11">
|
|
115
|
-
<b-row>
|
|
116
|
-
<b-col xs="12" sm="12" md="12" lg="2" xl="2">
|
|
117
|
-
<span class="title">
|
|
118
|
-
Data Cadastro <br>
|
|
119
|
-
<i class="fa-solid fa-calendar"></i> {{ rent.registeredDate }}
|
|
120
|
-
</span>
|
|
121
|
-
</b-col>
|
|
122
|
-
<b-col xs="12" sm="12" md="12" lg="2" xl="2">
|
|
123
|
-
<span class="title">
|
|
124
|
-
Usuário Cadastro <br>
|
|
125
|
-
<i class="fa-solid fa-user"></i> {{ rent.registeredUser }}
|
|
126
|
-
</span>
|
|
127
|
-
</b-col>
|
|
128
|
-
</b-row>
|
|
129
|
-
<div class="div-date-accepted">
|
|
130
|
-
<b-row>
|
|
131
|
-
<b-col xs="12" sm="12" md="12" lg="2" xl="2">
|
|
132
|
-
<DateTime title="Data de Efetivação" field="dateAccepted" format="DD/MM/YYYY" type="date" placeholder
|
|
133
|
-
:formName="formName" :required="false" v-model="rent.dateAccepted" />
|
|
134
|
-
</b-col>
|
|
135
|
-
</b-row>
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
</Tab>
|
|
139
|
-
</div>
|
|
140
|
-
<Modal title="Período" :width="900" :height="750" v-show="showModal('periodRentCreateUpdate')">
|
|
141
|
-
<PeriodRentCreateUpdate :rentId="id" />
|
|
142
|
-
</Modal>
|
|
143
|
-
<Modal title="Pagamento" :width="700" :height="750" v-show="showModal('paymentRentCreateUpdate')">
|
|
144
|
-
<PaymentRentCreateUpdate :rentId="id" />
|
|
145
|
-
</Modal>
|
|
146
|
-
</div>
|
|
147
|
-
</template>
|
|
148
|
-
|
|
149
|
-
<script>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
import Badge from "@nixweb/nixloc-ui/src/component/layout/Badge.vue";
|
|
153
|
-
import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded.vue";
|
|
154
|
-
import Tab from "@nixweb/nixloc-ui/src/component/layout/Tab.vue";
|
|
155
|
-
import TextArea from "@nixweb/nixloc-ui/src/component/forms/TextArea";
|
|
156
|
-
import RadioGroup from "@nixweb/nixloc-ui/src/component/forms/RadioGroup.vue";
|
|
157
|
-
import Select from "@nixweb/nixloc-ui/src/component/forms/Select";
|
|
158
|
-
import InputText from "@nixweb/nixloc-ui/src/component/forms/InputText";
|
|
159
|
-
import Modal from "@nixweb/nixloc-ui/src/component/forms/Modal";
|
|
160
|
-
import Button from "@nixweb/nixloc-ui/src/component/forms/Button";
|
|
161
|
-
import EditorHtml from "@nixweb/nixloc-ui/src/component/forms/EditorHtml";
|
|
162
|
-
import DateTime from "@nixweb/nixloc-ui/src/component/forms/DateTime";
|
|
163
|
-
import FileManager from "@nixweb/nixloc-ui/src/component/shared/file-manager/FileManager";
|
|
164
|
-
import SignatureFileList from '../../signature/signature-file/SignatureFileList.vue'
|
|
165
|
-
|
|
166
|
-
import RentTotalization from "./RentTotalizationRent.vue";
|
|
167
|
-
import TypeRentCreateUpdate from "../type-rent/TypeRentCreateUpdate.vue";
|
|
168
|
-
import ConsultantCreateUpdate from '../../human-resources/collaborator/ConsultantCreateUpdate.vue'
|
|
169
|
-
import CustomerWithCreate from "../shared/CustomerWithCreate.vue";
|
|
170
|
-
import ContactCreateUpdate from "../../shared/contact/ContactCreateUpdate.vue";
|
|
171
|
-
import GeneratePeriodRent from "../period-rental/GeneratePeriodRent.vue";
|
|
172
|
-
import PeriodRentList from "../period-rental/PeriodRentList.vue";
|
|
173
|
-
import PeriodRentCreateUpdate from "../period-rental/PeriodRentCreateUpdate.vue";
|
|
174
|
-
import ItemsRentList from "../items-rent/ItemsRentList.vue";
|
|
175
|
-
import PaymentRentCreateUpdate from "../payment-rent/PaymentRentCreateUpdate.vue";
|
|
176
|
-
import PaymentRentList from "../payment-rent/PaymentRentList.vue";
|
|
177
|
-
import DropdownOptionsRent from "../shared/DropdownOptionsRent.vue";
|
|
178
|
-
import InvoiceList from "../billing/InvoiceList.vue";
|
|
179
|
-
import NfseList from '../nfse/NfseList.vue'
|
|
180
|
-
import MovimentList from "../moviment/MovimentList.vue";
|
|
181
|
-
import AddressRentList from "../address-rent/AddressRentList.vue";
|
|
182
|
-
import TeamList from '../team/TeamList.vue'
|
|
183
|
-
import AutomationBuilder from '../../automation/AutomationBuilder.vue'
|
|
184
|
-
|
|
185
|
-
import Rent from "@/components/modules/rental/rent/Rent.js";
|
|
186
|
-
|
|
187
|
-
import { mapGetters, mapActions, mapMutations, mapState } from "vuex";
|
|
188
|
-
|
|
189
|
-
export default {
|
|
190
|
-
name: "RentCreateUpdate",
|
|
191
|
-
props: {
|
|
192
|
-
registerInSelect: Boolean,
|
|
193
|
-
value: Object,
|
|
194
|
-
},
|
|
195
|
-
components: {
|
|
196
|
-
Badge,
|
|
197
|
-
Select,
|
|
198
|
-
RadioGroup,
|
|
199
|
-
TextArea,
|
|
200
|
-
Molded,
|
|
201
|
-
Tab,
|
|
202
|
-
InputText,
|
|
203
|
-
Modal,
|
|
204
|
-
DateTime,
|
|
205
|
-
Button,
|
|
206
|
-
EditorHtml,
|
|
207
|
-
RentTotalization,
|
|
208
|
-
TypeRentCreateUpdate,
|
|
209
|
-
CustomerWithCreate,
|
|
210
|
-
ConsultantCreateUpdate,
|
|
211
|
-
ContactCreateUpdate,
|
|
212
|
-
GeneratePeriodRent,
|
|
213
|
-
PeriodRentList,
|
|
214
|
-
PeriodRentCreateUpdate,
|
|
215
|
-
ItemsRentList,
|
|
216
|
-
DropdownOptionsRent,
|
|
217
|
-
MovimentList,
|
|
218
|
-
PaymentRentList,
|
|
219
|
-
PaymentRentCreateUpdate,
|
|
220
|
-
AddressRentList,
|
|
221
|
-
InvoiceList, AutomationBuilder, NfseList, TeamList, FileManager, SignatureFileList
|
|
222
|
-
},
|
|
223
|
-
data() {
|
|
224
|
-
return {
|
|
225
|
-
id: this.$route.params.id,
|
|
226
|
-
type: this.$route.params.type,
|
|
227
|
-
formName: "rentCreateUpdate",
|
|
228
|
-
rent: new Rent(),
|
|
229
|
-
urlCreate: "/api/v1/rental/rent/create",
|
|
230
|
-
urlUpdate: "/api/v1/rental/rent/update",
|
|
231
|
-
urlGetById: "/api/v1/rental/rent/get-by-id",
|
|
232
|
-
urlItemsMovimentTotalization: "/api/v1/stock/items-moviment/totalization",
|
|
233
|
-
urlItemsRentTotalizationInvoice:
|
|
234
|
-
"/api/v1/rental/items-rent/totalization-invoice",
|
|
235
|
-
statusMovimentStock: {},
|
|
236
|
-
totalProductForInvoice: 0,
|
|
237
|
-
customerAndContact: {},
|
|
238
|
-
tabIndex: 0,
|
|
239
|
-
tabs: [
|
|
240
|
-
{ index: 0, title: "Periodo" },
|
|
241
|
-
{ index: 1, title: "Produto" },
|
|
242
|
-
{ index: 2, title: "Pagamento" },
|
|
243
|
-
{ index: 3, title: "Saída/Retorno" },
|
|
244
|
-
{ index: 4, title: "Observações" },
|
|
245
|
-
{ index: 5, title: "Equipe" },
|
|
246
|
-
{ index: 6, title: "Assinatura" },
|
|
247
|
-
{ index: 7, title: "Fatura" },
|
|
248
|
-
{ index: 8, title: "NFS-e" },
|
|
249
|
-
{ index: 9, title: "Movimentação" },
|
|
250
|
-
{ index: 10, title: "Anexo" },
|
|
251
|
-
{ index: 11, title: "Info" },
|
|
252
|
-
],
|
|
253
|
-
rules: [
|
|
254
|
-
{
|
|
255
|
-
title: 'Gerar Faturamento',
|
|
256
|
-
name: 'billingByRent',
|
|
257
|
-
icon: 'fa-solid fa-file-invoice',
|
|
258
|
-
frequency: {},
|
|
259
|
-
amount: 0,
|
|
260
|
-
dateStart: '',
|
|
261
|
-
dateEnd: '',
|
|
262
|
-
listActivity: []
|
|
263
|
-
},
|
|
264
|
-
]
|
|
265
|
-
};
|
|
266
|
-
},
|
|
267
|
-
created() {
|
|
268
|
-
if (this.id) {
|
|
269
|
-
this.getById();
|
|
270
|
-
this.getStatusMovimentStock();
|
|
271
|
-
this.getTotalProductForInvoice();
|
|
272
|
-
this.tabIndex = 1;
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
computed: {
|
|
276
|
-
...mapState("user", ["userLogged"]),
|
|
277
|
-
...mapGetters("validation", ["isFormValid"]),
|
|
278
|
-
...mapGetters("generic", ["event", "showModal", "isLoading"]),
|
|
279
|
-
...mapGetters("user", ["hasModule", "hasRule"]),
|
|
280
|
-
statusRental() {
|
|
281
|
-
if (this.rent.statusRental == 1)
|
|
282
|
-
return { title: "Orçamento", type: "info" };
|
|
283
|
-
|
|
284
|
-
if (this.rent.statusRental == 2)
|
|
285
|
-
return { title: "Aprovada", type: "success" };
|
|
286
|
-
|
|
287
|
-
if (this.rent.statusRental == 3)
|
|
288
|
-
return { title: "Reprovada", type: "danger" };
|
|
289
|
-
},
|
|
290
|
-
tabsByModule() {
|
|
291
|
-
let tabs = [];
|
|
292
|
-
var isSignature = this.hasRule("Signature");
|
|
293
|
-
var isBilling = this.hasRule("Billing");
|
|
294
|
-
var isTaxDocument = this.hasRule("TaxDocument");
|
|
295
|
-
var isOperational = this.hasRule("Operational");
|
|
296
|
-
|
|
297
|
-
this.tabs.forEach((tab) => {
|
|
298
|
-
if (tab.title == "Assinatura" && isSignature) tabs.push(tab);
|
|
299
|
-
if (tab.title == "Faturamento" && isBilling) tabs.push(tab);
|
|
300
|
-
if (tab.title == "Nfse" && isTaxDocument) tabs.push(tab);
|
|
301
|
-
if (tab.title == "Movimentação" && isOperational) tabs.push(tab);
|
|
302
|
-
if (tab.title != "Faturamento" && tab.title != "Movimentação" && tab.title != "Nfse" && tab.title != "Assinatura")
|
|
303
|
-
tabs.push(tab);
|
|
304
|
-
});
|
|
305
|
-
return tabs;
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
methods: {
|
|
309
|
-
...mapActions("generic", ["postApi", "putApi", "getApi"]),
|
|
310
|
-
...mapMutations("generic", [
|
|
311
|
-
"addEvent",
|
|
312
|
-
"removeLoading",
|
|
313
|
-
"openModal",
|
|
314
|
-
"hideModal",
|
|
315
|
-
"hideVodal",
|
|
316
|
-
]),
|
|
317
|
-
...mapMutations("validation", ["resetValidation", "removeFormDirty"]),
|
|
318
|
-
create() {
|
|
319
|
-
let params = { url: this.urlCreate, obj: this.rent };
|
|
320
|
-
this.postApi(params).then((response) => {
|
|
321
|
-
if (response.success)
|
|
322
|
-
this.$router.replace({
|
|
323
|
-
name: "rentUpdate",
|
|
324
|
-
params: { id: response.content.id, type: response.content.type },
|
|
325
|
-
});
|
|
326
|
-
this.removeLoading(["saveSaveCancel"]);
|
|
327
|
-
});
|
|
328
|
-
},
|
|
329
|
-
update() {
|
|
330
|
-
let params = { url: this.urlUpdate, obj: this.rent };
|
|
331
|
-
this.putApi(params).then((response) => {
|
|
332
|
-
if (response.success) {
|
|
333
|
-
let self = this;
|
|
334
|
-
setTimeout(function () {
|
|
335
|
-
self.addEvent({ name: "updateTotalizationRent" });
|
|
336
|
-
}, 100);
|
|
337
|
-
}
|
|
338
|
-
this.removeLoading(["saveSaveCancel"]);
|
|
339
|
-
});
|
|
340
|
-
},
|
|
341
|
-
getById() {
|
|
342
|
-
let params = { url: this.urlGetById, obj: { id: this.id } };
|
|
343
|
-
this.getApi(params).then((response) => {
|
|
344
|
-
this.rent.update(response.content);
|
|
345
|
-
let self = this;
|
|
346
|
-
setTimeout(function () {
|
|
347
|
-
self.removeLoading(["panel"]);
|
|
348
|
-
self.removeFormDirty();
|
|
349
|
-
}, 100);
|
|
350
|
-
});
|
|
351
|
-
},
|
|
352
|
-
getStatusMovimentStock() {
|
|
353
|
-
let params = {
|
|
354
|
-
url: this.urlItemsMovimentTotalization,
|
|
355
|
-
obj: { rentId: this.id },
|
|
356
|
-
};
|
|
357
|
-
this.getApi(params).then((response) => {
|
|
358
|
-
this.statusMovimentStock = response.content;
|
|
359
|
-
});
|
|
360
|
-
},
|
|
361
|
-
getTotalProductForInvoice() {
|
|
362
|
-
let params = {
|
|
363
|
-
url: this.urlItemsRentTotalizationInvoice,
|
|
364
|
-
obj: { rentId: this.id },
|
|
365
|
-
};
|
|
366
|
-
this.getApi(params).then((response) => {
|
|
367
|
-
this.totalProductForInvoice = response.content;
|
|
368
|
-
});
|
|
369
|
-
},
|
|
370
|
-
newRent() {
|
|
371
|
-
this.$router.push({
|
|
372
|
-
name: "rentSelectOption",
|
|
373
|
-
});
|
|
374
|
-
this.removeLoading(["btnRentCreate"]);
|
|
375
|
-
},
|
|
376
|
-
},
|
|
377
|
-
watch: {
|
|
378
|
-
event: {
|
|
379
|
-
handler(event) {
|
|
380
|
-
let name = event.name;
|
|
381
|
-
|
|
382
|
-
if (name == "saveSaveCancel") {
|
|
383
|
-
if (!this.id) this.create();
|
|
384
|
-
if (this.id) this.update();
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
if (name == "periodRentCreateUpdate" || name == "periodRentUpdate") {
|
|
388
|
-
this.openModal("periodRentCreateUpdate");
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
if (name == "paymentRentCreate" || name == "paymentRentUpdate") {
|
|
392
|
-
this.openModal("paymentRentCreateUpdate");
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
if (name == "generatePeriodRent") this.rent.periodRent = event.data;
|
|
396
|
-
|
|
397
|
-
if (
|
|
398
|
-
name == "rentAccepted" ||
|
|
399
|
-
name == "rentProcessed" ||
|
|
400
|
-
name == "rentRejected"
|
|
401
|
-
) {
|
|
402
|
-
this.getById();
|
|
403
|
-
this.getTotalProductForInvoice();
|
|
404
|
-
this.getStatusMovimentStock();
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
if (name == "addedProduct" || name == "removedItemRent") {
|
|
408
|
-
this.getStatusMovimentStock();
|
|
409
|
-
this.getTotalProductForInvoice();
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
deep: true,
|
|
413
|
-
},
|
|
414
|
-
},
|
|
415
|
-
};
|
|
416
|
-
</script>
|
|
417
|
-
|
|
418
|
-
<style scoped>
|
|
419
|
-
.margin {
|
|
420
|
-
margin-right: 10px;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
.div-period {
|
|
424
|
-
margin: auto;
|
|
425
|
-
width: 80%;
|
|
426
|
-
padding: 10px;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.div-date-accepted {
|
|
430
|
-
margin-top: 10px;
|
|
431
|
-
}
|
|
432
|
-
</style>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="text-center">
|
|
4
|
-
<Button
|
|
5
|
-
_key="btnRentProgress"
|
|
6
|
-
title="SIM, deixar como Orçamento"
|
|
7
|
-
classIcon="fa-solid fa-circle-check"
|
|
8
|
-
type="warning"
|
|
9
|
-
size="small"
|
|
10
|
-
:clicked="update"
|
|
11
|
-
/>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
|
15
|
-
<script>
|
|
16
|
-
import Button from "@nixweb/nixloc-ui/src/component/forms/Button.vue";
|
|
17
|
-
|
|
18
|
-
import { mapMutations, mapActions } from "vuex";
|
|
19
|
-
|
|
20
|
-
export default {
|
|
21
|
-
name: "RentProgress",
|
|
22
|
-
props: {
|
|
23
|
-
rentId: String,
|
|
24
|
-
},
|
|
25
|
-
components: {
|
|
26
|
-
Button,
|
|
27
|
-
},
|
|
28
|
-
data() {
|
|
29
|
-
return { urlUpdate: "/api/v1/rental/rent/progress" };
|
|
30
|
-
},
|
|
31
|
-
methods: {
|
|
32
|
-
...mapActions("generic", ["putApi"]),
|
|
33
|
-
...mapMutations("generic", ["addEvent", "hideModal", "removeLoading"]),
|
|
34
|
-
update() {
|
|
35
|
-
let params = { url: this.urlUpdate, obj: { rentId: this.rentId } };
|
|
36
|
-
this.putApi(params).then((response) => {
|
|
37
|
-
if (response.success) {
|
|
38
|
-
this.addEvent({ name: "rentProcessed" });
|
|
39
|
-
this.hideModal();
|
|
40
|
-
}
|
|
41
|
-
this.removeLoading(["btnRentProgress"]);
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
</script>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="text-center">
|
|
4
|
-
<Button
|
|
5
|
-
_key="btnRentReject"
|
|
6
|
-
title="SIM, reprovar"
|
|
7
|
-
classIcon="fa-solid fa-circle-check"
|
|
8
|
-
type="danger"
|
|
9
|
-
size="small"
|
|
10
|
-
:clicked="update"
|
|
11
|
-
/>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
|
15
|
-
<script>
|
|
16
|
-
import Button from "@nixweb/nixloc-ui/src/component/forms/Button.vue";
|
|
17
|
-
|
|
18
|
-
import { mapMutations, mapActions } from "vuex";
|
|
19
|
-
|
|
20
|
-
export default {
|
|
21
|
-
name: "RentAccept",
|
|
22
|
-
props: {
|
|
23
|
-
rentId: String,
|
|
24
|
-
},
|
|
25
|
-
components: {
|
|
26
|
-
Button,
|
|
27
|
-
},
|
|
28
|
-
data() {
|
|
29
|
-
return { urlUpdate: "/api/v1/rental/rent/reject" };
|
|
30
|
-
},
|
|
31
|
-
methods: {
|
|
32
|
-
...mapActions("generic", ["putApi"]),
|
|
33
|
-
...mapMutations("generic", ["addEvent", "hideModal", "removeLoading"]),
|
|
34
|
-
update() {
|
|
35
|
-
let params = { url: this.urlUpdate, obj: { rentId: this.rentId } };
|
|
36
|
-
this.putApi(params).then((response) => {
|
|
37
|
-
if (response.success) {
|
|
38
|
-
this.addEvent({ name: "rentRejected" });
|
|
39
|
-
this.hideModal();
|
|
40
|
-
}
|
|
41
|
-
this.removeLoading(["btnRentReject"]);
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
</script>
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<DisplayTotalization title="Sub-Total" :value="totalization.totalValue" />
|
|
4
|
-
<DisplayTotalization v-if="totalization.totalInsurance > 0" title="Seguro" :value="totalization.totalInsurance"
|
|
5
|
-
_style="color: #808080" />
|
|
6
|
-
<DisplayTotalization title="Desconto" :discount="totalization.percentageDiscount.toFixed(1)"
|
|
7
|
-
:value="totalization.totalDiscount" _style="color: red" :clicked="editDiscount" />
|
|
8
|
-
<DisplayTotalization v-if="totalization.totalCost > 0" title="Custo" :value="totalization.totalCost"
|
|
9
|
-
_style="color: red" />
|
|
10
|
-
<DisplayTotalization title="TOTAL GERAL" :value="totalization.totalGeneral" />
|
|
11
|
-
<Modal title="Desconto" :width="500" :height="750" v-if="showModal('discount')">
|
|
12
|
-
<Alert type="info">
|
|
13
|
-
<span>
|
|
14
|
-
Não será aplicado desconto em produto faturado!
|
|
15
|
-
</span>
|
|
16
|
-
</Alert>
|
|
17
|
-
<div class="div-discount">
|
|
18
|
-
<InputDecimalDiscount title="Desconto Unitário" :markFormDirty="false" field="unitDiscount" :required="false"
|
|
19
|
-
_style="color:red;" :maxLength="5" type="float" v-model="discount" />
|
|
20
|
-
<div class="div-apply text-center">
|
|
21
|
-
<Button _key="btnApplyDiscount" title="Aplicar" backGroundColor="#F36944" color="white" size="medium"
|
|
22
|
-
:clicked="applyDiscount" />
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</Modal>
|
|
26
|
-
<!--<div class="div-total-payment" v-if="totalization.totalGeneral != totalization.totalPayment">
|
|
27
|
-
<Alert type="warning" v-if="statusRental == 2">
|
|
28
|
-
O Valor Total da Locação <b>{{ totalization.totalGeneral | currency }}</b> está diferente do Valor Total da
|
|
29
|
-
Condição de Pagamento <b>{{ totalization.totalPayment | currency }}</b>.
|
|
30
|
-
</Alert>
|
|
31
|
-
</div> -->
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
34
|
-
<script>
|
|
35
|
-
import DisplayTotalization from "@nixweb/nixloc-ui/src/component/rental/DisplayTotalization";
|
|
36
|
-
import InputDecimalDiscount from "@nixweb/nixloc-ui/src/component/forms/InputDecimalDiscount";
|
|
37
|
-
import Modal from "@nixweb/nixloc-ui/src/component/forms/Modal";
|
|
38
|
-
import Button from "@nixweb/nixloc-ui/src/component/forms/Button";
|
|
39
|
-
import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded";
|
|
40
|
-
import Alert from "@nixweb/nixloc-ui/src/component/layout/Alert";
|
|
41
|
-
|
|
42
|
-
import { mapActions, mapState, mapMutations, mapGetters } from "vuex";
|
|
43
|
-
|
|
44
|
-
export default {
|
|
45
|
-
name: "RentTotalizationRent",
|
|
46
|
-
components: { DisplayTotalization, InputDecimalDiscount, Modal, Button, Molded, Alert },
|
|
47
|
-
props: {
|
|
48
|
-
rentId: String,
|
|
49
|
-
statusRental: Number,
|
|
50
|
-
value: Number
|
|
51
|
-
},
|
|
52
|
-
data() {
|
|
53
|
-
return {
|
|
54
|
-
urlGetTotalization: "/api/v1/rental/rent/totalization",
|
|
55
|
-
urlUpdate: "/api/v1/rental/rent/update-discount",
|
|
56
|
-
totalization: {},
|
|
57
|
-
discount: { discountByPercentage: false, discount: 0 },
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
created() {
|
|
61
|
-
this.getTotalization();
|
|
62
|
-
},
|
|
63
|
-
computed: {
|
|
64
|
-
...mapState("generic", ["event", "methodExecutedApi"]),
|
|
65
|
-
...mapGetters("generic", ["showModal"]),
|
|
66
|
-
},
|
|
67
|
-
methods: {
|
|
68
|
-
...mapActions("generic", ["getApi", "putApi"]),
|
|
69
|
-
...mapMutations("generic", ["addEvent", "openModal", "hideModal", "removeLoading"]),
|
|
70
|
-
getTotalization() {
|
|
71
|
-
let params = { url: this.urlGetTotalization, obj: { rentId: this.rentId } };
|
|
72
|
-
this.getApi(params).then((response) => {
|
|
73
|
-
this.totalization = response.content;
|
|
74
|
-
this.discount.discount = this.totalization.totalDiscount;
|
|
75
|
-
this.discount.discountByPercentage = false;
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
editDiscount() {
|
|
79
|
-
this.openModal("discount");
|
|
80
|
-
},
|
|
81
|
-
applyDiscount() {
|
|
82
|
-
let params = {
|
|
83
|
-
url: this.urlUpdate, obj: {
|
|
84
|
-
id: this.rentId,
|
|
85
|
-
discountByPercentage: this.discount.discountByPercentage,
|
|
86
|
-
discount: this.discount.discount
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
this.putApi(params).then((response) => {
|
|
90
|
-
if (response.success) {
|
|
91
|
-
let self = this;
|
|
92
|
-
setTimeout(function () {
|
|
93
|
-
self.addEvent({ name: "updateItemsRent" });
|
|
94
|
-
self.getTotalization();
|
|
95
|
-
self.hideModal();
|
|
96
|
-
}, 100);
|
|
97
|
-
}
|
|
98
|
-
this.removeLoading(["btnApplyDiscount"]);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
watch: {
|
|
103
|
-
methodExecutedApi: {
|
|
104
|
-
handler(methodExecutedApi) {
|
|
105
|
-
if (methodExecutedApi) this.getTotalization();
|
|
106
|
-
},
|
|
107
|
-
deep: true,
|
|
108
|
-
},
|
|
109
|
-
event: {
|
|
110
|
-
handler(event) {
|
|
111
|
-
if (event.name == "updateTotalizationRent"
|
|
112
|
-
|| event.name == "itemsImported")
|
|
113
|
-
this.getTotalization();
|
|
114
|
-
},
|
|
115
|
-
deep: true,
|
|
116
|
-
},
|
|
117
|
-
discount: {
|
|
118
|
-
handler(discount) {
|
|
119
|
-
this.$emit("input", discount);
|
|
120
|
-
},
|
|
121
|
-
deep: true,
|
|
122
|
-
},
|
|
123
|
-
value: {
|
|
124
|
-
handler(discount) {
|
|
125
|
-
this.discount = this.value;
|
|
126
|
-
},
|
|
127
|
-
deep: true,
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
</script>
|
|
132
|
-
<style scoped>
|
|
133
|
-
.div-discount {
|
|
134
|
-
margin-right: 25px;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.div-products {
|
|
138
|
-
margin-bottom: 10px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.div-total-payment {
|
|
142
|
-
margin-bottom: 30px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
.title-discount {
|
|
147
|
-
color: red;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.div-apply {
|
|
151
|
-
margin-top: 10px;
|
|
152
|
-
}
|
|
153
|
-
</style>
|