A mean-field dynamic density functional theory is used to describe a phase diagram of concentrated solutions of weakly charged flexible block polyelectrolytes in a film. Electrostatics is taken into account by applying the local electroneutrality constraint (the Donnan membrane equilibrium approach). In the Donnan limit it is assumed that a salt added to the solution perfectly screens long-range electrostatic interactions. The phase diagram of a solution of a triblock polyelectrolyte in a film as a function of the solvent concentration and the charge of the polyelectrolyte (solvophilic) block is calculated for a given film thickness. The phase behavior of the block polyelectrolyte film arises from the interplay between surface-induced alignment and the electrostatically-driven structure formation. The observed mesoscopic structures (lamellar, perforated lamellar, cylindrical, micellar, and mixed phases) are oriented parallel to the surfaces for the considered case of morphologies unfrustrated by the film thickness. Structures with connections between parallel layers (bicontinuous, etc.) are not formed. As a result of surface-induced ordering, the region of ordered phases in a film is wider than in bulk and the phase boundary between ordered and disordered phases is more diffuse. As in the case of unconfined block polyelectrolyte solution, the solution in a film does not follow the lyotropic sequence of phases of such a block copolymer upon increase in the charge of the polyelectrolyte block. Upon changing the charge of the solvophilic copolymer block, transformations of copolymer morphology take place via change in curvature of polymeric domains. Due to confinement of a polyelectrolyte film, no swelling of solvophilic domains is observed.