In this paper we study optimal control computation based on the control parameterization method for a class of optimal control problems involving nonlinear systems with multiple time delays subject to continuous state inequality constraints. Both the state and the control are allowed to have different time delays, and they are uncorrelated in this system. The control of the dynamical system is approximated by a piecewise constant function whose heights are taken as decision vectors. The formulae for computing the gradients of the cost and constraint functions are then derived. Based on this, a computational method for finding the optimal control is developed by utilizing the Sequential Quadratic Programming (SQP) algorithm with an active set strategy. The computational method is applied to an industrial problem arising in the purification process of zinc hydrometallurgy. Numerical simulation shows that the amount of zinc powder that is needed can be decreased significantly, thus avoiding wastage of resources.