{"version":3,"sources":["webpack:///./src/views/modules/checklist/Checklist/ChecklistEnvironmentEvidenceFile.vue?108f","webpack:///src/views/modules/checklist/Checklist/ChecklistEnvironmentEvidenceFile.vue","webpack:///./src/views/modules/checklist/Checklist/ChecklistEnvironmentEvidenceFile.vue?231e","webpack:///./src/views/modules/checklist/Checklist/ChecklistEnvironmentEvidenceFile.vue","webpack:///./src/services/modules/checklist/ChecklistModelActivity.service.js","webpack:///./src/views/custom/consorciolmm/ConsorcioLmmSPObrasForm.vue?d434","webpack:///src/views/custom/consorciolmm/ConsorcioLmmSPObrasForm.vue","webpack:///./src/views/custom/consorciolmm/ConsorcioLmmSPObrasForm.vue?1c08","webpack:///./src/views/custom/consorciolmm/ConsorcioLmmSPObrasForm.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","attrs","generalErrors","modalEvidenceFileId","on","onEvidenceContinue","typeEvidenceCategoryOptions","businessEvidenceFileRequiredFields","model","value","form","callback","$$v","$set","expression","staticClass","staticStyle","_v","directives","name","rawName","typeEvidenceServiceNotFound","typeEvidenceServiceOptions","typeEvidenceStatusOptions","fileEntity","typeImage","command","otherEntity","path","primaryKeyColumn","foreignKeyColumn","checklistEnvironmentEvidenceFileId","checklistEnvironmentId","items","userAuth","status","subtitle","pageFormIsLoaded","listFormIsLoaded","listIsLoaded","enabledTableImagesDetails","messageNotRecord","onlyView","continuedSubmit","onSubmit","onItemFileDownload","onItemDeleteDefault","onSpecialTypeEvidenceFileOpenDialog","onUploadComplete","getList","scopedSlots","_u","key","fn","item","objValid","typeEvidenceCategory","typeEvidenceServiceAutomatically","typeEvidenceStatus","_s","style","typeEvidenceStatusBackgroundColor","typeEvidenceStatusTextColor","staticRenderFns","mixins","pageDefaultMixin","components","data","type","foreignKey","orderList","typeEvidenceCategoryId","typeEvidenceServiceId","typeEvidenceServiceNotFoundOther","typeEvidenceStatusId","environmentComplement","nameOriginal","nameSave","sizeKb","extension","error","fieldsNotReset","props","checklistId","Number","Boolean","typeOld","methods","defaultForm","defaultFormList","mountedPrepare","mountedPrepareFormUploadDefault","mountedList","openModal","$bvModal","hide","component","service","params","URLSearchParams","append","http","list","checklistActivityId","get","currentPage","singularTitle","checkErrorsComponent","t","checklistNumber","_l","activity","environments","filter","a","undefined","finishDate","qtyEvidenceFile","division","environment","checklistStatusLastChangeDate","token","transmitirSPObras","estornarSPObras","proxy","genKey","fieldKey","enableGeneralFields","activities","environmentsFields"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,gBAAgB,CAACE,IAAI,cAAcC,MAAM,CAAC,cAAgBP,EAAIQ,cAAc,MAAQ,mBAAmB,UAAU,YAAY,GAAKR,EAAIS,oBAAoB,QAAU,UAAUC,GAAG,CAAC,SAAWV,EAAIW,qBAAqB,CAACP,EAAG,UAAU,CAACG,MAAM,CAAC,wBAAwB,GAAG,MAAQ,YAAY,OAAS,GAAG,QAAUP,EAAIY,4BAA4B,SAAsD,MAA3CZ,EAAIa,oCAA4CC,MAAM,CAACC,MAAOf,EAAIgB,KAA2B,uBAAEC,SAAS,SAAUC,GAAMlB,EAAImB,KAAKnB,EAAIgB,KAAM,yBAA0BE,IAAME,WAAW,iCAAiChB,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,OAAO,CAACH,EAAG,MAAM,CAACiB,YAAY,SAASC,YAAY,CAAC,kBAAkB,kBAAkB,CAAClB,EAAG,MAAM,CAACJ,EAAIuB,GAAG,WAAWnB,EAAG,OAAO,CAACoB,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASX,MAAkD,MAA3Cf,EAAIa,mCAA4CO,WAAW,gDAAgD,CAACpB,EAAIuB,GAAG,SAASnB,EAAG,kBAAkB,CAACG,MAAM,CAAC,OAAS,IAAIO,MAAM,CAACC,MAAOf,EAAIgB,KAAgC,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,MAAR,YACA,CAAQ,IAAR,YAAQ,MAAR,kBAAQ,UAAR,UACA,CAAQ,IAAR,YAAQ,MAAR,kBAAQ,UAAR,aAKE1C,QAAS,CAEPG,eAFJ,aAMI,iBANJ,WAMA,8KAEA,gCAFA,cAEA,EAFA,OAIA,gBAJA,SAMA,2EACA,kBAEA,sBAFA,uBAIA,gBAJA,IAIA,0CAEA,2BACA,qBAPA,kCAaA,mBACA,mCArBA,uBAwBA,mCACA,2CACA,gDA1BA,OA4BA,sBA5BA,8CA+BI,SArCJ,WAqCA,wKAEA,sBAFA,8CAOI,kBA5CJ,WA4CA,wJAEA,4QAEA,GACA,+BACA,oBACA,QACA,wBANA,SASA,8CACA,WACA,gEACA,+EAEA,gDAdA,4CAFA,8CAuBI,gBAnEJ,WAmEA,wJAEA,kQAEA,GACA,+BACA,oBACA,QACA,wBANA,SASA,8CACA,WACA,mEACA,mBAEA,gDAdA,4CAFA,+CAyBE,QAvHF,WAuHA,+JAEA,mBAFA,SAIA,qBAJA,uBAMA,qBANA,+CCpP+X,I,YCO3XM,EAAY,eACd,EACAvG,EACAsE,GACA,EACA,KACA,KACA,MAIa,aAAAiC,E","file":"js/chunk-fbb20f78.1484d42f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('t-dialog-form',{ref:\"dialog_form\",attrs:{\"generalErrors\":_vm.generalErrors,\"title\":\"Detalhes da Foto\",\"ok-text\":\"Continuar\",\"id\":_vm.modalEvidenceFileId,\"command\":'insert'},on:{\"onSubmit\":_vm.onEvidenceContinue}},[_c('t-input',{attrs:{\"disable-unique-select\":\"\",\"label\":\"Categoria\",\"select\":\"\",\"options\":_vm.typeEvidenceCategoryOptions,\"required\":_vm.businessEvidenceFileRequiredFields === 'Y'},model:{value:(_vm.form.typeEvidenceCategoryId),callback:function ($$v) {_vm.$set(_vm.form, \"typeEvidenceCategoryId\", $$v)},expression:\"form.typeEvidenceCategoryId\"}}),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('div',[_vm._v(\"Serviço\"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.businessEvidenceFileRequiredFields === 'Y'),expression:\"businessEvidenceFileRequiredFields === 'Y'\"}]},[_vm._v(\"*\")])]),_c('b-form-checkbox',{attrs:{\"switch\":\"\"},model:{value:(_vm.form.typeEvidenceServiceNotFound),callback:function ($$v) {_vm.$set(_vm.form, \"typeEvidenceServiceNotFound\", $$v)},expression:\"form.typeEvidenceServiceNotFound\"}},[_c('small',[_vm._v(\"Outro?\")])])],1),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.form.typeEvidenceServiceNotFound),expression:\"!form.typeEvidenceServiceNotFound\"}],attrs:{\"hide-label\":\"\",\"label\":\"Serviço\",\"select\":\"\",\"options\":_vm.typeEvidenceServiceOptions,\"disable-unique-select\":\"\",\"required\":!_vm.form.typeEvidenceServiceNotFound && _vm.businessEvidenceFileRequiredFields === 'Y'},model:{value:(_vm.form.typeEvidenceServiceId),callback:function ($$v) {_vm.$set(_vm.form, \"typeEvidenceServiceId\", $$v)},expression:\"form.typeEvidenceServiceId\"}}),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.typeEvidenceServiceNotFound),expression:\"form.typeEvidenceServiceNotFound\"}],attrs:{\"hide-label\":\"\",\"label\":\"Serviço - Outro\",\"placeholder\":\"Informe o serviço desejado\",\"required\":_vm.form.typeEvidenceServiceNotFound && _vm.businessEvidenceFileRequiredFields === 'Y'},model:{value:(_vm.form.typeEvidenceServiceNotFoundOther),callback:function ($$v) {_vm.$set(_vm.form, \"typeEvidenceServiceNotFoundOther\", $$v)},expression:\"form.typeEvidenceServiceNotFoundOther\"}})],1)],1),_c('t-input',{attrs:{\"label\":\"Status\",\"select\":\"\",\"options\":_vm.typeEvidenceStatusOptions,\"disable-unique-select\":\"\",\"required\":_vm.businessEvidenceFileRequiredFields === 'Y'},model:{value:(_vm.form.typeEvidenceStatusId),callback:function ($$v) {_vm.$set(_vm.form, \"typeEvidenceStatusId\", $$v)},expression:\"form.typeEvidenceStatusId\"}}),_c('t-input',{attrs:{\"required\":_vm.businessEvidenceFileRequiredFields === 'Y',\"help\":\"Utilize para acrescentar alguma informação de identificação deste ambiente. Exemplo: Próximo as escadas ou 1º Andar.\",\"label\":\"Complemento do Ambiente\"},model:{value:(_vm.form.environmentComplement),callback:function ($$v) {_vm.$set(_vm.form, \"environmentComplement\", $$v)},expression:\"form.environmentComplement\"}}),_c('t-input',{attrs:{\"required\":_vm.businessEvidenceFileRequiredFields === 'Y',\"enable-optimize-ai\":\"\",\"textarea\":\"\",\"label\":\"Descrição das atividades\"},model:{value:(_vm.form.fileEntity.subtitle),callback:function ($$v) {_vm.$set(_vm.form.fileEntity, \"subtitle\", $$v)},expression:\"form.fileEntity.subtitle\"}})],1),_c('t-page-form-upload',{attrs:{\"type-image\":_vm.typeImage,\"command\":_vm.command,\"other-entity\":_vm.otherEntity,\"path\":_vm.path,\"primaryKeyColumn\":_vm.primaryKeyColumn,\"foreign-key-column\":_vm.foreignKeyColumn,\"primary-key\":_vm.form.checklistEnvironmentEvidenceFileId,\"foreign-key\":_vm.form.checklistEnvironmentId,\"items\":_vm.items,\"user-auth\":_vm.userAuth,\"status\":_vm.status,\"subtitle\":_vm.form.fileEntity.subtitle,\"busy\":!_vm.pageFormIsLoaded,\"busy-form\":!_vm.listFormIsLoaded,\"busy-list\":!_vm.listIsLoaded,\"enabled-table-images-details\":_vm.enabledTableImagesDetails,\"message-not-record\":_vm.messageNotRecord,\"only-view\":_vm.onlyView,\"continued-submit\":_vm.continuedSubmit,\"special-type-evidence-file\":\"\",\"evidence-file-entity\":_vm.form},on:{\"onSubmit\":_vm.onSubmit,\"itemDownload\":_vm.onItemFileDownload,\"onItemDelete\":_vm.onItemDeleteDefault,\"onSpecialTypeEvidenceFileOpenDialog\":_vm.onSpecialTypeEvidenceFileOpenDialog,\"onUploadComplete\":_vm.onUploadComplete,\"onRequestList\":_vm.getList},scopedSlots:_vm._u([{key:\"before-subtitle\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.objValid(item.typeEvidenceCategory) || _vm.objValid(item.typeEvidenceServiceAutomatically) || _vm.objValid(item.typeEvidenceStatus)),expression:\"objValid(item.typeEvidenceCategory) || objValid(item.typeEvidenceServiceAutomatically) || objValid(item.typeEvidenceStatus)\"}],staticClass:\"border-bottom mb-2 pb-2\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.objValid(item.typeEvidenceCategory)),expression:\"objValid(item.typeEvidenceCategory)\"}]},[_vm._v(_vm._s(item.typeEvidenceCategory))]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.objValid(item.typeEvidenceServiceAutomatically)),expression:\"objValid(item.typeEvidenceServiceAutomatically)\"}]},[_c('small',[_vm._v(_vm._s(item.typeEvidenceServiceAutomatically))])]),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.objValid(item.typeEvidenceStatus)),expression:\"objValid(item.typeEvidenceStatus)\"}],staticClass:\"badge badge-light\",style:({'background-color': item.typeEvidenceStatusBackgroundColor,'color': item.typeEvidenceStatusTextColor})},[_vm._v(_vm._s(item.typeEvidenceStatus))])])]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n <div>\n\n <t-dialog-form :generalErrors=\"generalErrors\" title=\"Detalhes da Foto\" ok-text=\"Continuar\"\n :id=\"modalEvidenceFileId\" :command=\"'insert'\"\n ref=\"dialog_form\" @onSubmit=\"onEvidenceContinue\">\n\n\n <t-input v-model=\"form.typeEvidenceCategoryId\" disable-unique-select label=\"Categoria\" select :options=\"typeEvidenceCategoryOptions\"\n :required=\"businessEvidenceFileRequiredFields === 'Y'\"/>\n\n <b-row>\n\n <b-col cols=\"12\">\n\n <div class=\"d-flex\" style=\"justify-content: space-between\">\n\n <div>Serviço<span v-show=\"businessEvidenceFileRequiredFields === 'Y'\">*</span> </div>\n\n <b-form-checkbox v-model=\"form.typeEvidenceServiceNotFound\" switch>\n\n <small>Outro?</small>\n\n </b-form-checkbox>\n\n </div>\n\n <t-input v-show=\"!form.typeEvidenceServiceNotFound\"\n v-model=\"form.typeEvidenceServiceId\"\n hide-label label=\"Serviço\" select :options=\"typeEvidenceServiceOptions\"\n disable-unique-select\n :required=\"!form.typeEvidenceServiceNotFound && businessEvidenceFileRequiredFields === 'Y'\"/>\n\n\n <t-input v-show=\"form.typeEvidenceServiceNotFound\"\n v-model=\"form.typeEvidenceServiceNotFoundOther\"\n hide-label label=\"Serviço - Outro\" placeholder=\"Informe o serviço desejado\"\n :required=\"form.typeEvidenceServiceNotFound && businessEvidenceFileRequiredFields === 'Y'\"/>\n\n\n </b-col>\n\n </b-row>\n\n <t-input v-model=\"form.typeEvidenceStatusId\" label=\"Status\" select :options=\"typeEvidenceStatusOptions\" disable-unique-select :required=\"businessEvidenceFileRequiredFields === 'Y'\"/>\n\n <t-input v-model=\"form.environmentComplement\" :required=\"businessEvidenceFileRequiredFields === 'Y'\"\n help=\"Utilize para acrescentar alguma informação de identificação deste ambiente. Exemplo: Próximo as escadas ou 1º Andar.\"\n label=\"Complemento do Ambiente\"/>\n\n <t-input v-model=\"form.fileEntity.subtitle\"\n :required=\"businessEvidenceFileRequiredFields === 'Y'\"\n enable-optimize-ai\n textarea label=\"Descrição das atividades\"\n />\n\n </t-dialog-form>\n\n <t-page-form-upload\n :type-image=\"typeImage\"\n :command=\"command\"\n :other-entity=\"otherEntity\"\n :path=\"path\" :primaryKeyColumn=\"primaryKeyColumn\" :foreign-key-column=\"foreignKeyColumn\"\n :primary-key=\"form.checklistEnvironmentEvidenceFileId\" :foreign-key=\"form.checklistEnvironmentId\"\n :items=\"items\" :user-auth=\"userAuth\" :status=\"status\"\n :subtitle=\"form.fileEntity.subtitle\"\n :busy=\"!pageFormIsLoaded\" :busy-form=\"!listFormIsLoaded\" :busy-list=\"!listIsLoaded\"\n :enabled-table-images-details=\"enabledTableImagesDetails\"\n :message-not-record=\"messageNotRecord\"\n :only-view=\"onlyView\"\n :continued-submit=\"continuedSubmit\"\n special-type-evidence-file\n :evidence-file-entity=\"form\"\n @onSubmit=\"onSubmit\"\n @itemDownload=\"onItemFileDownload\"\n @onItemDelete=\"onItemDeleteDefault\"\n @onSpecialTypeEvidenceFileOpenDialog=\"onSpecialTypeEvidenceFileOpenDialog\"\n @onUploadComplete=\"onUploadComplete\" @onRequestList=\"getList\">\n\n <template #before-subtitle=\"{item}\">\n <div class=\"border-bottom mb-2 pb-2\" v-show=\"objValid(item.typeEvidenceCategory) || objValid(item.typeEvidenceServiceAutomatically) || objValid(item.typeEvidenceStatus)\">\n\n <div v-show=\"objValid(item.typeEvidenceCategory)\">{{ item.typeEvidenceCategory }}</div>\n <div v-show=\"objValid(item.typeEvidenceServiceAutomatically)\"><small>{{ item.typeEvidenceServiceAutomatically }}</small></div>\n\n <span\n v-show=\"objValid(item.typeEvidenceStatus)\"\n class=\"badge badge-light\"\n :style=\"{'background-color': item.typeEvidenceStatusBackgroundColor,'color': item.typeEvidenceStatusTextColor}\">{{\n item.typeEvidenceStatus\n }}</span>\n\n\n </div>\n\n\n </template>\n\n </t-page-form-upload>\n\n </div>\n\n\n</template>\n<script>\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport pageFormListMixin from \"@/mixins/page/pageFormListMixin\";\nimport pageFormUploadMixin from \"@/mixins/page/pageFormUploadMixin\";\nimport tPageFormUpload from \"@/components/template/page/t-page-form-upload\";\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form.vue\";\nimport TypeEvidenceCategoryService from \"@/services/modules/checklist/TypeEvidenceCategory.service\";\nimport TypeEvidenceServiceService from \"@/services/modules/checklist/TypeEvidenceService.service\";\nimport TypeEvidenceStatusService from \"@/services/modules/checklist/TypeEvidenceStatus.service\";\nimport ui from \"@/assets/scripts/ui\";\n\nexport default {\n mixins: [pageDefaultMixin, pageFormMixin, pageFormListMixin, pageFormUploadMixin],\n components: {tPageFormUpload, tDialogForm},\n name: 'ChecklistEnvironmentEvidenceFile',\n data() {\n return {\n path: \"checklist/environment-evidence-file\", //Utilizar somente quando fora do padrão\n primaryKeyColumn: \"checklistEnvironmentEvidenceFileId\",\n foreignKeyColumn: \"checklistEnvironmentId\", //Utilizar quando usar Tabs com outros componentes\n type: \"D\", //Tipo padrão de modelo de envio de arquivos poderá ser I ou D\n form: {\n checklistEnvironmentId: this.foreignKey,\n checklistEnvironmentEvidenceFileId: 0,\n orderList: 0,\n type: \"I\",\n typeEvidenceCategoryId: 0,\n typeEvidenceServiceId: 0,\n typeEvidenceServiceNotFound: false,\n typeEvidenceServiceNotFoundOther: \"\",\n typeEvidenceStatusId: 0,\n environmentComplement: \"\",\n fileEntity: {\n nameOriginal: \"\",\n nameSave: \"\",\n subtitle: \"\",\n sizeKb: 0,\n extension: \"\",\n }\n },\n error: {//Campos que podem receber retorno de erro do backend\n name: \"\",\n },\n fieldsNotReset: [//Marca os nomes de colunas que não devem ser resetados\n this.foreignKeyColumn,\n \"typeEvidenceCategoryId\",\n \"typeEvidenceServiceId\",\n \"typeEvidenceServiceNotFound\",\n \"typeEvidenceServiceNotFoundOther\",\n \"typeEvidenceStatusId\",\n \"environmentComplement\",\n ],\n //--------------------------------------------------------------------------------------\n //InÃcio de campos personalizados desta tela\n businessEvidenceFileRequiredFields: \"Y\",//Por padrão serão obrigatórios até o carregamento da tela\n continuedSubmit: false,\n typeEvidenceCategoryOptions: [],\n typeEvidenceServiceOptions: [],\n typeEvidenceStatusOptions: [],\n modalEvidenceFileId: \"modal-evidence-file-information-\"+ui.generateRandomNumber(100000,999999)\n //--------------------------------------------------------------------------------------\n }\n },\n props: {\n checklistId: Number,\n otherEntity: Boolean,\n typeOld: Boolean, //Evidências sincronizadas anteriormente deste mesmo ambiente.\n },\n methods: {\n\n defaultForm() {\n\n //Preenche somente os campos que foram limpos após o reset\n this.defaultFormList()\n\n\n },\n\n mountedPrepare() {\n\n if (this.otherEntity) {\n this.command = 'view'\n }\n\n this.mountedPrepareFormUploadDefault()\n\n },\n\n async mountedContinued() {\n\n this.listParams.append(\"typeOld\",\"\"+ this.typeOld)\n\n await this.getList()\n\n await TypeEvidenceCategoryService.selectList(\"\").then((list) => {\n this.typeEvidenceCategoryOptions = list\n }).catch(error => this.responseError(error))\n\n await TypeEvidenceServiceService.selectList(\"\").then((list) => {\n this.typeEvidenceServiceOptions = list\n }).catch(error => this.responseError(error))\n\n await TypeEvidenceStatusService.selectList(\"\").then((list) => {\n this.typeEvidenceStatusOptions = list\n }).catch(error => this.responseError(error))\n\n this.businessEvidenceFileRequiredFields = this.getRenderRule('businessEvidenceFileRequiredFields')\n\n },\n\n async onSubmit() {\n\n await this.setSendingFormListDefault(this.form.checklistEnvironmentEvidenceFileId)\n\n },\n\n mountedList() {\n\n // Manipulação da listagem após carregando\n //--------------------------------------\n\n //--------------------------------------\n\n this.listIsLoaded = true\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\n onSpecialTypeEvidenceFileOpenDialog() {\n\n this.continuedSubmit = false\n this.openModal(this.modalEvidenceFileId)\n\n\n },\n\n onEvidenceContinue() {\n\n this.$bvModal.hide(this.modalEvidenceFileId)\n this.continuedSubmit = true\n\n }\n //--------------------------------------------------------------------------------------\n },\n async mounted() {\n\n this.mountedPrepare()\n\n await this.mountedFormList()\n\n await this.mountedContinued()\n\n },\n}\n</script>\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!./ChecklistEnvironmentEvidenceFile.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!./ChecklistEnvironmentEvidenceFile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ChecklistEnvironmentEvidenceFile.vue?vue&type=template&id=1af72780&\"\nimport script from \"./ChecklistEnvironmentEvidenceFile.vue?vue&type=script&lang=js&\"\nexport * from \"./ChecklistEnvironmentEvidenceFile.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 http from '../../config/http-common';\r\n\r\n//Usado somente se for realmente necessário algo fora do padrão GeneralCRUD.service.js\r\nconst path = \"checklist/model-activity\"\r\n\r\nclass service {\r\n\r\n getList(checklistId) {\r\n\r\n let params = new URLSearchParams()\r\n params.append(\"checklistId\", checklistId)\r\n params.append(\"status\", 1)\r\n\r\n return http.list(path, params);\r\n }\r\n\r\n selectList(params) {\r\n return http.list(path + \"/selectList\", params);\r\n }\r\n\r\n\r\n\r\n copyData(checklistActivityId) {\r\n return http.get(path + \"/copyLastActivity/?checklistActivityId=\" + checklistActivityId)\r\n }\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-page',[_c('t-page-form',{attrs:{\"card\":\"\",\"submit-text\":_vm.currentPage.singularTitle,\"title\":\"Transmissão SP Obras\",\"command\":\"view\",\"status\":_vm.status,\"generalErrors\":_vm.generalErrors,\"check-errors-again\":_vm.checkErrorsComponent,\"go-back-title\":_vm.t('go-back-list'),\"go-back-to\":\"custom-consorciolmm-checklist-spobras\",\"busy\":!_vm.pageFormIsLoaded},on:{\"onSubmit\":_vm.onSubmit},scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('t-form-card',{staticClass:\"mt-2\",attrs:{\"title\":\"Localização\"}},[_c('b-row',[_c('t-input',{attrs:{\"cols\":\"8\",\"fixed\":\"\",\"label\":\"Escola\"},model:{value:(_vm.form.enterprise),callback:function ($$v) {_vm.$set(_vm.form, \"enterprise\", $$v)},expression:\"form.enterprise\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"fixed\":\"\",\"label\":\"CEP\"},model:{value:(_vm.form.enterpriseZipcode),callback:function ($$v) {_vm.$set(_vm.form, \"enterpriseZipcode\", $$v)},expression:\"form.enterpriseZipcode\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"fixed\":\"\",\"cols\":\"6\",\"label\":\"Endereço\"},model:{value:(_vm.form.enterpriseAddressFull),callback:function ($$v) {_vm.$set(_vm.form, \"enterpriseAddressFull\", $$v)},expression:\"form.enterpriseAddressFull\"}}),_c('t-input',{attrs:{\"fixed\":\"\",\"cols\":\"6\",\"label\":\"Bairro\"},model:{value:(_vm.form.enterpriseNeighborhood),callback:function ($$v) {_vm.$set(_vm.form, \"enterpriseNeighborhood\", $$v)},expression:\"form.enterpriseNeighborhood\"}})],1),_c('t-msg',{attrs:{\"info\":\"\"}},[_vm._v(\"Para editar as imagens ou inserir novas é necessário estornar a vistoria original por consistência de informações.\")]),_c('b-button',{staticClass:\"mt-2\",attrs:{\"to\":{path: '/checklist/'+_vm.form.checklistNumber},\"variant\":\"outline-primary\",\"target\":\"_blank\"}},[_c('b-icon-box-arrow-up-right',{staticClass:\"mr-2\"}),_vm._v(\" Detalhar Vistoria de Origem \")],1)],1),_c('t-form-card',{staticClass:\"mt-2\",attrs:{\"title\":\"Relatórios de Atividades\"}},[_c('b-row',{staticClass:\"mb-2\"},_vm._l((_vm.activities),function(activity){return _c('b-button',{key:activity.checklistActivityId,staticClass:\"mr-2\",attrs:{\"to\":{path:'/'+activity.path},\"variant\":\"outline-primary\",\"target\":\"_blank\"}},[_c('b-icon-box-arrow-up-right',{staticClass:\"mr-2\"}),_vm._v(\" \"+_vm._s(activity.name)+\" \")],1)}),1)],1),_vm._l((_vm.environments.filter(function (a) { return a.finishDate !== undefined && a.qtyEvidenceFile > 0; })),function(item){return _c('t-form-card',{key:item.checklistEnvironmentId,staticClass:\"mb-3\",attrs:{\"title\":item.division + ' - ' + item.environment}},[_c('ChecklistEnvironmentEvidenceFile',{attrs:{\"type-image\":\"\",\"foreign-key\":item.checklistEnvironmentId}})],1)}),_c('t-form-card',{staticClass:\"mt-2\",attrs:{\"title\":\"Informações Transmissão\"}},[_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"fixed\":\"\",\"date\":\"\",\"label\":\"Data Vistoria\"},model:{value:(_vm.form.issueDate),callback:function ($$v) {_vm.$set(_vm.form, \"issueDate\", $$v)},expression:\"form.issueDate\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"fixed\":\"\",\"datetime\":\"\",\"label\":\"Data Transmissão\"},model:{value:(_vm.form.checklistStatusLastChangeDate),callback:function ($$v) {_vm.$set(_vm.form, \"checklistStatusLastChangeDate\", $$v)},expression:\"form.checklistStatusLastChangeDate\"}})],1),(_vm.form.checklistStatusLastChangeDate === undefined)?_c('div',[_c('b-button',{attrs:{\"href\":'https://custom.onlaine.com.br/integration/custom/consorciolmm/spobras.asp?install=Y&token='+_vm.token+'&checklistId='+_vm.form.checklistId,\"variant\":\"primary\",\"target\":\"_blank\"}},[_c('b-icon-box-arrow-up-right',{staticClass:\"mr-2\"}),_vm._v(\" Acessar Módulo Transmissão \")],1),_c('t-button',{staticClass:\"ml-3\",attrs:{\"secondary\":\"\"},on:{\"click\":_vm.transmitirSPObras}},[_vm._v(\" Marcar manualmente como transmitido \")])],1):_c('t-button',{on:{\"click\":_vm.estornarSPObras}},[_vm._v(\"Estornar Transmissão\")])],1)]},proxy:true}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n <t-page>\n\n\n <t-page-form card :submit-text=\"currentPage.singularTitle\"\n title=\"Transmissão SP Obras\"\n command=\"view\" :status=\"status\" :generalErrors=\"generalErrors\" @onSubmit=\"onSubmit\"\n :check-errors-again=\"checkErrorsComponent\"\n :go-back-title=\"t('go-back-list')\" go-back-to=\"custom-consorciolmm-checklist-spobras\"\n :busy=\"!pageFormIsLoaded\">\n\n\n <template #default>\n\n\n <t-form-card title=\"Localização\" class=\"mt-2\">\n\n <b-row>\n\n <t-input cols=\"8\" fixed v-model=\"form.enterprise\" label=\"Escola\"/>\n\n <t-input cols=\"4\" fixed v-model=\"form.enterpriseZipcode\" label=\"CEP\"/>\n\n </b-row>\n\n <b-row>\n\n <t-input fixed v-model=\"form.enterpriseAddressFull\" cols=\"6\" label=\"Endereço\"/>\n\n <t-input fixed v-model=\"form.enterpriseNeighborhood\" cols=\"6\" label=\"Bairro\"/>\n\n </b-row>\n\n <t-msg info>Para editar as imagens ou inserir novas é necessário estornar a vistoria original por consistência de informações.</t-msg>\n\n <b-button\n :to=\"{path: '/checklist/'+form.checklistNumber}\"\n class=\"mt-2\"\n variant=\"outline-primary\" target=\"_blank\">\n <b-icon-box-arrow-up-right class=\"mr-2\"/>\n Detalhar Vistoria de Origem\n </b-button>\n\n </t-form-card>\n\n <t-form-card title=\"Relatórios de Atividades\" class=\"mt-2\">\n\n <b-row class=\"mb-2\">\n\n <b-button\n :to=\"{path:'/'+activity.path}\"\n v-for=\"activity in activities\" :key=\"activity.checklistActivityId\"\n variant=\"outline-primary\" class=\"mr-2\" target=\"_blank\">\n <b-icon-box-arrow-up-right class=\"mr-2\"/>\n {{ activity.name }}\n </b-button>\n\n </b-row>\n\n\n </t-form-card>\n\n\n\n\n\n <t-form-card :title=\"item.division + ' - ' + item.environment\" class=\"mb-3\"\n v-for=\"item in environments.filter(a => a.finishDate !== undefined && a.qtyEvidenceFile > 0)\"\n :key=\"item.checklistEnvironmentId\">\n\n\n <ChecklistEnvironmentEvidenceFile type-image\n :foreign-key=\"item.checklistEnvironmentId\"/>\n\n </t-form-card>\n\n <t-form-card title=\"Informações Transmissão\" class=\"mt-2\">\n\n <b-row>\n\n <t-input cols=\"6\" fixed v-model=\"form.issueDate\" date label=\"Data Vistoria\"/>\n\n <t-input cols=\"6\" fixed v-model=\"form.checklistStatusLastChangeDate\" datetime label=\"Data Transmissão\"/>\n\n </b-row>\n\n\n <div v-if=\"form.checklistStatusLastChangeDate === undefined\">\n\n\n <b-button\n :href=\"'https://custom.onlaine.com.br/integration/custom/consorciolmm/spobras.asp?install=Y&token='+token+'&checklistId='+form.checklistId\"\n variant=\"primary\" target=\"_blank\">\n <b-icon-box-arrow-up-right class=\"mr-2\"/>\n Acessar Módulo Transmissão\n </b-button>\n\n <t-button class=\"ml-3\" secondary @click=\"transmitirSPObras\">\n Marcar manualmente como transmitido\n </t-button>\n\n </div>\n\n <t-button v-else @click=\"estornarSPObras\">Estornar Transmissão</t-button>\n\n </t-form-card>\n\n\n </template>\n\n\n </t-page-form>\n\n </t-page>\n\n</template>\n<script>\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport {crudGeneral} from \"@/services/resource/GeneralCRUD.service\";\nimport ChecklistEnvironmentEvidenceFile from \"@/views/modules/checklist/Checklist/ChecklistEnvironmentEvidenceFile\";\nimport ui from \"@/assets/scripts/ui\";\nimport ChecklistModelActivityService from \"@/services/modules/checklist/ChecklistModelActivity.service\";\n\nexport default {\n mixins: [pageDefaultMixin, pageFormMixin],\n name: 'ConsorcioLmmSPObrasForm',\n components: {ChecklistEnvironmentEvidenceFile},\n data() {\n return {\n path: \"checklist\", //Utilizar somente quando fora do padrão\n genKey: false, //Utilizar quando desejar gerar chave temporária\n fieldKey: \"checklistId\",\n enableGeneralFields: false,\n form: {},\n activities: [],\n environments: [],\n error: {//Campos que podem receber retorno de erro do backend\n\n },\n token: \"\",\n //--------------------------------------------------------------------------------------\n //InÃcio de campos personalizados desta tela\n environmentsFields: [\n {key: \"environment\", label: \"Ambiente\"},\n {key: \"field_706\", label: \"Último Avanço %\", formatter: \"number\"},\n {key: \"field_707\", label: \"Avanço FÃsico %\", formatter: \"number\"},\n ]\n //--------------------------------------------------------------------------------------\n }\n },\n methods: {\n\n mountedPrepare() {\n\n },\n\n async mountedContinued() {\n\n const account = await this.$store.getters.getAccountUser\n\n this.token = account.token\n\n await crudGeneral.getAll('checklist/environment', 1, 'checklistId=' + this.form.checklistId)\n .then(response => {\n\n this.environments = response.data\n\n for (let item of this.environments) {\n\n if (!this.objValid(item.finishDate)) {\n item.class = 'bg-light'\n }\n\n }\n\n })\n .catch(error => {\n console.log('Erro externo: ' + error)\n });\n\n await ChecklistModelActivityService.getList(this.form.checklistId)\n .then((list) => this.activities = list)\n .catch(error => this.responseError(error))\n\n this.pageFormIsLoaded = true\n\n },\n async onSubmit() {\n\n await this.setSendingDefault()\n\n },\n //--------------------------------------------------------------------------------------\n //InÃcio de métodos personalizados desta tela\n async transmitirSPObras() {\n\n ui.msgConfirm(this, 'Confirmação', 'Tem certeza que deseja marcar a vistoria como transmitida manualmente para SP Obras?', async () => {\n\n const checklistStatusUpdate = {\n checklistId: this.form.checklistId,\n checklistStatusId: 2, /*Transmitido SP Obras*/\n note: \"\",\n clearLastChangeDate: false,\n }\n\n await crudGeneral.update(this.path + \"/updateStatus\", checklistStatusUpdate).then(\n () => {\n ui.toast(this, \"Informação\", \"Transmissão marcada com sucesso!\")\n this.setRedirect('custom/checklist/spobras', this.form.checklistId, 'view', 0, \"\", true)\n }\n ).catch(error => this.responseError(error))\n\n })\n\n\n\n },\n async estornarSPObras() {\n\n ui.msgConfirm(this, 'Confirmação', 'Tem certeza que deseja estornar a vistoria como transmitida para SP Obras?', async () => {\n\n const checklistStatusUpdate = {\n checklistId: this.form.checklistId,\n checklistStatusId: 1, /*Pendente SP Obras*/\n note: \"\",\n clearLastChangeDate: true,\n }\n\n await crudGeneral.update(this.path + \"/updateStatus\", checklistStatusUpdate).then(\n () => {\n ui.toast(this, \"Informação\", \"Transmissão desmarcada com sucesso!\")\n ui.reload()\n }\n ).catch(error => this.responseError(error))\n\n })\n\n\n },\n //--------------------------------------------------------------------------------------\n\n },\n async mounted() {\n\n this.mountedPrepare()\n\n await this.mountedForm(true, false)\n\n await this.mountedContinued()\n\n },\n\n}\n</script>","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!./ConsorcioLmmSPObrasForm.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!./ConsorcioLmmSPObrasForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ConsorcioLmmSPObrasForm.vue?vue&type=template&id=64497408&\"\nimport script from \"./ConsorcioLmmSPObrasForm.vue?vue&type=script&lang=js&\"\nexport * from \"./ConsorcioLmmSPObrasForm.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"],"sourceRoot":""}