mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
|
|
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[6065],{56109:function(t,e,n){"use strict";n.r(e),n.d(e,{DespachosPageModule:function(){return k}});var o=n(38583),i=n(3679),a=n(35957),s=n(39895),r=n(64762),c=n(37716),l=n(87732),d=n(66096),g=n(2527);const p=new((()=>{class t{constructor(){this._list=[],this._count=0,this.keyName=(0,g.SHA1)(this.constructor.name).toString(),setTimeout(()=>{let t=d.I.get(this.keyName,{});this._list=t.list||[],this._count=parseInt(t.count)||0},10)}get list(){return this._list||[]}get count(){return this._count}set count(t){this._count=t,this.save()}reset(t){this._list=t,this.count=this._list.length,this.save()}save(){setTimeout(()=>{d.I.set(this.keyName,{list:this._list,count:this._count})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})());var h=n(28621),f=n(25970),u=n(37556),m=n(962),x=n(23890);function Z(t,e){1&t&&c._UZ(0,"ion-progress-bar",16)}function _(t,e){if(1&t&&(c.TgZ(0,"label"),c._uU(1),c.qZA()),2&t){const t=c.oxw().$implicit;c.xp6(1),c.Oqu(t.DocumentsQty)}}function C(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",17),c.NdJ("click",function(){const e=c.CHM(t).$implicit;return c.oxw().GoToDespacho(e.SerialNumber)}),c.TgZ(1,"div",18),c.TgZ(2,"div",19),c.TgZ(3,"div",20),c.TgZ(4,"ion-label"),c._uU(5),c.qZA(),c.qZA(),c.TgZ(6,"div",21),c._UZ(7,"ion-icon",22),c.YNc(8,_,2,1,"label",15),c.qZA(),c.qZA(),c.TgZ(9,"div",23),c.TgZ(10,"div",24),c.TgZ(11,"ion-label"),c._uU(12),c.qZA(),c.qZA(),c.qZA(),c.TgZ(13,"div",25),c.TgZ(14,"div",26),c.TgZ(15,"span",27),c._uU(16),c.qZA(),c.qZA(),c.TgZ(17,"div",28),c.TgZ(18,"ion-label"),c._uU(19),c.ALo(20,"date"),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit;c.xp6(5),c.Oqu(t.Folio),c.xp6(3),c.Q6J("ngIf",0!=t.DocumentsQty),c.xp6(4),c.Oqu(t.Senders),c.xp6(4),c.Oqu(t.activityInstanceName),c.xp6(3),c.Oqu(c.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function w(t,e){1&t&&(c.TgZ(0,"div",29),c.TgZ(1,"span"),c._uU(2,"Lista vazia"),c.qZA(),c.qZA())}function O(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"ion-list"),c.TgZ(2,"ion-item"),c.TgZ(3,"ion-thumbnail",30),c._UZ(4,"ion-skeleton-text",31),c.qZA(),c.TgZ(5,"ion-label"),c.TgZ(6,"h3"),c._UZ(7,"ion-skeleton-text",32),c.qZA(),c.TgZ(8,"p"),c._UZ(9,"ion-skeleton-text",33),c.qZA(),c.TgZ(10,"p"),c._UZ(11,"ion-skeleton-text",34),c.qZA(),c.qZA(),c.qZA(),c.TgZ(12,"ion-item"),c.TgZ(13,"ion-thumbnail",30),c._UZ(14,"ion-skeleton-text",31),c.qZA(),c.TgZ(15,"ion-label"),c.TgZ(16,"h3"),c._UZ(17,"ion-skeleton-text",32),c.qZA(),c.TgZ(18,"p"),c._UZ(19,"ion-skeleton-text",33),c.qZA(),c.TgZ(20,"p"),c._UZ(21,"ion-skeleton-text",34),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA())}const M=[{path:"",component:(()=>{class t{constructor(t,e,n,o,i){this.processes=t,this.modalController=e,this.alertService=n,this.authService=o,this.router=i,this.taskslist=[],this.despachoList=[],this.deferimentoList=[],this.taskList=[],this.openExpedientDetail=new c.vpe,this.dicIndex=0,this.inicial=!1,this.skeletonLoader=!0,this.despachospagestore=p,this.profile="mdgpr"}ngOnInit(){this.segment="despachos";const t=window.location,e=t.pathname+t.search;this.LoadList(),this.router.events.forEach(t=>{t instanceof s.OD&&t.url.startsWith(e)&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.refreshing():this.LoadList())})}refreshing(){return(0,r.mG)(this,void 0,void 0,function*(){setTimeout(()=>{this.LoadList()},1e3)})}segmentChanged(t){this.LoadList()}openExpedientDetailPage(t){this.openExpedientDetail.emit(t)}LoadList(){return(0,r.mG)(this,void 0,void 0,function*(){this.skeletonLoader=!0;let t=yield this.processes.GetTasksList("Despacho",!1).toPromise();this.despachoList=[],this.skeletonLoader=!1,yield t.filter(t=>"Active"==t.workflowInstanceDataFields.Status).forEach((t,e)=>{let n=new Date(t.taskStartDate);n.setMonth(n.getMonth()+1);let o=n.getFullYear()+"-"+n.getMonth()+"-"+n.getDate()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds();this.despachoList.push({SerialNumber:t.serialNumber,
|