ought 是过去分词
with sth done 是"伴随着某事被完成了",的意思,这里sth是被动
she needed 是定语,修饰everything
翻译为:她要买的东西都买完了,她离开那家店,手里拎满了购物袋.