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
84993e48
Commit
84993e48
authored
Nov 12, 2024
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
payment 优化
parent
63ec7478
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
payment.py
src/payment.py
+5
-3
No files found.
src/payment.py
View file @
84993e48
...
...
@@ -9,6 +9,7 @@ import pandas as pd
from
DrissionPage
import
ChromiumPage
from
DrissionPage.errors
import
ElementNotFoundError
from
lxml
import
etree
from
pandas.errors
import
ParserError
from
helper
import
helper
,
excel
,
file
,
domain
,
logger
...
...
@@ -89,10 +90,10 @@ def export_details_read_data(invoice_number):
full_url
=
f
"hz/vendor/members/inv-mgmt/invoice-details?"
+
query_string
page_get
(
full_url
)
# 读取详情内容
#
#
读取详情内容
file_name
=
f
"payment
\\
{invoice_number}.csv"
if
os
.
path
.
isfile
(
file_name
):
return
pd
.
read_csv
(
file_name
)
#
if os.path.isfile(file_name):
#
return pd.read_csv(file_name)
while
True
:
try
:
...
...
@@ -250,6 +251,7 @@ def handle_data(detail_datum, vendor, deduction_points):
def
main
():
list_data
=
export_list_read_data
()
list_data
=
list_data
[
25
:]
excel
.
save_xls
(
list_data
,
"回款数据.xlsx"
,
"Remittance payments"
)
log
.
info
(
f
"共计:{len(list_data)} 订单"
)
...
...
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