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_ENV=development
FLASK_ENV=development
SECRET_KEY=asdASS3434dfE5tgfg

View File

@ -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

View File

@ -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();

View File

@ -10,20 +10,15 @@
<body>
<main class="grail">
<header>
<h1>
<a href="" ><strong>CHECK</strong></a>
<small>it</small>
</h1>
<h1>盘点 </h1>
</header>
{% block content %}{% endblock %}
<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>
<p><a id="bottom" href="#" title="Go Top">&uarr;</a></p>
<!-- <p><a id="bottom" href="#" title="Go Top">&uarr;</a></p> -->
{% endblock %}
</footer>
</main>

View File

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

View File

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

View File

@ -2,9 +2,9 @@
{% block title %}上传Excel文件{% endblock %}
{% block content %}
<h1>上传Excel文件</h1>
<h1>上传Excel XLSX文件</h1>
<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>
</form>
<div>