Storage operation template printing management method and system, terminal and medium
By dynamically configuring the business node types in the warehousing management system and generating unique template encoding, the problem that fixed printing templates cannot meet complex business needs is solved, efficient and flexible printing management is achieved, and maintenance costs are reduced.
Patent Information
- Application Number
- CN202411483906.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-02-11
AI Technical Summary
In the existing warehousing management system, fixed printing templates cannot meet the complex needs of different business node types, resulting in poor printing scalability, low efficiency and high maintenance costs.
Through the management terminal, a unique target template encoding is generated, and a printing request is sent to the server, a corresponding printing template information package is obtained, the target printing data is processed according to the template content parameters, and a printing task is generated and sent to the printer.
It realizes the rapid generation of new printing templates according to different business needs, which improves printing flexibility and scalability, improves printing efficiency, and reduces template maintenance costs.
Smart Images

Figure CN119415054A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of warehousing operations, and in particular to a warehousing operation template printing management method, system, terminal and medium. Background Art
[0002] In the current warehouse management system, for different categories of warehousing, outbound, transfer, inventory and other operations, it is necessary to print relevant document labels, such as material codes, finished product codes, auxiliary material codes, etc. Since warehouse managers need to perform a lot of work on-site in the warehouse, portable Bluetooth printers have become the mainstream method of printing labels. In the Bluetooth printing method, such labels are usually based on fixed printing templates to achieve business printing.
[0003] However, with the complexity of business node types, the same material code has different text content, QR code encoding rules and layout methods displayed on the label in different scenarios. Fixed printing templates can no longer meet the printing needs of more scenarios. The printing method using fixed printing templates has poor scalability, low printing efficiency and high maintenance costs. Summary of the invention
[0004] To solve the above problems, the present invention provides a warehouse operation template printing management method, system, terminal and medium, which match different printing templates to different business node types, improve the scalability of the printing method, and improve printing efficiency.
[0005] In a first aspect, the technical solution of the present invention provides a warehouse operation template printing management method, which is executed by a management terminal and includes the following steps: Configure the current business node type; Generate a unique target template code according to the current business node type; Send a print request carrying a unique target template code to the server; Receive a print template information package fed back by the server, the print template information package including template content parameters and template data source identifier; Acquire target printing data according to the template data source identifier, and process the target printing data according to the template content parameters to obtain target printing content; Generate a print task based on the target print content and send it to the printer.
[0006] In an optional implementation, configuring the current service node type specifically includes: Use user information to log in to the management terminal; Match the current user's business permissions based on user information; Display a list of business node types based on business permissions. The list of business node types includes the business node types that the current user can select. The user selects the required service node type from the service node type list to complete the configuration of the current service node type.
[0007] In an optional implementation, acquiring target printing data according to the template data source identifier specifically includes: According to the current service node type, the interface input parameter is obtained based on the preset interface input parameter mapping table; wherein the interface input parameter mapping table contains the mapping relationship between different service node types and their adapted interface input parameters; According to the obtained interface input parameters, a json data packet is obtained through an ajax request based on the template data source identifier; the json data packet contains the target print data, and the template data source identifier is the template data source URL.
[0008] In an optional implementation, the template content parameters include a print element type identifier, print element relative coordinate information, print field attributes, and field attribute value variables.
[0009] In an optional implementation, the target print data is processed according to the template content parameters to complete the print data assembly, specifically including: Determine the printing element type according to the printing element type identifier, the printing element type includes text type, QR code type and barcode type; Determine the position of the printing element according to the relative coordinate information of the printing element, where the printing element position includes horizontal and vertical coordinates; Parse the print field attributes to obtain product attribute information; Perform regular expression extraction on the field attribute value variable to obtain the attribute value variable; Use javascript language to extract the target data corresponding to the attribute value variable of each product attribute information in the json data packet; The target data, print element type, and print element position constitute the final target print content.
[0010] In a second aspect, the technical solution of the present invention provides a warehouse operation template printing management system for executing any of the above methods, the system comprising: Business node configuration module: used to configure the current business node type; Template code generation module: used to generate a unique target template code according to the current business node type; Print request sending module: used to send a print request carrying a unique target template code to the server; Template information receiving module: used to receive the print template information package fed back by the server, the print template information package contains template content parameters and template data source identifier; Print content acquisition module: used to acquire target print data according to the template data source identifier, and process the target print data according to the template content parameters to obtain the target print content; Print task sending module: used to generate a print task according to the target print content and send it to the printer.
[0011] In a third aspect, the technical solution of the present invention provides a warehouse operation template printing management method, which is executed by a server and includes the following steps: Configure a print template information package, which includes template content parameters and a template data source identifier; Constructing a template information mapping table, wherein the template information mapping table includes a mapping relationship between each printing template information package and an adaptation unique target template code; Receive and parse the print request, and obtain the unique target template code contained in the print request; Based on the template information mapping table, retrieve the printing template information package adapted to the unique target template code; Feedback the print template information package to the management terminal.
[0012] In a fourth aspect, the technical solution of the present invention provides a warehouse operation template printing management system for executing the above method, the system comprising: Template information package configuration module: used to configure the print template information package, which includes template content parameters and template data source identifier; Template information mapping table construction module: used to construct a template information mapping table, which contains the mapping relationship between each printing template information package and the adaptation unique target template code; Print request receiving and parsing module: used to receive and parse the print request, and obtain the unique target template code contained in the print request; Template information package retrieval module: used to retrieve the printing template information package adapted to the unique target template code based on the template information mapping table; Template information package feedback module: used to feed back the printing template information package to the management terminal.
[0013] In a fifth aspect, the technical solution of the present invention provides a terminal, including: A memory, used for storing a warehouse operation template printing management program; A processor is used to implement the steps of the warehouse operation template printing management method as described in any one of the above items when executing the warehouse operation template printing management program.
[0014] In the sixth aspect, the technical solution of the present invention provides a computer-readable storage medium, on which a warehouse job template printing management program is stored. When the warehouse job template printing management program is executed by a processor, the steps of the warehouse job template printing management method as described in any one of the above items are implemented.
[0015] Compared with the prior art, the warehouse operation template printing management method, system, terminal and medium provided by the present invention have the following beneficial effects: dynamically generating a unique target template code according to the current business node type, and then obtaining the corresponding printing template information package from the server, and then obtaining the target printing data according to the printing template information package to execute the printing task, thereby achieving the purpose of quickly generating new printing templates according to different business needs, avoiding the use of fixed template files, improving the flexibility and scalability of using templates, improving printing efficiency, and reducing template maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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.
[0017] Figure 1 It is a schematic diagram of a warehouse operation template printing management architecture provided by an embodiment of the present invention.
[0018] Figure 2 It is a flow chart of a warehouse operation template printing management method provided by an embodiment of the present invention.
[0019] Figure 3 It is a schematic diagram of the structure of a warehouse operation template printing management system provided by an embodiment of the present invention.
[0020] Figure 4 It is a flow chart of a warehouse operation template printing management method provided by an embodiment of the present invention.
[0021] Figure 5 It is a schematic diagram of the structure of a warehouse operation template printing management system provided by an embodiment of the present invention.
[0022] Figure 6 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0025] Figure 1 The present invention provides a schematic diagram of a warehouse operation template printing management architecture. The warehouse operation template printing management method is based on Figure 1 The management architecture shown is implemented, which includes a server, a management terminal and a printer. The server is used to store the print template information package, and the management terminal is used to configure the current business node type and generate a unique target template code based on the current business node type. The management terminal interacts with the server according to the unique target template code, obtains the adapted print template information package from the server, and then obtains the print target data based on the print template information package, and generates a print task and sends it to the printer for printing, thereby achieving the purpose of automatically matching print templates for different business node types. The user only needs to configure the current business node type in the management terminal.
[0026] Figure 2 This is a flow chart of a warehouse operation template printing management method provided by an embodiment of the present invention. Figure 2 The execution subject is the server. According to different requirements, the order of the steps in the flowchart can be changed, and some can be omitted.
[0027] like Figure 2 As shown, the method specifically includes the following steps.
[0028] S1, configure the print template information package.
[0029] The print template information package contains template content parameters and template data source identifiers. Template content parameters include print element type identifiers, print element relative coordinate information, print field attributes, and field attribute value variables.
[0030] The template data source identifier is the template data source URL, and the target print data is obtained from the interface according to the template data source URL.
[0031] In an optional implementation, the print template information package further includes a template code, a template name, and a template type.
[0032] S2, constructing a template information mapping table.
[0033] The template information mapping table contains the mapping relationship between each printing template information package and the adaptation unique target template code. The template information mapping table is used to filter the printing template information package according to the unique target template code received from the management terminal.
[0034] S3, receiving and parsing the print request, and obtaining the unique target template code contained in the print request.
[0035] The management terminal sends a print request to the server, and the server parses the print request and extracts the unique target template code carried in the print request.
[0036] S4, based on the template information mapping table, retrieve the printing template information package adapted to the unique target template code.
[0037] The pre-built template information mapping table contains the mapping relationship between each printing template information package and the adapted unique target template code. This step obtains the adapted printing template information package based on the mapping relationship according to the unique target template code parsed from the print request.
[0038] S5, feeding back the printing target information package to the management terminal.
[0039] The server feeds back the print target information package to the management terminal, so that the management terminal can extract the target print data and print according to the template parameters.
[0040] In this embodiment, the server encodes and saves the adapted printing template information package for different unique target templates. The printing template information package contains template content parameters and template data source identifiers for the management terminal to extract relevant content from the target data source, providing data support for improving the printing efficiency of warehouse operation templates and improving the flexibility and scalability of template printing.
[0041] Figure 3 It is a schematic diagram of the structure of a warehouse job template printing management system provided by an embodiment of the present invention. The system configuration and server of this embodiment are used to implement the warehouse job template printing management method of the above embodiment. The warehouse job template printing management system configured on the server can be divided into multiple functional modules according to the functions it performs. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in the memory.
[0042] Template information package configuration module: used to configure the print template information package, which includes template content parameters and template data source identifier.
[0043] Template information mapping table construction module: used to construct a template information mapping table, which contains the mapping relationship between each printing template information package and the adaptation unique target template code.
[0044] Print request receiving and parsing module: used to receive and parse the print request, and obtain the unique target template code contained in the print request.
[0045] Template information package retrieval module: used to retrieve the printing template information package adapted to the unique target template code based on the template information mapping table.
[0046] Template information package feedback module: used to feed back the printing template information package to the management terminal.
[0047] It should be noted that the specific implementation method of the system in this embodiment can be seen in the embodiment part of the warehouse operation template printing management method in the previous text. Its specific implementation method can refer to the description of the corresponding embodiments of each part. Its function corresponds to the function of the above-mentioned method and will not be introduced in detail here.
[0048] Figure 4 This is a flow chart of a warehouse operation template printing management method provided by an embodiment of the present invention. Figure 4 The execution subject is the management terminal. According to different requirements, the order of the steps in the flowchart can be changed, and some can be omitted.
[0049] like Figure 4 As shown, the method specifically includes the following steps.
[0050] SS1, configure the current service node type.
[0051] SS1.1, log in to the management terminal using user information.
[0052] SS1.2, match the current user's business permissions based on user information.
[0053] SS1.3, display the business node type list according to the business authority, and the business node type list contains the business node types that the current user can select.
[0054] SS1.4, the user selects the required service node type from the service node type list to complete the configuration of the current service node type.
[0055] In this embodiment, the business node type means that the label type currently required to be printed is one of the material code, finished product code or auxiliary material code. The current user can only see all the material codes, finished product codes or auxiliary material codes within the user's authority, and the label types outside the authority cannot be displayed.
[0056] SS2, generates a unique target template code based on the current service node type.
[0057] In this embodiment, the unique target template code is a unique identifier for the interaction between the management terminal and the server. After the user configures the current service node type, the background automatically generates an adapted unique target template code. Exemplarily, the mapping relationship between the service node type and the unique target template code is pre-configured, the user configures the current service node type in the management terminal, and the background extracts the unique template code based on the mapping relationship.
[0058] SS3, sends a print request carrying a unique target template code to the server.
[0059] In this embodiment, after obtaining the unique target template code, the management terminal sends a print request to the server to obtain the template information package corresponding to the unique target template code.
[0060] SS4, receives the print template information packet fed back by the server.
[0061] In this embodiment, the print template information package includes template content parameters and a template data source identifier.
[0062] In an optional implementation manner, the template content parameters include a print element type identifier, print element relative coordinate information, print field attributes, and field attribute value variables.
[0063] The printing element types include text type, QR code type, barcode type, etc. For example, the text type is identified as TEXT, the QR code type is identified as QRCODE, and the barcode type is identified as BARCODE.
[0064] The relative coordinate information of the printing element is used to identify the relative coordinates of the printing element. The relative coordinates of the printing element are relative to the top and left side of the printing paper, including horizontal and vertical coordinates. The printer arranges the position of the printing element according to the coordinates.
[0065] The print field attributes include product attribute information that the business needs to display on the label, including material code, coil number, material batch, weight and other product attributes.
[0066] Field attribute value variables are usually composed of the English identifier corresponding to the field and are wrapped in ${}.
[0067] In an optional implementation, the template data source identifier, the template data source URL, is an interface address or an external data source address, which can be used for an ajax request to obtain a json format data packet.
[0068] SS5, acquiring target printing data according to the template data source identifier, and processing the target printing data according to the template content parameters to obtain target printing content.
[0069] In this embodiment, after the print template information package is obtained, the target print data is first obtained according to the template data source identifier, and then the target print data is processed according to the template content parameters to obtain the target print content.
[0070] This embodiment obtains target printing data according to the template data source identifier, which specifically includes the following steps.
[0071] SS5.1, according to the current service node type, obtains the interface input parameters based on the preset interface input parameter mapping table.
[0072] In this embodiment, the interface input parameter mapping table contains the mapping relationship between different service node types and their adapted interface input parameters, the interface input parameter is determined based on the configured current service node type, and then the json data packet is obtained through an ajax request.
[0073] SS5.2, according to the obtained interface input parameters, obtain the json data packet through ajax request based on the template data source identifier.
[0074] In this embodiment, the json data packet contains the target printing data.
[0075] This embodiment processes the target printing data according to the template content parameters to obtain the target printing content, which specifically includes the following steps.
[0076] SS5.3, determine the printing element type based on the printing element type identifier.
[0077] The printing element types include text type, QR code type and barcode type. The printing element type required this time is determined from these three types based on the printing element type identifier.
[0078] SS5.4, determine the position of the printing element according to the relative coordinate information of the printing element.
[0079] The print element position includes horizontal and vertical coordinates, and the printer arranges the print element position according to the horizontal and vertical coordinates.
[0080] SS5.5, parse the print field attributes to obtain product attribute information.
[0081] In this embodiment, the product attribute information includes material code, steel coil number, material batch, weight and other product attributes.
[0082] SS5.6, perform regular expression extraction on field attribute value variables to obtain attribute value variables.
[0083] In this embodiment, the field attribute value variable is usually composed of the English identifier corresponding to the field and is wrapped by ${}. The field attribute value variable is extracted by a regular expression, and the regular expression is / \$\{([^}]+)\} / g, which is intended to obtain the attribute value variable inside ${}.
[0084] SS5.7, uses javascript language to extract the target data corresponding to the attribute value variable of each product attribute information in the json data packet.
[0085] In this embodiment, the data source of the target printing attribute value variable is extracted from the acquired json data packet using javascript language, and assembled into a new json object as the target printing data.
[0086] SS5.8, the target data, printing element type, and printing element position constitute the final target printing content.
[0087] SS6, generates a print task according to the target print content and sends it to the printer.
[0088] In this embodiment, the mobile terminal sends the target printing task to the printer to realize printing. The target printing task is composed of the printing element type, the printing element position and the target data. The printer is a Bluetooth printer, and the Bluetooth printer has established a Bluetooth connection with the management terminal in advance, so as to maintain normal communication for printing.
[0089] Figure 5 It is a schematic diagram of the structure of a warehouse operation template printing management system provided by an embodiment of the present invention. The system of this embodiment is configured in a management terminal to implement the warehouse operation template printing management method of the above embodiment. The warehouse operation template printing management system configured in the management terminal can be divided into multiple functional modules according to the functions it performs. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory.
[0090] Business node configuration module: used to configure the current business node type.
[0091] Template code generation module: used to generate a unique target template code according to the current business node type.
[0092] Print request sending module: used to send a print request carrying a unique target template code to the server.
[0093] Template information receiving module: used to receive the print template information package fed back by the server, the print template information package contains template content parameters and template data source identifier.
[0094] Print content acquisition module: used to acquire target print data according to the template data source identifier, and process the target print data according to the template content parameters to obtain the target print content.
[0095] Print task sending module: used to generate a print task according to the target print content and send it to the printer.
[0096] It should be noted that the specific implementation method of the system in this embodiment can be seen in the embodiment part of the warehouse operation template printing management method in the previous text. Its specific implementation method can refer to the description of the corresponding embodiments of each part. Its function corresponds to the function of the above-mentioned method and will not be introduced in detail here.
[0097] Figure 6 A schematic diagram of a management terminal provided by an embodiment of the present invention includes: a processor, a memory and a communication unit. The processor is used to implement the following steps when implementing a storage job template printing management program stored in the memory: Configure the current business node type; Generate a unique target template code according to the current business node type; Send a print request carrying a unique target template code to the server; Receive a print template information package fed back by the server, the print template information package including template content parameters and template data source identifier; Acquire target printing data according to the template data source identifier, and process the target printing data according to the template content parameters to obtain target printing content; Generate a print task based on the target print content and send it to the printer.
[0098] The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0099] The computer storage medium stores a warehouse operation template printing management program, and when the warehouse operation template printing management program is executed by the processor, the following steps are implemented: Configure the current business node type; Generate a unique target template code according to the current business node type; Send a print request carrying a unique target template code to the server; Receive a print template information package fed back by the server, the print template information package including template content parameters and template data source identifier; Acquire target printing data according to the template data source identifier, and process the target printing data according to the template content parameters to obtain target printing content; Generate a print task based on the target print content and send it to the printer.
[0100] The above disclosure is only a preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by a person skilled in the art, as well as several improvements and modifications made without departing from the principle of the present invention, should fall within the protection scope of the present invention.
Claims
1. A warehouse operation template printing management method, characterized in that: Executed by the management terminal, including the following steps: Configure the current business node type; Generate a unique target template code according to the current business node type; Send a print request carrying a unique target template code to the server; Receive a print template information package fed back by the server, the print template information package including template content parameters and template data source identifier; Acquire target printing data according to the template data source identifier, and process the target printing data according to the template content parameters to obtain target printing content; Generate a print task based on the target print content and send it to the printer.
2. The warehouse operation template printing management method according to claim 1 is characterized in that: Configure the current business node type, including: Use user information to log in to the management terminal; Match the current user's business permissions based on user information; Display a list of business node types based on business permissions. The list of business node types includes the business node types that the current user can select. The user selects the required service node type from the service node type list to complete the configuration of the current service node type.
3. The warehouse operation template printing management method according to claim 1 is characterized in that: Obtain the target print data according to the template data source identifier, including: According to the current service node type, the interface input parameter is obtained based on the preset interface input parameter mapping table; wherein the interface input parameter mapping table contains the mapping relationship between different service node types and their adapted interface input parameters; According to the obtained interface input parameters, a json data packet is obtained through an ajax request based on the template data source identifier; the json data packet contains the target print data, and the template data source identifier is the template data source URL.
4. The warehouse operation template printing management method according to claim 3 is characterized in that: The template content parameters include print element type identification, print element relative coordinate information, print field attributes and field attribute value variables.
5. The warehouse operation template printing management method according to claim 1 is characterized in that: The target print data is processed according to the template content parameters to complete the print data assembly, including: Determine the printing element type according to the printing element type identifier, the printing element type includes text type, QR code type and barcode type; Determine the position of the printing element according to the relative coordinate information of the printing element, where the printing element position includes horizontal and vertical coordinates; Parse the print field attributes to obtain product attribute information; Perform regular expression extraction on the field attribute value variable to obtain the attribute value variable; Use javascript language to extract the target data corresponding to the attribute value variable of each product attribute information in the json data packet; The target data, print element type, and print element position constitute the final target print content.
6. A warehouse operation template printing management system, characterized in that: For executing the method according to any one of claims 1 to 5, the system comprises: Business node configuration module: used to configure the current business node type; Template code generation module: used to generate a unique target template code according to the current business node type; Print request sending module: used to send a print request carrying a unique target template code to the server; Template information receiving module: used to receive the print template information package fed back by the server, the print template information package contains template content parameters and template data source identifier; Print content acquisition module: used to acquire target print data according to the template data source identifier, and process the target print data according to the template content parameters to obtain the target print content; Print task sending module: used to generate a print task according to the target print content and send it to the printer.
7. A warehouse operation template printing management method, characterized in that: Executed by the server, including the following steps: Configure a print template information package, which includes template content parameters and a template data source identifier; Constructing a template information mapping table, wherein the template information mapping table includes a mapping relationship between each printing template information package and an adaptation unique target template code; Receive and parse the print request, and obtain the unique target template code contained in the print request; Based on the template information mapping table, retrieve the printing template information package adapted to the unique target template code; Feedback the print template information package to the management terminal.
8. A warehouse operation template printing management system, characterized in that: For executing the method of claim 7, the system comprises: Template information package configuration module: used to configure the print template information package, which includes template content parameters and template data source identifier; Template information mapping table construction module: used to construct a template information mapping table, which contains the mapping relationship between each printing template information package and the adaptation unique target template code; Print request receiving and parsing module: used to receive and parse the print request, and obtain the unique target template code contained in the print request; Template information package retrieval module: used to retrieve the printing template information package adapted to the unique target template code based on the template information mapping table; Template information package feedback module: used to feed back the printing template information package to the management terminal.
9. A management terminal, characterized in that: include: A memory, used for storing a warehouse operation template printing management program; A processor is used to implement the steps of the warehouse job template printing management method as described in any one of claims 1 to 5 when executing the warehouse job template printing management program.
10. A computer-readable storage medium, characterized in that: The readable storage medium stores a warehouse job template printing management program, and when the warehouse job template printing management program is executed by the processor, the steps of the warehouse job template printing management method according to any one of claims 1 to 5 are implemented.