def queryAllPurchaser(): '''前台 查询所有purchase''' info = Basic.queryAllPurchaser() table = Purchaser.getTableaHead() for i in info: table.add_row(i) print(table) print("以上共{}条记录.".format(len(info)))
def queryOnePurchaser(): pur_no = input("请输入需要查询的进货员的编号:").strip() pur = Basic.queryOnePurchase(pur_no) if pur == []: print("该进货员不存在.") return table = Purchaser.getTableaHead() table.add_row(pur) print(table)