Shanghai resumes factory work, deliveries amid virus