[go: up one dir, main page]

CN112000302A - Label generation method, template configuration method, device and storage medium - Google Patents

Label generation method, template configuration method, device and storage medium Download PDF

Info

Publication number
CN112000302A
CN112000302A CN202010867840.3A CN202010867840A CN112000302A CN 112000302 A CN112000302 A CN 112000302A CN 202010867840 A CN202010867840 A CN 202010867840A CN 112000302 A CN112000302 A CN 112000302A
Authority
CN
China
Prior art keywords
order information
printing
label
information
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010867840.3A
Other languages
Chinese (zh)
Other versions
CN112000302B (en
Inventor
雷民
刘如鸿
谢东周
方焱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hex Information Technology Co ltd
Original Assignee
Shanghai Hex Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Hex Information Technology Co ltd filed Critical Shanghai Hex Information Technology Co ltd
Priority to CN202010867840.3A priority Critical patent/CN112000302B/en
Publication of CN112000302A publication Critical patent/CN112000302A/en
Application granted granted Critical
Publication of CN112000302B publication Critical patent/CN112000302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1205Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1257Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The embodiment of the application provides a label generation method, a template configuration device and a storage medium, and relates to the technical field of label printing. The method comprises the following steps: receiving order information of a customer; receiving a printing template sent by a server; rendering the order information based on the printing template to acquire marked information; analyzing the marked information to obtain label content; typesetting the label content to generate one or more pictures, and sending the pictures to a printing end for printing to generate a label; and the personalized template is configured according to the order information, so that the printing content is enriched, and the problem that the printing format and the content of the conventional printing method are single is solved.

Description

Label generation method, template configuration method, device and storage medium
Technical Field
The present application relates to the field of label printing technologies, and in particular, to a label generation method, a template configuration method, an apparatus, and a storage medium.
Background
With the development of the full-channel retail business, home service and express service become main services of market full-channel service, and after a brand party such as a store or a warehouse receives a customer order, a commodity printing label of a customer order is pasted on the outside of a commodity or a package, and the printing content comprises text information, picture information, bar code information and the like.
In the existing label using process, each commodity is only provided with one label, the length and the width of each label are adjusted according to the printing content, text information such as remark information of the extended attribute of a printing client is printed, and the printing format and the content (position) are relatively fixed, so that the printing format and the content are relatively single.
Disclosure of Invention
An object of the embodiments of the present application is to provide a label generation method, a template configuration method, an apparatus, and a storage medium, which configure a personalized template according to order information, enrich print content, and solve the problem that only one label is provided and the print format and content of the label are relatively single in the existing printing method.
The embodiment of the application provides a label generation method, which is applied to a sales end and comprises the following steps:
receiving a printing template sent by a server;
receiving order information of a customer;
rendering the order information based on the printing template to acquire marked information;
analyzing the marked information to obtain label content;
and typesetting the label content to generate one or more pictures, and sending the pictures to a printing end for printing to generate a label.
In the implementation process, the personalized configuration of the printing template is realized at the cloud end, and different order formats can be set according to personalized marks added by a user and store information, so that the personalized printing template is generated; the method comprises the steps of rendering, analyzing, typesetting and the like on a configured printing template, generating one or more pictures by using a building block splicing algorithm, completing printout, disassembling images in batches in the process, generating the plurality of pictures for printing without being limited by a local memory of a printer, enabling content display to be not limited in a line-by-line mode through flexible typesetting in the process, supporting grid layout, being similar to an HTML webpage, adjusting the printing template on line according to needs through the configuration of the printing template, meeting personalized adjustment requirements, enabling an adjustment result to be rapidly applied to sales ends such as a store POS and the like, achieving instant response to text, pictures and barcode information, and solving the problem that the printing format and the content of the existing printing method are single.
Further, the rendering the order information based on the printing template to obtain tagged information includes:
identifying placeholders on the printing template;
and replacing or expanding the placeholders based on the order information to generate marked information.
In the implementation process, the printing template is used for describing the label format, different parts in the order information are represented mainly through the placeholders, that is, different formats are expressed through the placeholders, so that the types of information corresponding to different positions in the printing template can be obtained through identifying the placeholders in the order information, and the information corresponding to the types in the order information can be conveniently used for replacement.
Further, the replacing or expanding the placeholders based on the order information and generating the marked information include:
judging whether the number of the commodities in the order information is one or not;
if so, replacing different types of placeholders with corresponding order information;
if not, expanding a commodity list in the order information, replacing the placeholders of each commodity by using the printing template, and generating a plurality of groups of marked information.
In the implementation process, if the order information includes a plurality of commodities, the commodity list is expanded, a label is generated for each commodity, each label has an independent printing template, but the printing templates are the same configured printing template, and the printing templates are used for replacing the position-occupying marks of each commodity respectively to obtain a plurality of groups of marked information, so that the content rendering of the order information is realized.
Further, the analyzing the tagged information to obtain the tag content includes:
analyzing the element marks in the marked information to extract the label content corresponding to the element marks;
and analyzing the style attribute information in the marking information to acquire the printing style.
In the implementation process, the purpose of the mark analysis is to analyze the marked information generated by rendering and convert the marked information into the printing content and the printing style, so that flexible typesetting is facilitated.
Further, typesetting the label content to generate one or more pictures, and sending the pictures to a printing terminal for printing to generate a label, including:
typesetting the label content according to the appearance sequence and the printing style of the element marks;
and generating one or more pictures according to the size of the label paper.
In the implementation process, flexible typesetting is carried out according to the label content and the printing style obtained by analysis, the pictures are converted into a plurality of pictures in real time by using a building block splicing algorithm, and the pictures are sent to a printer to complete the label printing process.
The embodiment of the application further provides a tag template configuration method, which is applied to a server and comprises the following steps:
receiving sample order information sent by a user;
extracting an order information structure of the sample order information based on the sample order information;
acquiring corresponding place-occupying marks according to the order information structure to generate a printing template;
and sending the printing template to a sales end.
In the implementation process, when the template is configured at the cloud end, sample order information is provided to the cloud end, then the cloud end extracts an order information structure according to the sample order information to obtain a group of available space-occupying marks, different positions are set for different types of order information through associating the information order structure, the printing template can be adjusted on line according to needs, the requirement of personalized adjustment is met, and the problem that the printing format and the content of the existing printing method are single is solved.
Further, the extracting an order information structure of the sample order information based on the sample order information includes:
analyzing the sample order information and extracting an order information structure of the sample order information;
and acquiring the information hierarchy relation and the access path in the order information structure to determine the placeholder.
In the implementation process, when the template is configured, sample order information provided by a user is received, then an order information structure is extracted according to the sample order information to obtain a group of available space-occupying marks, and the space-occupying marks are correlated in the printing template to generate the printing template.
The embodiment of the present application further provides a label printing apparatus, which is applied to a sales end, the apparatus includes:
the information receiving module is used for receiving order information of a customer;
the template receiving module is used for receiving the printing template sent by the server;
the rendering module is used for rendering the order information based on the printing template to acquire marked information;
the analysis module is used for analyzing the marked information to obtain the label content;
and the picture generation module is used for typesetting the label content, generating one or more pictures and sending the pictures to the printing end for printing so as to generate the label.
In the implementation process, different printing templates are configured at the cloud end, one or more pictures are generated at the sales end in real time and sent to the printer for printing to generate the label, and through markup language description and real-time picture conversion, the printing content is not limited by a local word stock of the label printer or the content capacity of the printer, any text, any font and any picture can be printed, the personalized requirement is met, and the problem that the printing format and the content of the existing printing method are single is solved.
The embodiment of the present application further provides a tag template configuration device, which is applied to a server, and the device includes:
the order receiving module is used for receiving sample order information sent by a user;
the format generating module is used for extracting an order information structure of the sample order information based on the sample order information;
the template generating module is used for acquiring corresponding placeholders according to the order information structure so as to generate a printing template;
and the template sending module is used for sending the printing template to a sales end.
In the implementation process, personalized printing template configuration is carried out at the cloud end, different label formats are set by utilizing the place-occupying marks, and the setting of the place-occupying marks is based on the label formats of different orders, so that different printing templates are required to be configured for the label formats of different orders, and personalized configuration of different orders is realized.
An embodiment of the present application further provides a readable storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the tag generation method described in any of the foregoing is executed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a tag generation process provided in an embodiment of the present application;
fig. 2 is a flowchart of a tag generation method according to an embodiment of the present application;
FIG. 3 is a schematic configuration interface diagram of a print template according to an embodiment of the present disclosure;
fig. 4 is a flowchart for rendering order information according to an embodiment of the present disclosure;
fig. 5 is a flowchart of parsing tagged information according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating typesetting on tag content according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a generated tag provided by an embodiment of the present application;
fig. 8 is a flowchart of a tag template configuration method provided in an embodiment of the present application;
fig. 9 is a block diagram of a label printing apparatus according to an embodiment of the present application;
fig. 10 is a block diagram illustrating an overall configuration of a label printing apparatus according to an embodiment of the present application;
fig. 11 is a block diagram of a configuration apparatus for a tag template according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
The label generation method provided by the embodiment of the application mainly comprises two parts, namely printing configuration and printing processing, and is a flow chart of a label generation process as shown in fig. 1. The printing configuration is used for configuring a printing template at the cloud end, and the printing processing is mainly realized by carrying out a series of printing processing on the printing template, generating one or more pictures based on a building block splicing algorithm and sending the pictures to a printer for printing so as to generate a label.
The specific connection relationship is as follows: the store POS machine is in communication connection with the server, and the store POS machine is in communication connection with the printer, such as through a USB interface connection, a Bluetooth connection or a network connection.
Referring to fig. 2, fig. 2 is a flowchart of a tag generation method according to an embodiment of the present application. The method can be applied to a sales end, such as a store POS machine, and specifically comprises the following steps:
step S100: receiving a printing template sent by a server;
for example, the server may be connected to a user terminal, such as a visual editor, and the user may input the sample order information at the user terminal, so that the server configures a corresponding printing template based on the sample order information; configuration of a printing template can be flexibly completed in a WYSIWYG mode through a Web interface, order information is added, a label format is defined according to order content, and then the label format is applied to a store POS machine in real time, as shown in FIG. 3, the configuration interface schematic diagram of the printing template is shown; the server may be connected to a store POS, a client, or the like in a communication manner, and receive order information generated after the customer places an order, and the manner in which the server acquires the order information is not limited herein.
And after receiving the sample order information, the server carries out personalized configuration on the printing template according to the sample order information. Specifically, the printing template is a description of a label format, wherein a place-occupying mark (JSON Path) is used for representing a relevant part of order information, fixed information and unfixed information on the order information are marked on the printing template, the fixed information such as store Logo and the like, the unfixed information such as store name information and user ordering information such as commodity name, printing time, price, cup position and the like are marked on the printing template by using the place-occupying mark.
The order information is marked at different positions of the printing template by using the placeholders, and corresponding placeholders are used for marking the order information such as commodity names, printing time, cup positions, store information and the like in the order information on the printing template. Similar to the method of the asp or the php dynamic webpage, different templates need to be configured for different order formats because the placeholders depend on the order formats; while for orders of the same format, the same template configuration may be shared.
Step S200: receiving order information of a customer;
for example, there are various ordering manners for the user, such as ordering via a client, an applet, or directly via a store POS, and the client may add a personalized Logo or text to the order, or select a preset Logo or text to generate order information.
Step S300: rendering the order information based on the printing template to acquire marked information;
as shown in fig. 4, a flowchart for rendering order information may specifically include:
step S310: identifying placeholders on the printing template;
step S320: and replacing or expanding the placeholders based on the order information to generate marked information.
Specifically, step S320 may specifically include:
judging whether the number of the commodities in the order information is one or not;
if so, replacing different types of placeholders with corresponding order information;
if not, expanding a commodity list in the order information, replacing the placeholders of each commodity by using the printing template, and generating a plurality of groups of marked information.
If the commodities are various, the configured same printing template is used for each commodity, the printing template is used for replacing the placeholders of each commodity to obtain multiple groups of marked information, and the placeholders in the multiple groups of marked information are replaced by corresponding order information. And content rendering, namely replacing or expanding the placeholders on the printing template by using the order information, for example, replacing the placeholders with commodity names, placeholders such as printing time, cup positions, store information and the like in the order information if the placeholders on the printing template have commodity name placeholders, and respectively replacing the placeholders with corresponding information in the order information.
If the order information contains commodity information of a plurality of commodities, the commodity list can be unfolded, the configured printing template is used for replacing the position-occupying mark of each commodity information to obtain a plurality of groups of marked information, each commodity generates a label, each commodity independently applies one printing template (the printing template of each commodity is the same), and then the position-occupying mark on each printing template is replaced by the commodity information of the corresponding commodity. After content rendering, tokenized information stored in the form of xml markup documents is generated.
For example, when generating the tokenization information, in the designed markup language, output can be used as a top-level token for describing the size and the margin of the cup label; each cup label then corresponds to a ticket label. For an order containing a personalized Logo, content containing a plurality of ticket blocks can be obtained after rendering, and therefore a plurality of labels are spliced. the inside of the ticket block supports rich elements such as text (text), picture (image), bar code (barcode) and the like, and each element supports rich style setting including an alignment mode, a font name, a width and a height and the like; furthermore, columnar layout (column) is also supported, thereby giving more control over the output style.
Step S400: analyzing the marked information to obtain the label content;
as shown in fig. 5, a flowchart for parsing tagged information may specifically include:
step S410: analyzing the element marks in the marked information to extract label contents corresponding to the element marks;
step S420: and analyzing the style attribute information in the marking information to acquire the printing style.
Illustratively, parsing the tagged information is to parse the tagged information generated by rendering, specifically, parsing each element tag in the tagged information, extracting contents such as a text string, a picture path, a barcode value, and the like, and parsing out relevant style attribute information such as width, height, font used, font size, and the like.
Step S500: and typesetting the label content to generate one or more pictures, and sending the pictures to a printing end for printing to generate the label.
As shown in fig. 6, a flowchart for typesetting the tag content specifically includes:
step S510: typesetting the label content according to the appearance sequence and the printing style of the element marks;
step S520: and generating one or more pictures according to the size of the label paper.
After the label content and the printing style are analyzed, the label content is typeset according to the sequence of the element marks and the printing style, the label content is drawn on a picture with the size of the label, and one or more pictures are correspondingly generated according to the number of ticket blocks in the marking information.
The store POS machine can store rich fonts and contents, and meets various customized printing requirements and characteristic typesetting requirements.
As shown in fig. 7, for the generated label diagram, the generated picture may be transmitted to a printer driver, converted into a corresponding print command by the printer driver and transmitted to a printer to complete printing, or the picture may be converted into a corresponding print command according to a command set supported by the printer, such as a TSPL print command or a ZPL print command, and input to the printer to complete printing of the label.
Through the description of the markup language and the real-time image conversion, the printing content is not limited by a local word stock of a label printer and is not limited by the content capacity of the printer, and any text, any font and any image can be printed; and through flexible typesetting, the content display is not limited to a line-by-line mode any more, but the grid layout is supported, and the effect similar to an HTML webpage is achieved.
Example 2
An embodiment of the present application provides a tag template configuration method, which is applied to a server, and is a flowchart of the tag template configuration method as shown in fig. 8, where the method includes:
step S600: receiving sample order information sent by a user;
step S700: extracting an order information structure of the sample order information based on the sample order information;
step S700 may specifically include:
analyzing the sample order information and extracting an order information structure of the sample order information; and acquiring the information hierarchy relation and the access path in the order information structure to determine the placeholder.
According to the order information structure of the sample order information, information level relations and access paths in the order information structure can be obtained to determine the placeholders.
Illustratively, the received sample order information is as follows:
{
"shopName": Whole family Yishan Lou, and// Lou name
"buyTime": 2020-8-11,12:30:00,// time to place orders
"amount": item
Price 100.0,// total price of the product
"count": 10.0,// discount amount
90/payment amount for "pay
}
Products [// List of goods [ ]
{
Name of Mongolian cow milk, name of the product
Price of 100.0// commodity price
}
]
};
The place-occupying mark of the store name is $. shopName; the place-occupying mark of the payment amount is $, amount, pay; the place-holder of the name of the commodity is $.
Specifically, the display positions of the order information and store information are set on the printing template to generate an order information structure, and the order information structure comprises order amount, commodity set and the like.
For example, flexible printing template configuration can be completed in a what you see is what you get manner through a Web interface, a tag format is defined, order information and store information are set at any position of a printing template, for example, a commodity name, printing time, barcode information, a personalized Logo or text added when a user places an order and the like are set at any specified position, a store name, a store Logo or preset fixed information and the like are set at any specified position, and a personalized order information structure is generated.
Step S800: acquiring corresponding place-occupying marks according to the order information structure to generate a printing template;
and marking different types of order information and store information by using the placeholders at the designated positions to generate a personalized printing template.
Step S900: and sending the printing template to a sales end.
The printing template is sent to the selling end, so that the setting of the printing template is realized, the printing template can be adjusted on line according to needs, the personalized adjustment requirements can be met, the adjustment result can be quickly applied to a store POS machine, and the instant response to the text, the picture and the bar code information is achieved.
Example 3
An embodiment of the present application provides a label printing apparatus, which is applied to a sales end in embodiment 1, as shown in fig. 9, and is a structural block diagram of the label printing apparatus, where the apparatus includes:
the template receiving module 100 receives a printing template sent by the server;
an information receiving module 200 for receiving order information of a customer;
the rendering module 300 is configured to render the order information based on the printing template, and acquire tagged information;
the parsing module 400 is configured to parse the tagged information to obtain tag content;
the picture generating module 500 is configured to typeset the tag content, generate one or more pictures, and print the pictures to generate tags.
As shown in fig. 10, the overall structure of the label printing apparatus is shown as a block diagram, wherein the rendering module 300 includes:
a placeholder identification module 310 for identifying placeholders on the printing template;
and a marking information generating module 320, configured to replace or expand the placeholder based on the order information, and generate marking information.
Specifically, whether the number of the commodities in the order information is one is judged; if so, replacing different types of placeholders with corresponding order information; if not, expanding a commodity list in the order information, using the same configured printing template for each commodity, respectively replacing the place-occupying marks of each commodity by using the printing template to obtain a plurality of groups of marked information, and replacing the place-occupying marks in the plurality of groups of marked information with corresponding order information.
Among them, the parsing module 400 includes:
an element tag parsing module 410, configured to parse the element tag in the tagged information to extract tag content corresponding to the element tag;
and the style analyzing module 420 is configured to analyze the style attribute information in the marking information to obtain a print style.
Wherein, the picture generation module 500 includes:
a typesetting module 510, configured to typeset the tag content according to the appearance order and the printing style of the element tags;
and the picture generation sub-module 520 is used for generating one or more pictures according to the size of the label paper.
Example 4
An embodiment of the present application provides a tag template configuration apparatus, which is applied to the server in embodiment 2, and as shown in fig. 11, is a structural block diagram of the tag template configuration apparatus, where the apparatus includes:
the order receiving module 600 is configured to receive sample order information sent by a user;
a format generating module 700, configured to extract an order information structure of the sample order information based on the sample order information;
specifically, the implementation process of the format generation module 700:
analyzing sample order information and extracting an order information structure of the sample order information;
and acquiring the information hierarchy relation and the access path in the order information structure to determine the placeholder.
The template generating module 800 is configured to obtain a corresponding place-occupying mark according to the order information structure to generate a printing template;
and a template sending module 900, configured to send the print template to a sales end.
An embodiment of the present application further provides a readable storage medium, where computer program instructions are stored in the readable storage medium, and the computer program instructions are read by a processor and execute the tag generation method in embodiment 1 or the tag template configuration method in embodiment 2.
An embodiment of the present application further provides an electronic device, where the electronic device includes a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to enable the computer device to execute the tag generation method in embodiment 1 or the tag template configuration method in embodiment 2.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A label generation method applied to a sales end, the method comprising:
receiving a printing template sent by a server;
receiving order information of a customer;
rendering the order information based on the printing template to acquire marked information;
analyzing the marked information to obtain label content;
and typesetting the label content to generate one or more pictures, and sending the pictures to a printing end for printing to generate a label.
2. The label generation method according to claim 1, wherein the rendering the order information based on the printing template, and acquiring tagged information includes:
identifying placeholders on the printing template;
and replacing or expanding the placeholders based on the order information to generate marked information.
3. The label generation method of claim 2, wherein said replacing or unwrapping the placeholder based on the order information to generate tokenized information comprises:
judging whether the number of the commodities in the order information is one or not;
if so, replacing different types of placeholders with corresponding order information;
if not, expanding a commodity list in the order information, replacing the placeholders of each commodity by using the printing template, and generating a plurality of groups of marked information.
4. The tag generation method according to claim 1, wherein the parsing the tagged information to obtain tag content includes:
analyzing the element marks in the marked information to extract the label content corresponding to the element marks;
and analyzing the style attribute information in the marking information to acquire the printing style.
5. The label generating method of claim 4, wherein typesetting the label content to generate one or more pictures, and sending the pictures to a printer for printing to generate the label comprises:
typesetting the label content according to the appearance sequence and the printing style of the element marks;
and generating one or more pictures according to the size of the label paper.
6. A label template configuration method applied to the server of claim 1, the method comprising:
receiving sample order information sent by a user;
extracting an order information structure of the sample order information based on the sample order information;
acquiring corresponding place-occupying marks according to the order information structure to generate a printing template;
and sending the printing template to a sales end.
7. The tag template configuration method according to claim 6, wherein the extracting the order information structure of the sample order information based on the sample order information includes:
analyzing the sample order information and extracting an order information structure of the sample order information;
and acquiring the information hierarchy relation and the access path in the order information structure to determine the placeholder.
8. A label creation apparatus, applied to a sales terminal, the apparatus comprising:
the template receiving module is used for receiving the printing template sent by the server;
the information receiving module is used for receiving order information of a customer;
the rendering module is used for rendering the order information based on the printing template to acquire marked information;
the analysis module is used for analyzing the marked information to obtain the label content;
and the picture generation module is used for typesetting the label content, generating one or more pictures and sending the pictures to the printing end for printing so as to generate the label.
9. A label template configuration device, which is applied to a server, the device comprises:
the order receiving module is used for receiving sample order information sent by a user;
the format generating module is used for extracting an order information structure of the sample order information based on the sample order information;
the template generating module is used for acquiring corresponding placeholders according to the order information structure so as to generate a printing template;
and the template sending module is used for sending the printing template to a sales end.
10. A readable storage medium having stored therein computer program instructions which, when read and executed by a processor, perform the label generation method of any one of claims 1 to 5.
CN202010867840.3A 2020-08-25 2020-08-25 Label generation method, template configuration method, device and storage medium Active CN112000302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010867840.3A CN112000302B (en) 2020-08-25 2020-08-25 Label generation method, template configuration method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010867840.3A CN112000302B (en) 2020-08-25 2020-08-25 Label generation method, template configuration method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112000302A true CN112000302A (en) 2020-11-27
CN112000302B CN112000302B (en) 2021-08-17

Family

ID=73471951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010867840.3A Active CN112000302B (en) 2020-08-25 2020-08-25 Label generation method, template configuration method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112000302B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112801463A (en) * 2021-01-05 2021-05-14 广汽丰田汽车有限公司 Goods label monitoring method, system, equipment and storage medium
CN112988088A (en) * 2021-03-05 2021-06-18 珠海奔图电子有限公司 Image forming control method, device and system
CN113419659A (en) * 2021-08-23 2021-09-21 深圳市信润富联数字科技有限公司 Method, system, program product and storage medium for constructing label template
CN113971009A (en) * 2021-10-22 2022-01-25 深圳市元征科技股份有限公司 Label printing method and device, electronic equipment and storage medium
CN113997696A (en) * 2021-10-19 2022-02-01 苏州恒辉科技有限公司 Label printing system, method, terminal and storage medium for product packaging box
CN114035755A (en) * 2021-11-16 2022-02-11 上海中通吉网络技术有限公司 Picture processing method and printing method
CN116382602A (en) * 2023-04-03 2023-07-04 超同步股份有限公司 Label printing method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7580892B1 (en) * 2001-10-09 2009-08-25 Diebold, Incorporated Automated teller machine printer system and method
CN103955345A (en) * 2014-04-23 2014-07-30 中国工商银行股份有限公司 Data printing method and system
CN104679793A (en) * 2013-12-03 2015-06-03 航天信息股份有限公司 Dynamic invoice template invoice issuing system
CN105653508A (en) * 2015-12-22 2016-06-08 金蝶软件(中国)有限公司 Document template management method, document calling method and related device
CN205318553U (en) * 2015-11-27 2016-06-15 K11集团有限公司 Data processing device and system and printer
CN107391057A (en) * 2017-07-06 2017-11-24 北京三快在线科技有限公司 A kind of billing information management method, device and equipment
CN107423004A (en) * 2017-06-20 2017-12-01 上海慧银信息科技有限公司 The method and POS terminal of POS terminal printed tickets
CN109240625A (en) * 2018-08-09 2019-01-18 深圳市口袋网络科技有限公司 A kind of document structure tree method, apparatus and computer storage medium suitable for printing
CN109343804A (en) * 2018-09-28 2019-02-15 江苏中服焦点信息科技有限公司 A kind of method of printing template
CN109582928A (en) * 2018-12-06 2019-04-05 万兴科技股份有限公司 PDF report data extracting method and device
CN110688074A (en) * 2018-07-04 2020-01-14 森大(深圳)技术有限公司 Method, device and equipment for distributing data for multi-nozzle printing and storage medium
CN111158650A (en) * 2019-12-25 2020-05-15 中国建设银行股份有限公司 Report template, report template and report generation method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7580892B1 (en) * 2001-10-09 2009-08-25 Diebold, Incorporated Automated teller machine printer system and method
CN104679793A (en) * 2013-12-03 2015-06-03 航天信息股份有限公司 Dynamic invoice template invoice issuing system
CN103955345A (en) * 2014-04-23 2014-07-30 中国工商银行股份有限公司 Data printing method and system
CN205318553U (en) * 2015-11-27 2016-06-15 K11集团有限公司 Data processing device and system and printer
CN105653508A (en) * 2015-12-22 2016-06-08 金蝶软件(中国)有限公司 Document template management method, document calling method and related device
CN107423004A (en) * 2017-06-20 2017-12-01 上海慧银信息科技有限公司 The method and POS terminal of POS terminal printed tickets
CN107391057A (en) * 2017-07-06 2017-11-24 北京三快在线科技有限公司 A kind of billing information management method, device and equipment
CN110688074A (en) * 2018-07-04 2020-01-14 森大(深圳)技术有限公司 Method, device and equipment for distributing data for multi-nozzle printing and storage medium
CN109240625A (en) * 2018-08-09 2019-01-18 深圳市口袋网络科技有限公司 A kind of document structure tree method, apparatus and computer storage medium suitable for printing
CN109343804A (en) * 2018-09-28 2019-02-15 江苏中服焦点信息科技有限公司 A kind of method of printing template
CN109582928A (en) * 2018-12-06 2019-04-05 万兴科技股份有限公司 PDF report data extracting method and device
CN111158650A (en) * 2019-12-25 2020-05-15 中国建设银行股份有限公司 Report template, report template and report generation method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112801463A (en) * 2021-01-05 2021-05-14 广汽丰田汽车有限公司 Goods label monitoring method, system, equipment and storage medium
CN112988088A (en) * 2021-03-05 2021-06-18 珠海奔图电子有限公司 Image forming control method, device and system
WO2022184122A1 (en) * 2021-03-05 2022-09-09 珠海奔图电子有限公司 Image formation control method, apparatus and system
CN112988088B (en) * 2021-03-05 2024-07-05 珠海奔图电子有限公司 Image forming control method, device and system
US12124745B2 (en) 2021-03-05 2024-10-22 Zhuhai Pantum Electronics Co., Ltd. Image formation control method, device, and system
CN113419659A (en) * 2021-08-23 2021-09-21 深圳市信润富联数字科技有限公司 Method, system, program product and storage medium for constructing label template
CN113997696A (en) * 2021-10-19 2022-02-01 苏州恒辉科技有限公司 Label printing system, method, terminal and storage medium for product packaging box
CN113971009A (en) * 2021-10-22 2022-01-25 深圳市元征科技股份有限公司 Label printing method and device, electronic equipment and storage medium
CN114035755A (en) * 2021-11-16 2022-02-11 上海中通吉网络技术有限公司 Picture processing method and printing method
CN116382602A (en) * 2023-04-03 2023-07-04 超同步股份有限公司 Label printing method and device
CN116382602B (en) * 2023-04-03 2023-12-22 超同步股份有限公司 Label printing method and device

Also Published As

Publication number Publication date
CN112000302B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN112000302B (en) Label generation method, template configuration method, device and storage medium
US6992786B1 (en) Method and system for online creation and ordering of customized material for printing
US8928932B2 (en) System and method for creating multi-formatted documents via an online portal
CN105139554B (en) Sales data processing unit and electronic billing system
US20060248454A1 (en) Variable data printing
KR102162380B1 (en) Apparatus and Method for manufacturing of label
US20150356541A1 (en) Electronic receipt management server, merchandise sales data processing apparatus, print control apparatus, and program
JP2002203153A (en) Custom-made product sales system, custom-made product sales method, server used for sales of custom-made products, and recording medium
CN107423004B (en) Method for printing receipts at POS terminal and POS terminal
JPWO2014103251A1 (en) Data conversion system, data conversion device, and data conversion method
KR20090037264A (en) How to make logo using internet
JP6327044B2 (en) Purchase support apparatus and purchase support method
CN114090630A (en) Commodity data integration method based on distributed microservice cluster
US20040153332A1 (en) Printed materials procurement system
JP2004046627A (en) Business card management system, terminal device, business card management computer program, and business card management method
US20170185986A1 (en) Information processing device, information processing system, and control method of an information processing device
US20050033599A1 (en) Printing on-the-fly barcoded documents
JP7027360B2 (en) Information providing equipment, information providing method, and information providing program
US20240394742A1 (en) Merchant communications, such as branding communications, in environments including more than one merchant, and especially environments including more than one merchant and more than one production and fulfilment provider, such as more than one print provider
WO2002054307A1 (en) Electronic shop management system
CN116050370A (en) Template data processing method, system and related equipment
CN115828849A (en) Automatic image-text typesetting method, system, device and storage medium
CN110298680B (en) Advertisement management device, advertisement management method, and computer-readable recording medium
CN108197687A (en) A kind of webpage two-dimensional code generation method
KR101737127B1 (en) Server system, multi-dimensional code processing mehtod, multi-dimensional code providing system and method for matching information on online and offline using multi-dimensional code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant