This commit is contained in:
2025-02-25 16:36:41 +08:00
parent 84c285b722
commit 534a92559a
8 changed files with 21 additions and 23 deletions

View File

@ -1,2 +1,3 @@
FLASK_APP=inventory_check FLASK_APP=inventory_check
FLASK_ENV=development FLASK_ENV=development
SECRET_KEY=asdASS3434dfE5tgfg

View File

@ -1,9 +1,10 @@
# inventory_check # inventory_check
click 8.1.8 click
Flask 3.1.0 Flask
Flask-Moment 1.0.6 Flask-Moment
Flask-SQLAlchemy 3.1.1 Flask-SQLAlchemy
gunicorn 23.0.0 gunicorn
openpyxl 3.1.5 openpyxl
python-dotenv

View File

@ -37,7 +37,7 @@ function checknext() {
amount.value = data.amount; amount.value = data.amount;
tagelement.innerText = data.tag; tagelement.innerText = data.tag;
idelement.innerText = data.id; idelement.innerText = data.id;
msg.innerText = data.checkedone + " checked " + data.checkedamount; msg.innerText = data.checkedone + " 盘点数 " + data.checkedamount;
}) })
.catch(error => console.error('Error:', error)); .catch(error => console.error('Error:', error));
@ -69,3 +69,4 @@ function apiAuth() {
}); });
}); });
} }
apiAuth();

View File

@ -10,20 +10,15 @@
<body> <body>
<main class="grail"> <main class="grail">
<header> <header>
<h1> <h1>盘点 </h1>
<a href="" ><strong>CHECK</strong></a>
<small>it</small>
</h1>
</header> </header>
{% block content %}{% endblock %} {% block content %}{% endblock %}
<footer> <footer>
{% block footer %} {% block footer %}
<small> &copy; 2025 <a href="http://yum2.cc" title="Written by luffmims">luffmims</a> / <small> &copy; 2025 <a href="http://yum2.cc" title="Written by luff">luff</a> /
</small> </small>
<p><a id="bottom" href="#" title="Go Top">&uarr;</a></p> <!-- <p><a id="bottom" href="#" title="Go Top">&uarr;</a></p> -->
{% endblock %} {% endblock %}
</footer> </footer>
</main> </main>

View File

@ -2,7 +2,7 @@
{% block content %} {% block content %}
<div id="flash-msg"> <div id="flash-msg">
Let's go! 开始盘点>>>
</div> </div>
<div> <div>
<div class="handler"> <div class="handler">

View File

@ -7,15 +7,15 @@
</small> </small>
</h5> </h5>
<form method=get action="/upload"> <form method=get action="/upload">
<input style="width:100px;" type=submit value=上传> <input style="width:100px;" type=submit value=上传XLSX>
</form> </form>
<form method=get action="/list"> <form method=get action="/list">
<input style="width:100px;" type=submit value=list> <input style="width:100px;" type=submit value=显示列表>
</form> </form>
<form method=get action="/check"> <form method=get action="/check">
<input style="width:100px;" type=submit value=check> <input style="width:100px;" type=submit value=继续盘点>
</form> </form>
<form method=get action="/download-xlsx"> <form method=get action="/download-xlsx">
<input style="width:100px;" type=submit value=download-xlsx> <input style="width:100px;" type=submit value=下载XLSX>
</form> </form>
{% endblock %} {% endblock %}

View File

@ -2,9 +2,9 @@
{% block title %}上传Excel文件{% endblock %} {% block title %}上传Excel文件{% endblock %}
{% block content %} {% block content %}
<h1>上传Excel文件</h1> <h1>上传Excel XLSX文件</h1>
<form method=post enctype=multipart/form-data action="/import"> <form method=post enctype=multipart/form-data action="/import">
<div><input style="width:300px;" type=file name=file></div> <div><input style="width:300px;" type=file name=选择></div>
<div class="handler"><div></div><input style="width:100px;"type=submit value=上传></div> <div class="handler"><div></div><input style="width:100px;"type=submit value=上传></div>
</form> </form>
<div> <div>