The invention provides all-grass of longspike uraria tablets capable of invigorating spleen and replenishing qi and a preparation method of the herba urariae macrostachyae tablets. The herba urariae macrostachyae tablets are prepared from a traditional Chinese medicine extract, a filler, a disintegrating agent, an adhesive, a lubricating agent, a corrigent and a glidant, preferably, the traditional Chinese medicine extract is prepared from the following raw materials in parts by weight: 30-45 parts of all-grass of longspike uraria, 15-25 parts of basella rubra, 15-25 parts of tremella, 7-14 parts of pollen typhae, 7-14 parts of luffa vegetable sponge, 7-14 parts of herba abutili indici, 3-6 parts of globe amaranth flowers or herb, 3-6 parts of arabian jasmine flowers, 3-6 parts of cortex illicii, and 3-6 parts of wintersweet immature flower. The preparation method comprises the following main steps: (1) preparing the traditional Chinese medicine extract, specifically, a, pretreating the raw materials, b, preparing the mixed extract, and c, carrying out filtering, carrying out concentrating, and carrying out drying; and (2) preparing the herba urariae macrostachyae tablets capable of invigorating spleen and replenishing qi, specifically, a, carrying out mixing, b carrying out drying, and c, carrying out mixing. After long-term administration, the herba urariae macrostachyae tablets have the efficacies of invigorating spleen and replenishing qi, relieving cough and asthma, and removing the liver-fire for improving eyesight.