A membership management system for supermarket merchandise sales and purchases based on Python

Table of contents

Abstract III
Keywords III
Abstract IV
Keywords IV
1 Overview 1
1.1 Project design background 1
1.2 The significance of project design 1 1.3
Organizational structure of the paper 1
2 Introduction to development tools and related technologies 1
2.1 Introduction to development tools 1
2.2 Introduction to development technologies 1
3 System analysis and Design2
3.1 System Analysis2
3.1.1 System Requirements Analysis2
3.1.2 System Feasibility Analysis2
3.2 Overall System
Design3 3.2.1 Database Design3
3.2.2 Function Module Design5
4 System Detailed Design and Implementation5
4.1 Users Detailed design and implementation of login function 5
4.1.1 Detailed design of user login function 5
4.1.2 Implementation of user login function 6
4.2 Detailed design and implementation of user management function 7
4.2.1 Detailed design of user management function 7
4.2.2 Implementation of user management function 8
4.3 Detailed Design and Realization of Membership Level Functions 13
4.3.1 Detailed Design of Membership Level Functions 13
4.3.2 Realization of Membership Level Functions 14
4.4 Detailed Design and Realization of Membership Management Functions 15
4.4.1 Detailed Design of Membership Management Functions 15
4.4.2 Member management function realization 16
4.5 Product type function detailed design and realization 18
4.5.1 Product type function detailed design 18
4.5.2 Product type function realization 19
4.6 Product management function detailed design and realization 21
4.6.1 Product management function detail Design 21
4.6.2 Commodity Management Function Realization 21
4.7 Sales Management Function Detailed Design and Realization 23
4.7.1 Sales Management Function Detailed Design 23
4.7.2 Sales Management Function Realization 24
4.8 Purchasing Management Function Detailed Design and Realization 27
4.8.1 Purchasing Management Function detailed design 27
4.8.2 Procurement management function realization 28
5 Verification and test 31
5.1 System function test 31
5.2 Test result 32
6 Summary and prospect 32
6.1 Summary 32
6.2 Prospect 33
References 33
Acknowledgments 34
3 System analysis and design
3.1 System analysis
3.1.1 System requirements analysis
Requirements analysis is an important and critical step in the software life cycle. Only through software requirements analysis, can the overall concept of system functions and performance be described as specific software requirements specifications, thus laying the foundation for subsequent software development. Software requirements analysis is a gradual process, which gradually deepens the understanding of system functions and performance, and refines and decomposes software requirements. This process gradually refines the software requirements determined in the software planning stage to a level that can be defined in detail, and analyzes and finds out feasible solutions. The result of requirements analysis is the basis of system development, which is related to the success or failure of the project and the quantity of software products. Therefore, the software must be strictly reviewed and verified by effective methods.
In the development of general information systems, the preparatory work is indispensable to submit explanatory documents for user needs analysis. It is not only the software developer's job to formulate software requirement specifications, but users also play a crucial role. Users must make preliminary requirements for software functions and performance, and clarify some vague concepts. Software analysts should carefully understand the user's requirements, conduct meticulous investigation and analysis, and finally convert the user's "what to do" requirements into a complete and detailed software logic model and write software requirements specifications, accurately Express user needs.
After a lot of demand research, it is concluded that the target system roughly includes the following three parts:
General functions: general functions include user login, logout, personal information editing, and user password modification. These are the basic functions of the system. Users of any identity can use these functions. Users must log in to use the functions provided in the system. At the same time, the user's identity will be automatically judged after the user logs in.
Basic information management: including system user management, product classification management, product information management, membership level setting four parts, product basic information management, including product addition, modification, deletion and query functions. At the same time, a list of product information is provided.
Supermarket operation management: including member information management, sales record management, and purchase record management. Sales record management refers to the management of sales information of inventory products, including the entry of sales information, browsing of sales reports, and viewing of historical sales records. And make statistics on the sales of the day.

<!DOCTYPE html>
<html lang="zh">
{
    
    % load static %}
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录页面</title>
    <link rel="stylesheet" type="text/css" href="{% static 'libs/models/models.css' %}"/>
    <link rel="stylesheet" type="text/css" href="{% static 'css/comm.css' %}"/>
    <link rel="stylesheet" type="text/css" href="{% static 'css/login.css' %}"/>
</head>
<body>
<div class="login-container">
    <div class="login-body">
        <div class="login-title">
            登录
        </div>
        <div class="login-form">
            <form name="loginForm" action="" class="fater-form">
                <div class="fater-form-block">
                    <input type="text" name="userName" placeholder="请输入登录账号"/>
                </div>
                <div class="fater-form-block">
                    <input type="password" name="passWord" placeholder="请输入登录密码"/>
                </div>
                <div class="fater-form-block">
                    <button type="button" id="loginFormBtn" class="fater-btn fater-btn-primary fater-btn-block">
                        登录
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
{
    
    % include 'templates/commjs.html' %}
<script src="{% static 'js/login.js' %}" type="text/javascript" charset="utf-8"></script>
</body>
</html>

insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/newlw/article/details/131167553