Compare commits
7 Commits
d0faf8b8b2
...
main
Author | SHA1 | Date | |
---|---|---|---|
d514e82e9b | |||
0c602a8ccd | |||
559af65260 | |||
7e5eaa82e3 | |||
b1c336e43c | |||
1f2c23c157 | |||
b88b78a946 |
@ -47,5 +47,5 @@ function checknext() {
|
||||
|
||||
function backtoroot(msg="已完成,返回") {
|
||||
alert(msg);
|
||||
location.href="index.html";
|
||||
location.href="/";
|
||||
}
|
@ -1,6 +1,16 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block scripts %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>盘库助手</title>
|
||||
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" src="{{ url_for('static', filename='js/script.js') }}"></script>
|
||||
<script>
|
||||
backtoroot( "{{ msg }}" );
|
||||
</script>
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
@ -97,7 +97,7 @@ def import_file():
|
||||
|
||||
@app.route('/download-xlsx')
|
||||
def download_xlsx():
|
||||
filename = time.strftime("%Y%m%d.xlsx", time.localtime())
|
||||
filename = "PD-" + time.strftime("%Y%m%d", time.localtime()) + ".xlsx"
|
||||
# 创建一个 Excel 工作簿
|
||||
inventorys = Inventory.query.all() # 查询所有数据, and sort data by sort
|
||||
# 创建一个工作簿
|
||||
|
BIN
sheet.xlsx
Normal file
BIN
sheet.xlsx
Normal file
Binary file not shown.
BIN
游芯盘点表.xlsx
BIN
游芯盘点表.xlsx
Binary file not shown.
Reference in New Issue
Block a user