Endoluminal vacuum-assisted closure (E-VAC) is a promising therapy to treat anastomotic leakages of the oesophagus and bowel which are associated with high morbidity and mortality rates. An open-pore polyurethane foam is introduced into the leakage cavity and connected to a device that applies a suction pressure to accelerate the closure of the defect. Computational analysis of this healing process can advance our understanding of the biomechanical mechanisms at play. To this aim, we use a dual-stage finite-element analysis in which (i) the structural problem addresses the cavity reduction caused by the suction and (ii) a new constitutive formulation models tissue healing via permanent deformations coupled to a stiffness increase. The numerical implementation in an in-house code is described and a qualitative example illustrates the basic characteristics of the model. The computational model successfully reproduces the generic closure of an anastomotic leakage cavity, supporting the hypothesis that suction pressure promotes healing by means of the aforementioned mechanisms. However, the current framework needs to be enriched with empirical data to help advance device designs and treatment guidelines. Nonetheless, this conceptual study confirms that computational analysis can reproduce E-VAC of anastomotic leakages and establishes the bases for better understanding the mechanobiology of anastomotic defect healing.