Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
a0cf8c3a
Commit
a0cf8c3a
authored
Mar 07, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230307
parent
5b10cda0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
apps/view_choose/fill_data.py
+4
-3
No files found.
apps/view_choose/fill_data.py
View file @
a0cf8c3a
...
...
@@ -9,7 +9,7 @@ from sqlalchemy import and_
from
apps.models
import
*
from
apps
import
SERVER_NAME
from
apps.util
import
verify_token
,
verify_identity
from
apps.util
import
verify_token
,
verify_identity
,
login_required
from
apps.view_choose
import
api_address
from
apps.utils.response_code
import
RET
...
...
@@ -239,6 +239,7 @@ def show_all():
# 下载模板
@api_address.route
(
"/DownloadTemplate"
,
methods
=
[
"POST"
])
@login_required
def
download_xlsx
():
req_dic
=
request
.
get_json
()
token
=
request
.
headers
[
'token'
]
...
...
@@ -541,7 +542,7 @@ def read_template():
tax
=
row_content
[
17
]
linkman
=
row_content
[
18
]
telephone
=
row_content
[
19
]
red_line_map
=
row_content
[
20
]
#
red_line_map = row_content[20]
other_requirements
=
row_content
[
21
]
# 导入厂房数据
if
carrier_type
==
'3'
:
...
...
@@ -670,7 +671,7 @@ def read_template():
tax
=
tax
,
linkman
=
linkman
,
telephone
=
telephone
,
red_line_map
=
red_line_map
,
#
red_line_map=red_line_map,
other_requirements
=
other_requirements
,
)
db
.
session
.
add
(
carrier_obj
)
...
...
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