From 559af6526018ced832e661dfc75b9373cb255243 Mon Sep 17 00:00:00 2001 From: luff Date: Thu, 27 Feb 2025 08:50:46 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20inventory=5Fcheck/views.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory_check/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory_check/views.py b/inventory_check/views.py index 744e8dd..bb0c6d3 100644 --- a/inventory_check/views.py +++ b/inventory_check/views.py @@ -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 # 创建一个工作簿