Commit ca104d4d authored by 邱阿朋's avatar 邱阿朋

优化

parent b7f3a086
......@@ -5,9 +5,9 @@
Return_Summary.xls
ContraCogsInvoices.xls
Payments.xlsx
returns
invoices
coop
return_goods
spa
refund
*.xlsx
build
*.spec
\ No newline at end of file
......@@ -35,14 +35,14 @@ def page_get(url):
def export_list_read_data():
file_name = "ContraCogsInvoices.xls"
if not os.path.isfile(file_name):
# raise FileNotFoundError(f"{file_name},文件不存在")
page_get("hz/vendor/members/coop?ref_=vc_xx_subNav")
# 全选
page.ele("#select-all").click()
# 点击选项卡
page.ele("#cc-invoice-actions-dropdown").click()
# 点击下载报表
page.ele("#cc-invoice-actions-dropdown_2").click.to_download().wait()
raise FileNotFoundError(f"{file_name},文件不存在")
# page_get("hz/vendor/members/coop?ref_=vc_xx_subNav")
# # 全选
# page.ele("#select-all").click()
# # 点击选项卡
# page.ele("#cc-invoice-actions-dropdown").click()
# # 点击下载报表
# page.ele("#cc-invoice-actions-dropdown_2").click.to_download().wait()
return pd.read_excel(file_name, engine='xlrd')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment