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
cc5c3e8f
Commit
cc5c3e8f
authored
Jan 13, 2025
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e3eb560d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
easy_storage.exe
dist/easy_storage.exe
+0
-0
easy_storage.py
src/easy_storage.py
+7
-3
payment.py
src/payment.py
+1
-1
No files found.
dist/easy_storage.exe
View file @
cc5c3e8f
No preview for this file type
src/easy_storage.py
View file @
cc5c3e8f
...
...
@@ -131,9 +131,12 @@ class Process(YcClient):
result
=
{}
for
tracking_number
,
order_data
in
result_list
.
items
():
resp
=
cls
.
create_asn
(
code
,
desc
,
tracking_number
,
order_data
[
"item"
])
print
(
f
"跟踪号:{tracking_number}, 入库单号:{resp.get('receiving_code')}"
)
result
[
tracking_number
]
=
resp
.
get
(
'receiving_code'
)
try
:
resp
=
cls
.
create_asn
(
code
,
desc
,
tracking_number
,
order_data
[
"item"
])
print
(
f
"跟踪号:{tracking_number}, 入库单号:{resp.get('receiving_code')}"
)
result
[
tracking_number
]
=
resp
.
get
(
'receiving_code'
)
except
Exception
as
e
:
print
(
e
)
return
result
...
...
@@ -150,6 +153,7 @@ class Process(YcClient):
data
.
to_excel
(
output_file
,
index
=
False
)
print
(
f
"结果已保存到 {output_file}"
)
# 仓库编码和名称的映射
warehouse_map
=
{
"USLAX01"
:
"美西CA仓库"
,
...
...
src/payment.py
View file @
cc5c3e8f
...
...
@@ -59,7 +59,7 @@ def export_list_read_data():
# 定位表头与数据的分隔
first_header_start
=
empty_rows
[
1
]
+
1
# 第一个表头开始的行
second_header_start
=
empty_rows
[
2
]
+
3
# 第二个表头开始的行
second_header_start
=
empty_rows
[
2
]
+
4
# 第二个表头开始的行
first_df
=
pd
.
read_excel
(
file_name
,
skiprows
=
first_header_start
,
nrows
=
second_header_start
-
7
)
second_df
=
pd
.
read_excel
(
file_name
,
skiprows
=
second_header_start
)
...
...
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