Well now apparently the WS-10 is ready to be mass produced. At least in numbers that can let you make 20 to 30 J-11Bs. Thats not much different from the output of JH-7As in a year.
I think the reason why they still have to make JH-7As is that they still cannot produce enough J-11Bs. Unless Xian is made to manufacture J-11BS. But if they respect IPR boundaries per Chinese company, that means XAC continues to produce products that it has developed, and don't do stuff like make J-11s. Back in the seventies, you can transfer Shenyang's work in indigenizing the MiG-21 to Chengdu. But today there now appears to be certain boundaries, though its not clear how they are enforced. Seems like every shipyard can make Songs, 054As and Houbeis, and Dalian only makes 051Cs for example. Still I don't imagine Shenyang making J-10s and Xian making J-11Bs, or Hongdu making J-7s or JF-17s. There are boundaries respecting each firm's IPR.
I think its not out of national pride that they make JH-7As, but partly to subsidize XAC and the city of Xian, and partly because they don't have the J-11s and J-10s to undertake the highly specialized ground attack functions. A bomber or attacker is not a mission that is highly dependent on the flight performance of the airframe. What it really needs is better electronics and better signature reduction, both of whom going to a Flanker airframe will not give.
Though I have to add, the market for JH-7As in the PLAAF and PLANAF is going to be limited. Partly because some groups have to be reserved for H-6K, and partly because you cannot replace all the Q-5s. The JH-7A does not replace the Q-5 either, and in fact, nothing does unless we consider using the L-15s or the JF-17. The Q-5 sits in a very unique position as a small, cheap, high tempo attack jet with fighter like agility. Like the Su-25, it should be a tactical battlefield support plane, whereas the JH-7A is something more strategic, like striking targets well behind enemy lines.