Step 1: Adjust oven rack to the lower-middle position and preheat the oven to 325 degrees Fahrenheit. Spray an 8-inch square metal baking pan with vegetable-oil cooking spray.
Step 2: Fold a 16-inch length of heavy-duty foil to 7 1/2 inches wide and lay it across the pan bottom and up two of its sides so the foil overhangs to remove the bars from the pan. Spray the foil with the vegetable-oil cooking spray.
Step 3: Mix the flour, oatmeal, and sugar in a medium bowl. Stir in the butter with a fork until it is well mixed and clumps form. Spread 3/4 cup of the oatmeal mixture into the prepared pan, pressing it down to form a thin crust on the bottom.
Step 4: Meanwhile, heat the condensed milk and allspice to a simmer in a small saucepan over low heat to blend the flavors. Mix the coconut, pistachios, figs, and apricots in a medium bowl. Add the milk mixture and stir to combine.
Step 5: Pour over the oatmeal crust in the pan, using a rubber sptaiula to press the mixture into place. Sprinkle the remaining oatmel mixture over the filling.
Step 6: Bake the bars until they are lightly golden, about 30 minutes. Set on a wire rack and cool for 5 minutes. Using the foil handles, gently lift the bars from the pan and cool to room temperature. Cut into squares and serve.