Data-Driven Algorithms For Stochastic Supply Chain Systems: Approximation And Online Learning