Dispersive shocks in quantum hydrodynamics with viscosity