WO2022068786A1 - 数据打印方法及装置 - Google Patents

数据打印方法及装置 Download PDF

Info

Publication number
WO2022068786A1
WO2022068786A1 PCT/CN2021/121171 CN2021121171W WO2022068786A1 WO 2022068786 A1 WO2022068786 A1 WO 2022068786A1 CN 2021121171 W CN2021121171 W CN 2021121171W WO 2022068786 A1 WO2022068786 A1 WO 2022068786A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
information
label
printing
order
Prior art date
Application number
PCT/CN2021/121171
Other languages
English (en)
French (fr)
Inventor
白松
陈润
陈佳
张璐
Original Assignee
时时同云科技(成都)有限责任公司
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 时时同云科技(成都)有限责任公司 filed Critical 时时同云科技(成都)有限责任公司
Publication of WO2022068786A1 publication Critical patent/WO2022068786A1/zh

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/407Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for marking on special material
    • B41J3/4075Tape printers; Label printers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Definitions

  • the present application relates to the field of computer technology, and in particular, to a data printing method, apparatus, and device.
  • the merchants After making and packaging the meals to be delivered, the merchants use labels to seal the packaging of the meals to be delivered, and check the integrity of the labels to ensure the safety of the meals in the packaging during the delivery process.
  • This label is called a food safety seal.
  • the food safety seal is generally a one-time tear-off label printed on self-adhesive, which is attached to the pull ring or seal of the packaging bag. Since the food safety seal and the order information are printed separately as two kinds of bills, the packaging of the meals often needs to be added with these two kinds of bills, which has the problems of complicated processing links and low processing efficiency.
  • the data printing method provided by the embodiment of the present application solves the problem of low processing efficiency caused by separate printing of order data and identification information on two kinds of bills.
  • the embodiment of the present application provides a data printing method, which is applied to a printing control device, and includes: acquiring order data to be printed; generating identification information of a unique identification label according to the order data; according to the order data and the identification information generating print data; and sending the print data to a printer, so that the printer prints the label based on the print data.
  • the identification information includes any of the following categories: a two-dimensional code, a barcode, and a verification code provided to the user's electronic device.
  • generating the identification information of the unique identification label according to the order data includes: obtaining characteristic data of the order data; using the characteristic data according to at least one of a preset label generation rule and an encryption algorithm. The identification information is generated.
  • the obtaining the characteristic data of the order data includes: obtaining at least two kinds of information from the order data: link information corresponding to the order data, brand information corresponding to the order data, store information corresponding to the order data and an order identifier of the order data; perform splicing processing on the at least two kinds of information above, and use the data obtained by splicing as the characteristic data of the order data.
  • generating the identification information by using the characteristic data according to at least one of a preset label generation rule and an encryption algorithm, including any of the following: using the characteristic data of the order data as the identification information; An encryption algorithm is used to encrypt the characteristic data of the order data, and the key data obtained by the encryption processing is used as the label data; an encryption algorithm is used to encrypt the characteristic data of the order data, and the The identification information is generated by combining the characteristic data and the encrypted data.
  • it also includes: acquiring source information of the order data, and using the source information of the order data as the label information; determining the printing position information of the label information on the label; Label information and print position information of the label information are included in the print data.
  • the generating the print data according to the order data and the identification information includes: obtaining a print template of the label; extracting order summary information from the order data, as a print template to be printed on the label. order information; according to the order information and the printing template, determine the printing position information of the order information on the label; according to the identification information and the printing template, determine that the identification information is on the label.
  • the extracting order summary information from the order data as the order information that needs to be printed on the label includes: determining first data and second data that have an associated relationship in the order information; The association relationship organizes the first data and the second data into combined data with a specific structure; the combined data is used as order information that needs to be printed on the label.
  • the determining the printing position information of the order information on the label according to the order information and the printing template includes: acquiring the size of the printing medium used for printing the label; The font size and the number of printed words of the order information are used to calculate the coordinate data of the order information as the printing position information of the order information on the label.
  • it further includes: setting information of the printer; adding the printer according to the setting information.
  • the setting information of the printer includes at least one of the following information: connection information between the printing control device and the printer, enabling the label printing function, cash register device information associated with the label, the The source information of the order data associated with the label and the quantity information of each printing of the label.
  • the method further includes: receiving a reprinting instruction for a specific order, and using the data of the specific order as the order data.
  • it also includes any one or more of the following: receiving verification information on the label from the distribution facility used to deliver the object to be delivered; receiving scan information on the label provided by the user's electronic device, according to the The scanning information provides prompt information on whether the object to be delivered corresponding to the label is consistent with the order data displayed on the label.
  • the embodiment of the present application also provides another data printing method, which is applied to a printing device, and includes: acquiring printing data, wherein the printing data includes order data and identification information, and the order data is used to print the data displayed on the label.
  • the information of the order uniquely associated with the label, the identification information is used to print the label displayed on the label and uniquely identifying the label;
  • the first module of the printing device parses out the print data from The order data is printed on the printing medium for printing the label;
  • the second module of the printing device parses the identification information from the printing data and prints the identification information on the printing medium.
  • the first module of the printing device parses out the printing position information of the order data from the printing data, and prints the order data on the order data according to the printing position information of the order data.
  • a printing medium the second module of the printing device parses the printing position information of the identification information from the printing data, and prints the identification information on the printing medium according to the printing position information of the identification information.
  • the embodiment of the present application also provides a data printing device, comprising: an order obtaining unit, used for obtaining order data to be printed; an identification information generating unit, used for generating identification information of a unique identification label according to the order data; printing data a generating unit, configured to generate print data according to the order data and the identification information; a print data sending unit, configured to send the print data to a printer for printing the label.
  • An embodiment of the present application further provides a data printing device, comprising: a print data acquisition unit, configured to acquire print data, wherein the print data includes order data and identification information, and the order data is used to print the data displayed on the label. , the information of the order uniquely associated with the label, the identification information is used to print the identification displayed on the label and uniquely identifying the label; the order information printing unit, the first module of the printing device from the The order data is parsed from the print data, and printed on the printing medium used to print the label; the identification printing unit, the second module of the printing device parses the identification information from the print data, and prints the identification information on the label. the print medium.
  • Embodiments of the present application further provide an electronic device, including: a memory and a processor; the memory is used to store a computer program, and after the computer program is run by the processor, the method provided by the embodiments of the present application is executed .
  • Embodiments of the present application further provide a storage device that stores a computer program, and after the computer program is run by a processor, the method provided by the embodiments of the present application is executed.
  • a data printing method, device, and device provided by the embodiments of the present application generate identification information of a unique identification label according to order data to be printed; generate print data according to the order data and the identification information; send the print data to a printer for processing printing of the label. Therefore, the print data also includes the order information corresponding to the order data and the identification information of the unique identification label, and the printer can print the order information and the unique identification information of the label on the same printing medium according to the printing data, that is, the printed
  • the label not only has the function of unique identification, but also displays the order information. Therefore, it is not necessary to additionally print or add a ticket corresponding to the order information when using the label to seal the package for delivery, which simplifies the processing link and improves the processing efficiency.
  • Another data printing method, device, and device provided by the embodiments of the present application, by acquiring print data including order data and identification information; the order data is used to print the order information displayed on the label and uniquely associated with the label, The identification information is used to print the identification displayed on the label and uniquely identifying the label; the first module of the printing device parses the order data from the print data, and prints the label for printing the label. A label printing medium; the second module of the printing device parses the identification information from the printing data, and prints the identification information on the printing medium. Since the printer prints the order information and the identification information of the unique identification label on the same printing medium to obtain the label, the printed label not only has the function of unique identification, but also displays the order information. Therefore, it is not necessary to additionally print or add a ticket corresponding to the order information when using the label to seal the package for delivery, which simplifies the processing link and improves the processing efficiency.
  • FIG. 1 is a schematic diagram of a deployment environment of a data printing method provided by an embodiment of the present application
  • Fig. 2 is a processing flow chart of a data printing method provided by the first embodiment of the present application
  • FIG. 3 is a schematic diagram of a label printed by the data printing method provided by the first embodiment of the present application.
  • FIG. 5 is a schematic diagram of a data printing apparatus provided by a third embodiment of the present application.
  • FIG. 6 is a schematic diagram of another data printing apparatus provided by the fourth embodiment of the present application.
  • FIG. 7 is a schematic diagram of an electronic device provided by the present application.
  • Embodiments of the present application provide a data printing method, device, electronic device, and storage device. Embodiments of the present application further provide another data printing method, apparatus, electronic device, and storage device. Detailed descriptions will be made one by one in the following examples.
  • FIG. 1 which includes a printing control device 101 and a printing device 102 .
  • the printing control device 101 may be a computer, a POS (Point of Sale, point of sale) device of a merchant, or another computing device installed with a control program of the printing device 102 .
  • the printing device 102 is used to print data, and may be a laser printer, a thermal printer, a label printer, or other devices with printing functions.
  • the printing control device 101 is used for: acquiring order data that needs to be printed; filtering out the order information that needs to be displayed on the label from the order data, wherein the label is a food safety seal that can be used to seal the package when the meal is delivered , that is, the food safety seal label; according to the preset label generation rules and/or encryption algorithm, the identification information of the label is generated according to the order data, and the identification information is used to generate the unique and unique information displayed on the label.
  • the label is a food safety seal that can be used to seal the package when the meal is delivered , that is, the food safety seal label
  • the identification information of the label is generated according to the order data, and the identification information is used to generate the unique and unique information displayed on the label.
  • the order information may be text information
  • the identification information may be an identification code, such as a two-dimensional code, a barcode, etc.
  • the print location information may be coordinate data; according to the order information, the identification information and the above-mentioned print
  • the location information generates print data, and outputs the print data to the print device 102 configured on the print control device 101, such as a label printer; the print device 102 prints out the order information and the identifier according to the print data.
  • Information labels may be text information
  • the identification information may be an identification code, such as a two-dimensional code, a barcode, etc.
  • the print location information may be coordinate data
  • the preset label generation rule may be configured to use feature information obtained by splicing together the contents of feature fields in the order data as the identification information.
  • the identification information may be obtained by splicing abstract information obtained by performing MD5 (ie, an encryption algorithm) calculation on the characteristic information with the characteristic information.
  • MD5 ie, an encryption algorithm
  • the exclusive ticket style data of the label can be a preset printing template, which can be stored in the local storage space of the printing control device, or stored in a server or database, and acquired by the printing control device during the execution of the data printing method.
  • the printing device is used to obtain the printing data sent by the printing control device; the printing data may specifically include the order information that needs to be printed on the label and the printing position information on the label, and an identifier that uniquely identifies the label information and its print location information on the label.
  • the printing device includes at least two modules: an order printing module and an identification printing module, which are respectively used to print the order information and the identification information on the same ticket to obtain a printed label.
  • the labels may be printed using thermal paste technology.
  • the order printing module is used to parse out the order information and its corresponding coordinate data from the print data, and print the order information on a printing medium according to the print position information represented by the coordinate data;
  • the The identification printing module is configured to parse out identification information and corresponding coordinate data from the print data, and print the identification information on the same printing medium according to the coordinate data.
  • the label can be used as a food safety seal for closing meal packages.
  • the food safety seal can be pasted on the handle or the seal of the package.
  • Food safety seals can use fragile self-adhesive labels to avoid being completely torn off and then re-attached.
  • a delivery facility such as a rider
  • the user can verify whether the food safety seal on the package of the meal is complete, and scan the identification information (such as QR code) on the food safety seal to verify whether the current meal is consistent with the order, thus ensuring that the meal is complete. safety in the delivery process.
  • identification information such as QR code
  • the data printing method provided by the first embodiment of the present application will be described below with reference to FIG. 2 and FIG. 3 .
  • the data printing method shown in FIG. 2 which can be applied to, for example, a printing control device, includes steps S201 to S204 .
  • Step S201 acquiring order data to be printed.
  • the data printing method provided in this embodiment can be used for printing labels by a printing control device.
  • a print control device is a POS (Point of Sales) device.
  • the tag contains identification information that can be used for unique identification.
  • An example of a label is a food safety seal used to close food packages. Food safety seals are mostly used to seal the packaging of food delivery. In this way, not only can the food in the package be uniquely identified by the food safety seal, but also whether the package has been opened during the delivery process can be confirmed by detecting the integrity of the food safety seal, thereby ensuring the safety of the food in the distribution process.
  • the label printed by the method provided in this embodiment may include identification information of the label and order information included in the order data corresponding to the label.
  • the label is obtained by printing the characteristic information contained in the order data on the same printing medium as the printing content together with the identification information of the label.
  • the identification information of the tag is information that can be used for unique identification.
  • the identification information of the label may be in the form of a two-dimensional code, a barcode, or the like.
  • the label may contain any of the following types of identification information: a two-dimensional code, a barcode, and a verification code provided to the user's electronic device.
  • the identification information of the label is combined with the cashier receipt corresponding to the order data, and the label is obtained by printing on the same printing medium at one time on the spot.
  • the thermal sticker technology can be used to print the label with the sticking function, so that one printing medium can carry the identification information of the label and the corresponding order data at the same time. The cost of merchants is reduced, the processing complexity of the distribution link is reduced, and the processing efficiency is improved.
  • printing labels for order data may include different scenarios, such as: incoming order printing scenarios, that is, printing labels after receiving an order; re-printing scenarios, ie, re-printing labels for existing order data.
  • incoming order printing scenario is that the order receiving device (such as POS) triggers the printing control device (such as the label deployed by the POS) by automatically (such as POS opening the automatic order receiving service) or manually receiving the third-party platform order issued by the open platform. print function module) to print labels according to the order data.
  • the processing of the reprinting scenario includes: receiving a reprinting instruction for a specific order, and using the data of the specific order as the order data that needs to print a label.
  • This embodiment also includes processing for the related configuration of the label printing function.
  • processing for the related configuration of the label printing function includes: the authorization of label printing function according to the region. Specifically, a configuration interface for the label printing function is provided; trigger information of elements on the configuration interface is detected; and the label printing function is enabled or disabled in response to the trigger information.
  • it includes: turning on or off the label printing function for stores in a specific area or for a specific store. The store in the specific area or the specific store is the store that provides the object to be delivered corresponding to the order data.
  • This embodiment also includes related processing for the setting function of the printing device for printing labels. Specifically, it includes: receiving setting information for the printer for printing the label; and adding a printer for printing the label according to the setting information.
  • the setting information of the printer may include at least one of the following information: connection information between the printing control device and the printer, enabling the label printing function, cash register device information associated with the label, and order data associated with the label information on the source of the label and the quantity of each print of the label.
  • connection information between the printing control device and the printer enabling the label printing function
  • cash register device information associated with the label cash register device information associated with the label
  • order data associated with the label information on the source of the label and the quantity of each print of the label For example, after the merchant POS is bound to the store, the label printer can be set up through the printer setting interface of the printing control device, and the printer can be connected to the network port or USB connection or WIFI mode.
  • the print control device can automatically verify the print setting information. Specifically, the state of the target printer associated with the print control device for printing the label is detected; if the target printer is in an unavailable state, processing suggestion information is output. For example, check whether the printer is connected, whether the printer reports an error, etc., and determine whether the printer is available according to the detection result. Obtain the order data that needs to be printed when the printer is available, and perform the print processing in the subsequent steps.
  • Step S202 generating the identification information of the unique identification tag according to the order data.
  • the identification information is used to generate an identification displayed on the label that can uniquely identify the label.
  • the identification information is used to generate a two-dimensional code printed on the label, and the two-dimensional code records the unique identification information of the label.
  • the identification information of the label can be generated according to the order data through the following processes: obtaining characteristic data of the order data; and generating the identification information using the characteristic data according to a preset label generation rule and/or an encryption algorithm.
  • the obtaining the characteristic data of the order data includes: obtaining link information (such as URL) corresponding to the order data, brand information (such as brand ID) corresponding to the order data, at least two kinds of information in the store information (such as store ID) corresponding to the order data and the order identification information (such as order ID) of the order data; perform splicing processing on the above-mentioned at least two kinds of information, and use the processed data as the Describe the characteristic data of the order data.
  • using the feature data to generate the identification information according to a preset label generation rule and/or an encryption algorithm includes any of the following: using the feature data of the order data as the identification information; using an encryption algorithm to The characteristic data of the order data is encrypted, and the encrypted characteristic data obtained by the encryption processing is used as the identification information; the characteristic data of the order data is encrypted by using an encryption algorithm, and the characteristic data of the order data and the encryption processing are encrypted.
  • the obtained encrypted feature data combination generates the identification information.
  • the feature data of the order data can be generated by splicing the content of a specific field in the order data.
  • the URL, brand ID, store ID, and order ID can be sequentially spliced to obtain the first splicing information
  • the first splicing information and the key can be spliced to obtain the second splicing information
  • the MD5 algorithm is used to calculate the second splicing information.
  • the identification information is obtained by splicing the first splicing information and the abstract information. The identification information obtained in this way can uniquely identify the order information corresponding to the order data, a two-dimensional code printed on the label can be generated from the identification information, and the label can be uniquely identified through the two-dimensional code.
  • Step S203 generating print data according to the order data and the identification information.
  • the print data is print style data sent to the printer for printing, that is, print instruction data that can be recognized and processed by the printer after rendering the print content printed on the label according to the style of the label.
  • the information printed on the label may include identification information for indicating the source of the order.
  • the source information of the order data can be obtained, and the source information of the order data can be used as the label information; the printing position information of the label information on the label can be determined; the label information and The print position information of the label information is included in print data for printing the label.
  • Labeling information can be printed on the label at a specific location, such as the top of the label.
  • the order information printed on the label may be order summary information.
  • order summary information can be extracted from the order data as the order information to be printed on the label; the printing position information of the order information on the label can be determined; the order information and the The print position information of the order information is included in the print data for printing the label.
  • the order summary information may include any one or more of the following information: order number, partial information of the ordering user, meal pickup time, meal delivery time, and the like.
  • the fields with associated relationships in the order data can be displayed on the label as order information after data organization. Specifically, it is possible to determine the first data and the second data with an associated relationship in the order information; organize the first data and the second data into combined data with a specific structure according to the related relationship; use the combined data as Order information to be displayed on the label. For example, a certain item and the discount for this item are fields with an associated relationship, which can form the combined data of the parent-child structure for printing. For another example, single product A and single product B are cross-category full discounted products, and single item A, single item B and cross-category full discounted discount data are fields with an associated relationship, and can form combined data of a set structure for printing.
  • the print data may further include at least one of label information, order information, and identification information.
  • the print data further includes print position information corresponding to the at least one kind of information.
  • the printing position information may be coordinate data, and specifically, the coordinate data may be calculated according to a printing template.
  • the method further includes: acquiring a printing template of the label; determining the printing position information of the order information according to the order information and the printing template; determining according to the identification information and the printing template The printing position information of the identification information; according to the order information and the printing position information of the order information, the identification information and the printing position information of the identification information, generate print style data as the printing data sent to the printer .
  • determining the printing position information of the order information according to the order information and the printing template includes: acquiring the size of the printing medium used for printing the label; Coordinate data of the order information is calculated based on the number of words, as the print position information of the order information.
  • An example is given to illustrate the calculation of position information.
  • obtain the size of the printing medium used to print the label such as the length and width of the label paper; and then calculate the printing position with absolute coordinates according to the size of the label paper and the font height in the label style data. For example, starting to print the order number at coordinates (1,1), the next line starts printing from (1,1+font height). If the order number cannot be displayed on one line, the order number can be printed in separate lines. Take the order number 1234567890 as an example, the font height is 5, and 5 characters are printed on a single line, then the print position information included in the print data sent to the printer is (1,1) print 12345, (1,6) print 67890.
  • Step S204 sending print data to a printer, so that the printer prints the label based on the print data.
  • the order information and identification information that need to be printed and displayed on the label are calculated, and the coordinate data on the label is calculated according to the preset label style data.
  • the order information may be text data; the identification information may be a two-dimensional code.
  • a print command is generated based on the above-mentioned character data, two-dimensional code and coordinate data, and is sent to a printer as print data for printing.
  • the printer can be an external printer, and certainly can also be a built-in printing function module.
  • the printed label can be set at the seal of the package of the delivered meal, and is used to detect whether the delivery object in the package matches the order data corresponding to the label.
  • it may include any one or more of the following processes: receiving verification information on the label from the distribution facility used to deliver the object to be delivered; receiving scan information on the label provided by the user's electronic device, according to The scanning information provides prompt information on whether the object to be delivered corresponding to the label is consistent with the order data displayed on the label.
  • the printer can process the print data to print out labels. Specifically, it includes: the printer obtains print data, the print data includes order data and identification information, the order data is used to print the order information displayed on the label and uniquely associated with the label, and the identification information is used for Print the identification code displayed on the label that uniquely identifies the label; the first module of the printing device parses the order data from the print data, and prints it in a print for printing the label medium; the second module of the printing device parses the identification information from the printing data, and prints the identification information on the printing medium.
  • the first module of the printing device parses out the printing position information of the order data from the printing data, and prints the order data on the printing medium according to the printing position information of the order data;
  • the The second module of the printing device parses the printing position information of the identification information from the printing data, and prints the identification information on the printing medium according to the printing position information of the identification information.
  • FIG. 3 shows a schematic diagram of an example of a label printed by the method.
  • the label example shown in the figure includes three parts: an indication information area 301 , an order information area 302 and an identification information area 303 .
  • the marking information area 301 can display the source information of the order data, such as the logo and name of the third-party open platform, and can also display the order number at the same time.
  • the order information area 302 can display order information, such as customer address information, customer contact information, customer remark information, order number and order time.
  • the identification information area 303 can display a two-dimensional code that can uniquely identify the label, and order details can be obtained by scanning the two-dimensional code.
  • the methods provided in this embodiment and other embodiments of the present application are not limited to the printing scenario of food safety seals, and are also applicable to the printing scenario of other information.
  • the sealing label used for the packaging of materials or articles the unique identification information of the sealing label and the information of the delivered item can be printed on the same ticket that can be used for sealing.
  • the features given in this embodiment and other embodiments of the present application may be combined with each other, and steps S201 and S202 or similar terms do not limit that the steps must be performed sequentially.
  • the method generates the identification information of the unique identification label according to the order data that needs to be printed; generates the printing data according to the order data and the identification information; sends the printing data to the printer for Printing of labels is performed. Therefore, the print data also includes the order information corresponding to the order data and the identification information of the unique identification label, and the printer can print the order information and the unique identification information of the label on the same printing medium according to the printing data. It not only has the function of unique identification, but also displays the order information. Therefore, it is not necessary to additionally print and add a ticket corresponding to the order information when using the label to seal the package used for distribution, which simplifies the processing link and improves the processing efficiency.
  • the second embodiment of the present application provides another data printing method.
  • the method will be described below with reference to FIG. 4 .
  • the data printing method shown in FIG. 4, applied to a printing device, includes steps S401 to S403.
  • Step S401 obtaining print data, wherein the print data includes order data and identification information of a unique identification label, the order data is used to print the information of the order displayed on the label and uniquely associated with the label, the The identification information is used to print the identification displayed on the label that uniquely identifies the label.
  • the label is a label containing identification information that can be used for unique identification.
  • An example of a label is a food safety seal used to close food packages. By detecting the integrity of the food safety seal, it can be confirmed whether the package has been opened during the distribution process, thereby ensuring the safety of food during the distribution process.
  • the identification information of the label may be in the form of a two-dimensional code, a barcode, or the like.
  • the label may be a label containing any of the following types of identification information: a two-dimensional code, a barcode, and a verification code provided to the user's electronic device.
  • the print data includes a two-dimensional code that uniquely identifies the label and the cashier receipt information corresponding to the order data.
  • the two-dimensional code and cashier receipt information can be printed on the same printing medium through one-time printing to obtain a label. Therefore, the unique identification information of the label and the corresponding order data are simultaneously carried by one printing medium. Compared with printing the order data and the unique identification information of the label on different bills separately, the cost of merchants and the processing of the distribution link are reduced. complexity and improve processing efficiency.
  • Step S402 the first module of the printing device parses the order data from the printing data, and prints the order data on a printing medium for printing the label.
  • the printer prints the label after receiving the print data.
  • the printer integrates the order data and the unique identification information of the label on the same printing medium to print according to the printing data, so that the identification information of the label and the order information associated with the label are combined into one.
  • the printer may include two different printing modules, which respectively complete the printing of the order data and the identification information in the printing data.
  • the first module of the printing device parses the printing position information of the order data from the printing data, and prints the order data on the printing medium according to the printing position information of the order data .
  • Step S403 the second module of the printing device parses the identification information from the printing data, and prints the identification information on the printing medium.
  • the second module of the printing device parses the printing position information of the identification information from the printing data, and prints the identification information on the printing medium according to the printing position information of the identification information .
  • the method obtains the print data including the order data and the identification information of the unique identification label; the order data is used to print the displayed on the label and is uniquely associated with the label.
  • Order information the identification information is used to print the identification displayed on the label that uniquely identifies the label; the first module of the printing device parses the order data from the print data, and prints it for use A printing medium for printing the label; the second module of the printing device parses the identification information from the printing data, and prints the identification information on the printing medium. Since the printer prints the order information and the unique identification information of the label on the same printing medium to obtain the label, the printed label not only has the function of unique identification, but also displays the order information. Therefore, it is not necessary to additionally print and add a ticket corresponding to the order information when using the label to seal the package used for distribution, which simplifies the processing link and improves the processing efficiency.
  • a third embodiment of the present application provides a data printing apparatus.
  • the device will be described below with reference to FIG. 5 .
  • the data printing device shown in Figure 5 includes:
  • an order data acquisition unit 501 used to acquire order data to be printed
  • An identification information generating unit 502 configured to generate identification information of a unique identification label according to the order data
  • a print data generating unit 503, configured to generate print data according to the order data and the identification information
  • a print data sending unit 504 is configured to send the print data to a printer for printing the label.
  • the identification information includes any of the following categories: a two-dimensional code, a barcode, and a verification code provided to the user's electronic device.
  • the identification information generating unit 502 is specifically configured to: obtain characteristic data of the order data; and generate the identification information by using the characteristic data according to at least one of a preset label generation rule and an encryption algorithm.
  • the identification information generating unit 502 is specifically configured to: obtain at least two kinds of information from the order data: link information corresponding to the order data, brand information corresponding to the order data, the Store information corresponding to the order data, and an order identifier of the order data; perform splicing processing on the above at least two kinds of information, and use the spliced data as the characteristic data of the order data.
  • the identification information generating unit 502 is specifically configured to implement any of the following: take the characteristic data of the order data as the identification information; use an encryption algorithm to encrypt the characteristic data of the order data, and The data obtained by encryption processing is used as the identification information; an encryption algorithm is used to encrypt the characteristic data of the order data, and the characteristic data of the order data and the data obtained by the encryption processing are combined to generate the identification information.
  • the print data generating unit 503 is specifically configured to: acquire source information of the order data, and use the source information of the order data as the label information; determine that the label information is on the label The print position information of the mark information; the mark information and the print position information of the mark information are included in the print data.
  • the print data generating unit 503 is specifically configured to: obtain a print template of the label; extract order summary information from the order data as the order information that needs to be printed on the label; according to the order information and the printing template, determine the printing position information of the order information on the label; determine the printing position information of the identification information on the label according to the identification information and the printing template; The order information and the print position information of the order information, the identification information and the print position information of the identification information are generated, and print style data is generated as the print data.
  • the print data generating unit 503 is specifically configured to: determine the first data and the second data with an associated relationship in the order information; organize the first data and the second data as having a specific relationship according to the associated relationship. Combination data of the structure; take the combination data as the order information that needs to be printed on the label.
  • the printing data generating unit 503 is specifically configured to: obtain the size of the printing medium used to print the label; calculate the coordinate data of the order information according to the font size and the number of printed words of the order information, as The printing position information of the order information on the label.
  • the apparatus further includes a configuration unit, where the configuration unit is configured to: receive setting information of the printer; and add the printer according to the setting information.
  • the setting information of the printer includes at least one of the following information: connection information between the printing control device and the printer, label printing function enabling information, cash register device information associated with the label, and information associated with the label. Order source information and quantity information per print of the label.
  • the order obtaining unit 501 is specifically configured to: receive a reprinting instruction for a specific order, and use the data of the specific order as the order data.
  • the device further includes a detection unit, the detection unit is configured to: receive verification information on the label from the distribution facility used to distribute the object to be distributed; and/or receive information provided by the user's electronic device.
  • the detection unit is configured to: receive verification information on the label from the distribution facility used to distribute the object to be distributed; and/or receive information provided by the user's electronic device.
  • prompt information indicating whether the object to be delivered corresponding to the label is consistent with the order data displayed on the label is provided according to the scanning information.
  • the fourth embodiment of the present application further provides another data printing apparatus.
  • the device will be described below with reference to FIG. 6 .
  • the data printing device shown in Figure 6 includes:
  • a print data obtaining unit 601 is configured to obtain print data, wherein the print data includes order data and identification information, and the order data is used to print the information of the order displayed on the label and uniquely associated with the label, the The identification information is used to print the identification displayed on the label and uniquely identifying the label;
  • an order information printing unit 602 configured to parse out the order data from the print data, and print it on a printing medium for printing the label;
  • An identification printing unit 603, configured to parse out the identification information from the printing data, and print the identification information on the printing medium.
  • the order information printing unit 602 is equivalent to the first module of the printing device, and is used to parse out the printing position information of the order data from the printing data, according to the printing position of the order data.
  • information to print the order data on the printing medium the identification printing unit 603, equivalent to the second module of the printing device, is used for parsing the printing position information of the identification information from the printing data, The identification information is printed on the print medium according to the print position information of the identification information.
  • FIG. 7 is a schematic diagram of the electronic device.
  • the electronic device includes: a memory 701 and a processor 702; the memory is used to store a computer program. After the computer program is run by the processor, the implementation of the present application is executed.
  • the data printing method provided by the example.
  • the sixth embodiment of the present application provides a storage device, and for relevant parts, please refer to the corresponding descriptions of the foregoing embodiments.
  • the schematic diagram of the storage device is similar to FIG. 7 .
  • the storage device stores a computer program, and after the computer program is run by the processor, the data printing method provided by the embodiment of the present application is executed.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include forms of non-persistent memory, random access memory (RAM) and/or non-volatile memory in computer readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • Computer readable media including persistent and non-permanent, removable and non-removable media can be implemented by any method or technology for information storage.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape-disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • the embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

一种应用于打印控制设备的数据打印方法包括:获取需要打印的订单数据;根据订单数据生成唯一性标识标签的标识信息;根据订单数据和标识信息生成打印数据;将打印数据发送给打印机,以使得打印机基于打印数据进行标签的打印。采用该方法,提供了便捷而合理的唯一性标识标签的打印方案,解决了订单数据与标签数据分开打印于两种票据导致的处理效率较低的问题。另外,还提供一种数据打印装置、一种电子设备以及一种存储设备。

Description

数据打印方法及装置 技术领域
本申请涉及计算机技术领域,具体涉及数据打印方法、装置及设备。
背景技术
目前,外卖行业由于其带给人们生活的便利性得到了快速发展。在提供便利的同时,如何保障餐品配送环节的安全性得到越来越多的关注。
商家在制作、包装好待配送餐品之后,针对待配送餐品的包装使用标签封口,通过检测该标签的完整性来保障包装内的餐品在配送环节的安全性。该标签称为食安封签。食安封签一般为不干胶印刷的一次性撕毁标签,贴于包装袋的拉环或封口处。由于食安封签与订单信息分开作为两种票据打印,配送餐品时的包装往往需要加装上这两种票据,存在处理环节较复杂、处理效率较低的问题。
发明内容
本申请实施例提供的数据打印方法,解决了订单数据与标识信息分开打印于两种票据导致的处理效率较低的问题。
本申请实施例提供一种数据打印方法,应用于打印控制设备,包括:获取需要打印的订单数据;根据所述订单数据生成唯一性标识标签的标识信息;根据所述订单数据和所述标识信息生成打印数据;将所述打印数据发送给打印机,以使得所述打印机基于所述打印数据进行所述标签的打印。
可选的,所述标识信息包含下述任一类:二维码、条形码、以及提供给用户的电子设备的验证码。
可选的,所述根据所述订单数据生成唯一性标识标签的标识信息,包括:获得所述订单数据的特征数据;按照预设标签生成规则和加密算法中的至少一个,使用所述特征数据生成所述标识信息。
可选的,所述获得所述订单数据的特征数据,包括:从所述订单数据中获取下述至少两种信息:所述订单数据对应的链接信息、所述订单数据对应的品牌信息、所述订单数据对应的门店信息、所述订单数据的订单标识;对上述至少两种信息进行拼接处理, 将拼接得到的数据作为所述订单数据的特征数据。
可选的,所述按照预设标签生成规则和加密算法中的至少一个,使用所述特征数据生成所述标识信息,包括以下任一:将所述订单数据的特征数据作为所述标识信息;采用加密算法对所述订单数据的特征数据进行加密处理,将加密处理得到的密钥数据作为所述标签数据;采用加密算法对所述订单数据的特征数据进行加密处理,将所述订单数据的特征数据以及加密处理得到的数据组合生成所述标识信息。
可选的,还包括:获取所述订单数据的来源信息,将所述订单数据的来源信息作为所述标签的标示信息;确定所述标示信息在所述标签上的打印位置信息;将所述标示信息以及所述标示信息的打印位置信息包含于所述打印数据。
可选的,所述根据所述订单数据和所述标识信息生成打印数据,包括:获取所述标签的打印模板;从所述订单数据中提取订单摘要信息,作为需要打印于所述标签上的订单信息;根据所述订单信息以及所述打印模板,确定所述订单信息在所述标签上的打印位置信息;根据所述标识信息以及所述打印模板,确定所述标识信息在所述标签上的打印位置信息;根据所述订单信息以及所述订单信息的打印位置信息、所述标识信息以及所述标识信息的打印位置信息,生成打印样式数据作为所述打印数据。
可选的,所述从所述订单数据中提取订单摘要信息,作为需要打印于所述标签上的订单信息,包括:确定所述订单信息中具有关联关系的第一数据和第二数据;按照所述关联关系将第一数据和第二数据组织为具有特定结构的组合数据;将所述组合数据作为需要打印于所述标签上的订单信息。
可选的,所述根据所述订单信息以及所述打印模板,确定所述订单信息在所述标签上的打印位置信息,包括:获取用于打印所述标签的打印介质的尺寸;根据所述订单信息的字体尺寸及打印字数计算出所述订单信息的坐标数据,作为所述订单信息在所述标签上的打印位置信息。
可选的,还包括:所述打印机的设置信息;根据所述设置信息添加所述打印机。
可选的,所述打印机的设置信息,包括下述至少一种信息:所述打印控制设备与所述打印机之间的连接信息、开启标签打印功能、所述标签关联的收银设备信息、所述标签关联的订单数据的来源信息以及所述标签每次打印的数量信息。
可选的,还包括:接收针对特定订单的补打指令,将所述特定订单的数据作为所述订单数据。
可选的,还包括以下任意一个或多个:接收用于配送所述待配送对象的配送设施针对所述标签的验证信息;接收用户的电子设备提供的针对所述标签的扫描信息,根据所述扫描信息提供所述标签对应的待配送对象与所述标签上展示的订单数据是否一致的提示信息。
本申请实施例还提供另一种数据打印方法,应用于打印设备,包括:获取打印数据,其中,所述打印数据包含订单数据和标识信息,所述订单数据用于打印在标签上展示的、所述标签唯一关联的订单的信息,所述标识信息用于打印在所述标签上展示的、唯一性识别所述标签的标识;所述打印设备的第一模块从所述打印数据中解析出所述订单数据,打印于用于打印所述标签的打印介质;所述打印设备的第二模块从所述打印数据中解析出所述标识信息,打印于所述打印介质。
可选的,还包括:所述打印设备的第一模块从所述打印数据中解析出所述订单数据的打印位置信息,按照所述订单数据的打印位置信息将所述订单数据打印于所述打印介质;所述打印设备的第二模块从所述打印数据中解析出所述标识信息的打印位置信息,按照所述标识信息的打印位置信息将所述标识信息打印于所述打印介质。
本申请实施例还提供一种数据打印装置,包括:订单获取单元,用于获取需要打印的订单数据;标识信息生成单元,用于根据所述订单数据生成唯一性标识标签的标识信息;打印数据生成单元,用于根据所述订单数据和所述标识信息生成打印数据;打印数据发送单元,用于将所述打印数据发送给打印机以进行所述标签的打印。
本申请实施例还提供一种数据打印装置,包括:打印数据获取单元,用于获取打印数据,其中,所述打印数据包含订单数据和标识信息,所述订单数据用于打印在标签上展示的、所述标签唯一关联的订单的信息,所述标识信息用于打印在所述标签上展示的、唯一性识别所述标签的标识;订单信息打印单元,所述打印设备的第一模块从所述打印数据中解析出所述订单数据,打印于用于打印所述标签的打印介质;标识打印单元,所述打印设备的第二模块从所述打印数据中解析出所述标识信息,打印于所述打印介质。
本申请实施例还提供一种电子设备,包括:存储器,以及处理器;所述存储器用于存储计算机程序,所述计算机程序被所述处理器运行后,执行本申请实施例提供的所述方法。
本申请实施例还提供一种存储设备,存储有计算机程序,所述计算机程序被处理器运行后,执行本申请实施例提供的所述方法。
本申请具有以下优点:
本申请实施例提供的一种数据打印方法、装置及设备,通过根据需要打印的订单数据生成唯一性识别标签的标识信息;根据订单数据和标识信息生成打印数据;将打印数据发送给打印机进行所述标签的打印。因而,打印数据中同时包含了订单数据对应的订单信息以及唯一性识别标签的标识信息,打印机可根据该打印数据将订单信息以及标签的唯一性标识信息打印在同一打印介质上,即打印出的标签既具有唯一标识的作用,同时又展示了订单信息。因而,采用所述标签封闭用于配送物品的包装时不需要再另外打印、加装订单信息对应的票据,简化了处理环节、提升了处理效率。
本申请实施例提供的另一种数据打印方法、装置及设备,通过获取包含订单数据和标识信息的打印数据;订单数据用于打印在标签上展示的、所述标签唯一关联的订单的信息,标识信息用于打印在所述标签上展示的、唯一性识别所述标签的标识;所述打印设备的第一模块从所述打印数据中解析出所述订单数据,打印于用于打印所述标签的打印介质;所述打印设备的第二模块从所述打印数据中解析出所述标识信息,打印于所述打印介质。由于打印机将订单信息以及唯一性识别标签的标识信息打印在同一打印介质上得到标签,打印出的标签既具有唯一标识的作用,同时又展示了订单信息。因而,采用所述标签封闭用于配送物品的包装时不需要再另外打印、加装订单信息对应的票据,简化了处理环节、提升了处理效率。
附图说明
图1是本申请实施例提供的数据打印方法的部署环境示意图;
图2是本申请第一实施例提供的一种数据打印方法的处理流程图;
图3是本申请第一实施例提供的采用所述数据打印方法打印出的标签示意图;
图4是本申请第二实施例提供的另一种数据打印方法的处理流程图;
图5是本申请第三实施例提供的一种数据打印装置示意图;
图6是本申请第四实施例提供的另一种数据打印装置示意图;
图7是本申请提供的电子设备示意图。
具体实施方式
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。
本申请实施例提供一种数据打印方法、装置、电子设备及存储设备。本申请实施例还提供另一种数据打印方法、装置、电子设备及存储设备。在下面的实施例中逐一进行详细说明。
为便于理解,首先给出本申请实施例提供的数据打印方法的部署环境。请参考图1,图中包括打印控制设备101以及打印设备102。打印控制设备101可以是计算机,可以是商家的POS(Point of Sale,销售终端)装置,也可以是其他安装有打印设备102控制程序的计算设备。打印设备102用于对数据进行打印,可以是激光打印机、热敏打印机、标签打印机或其他具备打印功能的设备。
打印控制设备101用于:获取需要打印的订单数据;从所述订单数据中过滤出需要展示于标签的订单信息,其中,所述标签为可用于封闭餐品配送时的包装的食安封签,也就是食品安全封口贴签;按照预设标签生成规则和/或加密算法根据所述订单数据生成所述标签的标识信息,所述标识信息用于生成展示于所述标签上的、可唯一标识所述标签的标识;根据所述订单信息、所述标识信息及所述标签的专属票据样式数据,计算出所述订单信息和所述标识信息各自在所述标签上的打印位置信息,其中,所述订单信息可以为文字信息,所述标识信息可以为标识码,比如二维码、条形码等,所述打印位置信息可以为坐标数据;根据所述订单信息、所述标识信息以及上述打印位置信息生成打印数据,将所述打印数据输出给所述打印控制设备101上配置的打印设备102,比如标签打印机;由打印设备102根据所述打印数据打印出包含所述订单信息以及所述标识信息的标签。例如,所述预设标签生成规则可配置为,将所述订单数据中的特征字段的内容拼接在一起得到的特征信息作为所述标识信息。再如,可以通过将针对所述特征信息进行MD5(即一种加密算法)计算得到的摘要信息,和所述特征信息拼接来得到所述标识信息。所述标签的专属票据样式数据可为预先设置的打印模板,可由打印控制设备的本地存储空间存储,也可存放在服务端或者数据库,在执行所述数据打印方法过程中由打印控制设备获取。
打印设备用于获取打印控制设备发送的打印数据;打印数据具体可包含需要打印于 所述标签上的订单信息及其在所述标签上的打印位置信息,以及,唯一性标识所述标签的标识信息及其在所述标签上的打印位置信息。实际应用中,打印设备至少包括两个模块:订单打印模块以及标识打印模块,分别用于将订单信息及标识信息打印到同一个票据上,以得到打印出的标签。可采用热敏贴技术打印所述标签。其中,所述订单打印模块用于从所述打印数据中解析出订单信息及其对应的坐标数据,并将所述订单信息按照所述坐标数据表示的打印位置信息打印在打印介质上;所述标识打印模块用于从所述打印数据中解析出标识信息以及对应的坐标数据,并按照所述坐标数据在同一打印介质上打印所述标识信息。
实际应用中,标签可作为用于封闭餐品包装的食安封签。由打印机打印出包含订单信息以及标识信息的食安封签后,该食安封签可粘贴于包装的拉手或封口处。食安封签可以采用易碎不干胶标签,避免被完整撕下后再重新被贴上。配送设施(如骑手)取餐时,可检查所取餐品的包装上的食安封签是否完整有效,核对封签上的订单信息是否准确,并通过取餐号确认该餐品是否为相应骑手所要配送的餐品。用户收到餐品后可以验证餐品的包装上的食安封签是否完整,并扫描食安封签上的标识信息(如二维码)验证当前餐品和订单是否一致,从而保证了餐品配送环节的安全性。
以下结合图2和图3对本申请第一实施例提供的数据打印方法进行说明。图2所示的数据打印方法,可应用于例如打印控制设备,包括步骤S201至步骤S204。
步骤S201,获取需要打印的订单数据。
本实施例提供的数据打印方法可用于打印控制设备打印标签。打印控制设备的一个例子为POS(Point of Sales,销售点)设备。所述标签包含可用于进行唯一性识别的标识信息。标签的一个例子是用于封闭餐品包装的食安封签。食安封签多用于封闭配送餐品的包装的封口。这样,不仅可通过食安封签唯一识别包装中的餐品,还可通过检测食安封签的完整性确认配送过程中包装是否被打开过,从而保障配送环节食品的安全性。通过本实施例提供的方法打印出的标签,可包含标签的标识信息以及所述标签对应的订单数据包含的订单信息。换言之,将订单数据包含的特征信息作为打印内容与标签的标识信息一起打印到同一打印介质上得到所述标签。其中,标签的标识信息为可用于进行唯一性识别的信息。实际中,标签的标识信息可以为二维码、条形码等形式。进一步,所述标签可以包含下述任一类标识信息:二维码、条形码、以及提供给用户的电子设备的验证码。
一个实际应用场景中,将标签的标识信息与订单数据对应的收银小票合并,通过一 次性当场打印于同一打印介质,得到标签。进一步可采用热敏贴技术打印得到具备粘贴功能的标签,从而实现了由一个打印介质同时承载标签的标识信息及对应的订单数据,相比将订单数据及标签的标识信息分开打印于不同票据,降低了商户成本,降低了配送环节的处理复杂度,提升了处理效率。
本步骤中获取需要打印的订单数据,以便后续步骤根据所述订单数据打印所述标签。本实施例中,针对订单数据打印标签可以包括不同场景,例如:来单打印场景,即接收到订单后即打印标签;补打场景,即针对已有的订单数据补打标签。来单打印场景的一个例子为,接单设备(如POS)通过自动(如POS开通自动接单业务)或者手动接收开放平台下发的第三方平台订单,触发打印控制设备(如POS部署的标签打印功能模块)根据订单数据打印标签。补打场景的处理包括:接收针对特定订单的补打指令,将所述特定订单的数据作为所述需要打印标签的订单数据。
本实施例中还包括针对标签打印功能的相关配置的处理。一方面包括:按照区域进行标签打印功能的授权。具体的,提供针对标签打印功能的配置界面;检测所述配置界面上的元素的触发信息;响应于所述触发信息,开启或者关闭标签打印功能。一方面包括:针对特定区域内的门店或者针对特定门店,开启或者关闭标签打印功能。所述特定区域内的门店或者特定门店,为提供所述订单数据对应的待配送对象的门店。
本实施例中还包括针对用于打印标签的打印设备的设置功能的相关处理。具体包括:接收针对用于打印所述标签的打印机的设置信息;根据所述设置信息添加用于打印所述标签的打印机。其中,所述打印机的设置信息,可以包括下述至少一种信息:打印控制设备与打印机之间的连接信息、开启标签打印功能、所述标签关联的收银设备信息、所述标签关联的订单数据的来源信息以及所述标签每次打印的数量信息。例如,商户POS绑定门店后,可通过打印控制设备的打印机设置界面设置标签打印机,可选择网口或者USB连接或者WIFI方式连接打印机,如果选择网口连接则需要输入对应的打印机IP地址;选择标签(或食安封签)打印功能,设置一次打印的食安封签数量、关联订单来源并保存打印机设置信息。本实施例中,在打印标签之前,打印控制设备可自动检验打印设置信息。具体的,检测所述打印控制设备关联的用于打印所述标签的目标打印机的状态;如果所述目标打印机为不可用状态,则输出处理建议信息。例如,检测打印机是否连通、打印机是否报错等信息,根据检测结果确定打印机是否可用。在打印机为可用状态下获取需要打印的订单数据,并进行后续步骤的打印处理。
步骤S202,根据订单数据生成唯一性标识标签的标识信息。
所述标识信息用于生成展示于标签上的、可唯一标识所述标签的标识。例如,所述标识信息用于生成标签上打印的二维码,该二维码记录有标签的唯一性标识信息。本实施例中,可通过下述处理根据订单数据生成标签的标识信息:获得所述订单数据的特征数据;按照预设标签生成规则和/或加密算法使用所述特征数据生成所述标识信息。其中,所述获得所述订单数据的特征数据,包括:从所述订单数据中获取所述订单数据对应的链接信息(例如URL)、所述订单数据对应的品牌信息(例如品牌ID)、所述订单数据对应的门店信息(例如门店ID)、所述订单数据的订单标识信息(例如订单ID)中的至少两种信息;对上述至少两种信息进行拼接处理,将处理得到的数据作为所述订单数据的特征数据。
其中,所述按照预设标签生成规则和/或加密算法使用所述特征数据生成所述标识信息,包括以下任一:将所述订单数据的特征数据作为所述标识信息;采用加密算法对所述订单数据的特征数据进行加密处理,将加密处理得到的加密特征数据作为所述标识信息;采用加密算法对所述订单数据的特征数据进行加密处理,将所述订单数据的特征数据以及加密处理得到的加密特征数据组合生成所述标识信息。
例如,可针对订单数据中的特定字段的内容进行拼接生成所述订单数据的特征数据。具体地,可将URL、品牌ID、门店ID、订单ID依次拼接得到第一拼接信息,将所述第一拼接信息与密钥拼接得到第二拼接信息,针对第二拼接信息采用MD5算法计算出摘要信息,将所述第一拼接信息与摘要信息拼接得到所述标识信息。采用这种方式得到的标识信息可以唯一标识订单数据对应的订单信息,由所述标识信息可以生成打印于标签的二维码,通过所述二维码可对标签进行唯一性识别。
步骤S203,根据订单数据和标识信息生成打印数据。
所述打印数据为发送给打印机进行打印的打印样式数据,即,将打印于标签的打印内容按照标签的样式渲染后的打印机可识别并处理的打印指令数据。
本实施例中,打印于标签上的信息可包括用于标示订单来源的标示信息。具体的,可获取所述订单数据的来源信息,将所述订单数据的来源信息作为所述标签的标示信息;确定所述标示信息在所述标签上的打印位置信息;将所述标示信息以及所述标示信息的打印位置信息包含在用于打印所述标签的打印数据中。标示信息可以打印于标签上的特定位置,例如标签的顶部。
本实施例中,打印于标签的订单信息可以为订单摘要信息。具体的,可从所述订单 数据中提取订单摘要信息,作为需要打印于所述标签上的订单信息;确定所述订单信息在所述标签上的打印位置信息;将所述订单信息以及所述订单信息的打印位置信息包含在用于打印所述标签的打印数据中。例如,订单摘要信息可以包括下述任意一种或多种信息:取餐号、订餐用户的部分信息、取餐时间、送餐时间等。
本实施例中,可将订单数据中具有关联关系的字段,进行数据组织后作为订单信息展示于标签。具体的,可确定所述订单信息中具有关联关系的第一数据和第二数据;按照所述关联关系将第一数据和第二数据组织为具有特定结构的组合数据;将所述组合数据作为要展示于所述标签上的订单信息。例如,某单品和针对该单品的优惠,为具有关联关系的字段,可组成父子结构的组合数据进行打印。再如,单品A和单品B为跨类满减优惠品,单品A、单品B及跨类满减优惠数据,为具有关联关系的字段,可组成集合结构的组合数据进行打印。
本实施例中,可将标示信息、订单信息以及标识信息中的至少一种信息打印于标签。换言之,所述打印数据还可包括标示信息、订单信息以及标识信息中的至少一种信息。所述打印数据还包括上述至少一种信息对应的打印位置信息。其中,打印位置信息可以为坐标数据,具体可根据打印模板计算出所述坐标数据。具体的,所述方法还包括:获取所述标签的打印模板;根据所述订单信息以及所述打印模板,确定所述订单信息的打印位置信息;根据所述标识信息以及所述打印模板,确定所述标识信息的打印位置信息;根据所述订单信息以及所述订单信息的打印位置信息、所述标识信息以及所述标识信息的打印位置信息,生成打印样式数据,作为发送给打印机的打印数据。其中,所述根据所述订单信息以及所述打印模板,确定所述订单信息的打印位置信息,包括:获取用于打印所述标签的打印介质的尺寸;根据所述订单信息的字体尺寸及打印字数计算出所述订单信息的坐标数据,作为所述订单信息的打印位置信息。
举例说明位置信息的计算。首先获取用于打印标签的打印介质的尺寸,比如标签纸的长度及宽度;再根据所述标签纸的尺寸、标签样式数据中字体高度,以绝对坐标计算打印位置。比如在坐标(1,1)开始打印订单号,则下一行从(1,1+字体高度)开始打印。如果订单号一行显示不下,则可将该订单号分行打印。以订单号1234567890为例,字体高度是5,单行打印5个字,则发送给打印机的打印数据中包含的打印位置信息为(1,1)打印12345,(1,6)打印67890。
步骤S204,将打印数据发送给打印机,以使得所述打印机基于所述打印数据进行所述标签的打印。
本实施例中,在上述步骤中将需要在标签上打印展示的订单信息、标识信息,按照预设的标签样式数据,计算出各自在标签上的坐标数据。其中,订单信息可为文字数据;标识信息可为二维码。根据上述文字数据、二维码及坐标数据生成打印指令,作为打印数据发送给打印机进行打印。所述打印机可为外置打印机,当然也可为内置打印功能模块。打印得到的标签可设置于配送餐品的包装的封口处,用于检测包装内的配送对象与标签对应的订单数据是否匹配。具体的,可包括下述任意一个或多个处理:接收用于配送所述待配送对象的配送设施针对所述标签的验证信息;接收用户的电子设备提供的针对所述标签的扫描信息,根据所述扫描信息提供所述标签对应的待配送对象与所述标签上展示的订单数据是否一致的提示信息。
本实施例中,所述打印机可处理所述打印数据,打印出标签。具体包括:所述打印机获取打印数据,所述打印数据包含订单数据和标识信息,所述订单数据用于打印在标签上展示的、所述标签唯一关联的订单的信息,所述标识信息用于打印在所述标签上展示的、唯一性标识所述标签的标识码;所述打印设备的第一模块从所述打印数据中解析出所述订单数据,打印于用于打印所述标签的打印介质;所述打印设备的第二模块从所述打印数据中解析出所述标识信息,打印于所述打印介质。
其中,所述打印设备的第一模块从所述打印数据中解析出所述订单数据的打印位置信息,按照所述订单数据的打印位置信息将所述订单数据打印于所述打印介质;所述打印设备的第二模块从所述打印数据中解析出所述标识信息的打印位置信息,按照所述标识信息的打印位置信息将所述标识信息打印于所述打印介质。
请参考图3,图3给出了一种采用所述方法打印出的标签的样例示意图,图中展示的标签样例包括三部分:标示信息区域301、订单信息区域302以及标识信息区域303。标示信息区域301可展示订单数据的来源信息,如第三方开放平台的标识及名称,也可同时展示取餐号。订单信息区域302可展示订单的信息,如顾客地址信息、顾客联系信息、顾客备注信息、单号及下单时间等信息。标识信息区域303可展示可唯一性标识标签的二维码,通过扫描该二维码可获得订单详情。
需要说明的是,本实施例和本申请的其他实施例中提供的方法不局限于食安封签的打印场景,也适用于其他信息的打印场景。例如,用于配送资料或物品的包装的封口签,可以将封口签的唯一标识信息及所配送的物品信息打印于同一可用于封口的票据上。在不冲突的情况下,在本实施例和本申请的其他实施例中给出的特征可以相互组合,并且步骤S201和S202或类似用语不限定步骤必须先后执行。
至此,对第一实施例提供的方法进行了说明,所述方法通过根据需要打印的订单数据生成唯一性标识标签的标识信息;根据订单数据和标识信息生成打印数据;将打印数据发送给打印机以进行标签的打印。因而,打印数据中同时包含了订单数据对应的订单信息以及唯一性标识标签的标识信息,打印机可根据该打印数据将订单信息以及标签的唯一性标识信息打印在同一打印介质上,打印出的标签既具有唯一标识的作用,同时又展示了订单信息。因而,采用所述标签封闭用于配送物品的包装时不需要再另外打印、加装订单信息对应的票据,简化了处理环节、提高了处理效率。
以上述实施例以及部署环境为基础,本申请第二实施例提供另一种数据打印方法。以下结合图4对所述方法进行说明。图4所示的数据打印方法,应用于打印设备,包括:步骤S401至步骤S403。
步骤S401,获取打印数据,其中,所述打印数据包含订单数据和唯一性标识标签的标识信息,所述订单数据用于打印在标签上展示的、所述标签唯一关联的订单的信息,所述标识信息用于打印在所述标签上展示的、唯一性标识所述标签的标识。
所述标签为包含可用于进行唯一性识别的标识信息的标签。标签的一个例子是用于封闭餐品包装的食安封签。通过检测食安封签的完整性可确认配送过程中包装是否被打开过,从而保障配送环节食品的安全性。实际中,标签的标识信息可以为二维码、条形码等形式。所述标签可以为包含下述任一类标识信息的标签:二维码、条形码、以及提供给用户的电子设备的验证码。例如,打印数据中包含唯一性标识标签的二维码以及订单数据对应的收银小票信息,因此通过一次性打印可将该二维码以及收银小票信息打印于同一打印介质,得到标签。从而实现了由一个打印介质同时承载标签的唯一性标识信息及对应的订单数据,相比分开将订单数据及标签的唯一性标识信息打印于不同票据,降低了商户成本,降低了配送环节的处理复杂度,提高了处理效率。
步骤S402,所述打印设备的第一模块从所述打印数据中解析出所述订单数据,打印于用于打印所述标签的打印介质。
本实施例中,打印机接收打印数据后,进行标签的打印。打印机根据打印数据将订单数据和标签的唯一性标识信息整合在同一打印介质上打印,实现了标签的标识信息与标签关联的订单信息合二为一。具体的,打印机可包含两个不同的打印模块,分别完成打印数据中的订单数据以及标识信息的打印。本实施例中,所述打印设备的第一模块从所述打印数据中解析出所述订单数据的打印位置信息,按照所述订单数据的打印位置信息将所述订单数据打印于所述打印介质。
步骤S403,所述打印设备的第二模块从所述打印数据中解析出所述标识信息,打印于所述打印介质。
本实施例中,所述打印设备的第二模块从所述打印数据中解析出所述标识信息的打印位置信息,按照所述标识信息的打印位置信息将所述标识信息打印于所述打印介质。
至此,对本实施例提供的方法进行了说明,所述方法通过获取包含订单数据和唯一性标识标签的标识信息的打印数据;订单数据用于打印在标签上展示的、与所述标签唯一关联的订单的信息,标识信息用于打印在所述标签上展示的、唯一性标识所述标签的标识;所述打印设备的第一模块从所述打印数据中解析出所述订单数据,打印于用于打印所述标签的打印介质;所述打印设备的第二模块从所述打印数据中解析出所述标识信息,打印于所述打印介质。由于打印机将订单信息以及标签的唯一性标识信息打印在同一打印介质上得到标签,打印出的标签既具有唯一标识的作用,同时又展示了订单信息。因而,采用所述标签封闭用于配送物品的包装时不需要再另外打印、加装订单信息对应的票据,简化了处理环节、提高了处理效率。
与第一实施例对应,本申请第三实施例提供一种数据打印装置。以下结合图5对所述装置进行说明。图5所示的数据打印装置,包括:
订单数据获取单元501,用于获取需要打印的订单数据;
标识信息生成单元502,用于根据所述订单数据生成唯一性标识标签的标识信息;
打印数据生成单元503,用于根据所述订单数据和所述标识信息生成打印数据;
打印数据发送单元504,用于将所述打印数据发送给打印机以进行所述标签的打印。
可选的,所述标识信息包含下述任一类:二维码、条形码、以及提供给用户的电子设备的验证码。
可选的,所述标识信息生成单元502,具体用于:获得所述订单数据的特征数据;按照预设标签生成规则和加密算法中的至少一个,使用所述特征数据生成所述标识信息。
可选的,所述标识信息生成单元502,具体用于:从所述订单数据中获取下述至少两种信息:所述订单数据对应的链接信息、所述订单数据对应的品牌信息、所述订单数据对应的门店信息、所述订单数据的订单标识;对上述至少两种信息进行拼接处理,将拼接得到的数据作为所述订单数据的特征数据。
可选的,所述标识信息生成单元502,具体用于实施以下任一:将所述订单数据的 特征数据作为所述标识信息;采用加密算法对所述订单数据的特征数据进行加密处理,将加密处理得到的数据作为所述标识信息;采用加密算法对所述订单数据的特征数据进行加密处理,将所述订单数据的特征数据以及加密处理得到的数据组合生成所述标识信息。
可选的,所述打印数据生成单元503具体用于:获取所述订单数据的来源信息,将所述订单数据的来源信息作为所述标签的标示信息;确定所述标示信息在所述标签上的打印位置信息;将所述标示信息以及所述标示信息的打印位置信息包含于所述打印数据。
可选的,所述打印数据生成单元503具体用于:获取所述标签的打印模板;从所述订单数据中提取订单摘要信息,作为需要打印于所述标签上的订单信息;根据所述订单信息以及所述打印模板,确定所述订单信息在所述标签上的打印位置信息;根据所述标识信息以及所述打印模板,确定所述标识信息在所述标签上的打印位置信息;根据所述订单信息以及所述订单信息的打印位置信息、所述标识信息以及所述标识信息的打印位置信息,生成打印样式数据作为所述打印数据。
可选的,所述打印数据生成单元503具体用于:确定所述订单信息中具有关联关系的第一数据和第二数据;按照所述关联关系将第一数据和第二数据组织为具有特定结构的组合数据;将所述组合数据作为需要打印于所述标签上的订单信息。
可选的,所述打印数据生成单元503具体用于:获取用于打印所述标签的打印介质的尺寸;根据所述订单信息的字体尺寸及打印字数计算出所述订单信息的坐标数据,作为所述订单信息在所述标签上的打印位置信息。
可选的,所述装置还包括配置单元,所述配置单元用于:接收所述打印机的设置信息;根据所述设置信息添加所述打印机。
可选的,所述打印机的设置信息,包括下述至少一种信息:打印控制设备与打印机之间的连接信息、标签打印功能开启信息、所述标签关联的收银设备信息、所述标签关联的订单来源信息以及所述标签每次打印的数量信息。
可选的,所述订单获取单元501具体用于:接收针对特定订单的补打指令,将所述特定订单的数据作为所述订单数据。
可选的,所述装置还包括检测单元,所述检测单元用于:接收用于配送所述待配送对象的配送设施针对所述标签的验证信息;和/或,接收用户的电子设备提供的针对所述标签的扫描信息,根据所述扫描信息提供所述标签对应的待配送对象与所述标签上展示 的订单数据是否一致的提示信息。
与第二实施例对应,本申请第四实施例还提供另一种数据打印装置。以下结合图6对所述装置进行说明。图6所示的数据打印装置,包括:
打印数据获取单元601,用于获取打印数据,其中,所述打印数据包含订单数据和标识信息,所述订单数据用于打印在标签上展示的、所述标签唯一关联的订单的信息,所述标识信息用于打印在所述标签上展示的、唯一性识别所述标签的标识;
订单信息打印单元602,用于从所述打印数据中解析出所述订单数据,打印于用于打印所述标签的打印介质;
标识打印单元603,用于从所述打印数据中解析出所述标识信息,打印于所述打印介质。
可选的,所述订单信息打印单元602,相当于所述打印设备的第一模块,用于从所述打印数据中解析出所述订单数据的打印位置信息,按照所述订单数据的打印位置信息将所述订单数据打印于所述打印介质;所述标识打印单元603,相当于所述打印设备的第二模块,用于从所述打印数据中解析出所述标识信息的打印位置信息,按照所述标识信息的打印位置信息将所述标识信息打印于所述打印介质。
以上述实施例为基础,本申请第五实施例提供一种电子设备。图7为所述电子设备的示意图,所述电子设备,包括:存储器701,以及处理器702;所述存储器用于存储计算机程序,所述计算机程序被所述处理器运行后,执行本申请实施例提供的所述数据打印方法。
以上述实施例为基础,本申请第六实施例提供一种存储设备,相关的部分请参见上述实施例的对应说明即可。所述存储设备的示意图类似图7。所述存储设备存储有计算机程序,所述计算机程序被处理器运行后,执行本申请实施例提供的所述数据打印方法。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
1、计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法 或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
2、本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请虽然以较佳实施例公开如上,但其并不是用来限定本申请,任何本领域技术人员在不脱离本申请的精神和范围内,都可以做出可能的变动和修改,因此本申请的保护范围应当以本申请权利要求所界定的范围为准。

Claims (19)

  1. 一种数据打印方法,其特征在于,应用于打印控制设备,包括:
    获取需要打印的订单数据;
    根据所述订单数据生成唯一性标识标签的标识信息;
    根据所述订单数据和所述标识信息生成打印数据;
    将所述打印数据发送给打印机,以使得所述打印机基于所述打印数据进行所述标签的打印。
  2. 根据权利要求1所述的方法,其特征在于,所述标识信息包含下述任一类:二维码、条形码、以及提供给用户的电子设备的验证码。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述订单数据生成唯一性标识标签的标识信息,包括:
    获得所述订单数据的特征数据;
    按照预设标签生成规则和加密算法中的至少一个,使用所述特征数据生成所述标识信息。
  4. 根据权利要求3所述的方法,其特征在于,所述获得所述订单数据的特征数据,包括:
    从所述订单数据中获取下述至少两种信息:所述订单数据对应的链接信息、所述订单数据对应的品牌信息、所述订单数据对应的门店信息、所述订单数据的订单标识;
    对上述至少两种信息进行拼接处理,
    将拼接得到的数据作为所述订单数据的特征数据。
  5. 根据权利要求3所述的方法,其特征在于,所述按照预设标签生成规则和加密算法中的至少一个,使用所述特征数据生成所述标识信息,包括以下任一:
    将所述订单数据的特征数据作为所述标识信息;
    采用加密算法对所述订单数据的特征数据进行加密处理,将加密处理得到的数据作为所述标识信息;
    采用加密算法对所述订单数据的特征数据进行加密处理,将所述订单数据的特征数据以及加密处理得到的数据组合生成所述标识信息。
  6. 根据权利要求1所述的方法,其特征在于,还包括:
    获取所述订单数据的来源信息,将所述订单数据的来源信息作为所述标签的标示信息;
    确定所述标示信息在所述标签上的打印位置信息;
    将所述标示信息以及所述标示信息的打印位置信息包含于所述打印数据。
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述订单数据和所述标识信息生成打印数据,包括:
    获取所述标签的打印模板;
    从所述订单数据中提取订单摘要信息,作为需要打印于所述标签上的订单信息;
    根据所述订单信息以及所述打印模板,确定所述订单信息在所述标签上的打印位置信息;
    根据所述标识信息以及所述打印模板,确定所述标识信息在所述标签上的打印位置信息;
    根据所述订单信息以及所述订单信息的打印位置信息、所述标识信息以及所述标识信息的打印位置信息,生成打印样式数据作为所述打印数据。
  8. 根据权利要求7所述的方法,其特征在于,所述从所述订单数据中提取订单摘要信息,作为需要打印于所述标签上的订单信息,包括:
    确定所述订单信息中具有关联关系的第一数据和第二数据;
    按照所述关联关系将第一数据和第二数据组织为具有特定结构的组合数据;
    将所述组合数据作为需要打印于所述标签上的订单信息。
  9. 根据权利要求7或8所述的方法,其特征在于,所述根据所述订单信息以及所述打印模板,确定所述订单信息在所述标签上的打印位置信息,包括:
    获取用于打印所述标签的打印介质的尺寸;
    根据所述订单信息的字体尺寸及打印字数计算出所述订单信息的坐标数据,作为所述订单信息在所述标签上的打印位置信息。
  10. 根据权利要求1所述的方法,其特征在于,还包括:
    接收所述打印机的设置信息;
    根据所述设置信息添加所述打印机。
  11. 根据权利要求10所述的方法,其特征在于,所述打印机的设置信息,包括下述至少一种信息:所述打印控制设备与所述打印机之间的连接信息、开启标签打印功能、所述标签关联的收银设备信息、所述标签关联的订单数据的来源信息以及所述标签每次打印的数量信息。
  12. 根据权利要求1所述的方法,其特征在于,还包括:
    接收针对特定订单的补打指令,
    将所述特定订单的数据作为所述订单数据。
  13. 根据权利要求1所述的方法,其特征在于,还包括以下任意一个或多个:
    接收用于配送待配送对象的配送设施针对所述标签的验证信息;
    接收用户的电子设备提供的针对所述标签的扫描信息,并根据所述扫描信息提供所述标签对应的待配送对象与所述标签上展示的订单数据是否一致的提示信息。
  14. 一种数据打印方法,其特征在于,应用于打印设备,包括:
    获取打印数据,其中,所述打印数据包含订单数据和标识信息,所述订单数据用于打印在标签上展示的、所述标签唯一关联的订单的信息,所述标识信息用于打印在所述标签上展示的、唯一性识别所述标签的标识;
    所述打印设备的第一模块从所述打印数据中解析出所述订单数据,打印于用于打印所述标签的打印介质;
    所述打印设备的第二模块从所述打印数据中解析出所述标识信息,打印于所述打印介质。
  15. 根据权利要求14所述的方法,其特征在于,还包括:
    所述打印设备的第一模块从所述打印数据中解析出所述订单数据的打印位置信息,按照所述订单数据的打印位置信息将所述订单数据打印于所述打印介质;
    所述打印设备的第二模块从所述打印数据中解析出所述标识信息的打印位置信息,按照所述标识信息的打印位置信息将所述标识信息打印于所述打印介质。
  16. 一种数据打印装置,其特征在于,包括:
    订单数据获取单元,用于获取需要打印的订单数据;
    标识信息生成单元,用于根据所述订单数据生成唯一性标识标签的标识信息;
    打印数据生成单元,用于根据所述订单数据和所述标识信息生成打印数据;
    打印数据发送单元,用于将所述打印数据发送给打印机以进行所述标签的打印。
  17. 一种数据打印装置,其特征在于,包括:
    打印数据获取单元,用于获取打印数据,其中,所述打印数据包含订单数据和标识信息,所述订单数据用于打印在标签上展示的、所述标签唯一关联的订单的信息,所述标识信息用于打印在所述标签上展示的、唯一性识别所述标签的标识;
    订单信息打印单元,用于从所述打印数据中解析出所述订单数据,打印于用于打印所述标签的打印介质;
    标识打印单元,用于从所述打印数据中解析出所述标识信息,打印于所述打印介质。
  18. 一种电子设备,其特征在于,包括:
    存储器,以及处理器;所述存储器用于存储计算机程序,所述计算机程序被所述处 理器运行后,执行权利要求1至15任意一项所述的方法。
  19. 一种存储设备,其特征在于,存储有计算机程序,所述计算机程序被处理器运行后,执行权利要求1至15任意一项所述的方法。
PCT/CN2021/121171 2020-09-30 2021-09-28 数据打印方法及装置 WO2022068786A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011060449.9 2020-09-30
CN202011060449.9A CN112265384B (zh) 2020-09-30 2020-09-30 数据打印方法及装置

Publications (1)

Publication Number Publication Date
WO2022068786A1 true WO2022068786A1 (zh) 2022-04-07

Family

ID=74338761

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/121171 WO2022068786A1 (zh) 2020-09-30 2021-09-28 数据打印方法及装置

Country Status (2)

Country Link
CN (1) CN112265384B (zh)
WO (1) WO2022068786A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115147176A (zh) * 2022-06-20 2022-10-04 拉扎斯网络科技(上海)有限公司 一种订单信息处理方法、装置及电子设备
CN117575743A (zh) * 2024-01-15 2024-02-20 世纪开元智印互联科技集团股份有限公司 基于二维码的照片打印订单确认方法、装置、设备及介质
CN118394251A (zh) * 2024-06-26 2024-07-26 深圳市深科特信息技术有限公司 基于超文本链接的标签生成方法、装置、设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112265384B (zh) * 2020-09-30 2021-06-29 时时同云科技(成都)有限责任公司 数据打印方法及装置
CN114347668B (zh) * 2022-01-10 2023-01-10 重庆品胜科技有限公司 简化打印位置调整的方法及系统
CN116382602B (zh) * 2023-04-03 2023-12-22 超同步股份有限公司 一种标签打印方法及装置

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63272651A (ja) * 1987-04-28 1988-11-10 Sato:Kk 携帯式ラベル印字貼付装置
JPH0516439A (ja) * 1991-07-15 1993-01-26 Tokyo Electric Co Ltd ラベルプリンタ
CN102029803A (zh) * 2009-09-29 2011-04-27 得士影像数码技术有限公司 用于唯一标识打印件的方法
CN106814982A (zh) * 2017-01-04 2017-06-09 北京京东尚科信息技术有限公司 标签打印处理装置、系统和方法
CN110239230A (zh) * 2019-05-31 2019-09-17 付灵 一种玻璃打印自动生成二维码的方法及产品应用方法
CN110609665A (zh) * 2019-07-31 2019-12-24 浙江口碑网络技术有限公司 打印信息处理方法、装置及系统
CN111078161A (zh) * 2019-11-15 2020-04-28 北京三快在线科技有限公司 打印机的模拟方法、装置、电子设备及存储介质
CN112265384A (zh) * 2020-09-30 2021-01-26 时时同云科技(成都)有限责任公司 数据打印方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60258682A (ja) * 1984-06-06 1985-12-20 Fuji Facom Corp コ−ドラベルの読取装置
CN102693597B (zh) * 2011-03-25 2014-10-22 航天信息股份有限公司 基于远程票据信息的本地打印方法和装置
CN107909134A (zh) * 2017-12-14 2018-04-13 深圳市兆驰数码科技股份有限公司 一种条码生成和打印的方法、装置及系统
CN108549917A (zh) * 2018-03-06 2018-09-18 杭州优工品科技有限公司 标签数据打印方法及装置
CN111583559B (zh) * 2020-03-26 2022-07-22 时时同云科技(成都)有限责任公司 订单处理方法、装置和系统

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63272651A (ja) * 1987-04-28 1988-11-10 Sato:Kk 携帯式ラベル印字貼付装置
JPH0516439A (ja) * 1991-07-15 1993-01-26 Tokyo Electric Co Ltd ラベルプリンタ
CN102029803A (zh) * 2009-09-29 2011-04-27 得士影像数码技术有限公司 用于唯一标识打印件的方法
CN106814982A (zh) * 2017-01-04 2017-06-09 北京京东尚科信息技术有限公司 标签打印处理装置、系统和方法
CN110239230A (zh) * 2019-05-31 2019-09-17 付灵 一种玻璃打印自动生成二维码的方法及产品应用方法
CN110609665A (zh) * 2019-07-31 2019-12-24 浙江口碑网络技术有限公司 打印信息处理方法、装置及系统
CN111078161A (zh) * 2019-11-15 2020-04-28 北京三快在线科技有限公司 打印机的模拟方法、装置、电子设备及存储介质
CN112265384A (zh) * 2020-09-30 2021-01-26 时时同云科技(成都)有限责任公司 数据打印方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115147176A (zh) * 2022-06-20 2022-10-04 拉扎斯网络科技(上海)有限公司 一种订单信息处理方法、装置及电子设备
CN117575743A (zh) * 2024-01-15 2024-02-20 世纪开元智印互联科技集团股份有限公司 基于二维码的照片打印订单确认方法、装置、设备及介质
CN117575743B (zh) * 2024-01-15 2024-04-02 世纪开元智印互联科技集团股份有限公司 基于二维码的照片打印订单确认方法、装置、设备及介质
CN118394251A (zh) * 2024-06-26 2024-07-26 深圳市深科特信息技术有限公司 基于超文本链接的标签生成方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN112265384A (zh) 2021-01-26
CN112265384B (zh) 2021-06-29

Similar Documents

Publication Publication Date Title
WO2022068786A1 (zh) 数据打印方法及装置
US20200111107A1 (en) Unauthorized product detection techniques
JP2023027048A (ja) スマート製品ラベルプラットホーム
KR101951819B1 (ko) 배달 대행 정보 제공 방법, 장치 및 컴퓨터-판독가능 기록매체
US20050108044A1 (en) Systems and methods for detecting counterfeit pharmaceutical drugs at the point of retail sale
US9663294B2 (en) Receiving items into inventory
US11216222B2 (en) Printing method and system for serialized information
JP2007217094A (ja) 物流管理方法、出荷管理システム、及び、商品照合方法
JP6477467B2 (ja) 情報生成方法、及び、情報処理装置
JP5113238B2 (ja) Faxocr装置およびfaxocrプログラム
JP2004091088A (ja) 配送管理システムおよび配送管理方法
JP2008265894A (ja) 配送管理システム及び配送管理方法
WO2019215966A1 (ja) 登録システム、登録方法及びプログラム
US20210090093A1 (en) Computer-enabled platform for delivering products tamper-proof
CN105117936A (zh) 基于产品大数据和二维码的货物管理系统和管理方法
WO2022021385A1 (zh) 一种跨境电商安全检测系统
KR102713424B1 (ko) 인터넷 쇼핑몰의 주문접수 상품 라벨 출력 방법
TWI708160B (zh) 一種用於售後服務之保證服務管理系統及其方法
JP5874575B2 (ja) 情報処理装置及び情報処理プログラム
WO2018037492A1 (ja) 管理装置、管理方法、プログラム、ならびに、非一時的なコンピュータ読取可能な情報記録媒体
US20230214852A1 (en) Method and system for authentication and registration of a product
JP3833576B2 (ja) 模倣品検査システム
JP2024137602A (ja) すり替え検証システム、すり替え検証方法、及びプログラム
CN113095754A (zh) 防出错扫描方法、系统、设备及计算机可读存储介质
CN118246842A (zh) 多材料跟踪和追踪方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21874446

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21874446

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21874446

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/11/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21874446

Country of ref document: EP

Kind code of ref document: A1