Gallstones can affect digestive function from a nutritional point of view: 1. Gallstones can cause changes in the composition of bile, which can reduce the ability of bile to digest food and easily cause indigestion. 2. Gallstones can cause obstruction of bile evacuation, which can reduce the amount of bile in the digestive tract and cause a further decrease in the digestion of food, resulting in indigestion. 3. Severe biliary colic, which can induce intestinal spasms and affect the peristalsis of the gastrointestinal tract, blocking the emptying of food and affecting the digestive function.