Preheat oven to 375°F and spray a 9x13-inch baking dish with cooking oil.
In a bowl, combine taco seasoning with pinto beans and mix well.
Spread a generous layer of enchilada sauce in the bottom of the prepared baking dish.
Layer 4 corn tortillas over the sauce.
Add the seasoned pinto beans, sprinkle with green onions, and top with 1/3 of the shredded cheese.
Add half of the diced green chiles and pour more enchilada sauce over the layer.
Place 4 more tortillas on top, add all the cooked rice, another 1/3 of the cheese, and remaining green chiles.
Pour more enchilada sauce over the rice layer.
Top with final 4 tortillas, remaining enchilada sauce, and rest of the cheese.
Cover with foil and bake for 30 minutes.
Remove foil, top entire casserole with Fritos corn chips, and bake uncovered for 15-30 minutes until bubbly and browned.