mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3471],{73471:function(e,t,n){"use strict";n.r(t),n.d(t,{PedidosPageModule:function(){return I}});var i=n(38583),o=n(3679),a=n(35957),r=n(39895),s=n(64762),d=n(37716),c=n(87732),l=n(8500),g=n(28621),p=n(25970),f=n(962),h=n(23890);function m(e,t){1&e&&d._UZ(0,"ion-progress-bar",19)}function u(e,t){if(1&e&&(d.TgZ(0,"label"),d._uU(1),d.qZA()),2&e){const e=d.oxw().$implicit;d.xp6(1),d.Oqu(e.DocumentsQty)}}function Z(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"div",22),d.NdJ("click",function(){const t=d.CHM(e).$implicit;return d.oxw(3).goToPedido(t.SerialNumber)}),d.TgZ(1,"div",23),d.TgZ(2,"div",24),d.TgZ(3,"div",25),d.TgZ(4,"ion-label"),d._uU(5),d.qZA(),d.qZA(),d.TgZ(6,"div",26),d._UZ(7,"ion-icon",27),d.YNc(8,u,2,1,"label",16),d.qZA(),d.qZA(),d.TgZ(9,"div",28),d.TgZ(10,"div",29),d.TgZ(11,"ion-label"),d._uU(12),d.qZA(),d.qZA(),d.qZA(),d.TgZ(13,"div",30),d.TgZ(14,"div",31),d.TgZ(15,"span",32),d._uU(16),d.qZA(),d.qZA(),d.TgZ(17,"div",33),d.TgZ(18,"ion-label"),d._uU(19),d.ALo(20,"date"),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&e){const e=t.$implicit;d.xp6(5),d.Oqu(e.Folio),d.xp6(3),d.Q6J("ngIf",0!=e.DocumentsQty),d.xp6(4),d.Oqu(e.Senders),d.xp6(4),d.Oqu(e.activityInstanceName),d.xp6(3),d.Oqu(d.xi3(20,5,e.CreateDate,"dd-MM-yyyy HH:mm"))}}function x(e,t){if(1&e&&(d.TgZ(0,"ion-list"),d.YNc(1,Z,21,8,"div",21),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.Q6J("ngForOf",e.pedidosstorage.listparecer)}}function w(e,t){1&e&&(d.TgZ(0,"div"),d.YNc(1,x,2,1,"ion-list",20),d.qZA()),2&e&&(d.xp6(1),d.Q6J("ngSwitchCase","parecer"))}function v(e,t){if(1&e&&(d.TgZ(0,"label"),d._uU(1),d.qZA()),2&e){const e=d.oxw().$implicit;d.xp6(1),d.Oqu(e.DocumentsQty)}}function _(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"div",22),d.NdJ("click",function(){const t=d.CHM(e).$implicit;return d.oxw(3).goToPedido(t.SerialNumber)}),d.TgZ(1,"div",23),d.TgZ(2,"div",24),d.TgZ(3,"div",25),d.TgZ(4,"ion-label"),d._uU(5),d.qZA(),d.qZA(),d.TgZ(6,"div",26),d._UZ(7,"ion-icon",27),d.YNc(8,v,2,1,"label",16),d.qZA(),d.qZA(),d.TgZ(9,"div",28),d.TgZ(10,"div",29),d.TgZ(11,"ion-label"),d._uU(12),d.qZA(),d.qZA(),d.qZA(),d.TgZ(13,"div",30),d.TgZ(14,"div",31),d.TgZ(15,"span",32),d._uU(16),d.qZA(),d.qZA(),d.TgZ(17,"div",33),d.TgZ(18,"ion-label"),d._uU(19),d.ALo(20,"date"),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&e){const e=t.$implicit;d.xp6(5),d.Oqu(e.Folio),d.xp6(3),d.Q6J("ngIf",0!=e.DocumentsQty),d.xp6(4),d.Oqu(e.Senders),d.xp6(4),d.Oqu(e.activityInstanceName),d.xp6(3),d.Oqu(d.xi3(20,5,e.CreateDate,"dd-MM-yyyy HH:mm"))}}function C(e,t){if(1&e&&(d.TgZ(0,"ion-list"),d.YNc(1,_,21,8,"div",21),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.Q6J("ngForOf",e.pedidosstorage.listdeferimento)}}function P(e,t){1&e&&(d.TgZ(0,"div"),d.YNc(1,C,2,1,"ion-list",20),d.qZA()),2&e&&(d.xp6(1),d.Q6J("ngSwitchCase","deferimento"))}function b(e,t){1&e&&(d.TgZ(0,"div",36),d.TgZ(1,"span"),d._uU(2,"Lista vazia"),d.qZA(),d.qZA())}function M(e,t){if(1&e&&(d.TgZ(0,"div",34),d.YNc(1,b,3,0,"div",35),d.qZA()),2&e){const e=d.oxw();d.xp6(1),d.Q6J("ngIf",!e.skeletonLoader&&0==e.pedidosstorage.listparecer.length)}}function O(e,t){1&e&&(d.TgZ(0,"div",36),d.TgZ(1,"span"),d._uU(2,"Lista vazia"),d.qZA(),d.qZA())}function q(e,t){if(1&e&&(d.TgZ(0,"div",34),d.YNc(1,O,3,0,"div",35),d.qZA()),2&e){const e=d.oxw();d.xp6(1),d.Q6J("ngIf",!e.skeletonLoader&&0==e.pedidosstorage.listdeferimento.length)}}function T(e,t){1&e&&(d.TgZ(0,"div"),d.TgZ(1,"ion-list"),d.TgZ(2,"ion-item"),d.TgZ(3,"ion-thumbnail",37),d._UZ(4,"ion-skeleton-text",38),d.qZA(),d.TgZ(5,"ion-label"),d.TgZ(6,"h3"),d._UZ(7,"ion-skeleton-text",39),d.qZA(),d.TgZ(8,"p"),d._UZ(9,"ion-skeleton-text",40),d.qZA(),d.TgZ(10,"p"),d._UZ(11,"ion-skeleton-text",41),d.qZA(),d.qZA(),d.qZA(),d.TgZ(12,"ion-item"),d.TgZ(13,"ion-thumbnail",37),d._UZ(14,"ion-skeleton-text",38),d.qZA(),d.TgZ(15,"ion-label"),d.TgZ(16,"h3"),d._UZ(17,"ion-skeleton-text",39),d.qZA(),d.TgZ(18,"p"),d._UZ(19,"ion-skeleton-text",40),d.qZA(),d.TgZ(20,"p"),d._UZ(21,"ion-skeleton-text",41),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA())}const A=[{path:"",component:(()=>{class e{constructor(e,t,n,i,o){this.router=e,this.processes=t,this.modalController=n,this.alertService=i,this.activatedRoute=o,this.taskslist=[],this.parecerList=[],this.parecerListResult=[],this.deferimentoListResult=[],this.deferimentoList=[],this.skeletonLoader=!0,this.pedidosstorage=l.d,this.openExpedientDetail=new d.vpe,this.segment="parecer",this.activatedRoute.queryParams.subscribe(e=>{"true"==e.deferimento?this.segment="deferimento":"true"==e.parecer&&(this.segment="parecer")})}ngOnInit(){this.LoadList(),this.router.events.forEach(e=>{(e instanceof r.OD&&"/home/gabinete-digital/pedidos?parecer=true".startsWith(e.url)||e instanceof r.OD&&"/home/gabinete-digital/pedidos?deferimento=true".startsWith(e.url))&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.refreshing():this.LoadList())})}goBack(){this.router.navigate(["/home/gabinete-digital"])}goToPedido(e){this.router.navigate(["/home/gabinete-digital/pedidos",e,"gabinete-digital"])}notImplemented(){this.alertService.presentAlert("Funcionalidade em desenvolvimento")}openExpedientDetailPage(e){console.log(e),this.openExpedientDetail.emit(e)}LoadList(){return(0,s.mG)(this,void 0,void 0,function*(){if(this.skeletonLoader=!0,"parecer"==this.segment){this.taskType="Pedido de Parecer";let e=yield this.processes.GetTasksList("Pedido de Parecer",!1).toPromise(),t=yield this.processes.GetTasksList("Pedido de Parecer do Presidente",!1).toPromise();this.skeletonLoader=!1;let n=e.concat(t).reverse().filter(e=>"Active"==e.workflowInstanceDataFields.Status);this.parecerList=[],n.filter(e=>"Active"==e.workflowInstanceDataFields.Status).forEach(e=>{let t=new Date(e.taskStartDate);t.setMonth(t.getMonth()+1);let n=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds();this.parecerList.push({SerialNumber:e.serialNumber,Folio:e.workflowInstanceDataFields.Subject,Senders:e.workflowInstanceDataFields.Sender,CreateDate:n,DocumentURL:e.workflowInstanceDataFields.ViewerRequest,Remetente:e.workflowInstanceDataFields.Remetente,DocumentsQty:e.totalDocuments,DocId:e.workflowInstanceDataFields.DocIdDiferimento,WorkflowName:e.workflowDisplayName,activityInstanceName:e.activityInstanceName})}),this.pedidosstorage.resetparecer(this.parecerList)}else"deferimento"==this.segment&&(this.taskType="Pedido de Deferimento",this.processes.GetTasksList("Pedido de Deferimento",!1).subscribe(e=>{this.skeletonLoader=!1,console.log(e),this.deferimentoList=[];let t=e.filter(e=>"Active"==e.workflowInstanceDataFields.Status);t=t.reverse(),t.forEach(e=>{let t=new Date(e.taskStartDate);t.setMonth(t.getMonth()+1);let n=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds();"Active"==e.workflowInstanceDataFields.Status&&this.deferimentoList.push({SerialNumber:e.serialNumber,Folio:e.workflowInstanceDataFields.Subject,Senders:e.workflowInstanceDataFields.Sender,CreateDate:n,DocumentURL:e.workflowInstanceDataFields.ViewerRequest,Remetente:e.workflowInstanceDataFields.Remetente,DocumentsQty:e.totalDocuments,DocId:e.workflowInstanceDataFields.DocIdDiferimento,WorkflowName:e.workflowDisplayName,activityInstanceName:e.activityInstanceName})}),this.pedidosstorage.resetdeferimento(this.deferimentoList)}))})}segmentChanged(e){this.LoadList()}refreshing(){setTimeout(()=>{this.LoadList()},1500)}doRefresh(e){this.LoadList(),setTimeout(()=>{e.target.complete()},2e3)}}return e.\u0275fac=function(t){return new(t||e)(d.Y36(r.F0),d.Y36(g.$),d.Y36(a.IN),d.Y36(p.c),d.Y36(r.gz))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-pedidos"]],viewQuery:function(e,t){if(1&e&&d.Gf(c.eV,5),2&e){let e;d.iGM(e=d.CRH())&&(t.myCal=e.first)}},outputs:{openExpedientDetail:"openExpedientDetail"},decls:29,vars:9,consts:[[1,"ion-no-border"],[1,"ion-no-border","header-2"],[3,"click"],[1,"title"],[1,"thetitle"],[1,"theicon","btn-refresh"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],[3,"ngModel","ngModelChange","ionChange"],["value","parecer"],["value","deferimento"],[1,"main-content","width-100","overflow-y-auto","height-100"],["name","refresher","slot","fixed",3,"ionRefresh"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],[1,"width-100",3,"ngSwitch"],["type","indeterminate",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","centered-div d-flex height-100 align-center justify-content-center",4,"ngSwitchCase"],["type","indeterminate"],[4,"ngSwitchCase"],["class","expediente ion-no-padding ion-no-margin cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"expediente","ion-no-padding","ion-no-margin","cursor-pointer",3,"click"],[1,"item","width-100"],[1,"exp-top-detail"],[1,"subject"],[1,"exp-icon"],["src","assets/images/icons-expediente-attachment.svg"],[1,"exp-bottom-detail"],[1,"exp-remetente"],[1,"exp-middle-detail"],[1,"exp-workflow"],[1,"label"],[1,"exp-date"],[1,"centered-div","d-flex","height-100","align-center","justify-content-center"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],[1,"empty-list","d-flex","height-100","align-center","justify-content-center"],["slot","end"],["animated",""],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["animated","",2,"width","60%"]],template:function(e,t){1&e&&(d.TgZ(0,"ion-header",0),d._UZ(1,"app-header"),d.qZA(),d.TgZ(2,"ion-header",1),d.TgZ(3,"app-btn-modal-dismiss",2),d.NdJ("click",function(){return t.goBack()}),d.qZA(),d.TgZ(4,"div",3),d.TgZ(5,"div",4),d.TgZ(6,"ion-label"),d._uU(7,"Pedidos"),d.qZA(),d.qZA(),d.TgZ(8,"div",5),d.TgZ(9,"button",6),d.NdJ("click",function(e){return t.doRefresh(e)}),d._UZ(10,"ion-icon",7),d.qZA(),d.qZA(),d.qZA(),d.TgZ(11,"ion-toolbar"),d.TgZ(12,"ion-segment",8),d.NdJ("ngModelChange",function(e){return t.segment=e})("ionChange",function(e){return t.segmentChanged(e)}),d.TgZ(13,"ion-segment-button",9),d._uU(14," Parecer "),d.qZA(),d.TgZ(15,"ion-segment-button",10),d._uU(16," Defereimento "),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.TgZ(17,"ion-content"),d.TgZ(18,"div",11),d.TgZ(19,"ion-refresher",12),d.NdJ("ionRefresh",function(e){return t.segmentChanged(e)}),d._UZ(20,"ion-refresher-content",13),d.qZA(),d.TgZ(21,"div",14),d.YNc(22,m,1,0,"ion-progress-bar",15),d.YNc(23,w,2,1,"div",16),d.YNc(24,P,2,1,"div",16),d.qZA(),d.TgZ(25,"div",17),d.YNc(26,M,2,1,"div",18),d.YNc(27,q,2,1,"div",18),d.qZA(),d.YNc(28,T,22,0,"div",16),d.qZA(),d.qZA()),2&e&&(d.xp6(12),d.Q6J("ngModel",t.segment),d.xp6(9),d.Q6J("ngSwitch",t.segment),d.xp6(1),d.Q6J("ngIf",t.skeletonLoader),d.xp6(1),d.Q6J("ngIf",t.pedidosstorage.listparecer),d.xp6(1),d.Q6J("ngIf",t.pedidosstorage.listdeferimento),d.xp6(1),d.Q6J("ngSwitch",t.segment),d.xp6(1),d.Q6J("ngSwitchCase","parecer"),d.xp6(1),d.Q6J("ngSwitchCase","deferimento"),d.xp6(1),d.Q6J("ngIf",t.skeletonLoader&&0==t.pedidosstorage.listdeferimento.length&&t.skeletonLoader&&0==t.pedidosstorage.listparecer.length))},directives:[a.Gu,f.E,h.E,a.Q$,a.gu,a.sr,a.cJ,a.QI,o.JJ,o.On,a.GO,a.W2,a.nJ,a.Wo,i.RF,i.O5,i.n9,a.X7,a.q_,i.sg,a.Ie,a.Bs,a.CK],pipes:[i.uU],styles:["[_nghost-%COMP%]{margin:0}.header-2[_ngcontent-%COMP%]{border-top-right-radius:24px;border-top-left-radius:24px}.header-2[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%]{padding:30px 20px 0!important;background-color:#fff}.main-content[_ngcontent-%COMP%]{padding-top:0!important}.title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:hidden}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}ion-item[_ngcontent-%COMP%]{--background:none}.item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:auto}.div-content-expediente[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #dae3f3;padding:5px 5px 15px;margin:10px 0;background:#dae3f3;border-radius:20px}.div-content-pendentes[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #d9d9d9;padding:5px}.div-content-expediente[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:14pt;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:20px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-expediente[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14pt;color:#5e5c5c;padding:0;margin:0}.span-left[_ngcontent-%COMP%]{float:left;font-size:12px;padding-left:18px}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:12px;padding-right:18px}.expediente[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.exp-list-item[_ngcontent-%COMP%]{overflow:auto;margin:10px auto}.exp-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.exp-top-detail[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{width:84%;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.exp-bottom-detail[_ngcontent-%COMP%], .exp-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}.exp-middle-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%]{float:left;margin:0!important}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.exp-middle-detail[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;float:right}.exp-bottom-detail[_ngcontent-%COMP%]{font-size:8pt;width:100%;overflow:auto;padding-left:3px}.exp-bottom-detail[_ngcontent-%COMP%] .exp-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:6px auto;background-color:#0782c9;overflow:auto}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:150px;margin:2.5px 0 2.5px 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.centered-div[_ngcontent-%COMP%]{width:100px;height:100px;position:absolute;top:50%;left:50%;margin:-35px 0 0 -35px}"]}),e})()},{path:"pedido",loadChildren:()=>Promise.all([n.e(562),n.e(675),n.e(6176),n.e(8592)]).then(n.bind(n,7392)).then(e=>e.PedidoPageModule)}];let k=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[r.Bz.forChild(A)],r.Bz]}),e})();var D=n(6527),y=n(4502);let I=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[i.ez,o.u5,a.Pc,k,D.a,y.F]]}),e})()}}]); |