A Cd-resistant and immobilizing Bacillus megaterium H3 was characterized for its impact on the biomass and quality and heavy metal uptake of edible tissues of two vegetables (Brassica campestris L. var. Aijiaohuang and Brassica rapa L. var. Shanghaiqing) grown in heavy metal-polluted soil. The impact of strain H3 on the soil quality was also evaluated. The increase in the edible tissue biomass and the contents of soluble proteins and vitamin C of the vegetables inoculated with strain H3 ranged from 18% to 33%, 17% to 31%, and 15% to 19%, respectively, compared with the controls. Strain H3 significantly decreased the edible tissue Cd and Pb contents of the two greens (41–80%), DTPA-extractable Cd content (35–47%) of the rhizosphere soils, and Cd and Pb translocation factors (25–56%) of the greens compared with the controls. Moreover, strain H3 significantly increased the organic matter content (17–21%) and invertase activity (13–14%) of the rhizosphere soils compared with the controls. Our results demonstrated the increased edible tissue biomass and quality, decreased Cd and Pb uptake of the edible tissues, and improved soil quality in the presence of strain H3. The results also suggested an effective bacterial-enhanced technique for decreased metal uptake of greens and improved vegetable and soil qualities in the metal-contaminated soils.