| ERP system for the standardization of enterprise management, improve operational efficiency a lot of sense, but the cost of deployment, such as SAP, Oracle and other companies large ERP products require expensive, on the one hand the cost of ERP software itself is high, and the need to hire a professional maintenance personnel, but also on operational staff professional training. In a sense, this type of ERP system is not suitable for small and medium enterprises. SMEs generally would consider using a custom small business management information system to assist in conducting business operations. Based on this, through popular Web application development philosophy, using the Python language, Flask framework, Object Management Mapping(ORM) model to construct a petroleum product sales management system for small marketing enterprises.This thesis aims to introduce the development of this system, the user’s needs and implement methods and procedures, and its focus on the design and implementation of the system on two parts. Needs analysis in part through needs analysis, use case analysis, process analysis, a description of the system to achieve the goals and ideas and put forward the overall design. By Flask Blueprint for each function module system will be described in detail. Section describes the detailed design of the system six modules, the user management module, customer management module, sales management module, financial module, a scheduling module, and inventory management module. Each module Flask/Python’s design philosophy, using the Blueprint provided Flask to organize, for future improvements and extensions. Systems were introduced to achieve some system to achieve the steps and methods of all modules, and various types of sub-module design and implementation of a more detailed discussion and demonstration, in order to give a critical point of the system design, the key and the key technology.Finally, the use of unit tests to test the system to ensure that it works properly. In production environment through the deployment, and run the test proved that the system is able to provide sales management services to small and medium enterprises. There is a certain positive role in the savings, ease of management, research and development, personnel training and other aspects. |