Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amazon_reports
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
common
amazon_reports
Commits
ca104d4d
Commit
ca104d4d
authored
Nov 01, 2024
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
b7f3a086
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
.gitignore
.gitignore
+3
-3
spa_search.py
src/spa_search.py
+8
-8
No files found.
.gitignore
View file @
ca104d4d
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
Return_Summary.xls
Return_Summary.xls
ContraCogsInvoices.xls
ContraCogsInvoices.xls
Payments.xlsx
Payments.xlsx
returns
return
_good
s
invoices
spa
coop
refund
*.xlsx
*.xlsx
build
build
*.spec
*.spec
\ No newline at end of file
src/spa_search.py
View file @
ca104d4d
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment