更新 inventory_check/views.py

This commit is contained in:
2025-02-27 08:50:46 +00:00
parent 7e5eaa82e3
commit 559af65260

View File

@ -97,7 +97,7 @@ def import_file():
@app.route('/download-xlsx')
def download_xlsx():
filename = time.strftime("%Y%m%d.xlsx", time.localtime())
filename = "盘点表" + time.strftime("%Y%m%d.xlsx", time.localtime())
# 创建一个 Excel 工作簿
inventorys = Inventory.query.all() # 查询所有数据, and sort data by sort
# 创建一个工作簿