Label printing method, system and equipment and computer readable storage medium
By analyzing the model information and certification completion information in the product maintenance request, and obtaining and printing a general logo template containing all certification marks, it solves the problems of excessive number of logo templates and low printing efficiency caused by different completion time and order of different certification projects of the same model, and achieves a significant reduction in the number of logo templates and an improvement in printing efficiency.
Patent Information
- Application Number
- CN202510122699.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-04-18
AI Technical Summary
During the production process of products such as servers or PCs, the completion time and order of different certification projects of the same model are different, resulting in different types of certification marks printed on the nameplate label. It is necessary to manually select the matching template material number, which is inefficient and prone to errors.
By analyzing the model information and authentication completion information in the product maintenance request, determining the data row corresponding to the model information in the product maintenance table, and adding a completion mark in the authentication flag column of the data row based on the authentication completion information. In response to the printing request, obtain the logo template corresponding to the model information, and print the authentication logo corresponding to the target logo in the template. This logo template includes all certification marks for the product corresponding to the model information during the complete production cycle.
It significantly reduces the number of logo templates, improves printing efficiency, reduces the risk of choosing wrong templates, ensures the accuracy and traceability of the product certification information, and optimizes the overall efficiency of the production line.
Smart Images

Figure CN119847458A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of production management, and in particular to a label printing method, system, device and computer-readable storage medium. Background Art
[0002] During the production process of products such as servers or PCs, each model needs to complete a series of certifications according to industry standards, including mandatory product certification, energy-saving certification, environmental certification, etc., to ensure that the product can be shipped smoothly. In order to indicate that the product has passed the relevant certification, the certification mark needs to be printed on the nameplate label and attached to the machine body. Since the completion time and order of different certification projects for the same model may be different, the types of certification marks printed on the nameplate label of the machine of the model may vary during the same production period. In order to manage these differences, it is necessary to create corresponding certification mark templates based on the certification projects currently passed by the machine of the model. Each certification mark template corresponds to a unique template material number. Therefore, the same model of machine may correspond to the template material numbers of multiple certification mark templates during the production process to reflect its different certification status.
[0003] When maintaining label printing rules, staff must manually select matching template material numbers based on the current certification status of the model. This process involves manual identification and selection, which is not only inefficient but also prone to errors. If the wrong template material number is selected, the certification mark on the label may not accurately reflect the actual certification status of the product, which will affect the smooth shipment of the product.
[0004] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention
[0005] The object of the present invention is to provide a label printing method, system, device and computer-readable storage medium, which can significantly reduce the number of label templates, facilitate production management and improve printing efficiency.
[0006] In order to solve the above technical problems, the present invention provides a label printing method, comprising:
[0007] Parsing the model information and the authentication completion information in the maintenance request of the product, determining the data row corresponding to the model information in the product maintenance table, and adding a completion mark in the authentication mark column of the data row according to the authentication completion information;
[0008] In response to receiving a print request, acquiring a target identifier corresponding to the machine model information in the print request based on the product maintenance table;
[0009] Obtain a logo template corresponding to the machine model information in the print request, and print the certification mark in the logo template corresponding to the target identifier; the logo template includes all certification marks of the product corresponding to the machine model information within a complete production cycle.
[0010] Before obtaining the logo template corresponding to the machine model information in the printing request, the label printing method further includes:
[0011] Pre-create the logo templates corresponding to the products one by one, and determine the unique template material number of each logo template;
[0012] Bind all model information of the same product with the template material number of the logo template corresponding to the product;
[0013] The process of obtaining the logo template corresponding to the machine model information in the print request includes:
[0014] Determine the template material number bound to the model information in the print request, and obtain the logo template corresponding to the template material number;
[0015] The label printing method further comprises:
[0016] In response to the model information in the maintenance request of the product satisfying a new model determination condition, binding the model information with a template material number of a logo template corresponding to the product;
[0017] The process of determining the data row corresponding to the model information in the product maintenance table includes:
[0018] Any data row in the product maintenance table that has no data written in it is used as a data row corresponding to the model information.
[0019] Wherein, the label printing method further comprises:
[0020] In response to receiving a request for adding a new mark, parsing the product corresponding to the request for adding a new mark and the certification mark to be added;
[0021] In the logo template of the product corresponding to the new logo request, the certification logo to be added is added; the template material number of the logo template to which the certification logo to be added is added remains unchanged.
[0022] After parsing the model information and the authentication completion information in the maintenance request of the product, the label printing method further includes:
[0023] Determining the validity of the model information and the authentication completion information respectively;
[0024] In response to the model information and / or the authentication completion information being invalid, generating error prompt information so that the user can re-input a maintenance request for the product based on the error prompt information;
[0025] The process of determining a data row corresponding to the model information in the product maintenance table and adding a completion mark in the certification mark column of the data row according to the certification completion information includes:
[0026] In response to the model information and the authentication completion information being both valid, a data row corresponding to the model information in the product maintenance table is determined, and a completion mark is added to the authentication mark column of the data row according to the authentication completion information.
[0027] Before obtaining the logo template corresponding to the machine model information in the printing request, the label printing method further includes:
[0028] Creating the logo template corresponding to the product and configuring printing conditions for the logo template;
[0029] The process of printing the authentication mark corresponding to the target mark in the mark template includes:
[0030] For each of the target identifiers, in response to the target identifier satisfying the printing condition, the authentication mark corresponding to the target identifier is mapped as the mark to be printed;
[0031] Print the logo to be printed in the logo template.
[0032] Wherein, the label printing method further comprises:
[0033] Determining a unique completion identifier corresponding to each certification mark in the mark template;
[0034] For each of the target identifiers, in response to the target identifier and the unique completion identifier of its corresponding authentication mark being the same, it is determined that the target identifier meets the printing condition; otherwise, it is determined that the target identifier does not meet the printing condition.
[0035] The process of printing the authentication mark corresponding to the target mark in the mark template includes:
[0036] generating prompt information of the authentication mark corresponding to the target mark in the mark template;
[0037] In response to receiving a confirmation printing request output by the user based on the prompt information, printing the authentication mark in the mark template corresponding to the target identifier.
[0038] In order to solve the above technical problems, the present invention also provides a label printing system, comprising:
[0039] A parsing module, used to parse the model information and the authentication completion information in the maintenance request of the product, determine the data row corresponding to the model information in the product maintenance table, and add a completion mark in the authentication mark column of the data row according to the authentication completion information;
[0040] A first acquisition module, configured to, in response to receiving a print request, acquire a target identifier corresponding to the machine model information in the print request based on the product maintenance table;
[0041] The second acquisition module is used to obtain the logo template corresponding to the model information in the printing request, and print the certification mark corresponding to the target identifier in the logo template; the logo template includes all certification marks of the product corresponding to the model information within the complete production cycle.
[0042] In order to solve the above technical problems, the present invention further provides an electronic device, comprising:
[0043] Memory for storing computer programs;
[0044] A processor is used to implement the steps of the label printing method as described in any one of the above when executing the computer program.
[0045] In order to solve the above technical problems, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the label printing method as described in any one of the above are implemented.
[0046] The present application provides a label printing method, in which maintenance requests for all models are written into the same product maintenance table, making maintenance work more centralized and simplified, reducing omissions and errors caused by scattered records, and all models of the same product share a logo template, and the logo template includes all certification marks of the product during the complete production cycle, and there is no need to create a separate logo template for each model or certification mark, thereby significantly reducing the total number of logo templates. When maintaining printing rules, the risk of selecting the wrong template is reduced, and the completion mark of the certification mark column corresponding to the model is quickly located in the product maintenance table according to the print request and the corresponding certification mark is printed, reducing printing preparation time and improving the overall efficiency of the production line.
[0047] The present application also provides a label printing system, an electronic device and a computer-readable storage medium, which have the same beneficial effects as the above-mentioned label printing method. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 A flowchart of the steps of a label printing method provided by the present invention;
[0050] Figure 2 A structural schematic diagram of a label printing device provided by the present invention;
[0051] Figure 3 A working schematic diagram of a product life cycle management system module provided by the present invention;
[0052] Figure 4 A working schematic diagram of an enterprise resource planning system module provided by the present invention;
[0053] Figure 5 A working schematic diagram of a manufacturing execution system module provided by the present invention;
[0054] Figure 6 A structural schematic diagram of a label printing system provided by the present invention;
[0055] Figure 7 A schematic diagram of the structure of an electronic device provided by the present invention;
[0056] Figure 8 This is a schematic diagram of the structure of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0057] The core of the present invention is to provide a label printing method, system, device and computer-readable storage medium, which can significantly reduce the number of logo templates, facilitate production management and improve printing efficiency.
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] First, please refer to Figure 1 The present invention provides a label printing method, the label printing method comprising:
[0060] S101: parsing the model information and the authentication completion information in the maintenance request of the product, determining the data row corresponding to the model information in the product maintenance table, and adding a completion mark in the authentication mark column of the data row according to the authentication completion information;
[0061] In this embodiment, all products jointly maintain a product maintenance table. When a certification project of a product is completed, the staff outputs a maintenance request based on the model of the product and the currently completed certification project, that is, the maintenance request includes model information and certification completion information. For example, assuming that model A completes energy-saving certification, the model information includes model A, and the certification completion information includes information related to energy-saving certification, including but not limited to the preset ID and preset name of energy-saving certification, etc., for subsequent analysis. The generation of maintenance requests can be through an automated system interface, or manually input by staff. The data storage columns of the product maintenance table include but are not limited to product models and all certification marks corresponding to all products, where the product model is used to represent the unique number or other identification information of the product, and the product model column is used to record model information.
[0062] In this embodiment, the data storage column used to record the completion mark of the certification mark is called the certification mark column. The product maintenance table may include multiple certification mark columns, each of which records the certification completion information of a certification mark, that is, the completion mark. The completion mark can be a specific set value, or a completion date, or the name of the certification mark, etc., which can be selected according to the actual project needs. This embodiment does not make specific restrictions here. The product maintenance table may also include only one certification mark column, in which the certification completion information related to the model is recorded in an overlapping manner. The product maintenance table can refer to Table 1, where C represents the completion mark.
[0063] Table 1 Product maintenance table
[0064]
[0065] After receiving the maintenance request sent by the user, the model information and certification completion information in the maintenance request of the product are parsed, and the data row recording the model is located in the product maintenance table according to the model information. If the product maintenance table includes multiple certification mark columns, each column corresponds to a certification project. This embodiment adds a completion mark in the corresponding certification mark column. If the product maintenance table only includes one certification mark column, this embodiment records the new certification completion information in this column in a coded or superimposed manner, for example, using a code to represent different certification projects and their completion status. Updating the certification completion information through a standardized process can ensure that all products follow the same management and recording standards, improve the consistency of the process, ensure that the data in the product maintenance table is consistent with the certification status of the actual product, and reduce the possibility of data errors and confusion. In addition, the use of a product maintenance table to record the certification completion information facilitates the addition of new certification projects or adjustments to existing projects in the future.
[0066] S102: in response to receiving a print request, obtaining a target identifier corresponding to the machine model information in the print request based on the product maintenance table;
[0067] In this embodiment, a print request containing model information is received, and the print request may be generated when order information about a certain model is received. The print request is parsed, the model information is extracted, and the corresponding data row is located in the product maintenance table. This step includes but is not limited to database query operations, such as filtering using SQL statements. After locating the data row corresponding to the model information, the completion mark of the certification mark column is obtained. In this embodiment, the completion mark corresponding to the model is determined as the target mark. Specifically, if the maintenance table contains multiple certification mark columns, each column corresponds to a certification item, and this embodiment will identify which columns contain the completion mark. If the maintenance table has only one certification mark column, this embodiment will parse the encoded or superimposed information to identify which certification items have been completed. This embodiment obtains information directly from the product maintenance table, reducing the possibility of data transcription errors.
[0068] As an optional embodiment, when receiving a print request, the machine model may have completed multiple authentication items, corresponding to multiple target identifiers, and an identifier list may be established based on the multiple target identifiers to subsequently determine the authentication mark to be printed.
[0069] S103: Obtain a logo template corresponding to the machine model information in the print request, and print the certification mark corresponding to the target mark in the logo template; the logo template includes all certification marks of the product corresponding to the machine model information within the complete production cycle.
[0070] In this embodiment, a universal logo template is created in advance for all models of each product. The logo template includes all certification marks of the product in the complete production cycle. For example, a logo template 1 is created for all models of server products, and a logo template 2 is created for all models of PC products. Logo template 1 includes all certification marks of the server in the complete production cycle, and logo template 2 includes all certification marks of the PC in the complete production cycle. The logo template is saved for subsequent calls. When a print request is received, the model information is extracted, and a logo template is selected according to the model information. Since the target identifier indicates the completed certification project of the model, the certification mark corresponding to the target identifier can be printed on the machine nameplate label. In this embodiment, there is no need to design a logo template for each model separately, which reduces the preliminary preparation work and the cost of designing and maintaining the template. Due to the universality of the logo template, the possibility of printing errors caused by selecting the wrong template or missing the certification mark is reduced. The combination of the universal template and the product maintenance table ensures that the certification information of each product is traceable, enhances product traceability, and thus optimizes the printing and management process.
[0071] It can be seen that in the present embodiment, maintenance requests for all models are written into the same product maintenance table, which makes maintenance work more centralized and simplified, reduces omissions and errors caused by scattered records, and all models of the same product share a logo template, and the logo template includes all certification marks of the product in the complete production cycle. It is no longer necessary to create a separate logo template for each model or certification mark, thereby significantly reducing the total number of logo templates. When maintaining printing rules, the risk of selecting the wrong template is reduced, and the completion mark of the certification mark column corresponding to the model is quickly located in the product maintenance table according to the print request and the corresponding certification mark is printed, which reduces the printing preparation time and improves the overall efficiency of the production line.
[0072] Based on the above embodiments:
[0073] In an exemplary embodiment, before obtaining the logo template corresponding to the machine model information in the print request, the label printing method further includes:
[0074] Create a logo template that corresponds to each product in advance, and determine the unique template material number of each logo template;
[0075] Bind all model information under the same product with the template material number of the logo template corresponding to the product;
[0076] The process of obtaining the logo template corresponding to the machine model information in the print request includes:
[0077] Determine the template material number bound to the model information in the print request, and obtain the logo template corresponding to the template material number;
[0078] The label printing method also includes:
[0079] In response to the model information in the maintenance request of the product meeting the new model determination condition, the model information is bound to the template material number of the logo template corresponding to the product;
[0080] The process of determining the data row corresponding to the model information in the product maintenance table includes:
[0081] Any data row in the product maintenance table that has no data written in it is used as the data row corresponding to the model information.
[0082] In this embodiment, a universal logo template is created for each product category, and the logo template contains all possible certification marks of the product in the complete production cycle, and a unique template material number is assigned to each logo template for subsequent identification and call. All model information under the same product category is bound to the template material number of the logo template corresponding to the product, and the binding relationship can be stored in a database or product maintenance table for easy query when a print request is made. When a print request is received, the model information is extracted, and the bound template material number is queried using the model information. According to the queried template material number, the corresponding logo template is obtained. It can be understood that only one template material number is assigned to the same model in the complete production cycle, which reduces the risk of selecting the wrong template. When a print request is received, the corresponding template material number can be directly queried through the model information without the need for a complicated matching process, which speeds up the printing preparation time and improves production efficiency.
[0083] Furthermore, when the model information in the product maintenance request meets the judgment conditions of the new model (for example, the model information appears for the first time or meets the definition of a new model), the following steps are performed: the information of the new model is bound to the template material number of the logo template corresponding to the product, an unused data row is allocated to the new model in the product maintenance table, and the data row is marked as the data row corresponding to the model information, thereby ensuring that the printing request of each model can accurately find and use the corresponding logo template, while also being able to flexibly handle the addition of new models, thereby ensuring the continuity and accuracy of the printing process.
[0084] In an exemplary embodiment, the label printing method further includes:
[0085] In response to receiving a request for adding a new mark, parsing the product corresponding to the request for adding a new mark and the certification mark to be added;
[0086] In the logo template of the product corresponding to the new logo request, add the certification mark to be added; the template material number of the logo template to which the certification mark to be added remains unchanged.
[0087] In this embodiment, when a request for adding a new mark is received, the request specifies a specific product to which a new certification mark is to be added, the request is parsed, the product information and the certification mark to be added are extracted, the existing mark template for the corresponding product is found in the database or storage system according to the product information, and the new certification mark is added to the found mark template. This step involves the operation of graphic design software or direct editing in the template file. Although the template content has been updated, its unique template material number remains unchanged to maintain compatibility with existing product records and printing systems. There is no need to create a new template material number for a small change, which simplifies the template management and maintenance process, further reduces confusion and improves work efficiency, while avoiding potential label reprinting, inventory adjustment and document update costs caused by changing the template material number. In an exemplary embodiment, after parsing the model information and certification completion information in the maintenance request of the product, the label printing method also includes:
[0088] Determine the validity of the model information and the certification completion information respectively;
[0089] In response to the model information and / or the authentication completion information being invalid, generating an error prompt message so that the user can re-enter a maintenance request for the product based on the error prompt message;
[0090] The process of determining the data row corresponding to the model information in the product maintenance table and adding a completion mark in the certification mark column of the data row according to the certification completion information includes:
[0091] In response to the model information and the authentication completion information being both valid, a data row corresponding to the model information in the product maintenance table is determined, and a completion mark is added to the authentication mark column of the data row according to the authentication completion information.
[0092] In this embodiment, after receiving a product maintenance request containing model information and authentication completion information, the validity is judged, including the validity judgment of the model information, checking whether the model information exists in the product maintenance table, whether the format is correct, whether it belongs to a valid product series, etc., and also including the validity judgment of the authentication completion information: verifying whether the authentication completion information matches the model information, whether it belongs to the authentication items that the model should have, and whether the authentication has been actually completed. If the model information or the authentication completion information is invalid, an error prompt message will be generated, which may include the reason for the invalidity and the data that needs to be corrected, so that the user can resubmit the maintenance request according to the error prompt message to ensure the correctness of the information. If both the model information and the authentication completion information are valid, the following steps will be continued: a. Determine the data row: find the data row corresponding to the model information in the product maintenance table, b. Add a completion mark: add a completion mark in the authentication mark column of the corresponding data row according to the authentication completion information. It can be understood that by verifying the validity of the information, the accuracy and reliability of the data in the maintenance table are ensured, invalid data is prevented from entering the system, and the smooth progress of the maintenance and printing process is ensured. The error prompt message provides the user with a direction to solve the problem and helps to quickly correct the error.
[0093] In an exemplary embodiment, before obtaining the logo template corresponding to the machine model information in the print request, the label printing method further includes:
[0094] Create a logo template corresponding to the product and configure printing conditions for the logo template;
[0095] The process of printing the certification mark corresponding to the target mark in the mark template includes:
[0096] For each target identifier, in response to the target identifier satisfying the printing condition, the authentication mark corresponding to the target identifier is mapped as the mark to be printed;
[0097] Print the logo to be printed from the logo template.
[0098] In this embodiment, after creating the logo template corresponding to the product, the printing conditions are set for each certification mark in the logo template. The printing conditions may include but are not limited to the completion status of the certification project (whether the certification is passed), the validity period of the certification, the requirements of a specific market or customer, etc. When a print request is received, the model information and the certification completion information are extracted. Determine whether the target logo meets the printing conditions: for each target logo (i.e., each certification mark) in the logo template, check whether the preset printing conditions are met. If the target logo meets the printing conditions, the corresponding certification mark is marked as a "mark to be printed", and all certification marks marked as "marks to be printed" in the logo template are printed. The printing process may involve sending the template to the printer and executing the print command. By configuring the printing conditions, customized printing can be performed according to the specific situation of the product to ensure that only relevant certification marks are printed. Avoid printing unnecessary or outdated certification marks, reduce printing errors and label waste, and the automated condition judgment and printing process improves production efficiency, reduces manual intervention, ensures that the certification information displayed on the product label complies with regulations and market requirements, and maintains product compliance. In an exemplary embodiment, the label printing method also includes:
[0099] Determine the unique completion mark corresponding to each certification mark in the mark template;
[0100] For each target identification, in response to the target identification and the unique completion identification of its corresponding authentication mark being the same, it is determined that the target identification meets the printing condition; otherwise, it is determined that the target identification does not meet the printing condition.
[0101] In this embodiment, a unique completion mark is assigned to each certification mark in the mark template. This mark is usually a simple code or number, such as "1" indicating that the certification has been completed and the mark can be printed. For each certification mark, a printing condition is set, that is, the printing operation is performed only when the target mark matches its unique completion mark. When a print request is received, the model information and the certification completion information are parsed, and for each target mark corresponding to the model information in the print request, the target mark is compared with the unique completion mark of the corresponding certification mark. If the target mark and the unique completion mark are the same (for example, both are "1"), it is determined that the target mark meets the printing condition. If they are not the same, the system determines that the target mark does not meet the printing condition and will not print the corresponding certification mark. For the certification mark that meets the printing condition, the system marks it as to be printed and performs the printing operation. Exemplarily, the unique completion mark of the environmental certification mark is set to "1", and when the target mark corresponding to the environmental certification mark is "1", the environmental certification mark is printed. The unique completion mark of the energy-saving certification mark is also set to "1", and when the target mark of the energy-saving certification mark is "1", the energy-saving certification mark is printed. Through the unique completion mark, you can accurately control which certification marks are printed and which are not printed. Using a simple "yes" or "no" (such as "1" or "0") as an identifier makes the printing logic easy to understand and implement, reducing printing errors caused by misunderstandings or operational errors. When the certification standards or product requirements change, you only need to update the unique completion mark and printing conditions without modifying the entire printing process.
[0102] In an exemplary embodiment, the process of printing the authentication mark corresponding to the target mark in the mark template includes:
[0103] Generate prompt information of the authentication mark corresponding to the target mark in the mark template;
[0104] In response to receiving a confirmation printing request output by the user based on the prompt information, printing the authentication mark corresponding to the target identifier in the mark template.
[0105] In this embodiment, the system generates prompt information based on the mark template and the target identifier. This information usually indicates which certification marks meet the printing conditions and are about to be printed. The prompt information may include the name of the certification mark, the status (such as "completed", "pending confirmation", etc.), and any other relevant instructions. In this embodiment, the generated prompt information can be displayed on the user interface for the operator or relevant personnel to review. The prompt information can be a pop-up window, a dialog box, a print preview interface or any other suitable format. The user reviews whether the certification mark to be printed is correct based on the prompt information. If the user confirms that the information is correct, a confirmation print request is output. If a problem is found, the user can refuse or request modification. After receiving the user's confirmation print request, the printing operation is started to print the corresponding certification mark. Through the user confirmation step, this embodiment can timely discover and correct potential errors before printing, increase the transparency of the operation, and ensure the accuracy of the printing results.
[0106] Reference Figure 2 As shown in the figure, the above steps can be jointly executed by the PLM (Product Lifecycle Management) system module, the ERP (Enterprise Resource Planning) system module and the MES (Manufacturing Execution System) system module, combined with Figure 3-Figure 5 The functions of each system module are described.
[0107] The PLM system module can be divided into three parts. In the first part, the certification engineer needs to add a new certification mark for model A. He needs to trigger the certification mark application and maintenance process for model A in the PLM system module. He needs to fill in the content that needs to be added and maintained in a fixed form template (i.e., product maintenance table), and maintain a unique completion mark "1" for the newly added certification mark. After the maintenance is completed and released, the unique completion mark corresponding to the newly added certification mark of model A is automatically transmitted to the ERP system module. The second part: The NPI engineer creates a new logo template. The logo template contains all the certification marks that need to be printed, and sets the printing conditions of each certification mark: when a certification mark is equal to the unique completion mark of this mark, it is printed. For example, when "energy-saving certification mark = 1", the energy-saving mark is printed. After the logo template is set, the template material number of the logo template applied for in the PLM system module is B. After the template material number B is applied and released, the logo template is automatically synchronized to the MES system module, and all models can share this logo template. In the third part, the NPI engineer binds the template material number B to the model A as the label printing rule for the model A. That is, when the model A is produced, the certification mark in the B mark template is automatically printed. After the rule is released, it is automatically transmitted to the ERP system module.
[0108] The ERP system module can be divided into two parts: the first part receives the unique identification information of the certification mark of model A transmitted by the PLM system module and stores it in the database table of the ERP system module. The second part, when there is an order for model A, the ERP system module will automatically synchronize the unique identification information of the certification mark of model A with the generated order information to the MES system module.
[0109] The MES system module is divided into three parts: In the first part, the MES system module receives the logo template and the template material number B bound to model A synchronized from the PLM system module and stores them in the local database of the MES system module. In the second part, the MES system module receives the unique identification information of the certification mark of model A synchronized from the ERP system module and stores it in the MES local database. In the third part, when an order for model A is produced, MES automatically retrieves the corresponding template B for printing based on the template material number B bound to model A. When printing, the printing conditions for each certification mark have been set in the logo template (when this mark has unique identification information, the mark is displayed), and the MES label template automatically displays the certification mark to be printed based on the unique identification information of the certification mark corresponding to model A.
[0110] In summary, this application can significantly reduce the number of different material number logo templates generated due to different certification marks. It only needs to create a new universal logo template material number and maintain the label printing rules once. It greatly facilitates the management and maintenance of logo templates, greatly improves the work efficiency of maintaining and printing labels, reduces the occurrence of wrong template material numbers due to maintaining label rules, and ensures the compliance of product shipments.
[0111] Second, please refer to Figure 6 The present invention also provides a label printing system, comprising:
[0112] The parsing module 11 is used to parse the model information and the authentication completion information in the maintenance request of the product, determine the data row corresponding to the model information in the product maintenance table, and add a completion mark in the authentication mark column of the data row according to the authentication completion information;
[0113] A first acquisition module 12, configured to, in response to receiving a print request, acquire a target identifier corresponding to the machine model information in the print request based on the product maintenance table;
[0114] The second acquisition module 13 is used to acquire the logo template corresponding to the machine model information in the print request, and print the certification mark corresponding to the target mark in the logo template; the logo template includes all certification marks of the product corresponding to the machine model information in the complete production cycle.
[0115] The present application provides a label printing method, in which maintenance requests for all models are written into the same product maintenance table, making maintenance work more centralized and simplified, reducing omissions and errors caused by scattered records, and all models of the same product share a logo template, and the logo template includes all certification marks of the product during the complete production cycle, and there is no need to create a separate logo template for each model or certification mark, thereby significantly reducing the total number of logo templates. When maintaining printing rules, the risk of selecting the wrong template is reduced, and the completion mark of the certification mark column corresponding to the model is quickly located in the product maintenance table according to the print request and the corresponding certification mark is printed, reducing printing preparation time and improving the overall efficiency of the production line.
[0116] Third, please refer to Figure 7 The present invention also provides an electronic device, comprising:
[0117] A memory 21, used for storing computer programs;
[0118] The processor 22 is used to implement the steps of the label printing method described in any one of the above embodiments when executing the computer program.
[0119] The electronic device also includes:
[0120] The input interface 23 is connected to the processor 22 via the communication bus 26, and is used to obtain the computer programs, parameters and instructions imported from the outside, and save them in the memory 21 under the control of the processor 22. The input interface can be connected to an input device to receive parameters or instructions manually input by the user. The input device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the terminal housing.
[0121] The display unit 24 is connected to the processor 22 via the communication bus 26 and is used to display the data sent by the processor 22. The display unit can be a liquid crystal display or an electronic ink display.
[0122] The network port 25 is connected to the processor 22 via the communication bus 26, and is used to communicate with various external terminal devices. The communication technology used in the communication connection can be a wired communication technology or a wireless communication technology, such as mobile high-definition link technology, universal serial bus, high-definition multimedia interface, wireless fidelity technology, Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s, etc.
[0123] For an introduction to an electronic device provided in the present application, please refer to the above-mentioned embodiments, and the present application will not go into details here.
[0124] The electronic device provided in the present application has the same beneficial effects as the above-mentioned label printing method.
[0125] Fourth, please refer to Figure 8 The present invention further provides a computer-readable storage medium 30, on which a computer program 31 is stored. When the computer program 31 is executed by a processor, the steps of the label printing method described in any one of the embodiments above are implemented.
[0126] The computer-readable storage medium 30 may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store the program 31 code.
[0127] For an introduction to a computer-readable storage medium provided in the present application, please refer to the above-mentioned embodiments, and the present application will not go into details here.
[0128] A computer-readable storage medium provided in the present application has the same beneficial effects as the above-mentioned label printing method.
[0129] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0130] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A label printing method, characterized in that: include: Parsing the model information and the authentication completion information in the maintenance request of the product, determining the data row corresponding to the model information in the product maintenance table, and adding a completion mark in the authentication mark column of the data row according to the authentication completion information; In response to receiving a print request, acquiring a target identifier corresponding to the machine model information in the print request based on the product maintenance table; Obtain a logo template corresponding to the machine model information in the print request, and print the certification mark in the logo template corresponding to the target identifier; the logo template includes all certification marks of the product corresponding to the machine model information within a complete production cycle.
2. The label printing method according to claim 1, characterized in that: Before obtaining the logo template corresponding to the machine model information in the printing request, the label printing method further includes: Pre-create the logo templates corresponding to the products one by one, and determine the unique template material number of each logo template; Bind all model information of the same product with the template material number of the logo template corresponding to the product; The process of obtaining the logo template corresponding to the machine model information in the print request includes: Determine the template material number bound to the model information in the print request, and obtain the logo template corresponding to the template material number; The label printing method further comprises: In response to the model information in the maintenance request of the product satisfying a new model determination condition, binding the model information with a template material number of a logo template corresponding to the product; The process of determining the data row corresponding to the model information in the product maintenance table includes: Any data row in the product maintenance table that has no data written in it is used as a data row corresponding to the model information.
3. The label printing method according to claim 2, characterized in that: The label printing method further comprises: In response to receiving a request for adding a new mark, parsing the product corresponding to the request for adding a new mark and the certification mark to be added; In the logo template of the product corresponding to the new logo request, the certification logo to be added is added; the template material number of the logo template to which the certification logo to be added is added remains unchanged.
4. The label printing method according to claim 1, characterized in that: After parsing the model information and the authentication completion information in the maintenance request of the product, the label printing method further includes: Determining the validity of the model information and the authentication completion information respectively; In response to the model information and / or the authentication completion information being invalid, generating error prompt information so that the user can re-input a maintenance request for the product based on the error prompt information; The process of determining a data row corresponding to the model information in the product maintenance table and adding a completion mark in the certification mark column of the data row according to the certification completion information includes: In response to the model information and the authentication completion information being both valid, a data row corresponding to the model information in the product maintenance table is determined, and a completion mark is added to the authentication mark column of the data row according to the authentication completion information.
5. The label printing method according to claim 1, characterized in that: Before obtaining the logo template corresponding to the machine model information in the printing request, the label printing method further includes: Creating the logo template corresponding to the product and configuring printing conditions for the logo template; The process of printing the authentication mark corresponding to the target mark in the mark template includes: For each of the target identifiers, in response to the target identifier satisfying the printing condition, the authentication mark corresponding to the target identifier is mapped as the mark to be printed; Print the logo to be printed in the logo template.
6. The label printing method according to claim 5, characterized in that: The label printing method further comprises: Determining a unique completion identifier corresponding to each certification mark in the mark template; For each of the target identifiers, in response to the target identifier and the unique completion identifier of its corresponding authentication mark being the same, it is determined that the target identifier meets the printing condition; otherwise, it is determined that the target identifier does not meet the printing condition.
7. The label printing method according to any one of claims 1 to 6, characterized in that: The process of printing the authentication mark corresponding to the target mark in the mark template includes: generating prompt information of the authentication mark corresponding to the target mark in the mark template; In response to receiving a confirmation printing request output by the user based on the prompt information, printing the authentication mark in the mark template corresponding to the target identifier.
8. A label printing system, characterized in that: include: A parsing module, used to parse the model information and the authentication completion information in the maintenance request of the product, determine the data row corresponding to the model information in the product maintenance table, and add a completion mark in the authentication mark column of the data row according to the authentication completion information; A first acquisition module, configured to, in response to receiving a print request, acquire a target identifier corresponding to the machine model information in the print request based on the product maintenance table; The second acquisition module is used to obtain the logo template corresponding to the model information in the printing request, and print the certification mark corresponding to the target identifier in the logo template; the logo template includes all certification marks of the product corresponding to the model information within the complete production cycle.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the label printing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the label printing method according to any one of claims 1 to 7 are implemented.