A little comfusing but I think I know what you're saying.
There are times where you really need to put your foot down. This is one of those times. Sit her at the table, put her homework infront of her, and not let her up until she does it. If she gets up then put her back in her seat.
There will be tears. However you have to get the point across that homework is non-negotable.