Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, an electronic device and a storage medium for generating a process card, which can retrieve a template to be filled according to a target production process of a target product and automatically fill the template to be filled according to process information, thereby improving the generation efficiency of the process card, saving a large amount of human resources, and solving the problem of slow speed of manufacturing the process card in the prior art.
In a first aspect, an embodiment of the present application provides a method for generating a process flow card, which is applied to an enterprise production process execution management system, and the method includes:
acquiring a target production process related to a target product;
according to the target production flow, at least one template to be filled of a flow card for generating the target product is obtained from an initial template;
acquiring process flow information for filling each target template according to the product batch number to which the target product belongs;
filling each template to be filled with the process flow information to obtain at least one filled target template;
and splicing the at least one target template according to a preset template splicing sequence to obtain the process card of the target product.
Further, the generating method further includes:
responding to the adjustment operation aiming at the initial production flow, and determining an item to be modified from the initial production flow;
and modifying the production information to be modified corresponding to the item to be modified by utilizing the received modification data to obtain the target production flow.
Further, the acquiring, according to the target production process, at least one template to be filled of a process card used for generating the target product from an initial template includes:
determining at least one process manufacturing flow involved in producing the target product based on the target production flow;
for each process manufacturing flow, determining a template to be filled, which needs to be filled when the process manufacturing flow is executed, from the initial template;
and obtaining at least one template to be filled of the process card for generating the target product based on the template to be filled corresponding to each process manufacturing process.
Further, the step of filling each template to be filled with the process flow information to obtain at least one filled target template comprises;
for each template to be filled, determining data to be filled for filling the template to be filled from the process flow information by using the data category of each item to be filled in the template to be filled;
and filling each item to be filled in the template to be filled by using the data to be filled to obtain a filled template to be filled, and determining the filled template to be filled as a target template.
Further, the initial template comprises one or more of a basic information template, a raw material information template, a production process information template and a bill of material template.
In a second aspect, an embodiment of the present application further provides a device for generating a process flow card, where the device includes:
the target production process acquisition module is used for acquiring a target production process related to a target product;
the template to be filled acquisition module is used for acquiring at least one template to be filled of a process card used for generating the target product from an initial template according to the target production process;
the process flow information acquisition module is used for acquiring process flow information used for filling each target template according to the product batch number to which the target product belongs;
the target template determining module is used for filling each template to be filled by utilizing the process flow information to obtain at least one filled target template;
and the flow card generating module is used for splicing the at least one target template according to a preset template splicing sequence to obtain the flow card of the target product.
Further, the generating device further includes an initial production process modification template, and the initial production process modification template is configured to:
responding to the adjustment operation aiming at the initial production flow, and determining an item to be modified from the initial production flow;
and modifying the production information to be modified corresponding to the item to be modified by utilizing the received modification data to obtain the target production flow.
Further, when the template to be filled obtaining module is configured to obtain at least one template to be filled of a process card used for generating the target product from an initial template according to the target production process, the template to be filled obtaining module is configured to:
determining at least one process manufacturing flow involved in producing the target product based on the target production flow;
for each process manufacturing flow, determining a template to be filled, which needs to be filled when the process manufacturing flow is executed, from the initial template;
and obtaining at least one template to be filled of the process card for generating the target product based on the template to be filled corresponding to each process manufacturing process.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the method of generating a process flow card as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the method for generating a process flow card as described above.
The method for generating the process flow card comprises the steps of firstly, obtaining a target production flow related to a target product; then, according to the target production flow, at least one template to be filled of a flow card for generating the target product is obtained from an initial template; acquiring process flow information for filling each target template according to the product batch number to which the target product belongs; filling each template to be filled with the process flow information to obtain at least one filled target template; and splicing the at least one target template according to a preset template splicing sequence to obtain the process card of the target product.
According to the method and the device for generating the process card, the corresponding template to be filled can be obtained according to the target production process related to the target product, the template to be filled is filled according to the process information of the target product to obtain the target template, and finally the target templates are spliced according to the preset template splicing sequence to obtain the process card of the target product. Compared with the generation method in the prior art, the generation method of the process flow card provided by the embodiment of the application improves the generation efficiency of the process flow card, saves a large amount of human resources, and solves the problem that the speed of manufacturing the process flow card in the prior art is low.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
With the development of technology, in a modern Manufacturing factory, a Manufacturing Execution System (MES) is usually constructed to optimize and manage the whole Manufacturing process from order placement to product completion. The MES system used in many manufacturing plants needs to print the flow card, and the customer often requires to print the flow card when the products of the sealing and testing enterprise are put into production, and the main materials used in each process, the process using equipment numbers, equipment programs and other data are faithfully filled in the flow card, and then delivered to the customer when the products are delivered.
It has been found through research that process engineers and engineers often need to configure a flow card template in the MES system according to each flow, and also need to print different flow cards according to different product numbers and different customer numbers. For example, when a process has 10 processes, each process corresponds to 5 customers, and the 5 customers all need to produce 10 products, a process engineer or engineer typically needs to manually create 500 different process cards and 50 different process card templates to meet different requirements. Data entry is very labor intensive, inefficient, and risks of configuration errors are very high.
Based on this, the embodiment of the application provides a method for generating a process flow card, so as to improve the generation efficiency of the process flow card, save a large amount of human resources, and solve the problem that the speed of manufacturing the process flow card is slow in the prior art.
Firstly, a use scenario of the method for generating the process flow card provided by the embodiment of the application is introduced: the method for generating the process flow card provided by the embodiment of the application is applied to an enterprise production process Execution Management (MES) System, wherein the MES System is a management information System facing an inter-vehicle layer and positioned between an upper-layer plan management System and a bottom-layer industrial control, and provides plan Execution, tracking and current states of all resources (human, equipment, materials, customer requirements and the like) for operators/managers. The MES system comprises functional modules of workshop resource management, production task management, workshop planning and scheduling management, production process management, quality process management, material tracking management, workshop monitoring management, statistical analysis and the like, and covers aspects of manufacturing field management and the like. The MES is a customizable manufacturing management system, and the process flow and the management requirements of different enterprises can be realized through field definition.
Referring to fig. 1, fig. 1 is a flowchart of a method for generating a process flow card according to an embodiment of the present disclosure. As shown in fig. 1, the method for generating a process flow card provided in the embodiment of the present application is applied to an enterprise production process execution management system, and includes:
and S101, acquiring a target production flow related to a target product.
It should be noted that the target product refers to various products produced, and may refer to a product that can be manufactured through multiple manufacturing processes and can meet a certain requirement, including tangible articles, such as a tire, a mouse, a shaver, and the like, and the application is not limited in particular. The target production process refers to various production information involved in producing the target product, such as basic information, production process, information on used raw materials and materials, and the like, and the present application is not particularly limited thereto.
Here, it should be noted that the above examples of the target product and the target production flow are merely examples, and in practice, the target product and the target production flow are not limited to the above examples.
In step S101, a target production process related to a target product is obtained in specific implementation. Specifically, data creation needs to be manually performed in an ECM (Engineering Change Management) module, where the ECM module is mainly responsible for performing activities of changing product design or process by an enterprise during product design and manufacturing and inspection due to external or internal needs of the enterprise. In the data creating process, information such as products, manufacturing procedures, flows, working procedures, equipment groups and the like can be created in sequence, a process route which a target product is going to go in the production process is defined, and information such as production equipment, materials and the like used in each working procedure is defined. After the information is created, a manual signing process is needed, and an engineer usually needs to click an effect button to enable the created target production flow to take effect.
According to the method for generating a process flow card provided by the present application, as an optional implementation, the method further includes:
a: and determining an item to be modified from the initial production flow in response to the adjustment operation aiming at the initial production flow.
It should be noted that the initial production flow refers to the production flow information of the target production flow before being modified. The adjustment operation refers to an operation of modifying the initial production flow information. The item to be modified refers to the modified item indicated by the adjustment operation, for example, the item to be modified may be a raw material of a target product, and the application is not particularly limited thereto.
B: and modifying the production information to be modified corresponding to the item to be modified by utilizing the received modification data to obtain the target production flow.
It should be noted that the modification data refers to new production flow information generated by the adjustment operation. For example, the raw material information in the initial production flow is glass, and the raw material information is modified into plastic, where "plastic" is the modification data, and "glass" is the production information to be modified.
For the above step a and step B, in specific implementation, before the target production flow is used, the initial production flow information may be adjusted, and the item to be modified is determined in response to the adjustment operation for the initial production information. And then modifying the production information to be modified of the item to be modified by utilizing the received modification data so as to obtain a target generation flow.
Here, it should be noted that the above examples of the item to be modified, the modification data, and the production information to be modified are merely examples, and in practice, the target product and the target production flow are not limited to the above examples.
S102, according to the target production process, at least one template to be filled of the process card used for generating the target product is obtained from the initial template.
It should be noted that the initial template refers to a template that is pre-constructed and is used for generating a flow card of the target product. As an alternative embodiment, the initial template includes one or more of a basic information template, a raw material information template, a production process information template, and a bill of materials template. Here, the basic information template refers to a template for storing some basic attributes of the target product, and for example, the basic information template may include information such as a product lot number, a product model number, a customer code, a product type, and the like. The raw material information template refers to a template for storing raw material information used when producing a target product. The production flow information template refers to a template for storing flow information involved in producing a target product. Here, when a process further includes at least one process, the production process information template may further include at least one process template, and the process template and the production process information template may be stored in a mapping relationship. The bill of material template refers to a template for storing material information involved in producing a target product. The process card refers to an interface finally generated for displaying the generation process and basic information of the target product. The template to be filled refers to a template required for generating the flow card, which is determined from the initial template.
For step S102, in a specific implementation, at least one template to be filled of the process card for generating the target product is obtained from the initial template according to the target production process obtained in step S101.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for obtaining a template to be filled according to an embodiment of the present disclosure. As shown in fig. 2, the acquiring, according to the target production process, at least one template to be populated of a process card used for generating the target product from an initial template includes:
s201, determining at least one process manufacturing flow related to the target product production based on the target production flow.
The process flow refers to a flow involved in producing a target product, and may be information such as a flow, a raw material, and a bill of materials.
In step S201, in a specific implementation, at least one process flow involved in producing the target product is determined according to a target product flow involved in the target product. As an example, a process flow may be basic information, flow and raw materials.
And S202, aiming at each process manufacturing flow, determining a template to be filled in the process manufacturing flow from the initial templates.
For the above step S202, in a specific implementation, according to each process manufacturing flow related to the target product determined in step S201, at least one template to be filled when the process manufacturing flow is executed is determined from the initial template. Continuing with the previous embodiment, when the process manufacturing flow is basic information, flow and raw material, the templates to be filled in when the process manufacturing flow is executed are the basic information template, the raw material information template and the production flow information template.
And S203, obtaining at least one template to be filled for generating the process card of the target product based on the template to be filled corresponding to each process manufacturing process.
For the above step S203, in a specific implementation, the template to be filled corresponding to each process manufacturing flow determined in the step S202 is determined as at least one template to be filled of the process card used for generating the target product.
S103, acquiring process flow information for filling each target template according to the product batch number to which the target product belongs.
It should be noted that the product lot number refers to the production number of each batch of products, and the product lot numbers of different batches of products are different. The process flow information refers to flow information related when a target product is produced, and according to the embodiment provided by the application, the process flow information can be specific information such as a process route of the target product, a production machine number in each flow, a machine program name, tools used in a process and the like. The model number of the target product, the name of the delivery customer, etc. may also be included.
For the step S103, in a specific implementation, the process flow information of the target product, that is, the process flow information for filling each target template, is obtained according to the product batch number to which the target product belongs. Because the MES system stores the detailed information of production and manufacturing, the MES system can directly obtain the product according to the product batch number of the target product.
And S104, filling each template to be filled by utilizing the process flow information to obtain at least one filled target template.
It should be noted that the target template refers to a template with complete data obtained after each template to be filled is filled.
For the step S104, in specific implementation, each template to be filled is filled with process flow information, so as to obtain at least one filled target template. As an optional implementation manner, the filling each template to be filled with the process flow information to obtain at least one filled target template includes:
step 1041, for each template to be filled, determining data to be filled for filling the template to be filled from the process flow information by using the data type of each item to be filled in the template to be filled.
It should be noted that the to-be-filled item refers to each to-be-filled data item in the to-be-filled template, for example, when the to-be-filled template is a basic information template, the to-be-filled item may be a product batch number, a product model number, a customer code, a product type, and the like. The data to be filled refers to data required to fill the item to be filled, and for example, the data to be filled may be 001 when the item to be filled is a product lot number, and may be a cup when the product type is the item to be filled. The data category refers to a data category of data to be filled required to fill the item to be filled.
Here, it should be noted that the above examples of the items to be filled, the data categories, and the data to be filled are merely examples, and in practice, the items to be filled, the data categories, and the data to be filled are not limited to the above examples.
In specific implementation, in step 1041, for each template to be filled, the data to be filled for filling the template to be filled is determined from the process flow information by using the data type of each item to be filled in the template to be filled, so that the template to be filled can be filled with the determined data to be filled.
Step 1042, filling each item to be filled in the template to be filled with the data to be filled to obtain a filled template to be filled, and determining the filled template to be filled as a target template.
For step 1042, in a specific implementation, after data to be filled for filling the template to be filled is determined, each item to be filled in the template to be filled is filled with the data to be filled to obtain a filled template to be filled, and the filled template to be filled is determined as a target template. Therefore, when the template to be filled is filled, the data to be filled is determined according to the data category of the item to be filled, and the possibility of errors during manual filling is reduced.
And S105, splicing the at least one target template according to a preset template splicing sequence to obtain the process card of the target product.
It should be noted that the template splicing sequence refers to a preset splicing sequence of each target template. The template splicing sequence can be that the basic information template is positioned at the top, the raw material information template is spliced next, the production flow information template is spliced next, and the bill of material template is positioned at the bottom.
Here, it should be noted that the above example of the template splicing order is merely an example, and in reality, the template splicing order is not limited to the above example.
For the above step S105, in a specific implementation, after at least one target template is obtained, each target template may be spliced together according to a preset template splicing sequence, and finally, a process card of a target product may be obtained.
According to the method for generating the process card, the corresponding template to be filled can be obtained according to the target production process related to the target product, the template to be filled is filled according to the process information of the target product to obtain the target template, and finally the target templates are spliced according to the preset template splicing sequence to obtain the process card of the target product. Compared with the generation method in the prior art, the generation method provided by the embodiment of the application improves the generation efficiency of the process flow card, saves a large amount of human resources, and solves the problem that the speed of manufacturing the process flow card in the prior art is low.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a device for generating a process flow card according to an embodiment of the present disclosure. As shown in fig. 3, the generating means 300 comprises:
a target production flow obtaining module 301, configured to obtain a target production flow related to a target product;
a template to be filled obtaining module 302, configured to obtain, according to the target production process, at least one template to be filled of a process card used for generating the target product from an initial template;
a process information obtaining module 303, configured to obtain, according to the product lot number to which the target product belongs, process information used for filling each target template;
a target template determining module 304, configured to fill each template to be filled with the process flow information to obtain at least one filled target template;
the flow card generating module 305 is configured to splice the at least one target template according to a preset template splicing sequence, so as to obtain a flow card of the target product.
Further, as shown in fig. 4, fig. 4 is a schematic structural diagram of another apparatus for generating a process flow card according to an embodiment of the present application, and as shown in fig. 4, the apparatus 300 further includes an initial production flow modification template 306, where the initial production flow modification template 306 is configured to:
responding to the adjustment operation aiming at the initial production flow, and determining an item to be modified from the initial production flow;
and modifying the production information to be modified corresponding to the item to be modified by utilizing the received modification data to obtain the target production flow.
Further, when the to-be-filled template obtaining module 302 is configured to obtain at least one to-be-filled template of the process card used for generating the target product from the initial template according to the target production process, the to-be-filled template obtaining module 302 is configured to:
determining at least one process manufacturing flow involved in producing the target product based on the target production flow;
for each process manufacturing flow, determining a template to be filled, which needs to be filled when the process manufacturing flow is executed, from the initial template;
and obtaining at least one template to be filled of the process card for generating the target product based on the template to be filled corresponding to each process manufacturing process.
Further, when the target template determining module 304 fills each template to be filled with the process flow information to obtain at least one filled target template, the target template determining module 304 is configured to;
for each template to be filled, determining data to be filled for filling the template to be filled from the process flow information by using the data category of each item to be filled in the template to be filled;
and filling each item to be filled in the template to be filled by using the data to be filled to obtain a filled template to be filled, and determining the filled template to be filled as a target template.
Further, the initial template comprises one or more of a basic information template, a raw material information template, a production process information template and a bill of material template.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 400 includes a processor 410, a memory 420, and a bus 430.
The memory 420 stores machine-readable instructions executable by the processor 410, when the electronic device 400 runs, the processor 410 communicates with the memory 420 through the bus 430, and when the machine-readable instructions are executed by the processor 410, the steps of the method for generating a process flow card in the method embodiments shown in fig. 1 and fig. 2 may be executed, so that the problem that the speed for manufacturing the process flow card in the prior art is slow is solved.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for generating a process flow card in the method embodiments shown in fig. 1 and fig. 2 may be executed, so as to solve the problem that the speed for manufacturing the process flow card is slow in the prior art.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.