\r\n \r\n \r\n \r\n \r\n \r\n {{ $t('Routes.addTypeEquipment') }}\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 0 ? false : null\">\r\n {{ errors[0] }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 0 ? false : null\">\r\n {{ errors[0] }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ $t('Lists.Add') }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TypeEquipmentAdd.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TypeEquipmentAdd.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TypeEquipmentAdd.vue?vue&type=template&id=44c11458&\"\nimport script from \"./TypeEquipmentAdd.vue?vue&type=script&lang=js&\"\nexport * from \"./TypeEquipmentAdd.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { ref, nextTick } from '@vue/composition-api'\r\n\r\n// ===========================================================\r\n// ! This is coupled with \"veeValidate\" plugin\r\n// ===========================================================\r\n\r\nexport default function formValidation(resetFormData, clearFormData = () => {}) {\r\n // ------------------------------------------------\r\n // refFormObserver\r\n // ! This is for veeValidate Observer\r\n // * Used for veeValidate form observer\r\n // ------------------------------------------------\r\n const refFormObserver = ref(null)\r\n\r\n // ------------------------------------------------\r\n // resetObserver\r\n // ! This function is coupled with veeValidate\r\n // * It resets form observer\r\n // ------------------------------------------------\r\n const resetObserver = () => {\r\n refFormObserver.value.reset()\r\n }\r\n\r\n // ------------------------------------------------\r\n // getValidationState\r\n // ! This function is coupled with veeValidate\r\n // * It returns true/false based on validation\r\n // ------------------------------------------------\r\n // eslint-disable-next-line object-curly-newline\r\n const getValidationState = ({ dirty, validated, required: fieldRequired, changed, valid = null }) => {\r\n const result = dirty || validated ? valid : null\r\n return !fieldRequired && !changed ? null : result\r\n }\r\n\r\n // ------------------------------------------------\r\n // resetForm\r\n // ! This function is coupled with veeValidate\r\n // * This uses resetFormData arg to reset form data\r\n // ------------------------------------------------\r\n const resetForm = () => {\r\n resetFormData()\r\n nextTick(() => {\r\n resetObserver()\r\n })\r\n }\r\n\r\n // ------------------------------------------------\r\n // clearForm\r\n // ! This function is coupled with veeValidate\r\n // * This uses clearFormData arg to reset form data\r\n // ------------------------------------------------\r\n const clearForm = () => {\r\n clearFormData()\r\n nextTick(() => {\r\n resetObserver()\r\n })\r\n }\r\n\r\n return {\r\n refFormObserver,\r\n resetObserver,\r\n getValidationState,\r\n resetForm,\r\n clearForm,\r\n }\r\n}\r\n","import axios from '@axios'\r\nimport common from '@/libs/common'\r\nimport defaultService from './_default.service'\r\n\r\nexport default function tecnologyInformationService() {\r\n const defaultMethods = defaultService('TecnologiasInformacion')\r\n const { throwError, throwSuccess } = common()\r\n const API_URL = `${process.env.VUE_APP_ADUACORE_API_URL}/api/TecnologiasInformacion`\r\n\r\n const fetchSoftwares = (data, callback) => defaultMethods.fetch('Software', {}, data, callback)\r\n const fetchSoftware = (softwareId, callback) => defaultMethods.fetch('Software/%{softwareId}', { softwareId }, {}, callback)\r\n const fetchDocumentsSoftware = (id, callback) => defaultMethods.fetch('Software/%{id}/Documento', { id }, {}, callback)\r\n const deleteDocumenSoftware = (id, docId, callback) => defaultMethods.remove('Software/%{id}/Documento/%{docId}', { id, docId }, {}, callback)\r\n const fetchProviders = (data, callback) => defaultMethods.fetch('Proveedor', {}, data, callback)\r\n const fetchProvider = (proveedorTiId, callback) => defaultMethods.fetch('Proveedor/%{proveedorTiId}', { proveedorTiId }, {}, callback)\r\n const deleteProvider = (proveedorTiId, callback) => defaultMethods.remove('Proveedor/%{proveedorTiId}', { proveedorTiId }, true, callback)\r\n const fetchContacts = (id, data, callback) => defaultMethods.fetch('ProveedorContactos/%{id}', { id }, data, callback)\r\n const fetchContact = (id, callback) => defaultMethods.fetch('ProveedorContacto/%{id}', { id }, {}, callback)\r\n const deleteContact = (id, callback) => defaultMethods.remove('ProveedorContacto/%{id}', { id }, true, callback)\r\n const fetchTypeEquipments = (data, callback) => defaultMethods.fetch('TipoEquipo', {}, data, callback)\r\n const fetchTypeEquipment = (id, callback) => defaultMethods.fetch('TipoEquipo/%{id}', { id }, {}, callback)\r\n const fetchBrands = (data, callback) => defaultMethods.fetch('EquipoMarca', {}, data, callback)\r\n const fetchBrand = (id, callback) => defaultMethods.fetch('EquipoMarca/%{id}', { id }, {}, callback)\r\n const fetchModels = (data, callback) => defaultMethods.fetch('EquipoModelos', {}, data, callback)\r\n const fetchModel = (id, callback) => defaultMethods.fetch('EquipoModelos/%{id}', { id }, {}, callback)\r\n const fetchEquipments = (data, callback) => defaultMethods.fetch('Equipo', {}, data, callback)\r\n const fetchEquipment = (id, callback) => defaultMethods.fetch('Equipo/%{id}', { id }, {}, callback)\r\n const fetchLogEquipment = (id, callback) => defaultMethods.fetch('Equipo/%{id}/Bitacora', { id }, {}, callback)\r\n const fetchDocumentsEquipment = (id, callback) => defaultMethods.fetch('Equipo/%{id}/Documento', { id }, {}, callback)\r\n const deleteDocumenEquipment = (id, docId, callback) => defaultMethods.remove('Equipo/%{id}/Documento/%{docId}', { id, docId }, {}, callback)\r\n const fetchEquipmentsBrands = (tipoMarcaId, data, callback) => defaultMethods.fetch('EquipoModelRelacionado/%{tipoMarcaId}', { tipoMarcaId }, data, callback)\r\n /* Standard prefix names:\r\n Post: create, Get: fetch,\r\n Put: update, Patch: partialUpdate,\r\n Delete: delete\r\n */\r\n const createSoftware = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/Software`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const updateSoftware = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/Software/${data.softwareId}`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const fetchDocumentSoftware = (id, docId, callback) => {\r\n axios\r\n .get(`${API_URL}/Software/${id}/Documento/${docId}`, { responseType: 'blob' })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n\r\n const createDocumentSoftware = (id, data, callback) => {\r\n axios\r\n .post(`${API_URL}/Software/${id}/Documento`, data)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => {\r\n throwError(error)\r\n })\r\n }\r\n const createProvider = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/Proveedor`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const updateProvider = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/Proveedor/${data.proveedorTiId}`, data)\r\n .then(response => {\r\n resolve()\r\n throwSuccess(response)\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const createContact = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/ProveedorContacto`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const updateContact = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/ProveedorContacto/${data.proveedorTiContactoId}`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const createTypeEquipment = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/TipoEquipo`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n\r\n const updateTypeEquipment = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/TipoEquipo/${data.tipoEquipoId}`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n\r\n const createBrand = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/EquipoMarca`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const updateBrand = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/EquipoMarca/${data.tipoMarcaId}`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const createModel = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/EquipoModelos`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const updateModel = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/EquipoModelos/${data.tipoEquipoMarcaModeloId}`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const createEquipment = data => new Promise((resolve, reject) => {\r\n axios\r\n .post(`${API_URL}/Equipo`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n const updateEquipment = data => new Promise((resolve, reject) => {\r\n axios\r\n .put(`${API_URL}/Equipo/${data.equipoId}`, data)\r\n .then(response => {\r\n throwSuccess(response)\r\n resolve()\r\n })\r\n .catch(error => {\r\n reject()\r\n throwError(error)\r\n })\r\n })\r\n\r\n const fetchDocumentEquipment = (id, docId, callback) => {\r\n axios\r\n .get(`${API_URL}/Equipo/${id}/Documento/${docId}`, { responseType: 'blob' })\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => throwError(error))\r\n }\r\n\r\n const createDocumentEquipment = (id, data, callback) => {\r\n axios\r\n .post(`${API_URL}/Equipo/${id}/Documento`, data)\r\n .then(response => {\r\n callback(response.data)\r\n })\r\n .catch(error => {\r\n throwError(error)\r\n })\r\n }\r\n\r\n // ===================================================================|\r\n // Bank Count --------------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n\r\n // ===================================================================|\r\n // Bank Count --------------------------------------------------------------------------------------------|\r\n // ===================================================================|\r\n const fetchAccountBankProviders = (data, callback) => defaultMethods.fetch('ProveedorCuentaBancaria', {}, data, callback)\r\n const fetchAccountBankProvider = (id, callback) => defaultMethods.fetch('ProveedorCuentaBancaria/%{id}', { id }, {}, callback)\r\n const updateAccountBankProvider = (id, data, callback) => defaultMethods.update('ProveedorCuentaBancaria/%{id}', { id }, true, data, callback)\r\n const createAccountBankProvider = (data, callback) => defaultMethods.create('ProveedorCuentaBancaria', {}, true, data, callback)\r\n const deleteAccountBankProvider = (id, callback) => defaultMethods.remove('ProveedorCuentaBancaria/%{id}', { id }, true, callback)\r\n\r\n return {\r\n fetchSoftwares,\r\n fetchSoftware,\r\n createSoftware,\r\n updateSoftware,\r\n fetchDocumentsSoftware,\r\n fetchDocumentSoftware,\r\n createDocumentSoftware,\r\n deleteDocumenSoftware,\r\n fetchProviders,\r\n fetchProvider,\r\n createProvider,\r\n updateProvider,\r\n deleteProvider,\r\n fetchContacts,\r\n createContact,\r\n updateContact,\r\n fetchContact,\r\n deleteContact,\r\n fetchTypeEquipments,\r\n fetchTypeEquipment,\r\n createTypeEquipment,\r\n updateTypeEquipment,\r\n fetchModels,\r\n fetchModel,\r\n createModel,\r\n updateModel,\r\n fetchBrands,\r\n fetchBrand,\r\n createBrand,\r\n updateBrand,\r\n fetchEquipments,\r\n fetchEquipment,\r\n fetchLogEquipment,\r\n createEquipment,\r\n updateEquipment,\r\n fetchDocumentsEquipment,\r\n fetchDocumentEquipment,\r\n createDocumentEquipment,\r\n deleteDocumenEquipment,\r\n fetchAccountBankProviders,\r\n fetchAccountBankProvider,\r\n updateAccountBankProvider,\r\n createAccountBankProvider,\r\n deleteAccountBankProvider,\r\n fetchEquipmentsBrands,\r\n }\r\n}\r\n"],"sourceRoot":""}