程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Computer graduation design Python+djang drug management system

編輯:Python

項目介紹

隨著時代的發展,Pharmacies have put forward new requirements for the management of drug supermarkets,Traditional drug supermarket management,It can no longer meet the current pharmacy's management of drugs,Drugs generally have a wide variety, 價格不一,Treatment is not easy,The usage and dosage are different,How to manage these dazzling drugs more scientifically and rationally,This is a problem that many pharmacy managers have always thought they were concerned about.In order to solve this problem, we have developed a drug supermarket management system.

This drug supermarket management system is divided into two parts: management personnel and employees,Administrators can manage all functions within the system,Employees help managers manage customer information and sales information,This reduces the workload of managers to a certain extent.該系統的基本功能包括用戶登錄,藥品信息管理,客戶信息管理,員工信息管理,銷售信息管理,采購信息管理,統計報表,基礎資料設置,系統管理等功能.

開發環境

計算機畢業設計Python+djangdrug management system
開發語言:Python
python框架:django
軟件版本:python3.7/python3.8
數據庫:mysql 5.7或更高版本
數據庫工具:Navicat11
開發軟件:PyCharm/vs code
前端框架:vue.js
可開發框架:ssm/Springboot/vue/python/PHP/小程序/安卓均可開發

系統截圖

The interface is the main interface of the system,In the main interface, you can see the recommended drug information.You can view drug information through the navigation bar,Drug Bulletin and Personal Center,Such as background recording,You can click Background Login to log in.

After helping the user click on the picture of the drug in the previous step, the system will automatically pop up the drug details,The system will automatically pop up the drug details.Here, the drug can be checked out and stored, and the number of the drug can be viewed,入庫處理,At the same time, you can view the number of the drug,類別,規格.Manufacturer's valid quantity purchase price and,數量,The content of purchase price and selling price
This interface is for background management personnel to perform operations related to drug storage information, including drug name, drug number, drug category, picture specifications,Mainly include the name of the drug,藥物編號,class of drug,圖片,規格,Manufacturer's purchase price, total price, storage time, etc,售價,總價格,Inventory time and other information.
This interface is the interface display of the basic information of the drug, which mainly includes the number of the drug, the name of the drug, and the category of the drug,It mainly includes the number of the drug,藥物的名稱,class of drug,diagram of drugs.Pictures of drugs,Specifications of the drug,Manufacturer's expiration date, etc.

核心代碼


def yaowuchuku_register(request):
if request.method in ["POST", "GET"]:
msg = {
'code': normal_code, "msg": mes.normal_code}
req_dict = request.session.get("req_dict")
error = yaowuchuku.createbyreq(yaowuchuku, yaowuchuku, req_dict)
if error != None:
msg['code'] = crud_error_code
msg['msg'] = "用戶已存在,請勿重復注冊!"
return JsonResponse(msg)
def yaowuchuku_login(request):
if request.method in ["POST", "GET"]:
msg = {
'code': normal_code, "msg": mes.normal_code}
req_dict = request.session.get("req_dict")
datas = yaowuchuku.getbyparams(yaowuchuku, yaowuchuku, req_dict)
if not datas:
msg['code'] = password_error_code
msg['msg'] = mes.password_error_code
return JsonResponse(msg)
try:
__sfsh__= yaowuchuku.__sfsh__
except:
__sfsh__=None
if __sfsh__=='是':
if datas[0].get('sfsh')=='否':
msg['code']=other_code
msg['msg'] = "賬號已鎖定,請聯系管理員審核!"
return JsonResponse(msg)
req_dict['id'] = datas[0].get('id')
return Auth.authenticate(Auth, yaowuchuku, req_dict)
def yaowuchuku_logout(request):
if request.method in ["POST", "GET"]:
msg = {

"msg": "登出成功",
"code": 0
}
return JsonResponse(msg)
def yaowuchuku_resetPass(request):
'''
'''
if request.method in ["POST", "GET"]:
msg = {
"code": normal_code, "msg": mes.normal_code}
req_dict = request.session.get("req_dict")
columns= yaowuchuku.getallcolumn( yaowuchuku, yaowuchuku)
try:
__loginUserColumn__= yaowuchuku.__loginUserColumn__
except:
__loginUserColumn__=None
username=req_dict.get(list(req_dict.keys())[0])
if __loginUserColumn__:
username_str=__loginUserColumn__
else:
username_str=username
if 'mima' in columns:
password_str='mima'
else:
password_str='password'
eval('''yaowuchuku.objects.filter({
}='{}').update({
}='123456')'''.format(username_str,username,password_str))
return JsonResponse(msg)

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved