{"version":3,"sources":["webpack:///./src/views/Alumno/ReportarPago.vue?a8b4","webpack:///./src/views/Alumno/js/ReportarPago.js","webpack:///./src/views/Alumno/js/ReportarPago.js?a7b1","webpack:///./src/views/Alumno/ReportarPago.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","attrs","on","$event","acceptNumbers","model","value","callback","$$v","montoPago","expression","selectedConcepto","selectedProgramaEducativo","descripcionPago","onDocChargeChanged","_v","temario","chargedDoc","class","fileError","uploadFile","deleteChargedFile","staticStyle","filesrc","_e","_s","errorFileMsg","staticRenderFns","pagos","del","isProgramaEducativoRequired","isCharged","name","file","eventTarget","uploadFileCharged","onProgress","readyProgess","text","style","height","errorFileType","isTemarioPreCharged","props","programa","Object","nombrePrograma","String","idPrograma","idPago","computed","methods","selectProgramaEducativoKey","replace","fileType","event","target","files","type","selectedFile","read","FileReader","onload","e","result","readAsDataURL","contieneDocumento","documento","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,eAAe,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,WAAW,CAACE,YAAY,SAASE,MAAM,CAAC,YAAY,UAAU,KAAO,mBAAmB,iBAAiB,IAAIC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,kBAAkBC,MAAM,CAACC,MAAOb,EAAa,UAAEc,SAAS,SAAUC,GAAMf,EAAIgB,UAAUD,GAAKE,WAAW,gBAAgB,KAAKb,EAAG,MAAM,CAACE,YAAY,eAAe,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,WAAW,CAACE,YAAY,SAASE,MAAM,CAAC,SAAW,QAAQI,MAAM,CAACC,MAAOb,EAAoB,iBAAEc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E,KAAKsB,QAAQC,WAAWM,QAAUwC,EAAEP,OAAOQ,QAE7CJ,EAAKK,cAAcvE,KAAKsB,QAAQC,WAAWgB,MAC3CvC,KAAKwE,kBAAoB,OAEzBxE,KAAKgC,aAAe,8DACpBhC,KAAK+C,eAAgB,GAGzB,kBAAkB0B,GAEhBA,EAAUlD,WAAWgB,KAAO,KAC5BkC,EAAUlD,WAAWc,WAAY,EACjCoC,EAAUlD,WAAWe,KAAO,GAC5BmC,EAAU/C,WAAa1B,KAAKyC,kBAC5BgC,EAAUlD,WAAWM,QAAU,GAE1B7B,KAAKgD,sBAMRyB,EAAUlD,WAAWiB,YAAYwB,KAAO,OACxCS,EAAUlD,WAAWiB,YAAYwB,KAAO,QAE1ChE,KAAKgD,qBAAsB,EAC3BhD,KAAKwE,kBAAoB,IAI7B,UACExE,KAAKkB,0BAA4BlB,KAAKoD,gBAExC,aC/KwI,I,YCOtIsB,EAAY,eACd,EACA5E,EACAmC,GACA,EACA,KACA,KACA,MAIa,aAAAyC,E","file":"js/chunk-2d0cbf32.74b20a89.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"vx-row mb-5\"},[_vm._m(0),_c('div',{staticClass:\"vx-col w-1/3\"},[_c('vs-input',{staticClass:\"w-full\",attrs:{\"icon-pack\":\"feather\",\"icon\":\"icon-dollar-sign\",\"icon-no-border\":\"\"},on:{\"keyup\":function($event){return _vm.acceptNumbers()}},model:{value:(_vm.montoPago),callback:function ($$v) {_vm.montoPago=$$v},expression:\"montoPago\"}})],1)]),_c('div',{staticClass:\"vx-row mb-5\"},[_vm._m(1),_c('div',{staticClass:\"vx-col w-2/3\"},[_c('vs-input',{staticClass:\"w-full\",attrs:{\"disabled\":\"true\"},model:{value:(_vm.selectedConcepto),callback:function ($$v) {_vm.selectedConcepto=$$v},expression:\"selectedConcepto\"}})],1)]),_c('div',{staticClass:\"vx-row mb-5\"},[_vm._m(2),_c('div',{staticClass:\"vx-col w-2/3\"},[_c('vs-input',{staticClass:\"w-full\",attrs:{\"disabled\":\"true\"},model:{value:(_vm.selectedProgramaEducativo),callback:function ($$v) {_vm.selectedProgramaEducativo=$$v},expression:\"selectedProgramaEducativo\"}})],1)]),_c('div',{staticClass:\"vx-row mb-5\"},[_vm._m(3),_c('div',{staticClass:\"vx-col w-2/3\"},[_c('vs-textarea',{attrs:{\"rows\":\"3\",\"placeholder\":\"Descripción\"},model:{value:(_vm.descripcionPago),callback:function ($$v) {_vm.descripcionPago=$$v},expression:\"descripcionPago\"}})],1)]),_c('div',{staticClass:\"vx-row mb-5\"},[_vm._m(4),_c('div',{staticClass:\"vx-col w-2/3\"},[_c('div',[_c('div',{staticClass:\"con-upload\"},[_c('div',{staticClass:\"con-input-upload\"},[_c('input',{attrs:{\"type\":\"file\"},on:{\"change\":function($event){return _vm.onDocChargeChanged($event)}}}),_c('span',{staticClass:\"text-input\"},[_vm._v(\" Elegir archivo \")])]),(_vm.temario.chargedDoc.isCharged)?_c('div',{staticClass:\"con-img-upload flex justify-center\"},[_c('span',[_c('div',{staticClass:\"img-upload payment-img-upload-file\",class:{ fileError: _vm.temario.uploadFile.fileError }},[_c('button',{staticClass:\"btn-x-file\",on:{\"click\":function($event){return _vm.deleteChargedFile(_vm.temario)}}},[_c('i',{staticClass:\"material-icons notranslate\",attrs:{\"translate\":\"translate\"}},[_vm._v(\"clear\")])]),_c('img',{staticStyle:{\"max-width\":\"100%\",\"height\":\"none\"},attrs:{\"src\":_vm.temario.chargedDoc.filesrc,\"alt\":\"\"}})])])]):_vm._e()]),(_vm.errorFileType)?_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(_vm.errorFileMsg))]):_vm._e()])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vx-col w-1/3 text-right\"},[_c('p',[_vm._v(\"Monto\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vx-col w-1/3 text-right\"},[_c('p',[_vm._v(\"Concepto\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vx-col w-1/3 text-right\"},[_c('p',[_vm._v(\"Programa Educativo\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vx-col w-1/3 text-right\"},[_c('p',[_vm._v(\"Descripción\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vx-col w-1/3 text-right\"},[_c('p',[_vm._v(\"Evidencia\")])])}]\n\nexport { render, staticRenderFns }","\r\n// const $ = require('jquery')\r\nexport default {\r\n data() {\r\n return {\r\n pagos: [],\r\n del: false,\r\n \r\n montoPago: '',\r\n selectedConcepto: 'Colegiatura',\r\n selectedProgramaEducativo: '',\r\n descripcionPago: '',\r\n isProgramaEducativoRequired: false,\r\n temario: {\r\n chargedDoc: {\r\n isCharged: false,\r\n name: '',\r\n file: null,\r\n eventTarget: null,\r\n filesrc: ''\r\n }\r\n },\r\n\r\n // Upload files button states\r\n uploadFileCharged: {\r\n onProgress: false,\r\n readyProgess: false,\r\n fileError: null,\r\n text: 'cloud_upload',\r\n style: {\r\n height: null\r\n }\r\n },\r\n errorFileType: false,\r\n errorFileMsg: '',\r\n isTemarioPreCharged: false,\r\n }\r\n },\r\n props: {\r\n programa: Object,\r\n nombrePrograma: String,\r\n idPrograma: String,\r\n idPago: String,\r\n montoPago:String,\r\n },\r\n computed: {\r\n validatePagosForm() {\r\n return this.montoPago != '' &&\r\n this.temario.chargedDoc.file != null &&\r\n (this.isProgramaEducativoRequired ? this.selectedProgramaEducativo != null : true);\r\n },\r\n },\r\n methods: {\r\n // ObtenerMonto() {\r\n\t\t// \tfetch(`${BASE.baseUrl}api/calendarioPagosAlumnos/${this.programa.idGrupo}`, {\r\n\t\t// \t\tmethod: 'GET',\r\n\t\t// \t\theaders: {\r\n\t\t// \t\t\t'Authorization': sessionStorage.getItem('token'),\r\n\t\t// \t\t}\r\n\t\t// \t})\r\n\t\t// \t\t.then(rs => rs.json())\r\n\t\t// \t\t.then(rs => {\r\n\t\t// \t\t\tif (rs.status == 200) {\r\n\t\t// \t\t\t\trs.result.listaPeriodos.forEach((index) => {\r\n\t\t// \t\t\t\t\tthis.montoPago = index.colegiatura;\r\n\t\t\t\t\t\t\t\r\n\t\t// \t\t\t\t});\r\n\t\t// \t\t\t\t//console.log('Monto='+this.MontoColegiatura);\r\n\t\t// \t\t\t}\r\n\t\t// \t\t});\r\n\t\t// },\r\n\r\n // addPayment() {\r\n \r\n // const formData = new FormData();\r\n // const _this = this;\r\n // let requestObject = {\r\n // //idUsuario: '17BFA769-6009-44FB-A8E0-FEF91E3E0749',\r\n // idPago: this.idPago,\r\n // idUsuario: sessionStorage.getItem('token'),\r\n // idPrograma: this.idPrograma,\r\n // concepto: '7f1701cf-7c3a-4957-8592-08999e0b6671',\r\n // descripcion: this.descripcionPago,\r\n // monto: parseFloat(this.montoPago)\r\n // }\r\n // formData.append('Request', JSON.stringify(requestObject));\r\n // formData.append('Archivos', this.temario.chargedDoc.file);\r\n // $.ajax({\r\n // url: `${_this.$BASE.baseUrl}api/AgregarPagos`,\r\n // headers: {\r\n // 'Authorization': sessionStorage.getItem('token'),\r\n \r\n // 'pagina': 'pagos'\r\n // },\r\n // type: 'POST',\r\n // dataType: 'json',\r\n // cache: false,\r\n // contentType: false,\r\n // processData: false,\r\n // data: formData,\r\n // success: function (rs) {\r\n // if (rs.status === 200) {\r\n // _this.showNotify(rs.status, null, 'Se agregó el pago.');\r\n // _this.clearRegistrarPaymentForm();\r\n // } else {\r\n // _this.showNotify(rs.status);\r\n // _this.clearRegistrarPaymentForm();\r\n // }\r\n // },\r\n // error: function (xhr, ajaxOptions, thrownError) {\r\n // _this.showNotify(xhr.status);\r\n // }\r\n // });\r\n // },\r\n\r\n clearRegistrarPaymentForm() {\r\n\r\n this.descripcionPago = '';\r\n this.selectProgramaEducativoKey = !this.selectProgramaEducativoKey;\r\n if (this.temario.chargedDoc.file != null) this.deleteChargedFile(this.temario);\r\n },\r\n \r\n acceptNumbers() { //event\r\n this.montoPago = this.montoPago.replace(/[^0-9.]/g, '');\r\n },\r\n\r\n // upload file methods\r\n onDocChargeChanged() { //$event\r\n this.errorFileType = false;\r\n let fileType = event.target.files[0].type\r\n\r\n // if (fileType == 'image/jpeg' || fileType == 'image/png') {\r\n if (fileType == 'image/jpeg' || fileType == 'image/png' || fileType == 'application/pdf') {\r\n this.selectedFile = event.target.files[0]\r\n this.temario.chargedDoc.isCharged = true;\r\n this.temario.chargedDoc.name = this.selectedFile.name;\r\n this.temario.chargedDoc.file = this.selectedFile;\r\n this.temario.chargedDoc.eventTarget = event.target;\r\n this.temario.uploadFile = this.uploadFileCharged;\r\n var read = new FileReader();\r\n read.onload = (e) => {\r\n this.temario.chargedDoc.filesrc = e.target.result;\r\n }\r\n read.readAsDataURL(this.temario.chargedDoc.file);\r\n this.contieneDocumento = 1;\r\n } else {\r\n this.errorFileMsg = 'Solo se permiten tipos de archivo Imagen (JPG o PNG) y PDF.'\r\n this.errorFileType = true;\r\n }\r\n },\r\n deleteChargedFile(documento) {\r\n // Se borra el archivo cargado\r\n documento.chargedDoc.file = null;\r\n documento.chargedDoc.isCharged = false;\r\n documento.chargedDoc.name = '';\r\n documento.uploadFile = this.uploadFileCharged;\r\n documento.chargedDoc.filesrc = '';\r\n\r\n if (!this.isTemarioPreCharged) {\r\n // Como no se pueden borrar los objetos de un Filelist\r\n // se convierte el input a 'text' y se regresa a 'file'\r\n // de esta manera se borra el archivo que se cargó\r\n // el evento onDocChargeChanged ya hace efecto si se borra el archivo cargado\r\n // y se vuelve a subir el mismo archivo\r\n documento.chargedDoc.eventTarget.type = 'text';\r\n documento.chargedDoc.eventTarget.type = 'file';\r\n }\r\n this.isTemarioPreCharged = false;\r\n this.contieneDocumento = 0;\r\n },\r\n // END upload file methods\r\n },\r\n created() {\r\n this.selectedProgramaEducativo = this.nombrePrograma;\r\n },\r\n mounted() {\r\n //this.ObtenerMonto();\r\n },\r\n\r\n}\r\n","import mod from \"-!../../../../node_modules/eslint-loader/index.js??ref--12-0!./ReportarPago.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/eslint-loader/index.js??ref--12-0!./ReportarPago.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ReportarPago.vue?vue&type=template&id=4b4a417e&\"\nimport script from \"./js/ReportarPago.js?vue&type=script&lang=js&\"\nexport * from \"./js/ReportarPago.js?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"],"sourceRoot":""}