From 534a92559a44b85f5e40a86ad4f6661dd4264919 Mon Sep 17 00:00:00 2001 From: luff Date: Tue, 25 Feb 2025 16:36:41 +0800 Subject: [PATCH] cn --- .flaskenv | 3 ++- README.md | 13 +++++++------ inventory_check/static/js/script.js | 3 ++- inventory_check/templates/base.html | 11 +++-------- inventory_check/templates/check.html | 2 +- inventory_check/templates/count.html | 0 inventory_check/templates/index.html | 8 ++++---- inventory_check/templates/upload.html | 4 ++-- 8 files changed, 21 insertions(+), 23 deletions(-) delete mode 100644 inventory_check/templates/count.html diff --git a/.flaskenv b/.flaskenv index 151b41a..fc967d4 100644 --- a/.flaskenv +++ b/.flaskenv @@ -1,2 +1,3 @@ FLASK_APP=inventory_check -FLASK_ENV=development \ No newline at end of file +FLASK_ENV=development +SECRET_KEY=asdASS3434dfE5tgfg \ No newline at end of file diff --git a/README.md b/README.md index 538d9db..14807a9 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # inventory_check -click 8.1.8 -Flask 3.1.0 -Flask-Moment 1.0.6 -Flask-SQLAlchemy 3.1.1 -gunicorn 23.0.0 -openpyxl 3.1.5 +click +Flask +Flask-Moment +Flask-SQLAlchemy +gunicorn +openpyxl +python-dotenv \ No newline at end of file diff --git a/inventory_check/static/js/script.js b/inventory_check/static/js/script.js index 3c10976..96cc806 100644 --- a/inventory_check/static/js/script.js +++ b/inventory_check/static/js/script.js @@ -37,7 +37,7 @@ function checknext() { amount.value = data.amount; tagelement.innerText = data.tag; idelement.innerText = data.id; - msg.innerText = data.checkedone + " checked " + data.checkedamount; + msg.innerText = data.checkedone + " 盘点数 " + data.checkedamount; }) .catch(error => console.error('Error:', error)); @@ -69,3 +69,4 @@ function apiAuth() { }); }); } +apiAuth(); \ No newline at end of file diff --git a/inventory_check/templates/base.html b/inventory_check/templates/base.html index 959b9a0..db2d20f 100644 --- a/inventory_check/templates/base.html +++ b/inventory_check/templates/base.html @@ -10,20 +10,15 @@
-

- CHECK - it -

- +

盘点

{% block content %}{% endblock %}
{% block footer %} - © 2025 luffmims / - + © 2025 luff / -

+ {% endblock %}
diff --git a/inventory_check/templates/check.html b/inventory_check/templates/check.html index 707f6e2..7e5044b 100644 --- a/inventory_check/templates/check.html +++ b/inventory_check/templates/check.html @@ -2,7 +2,7 @@ {% block content %}
- Let's go! + 开始盘点>>>
diff --git a/inventory_check/templates/count.html b/inventory_check/templates/count.html deleted file mode 100644 index e69de29..0000000 diff --git a/inventory_check/templates/index.html b/inventory_check/templates/index.html index 0d03f34..b66a48f 100644 --- a/inventory_check/templates/index.html +++ b/inventory_check/templates/index.html @@ -7,15 +7,15 @@
- +
- +
- +
- +
{% endblock %} diff --git a/inventory_check/templates/upload.html b/inventory_check/templates/upload.html index b1d62c2..d6fe4f3 100644 --- a/inventory_check/templates/upload.html +++ b/inventory_check/templates/upload.html @@ -2,9 +2,9 @@ {% block title %}上传Excel文件{% endblock %} {% block content %} -

上传Excel文件

+

上传Excel XLSX文件

-
+