Compare commits
2 Commits
559af65260
...
d514e82e9b
Author | SHA1 | Date | |
---|---|---|---|
d514e82e9b | |||
0c602a8ccd |
@@ -97,7 +97,7 @@ def import_file():
|
|||||||
|
|
||||||
@app.route('/download-xlsx')
|
@app.route('/download-xlsx')
|
||||||
def 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 工作簿
|
# 创建一个 Excel 工作簿
|
||||||
inventorys = Inventory.query.all() # 查询所有数据, and sort data by sort
|
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