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

优化

parent b7f3a086
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
Return_Summary.xls Return_Summary.xls
ContraCogsInvoices.xls ContraCogsInvoices.xls
Payments.xlsx Payments.xlsx
returns return_goods
invoices spa
coop refund
*.xlsx *.xlsx
build build
*.spec *.spec
\ No newline at end of file
...@@ -35,14 +35,14 @@ def page_get(url): ...@@ -35,14 +35,14 @@ def page_get(url):
def export_list_read_data(): def export_list_read_data():
file_name = "ContraCogsInvoices.xls" file_name = "ContraCogsInvoices.xls"
if not os.path.isfile(file_name): if not os.path.isfile(file_name):
# raise FileNotFoundError(f"{file_name},文件不存在") raise FileNotFoundError(f"{file_name},文件不存在")
page_get("hz/vendor/members/coop?ref_=vc_xx_subNav") # page_get("hz/vendor/members/coop?ref_=vc_xx_subNav")
# 全选 # # 全选
page.ele("#select-all").click() # page.ele("#select-all").click()
# 点击选项卡 # # 点击选项卡
page.ele("#cc-invoice-actions-dropdown").click() # page.ele("#cc-invoice-actions-dropdown").click()
# 点击下载报表 # # 点击下载报表
page.ele("#cc-invoice-actions-dropdown_2").click.to_download().wait() # page.ele("#cc-invoice-actions-dropdown_2").click.to_download().wait()
return pd.read_excel(file_name, engine='xlrd') 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