Movatterモバイル変換


[0]ホーム

URL:


CN119883149A - Print ticket setting method, ticket printing method and device - Google Patents

Print ticket setting method, ticket printing method and device
Download PDF

Info

Publication number
CN119883149A
CN119883149ACN202411963309.0ACN202411963309ACN119883149ACN 119883149 ACN119883149 ACN 119883149ACN 202411963309 ACN202411963309 ACN 202411963309ACN 119883149 ACN119883149 ACN 119883149A
Authority
CN
China
Prior art keywords
receipt
printing
ticket
print
pictures
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.)
Pending
Application number
CN202411963309.0A
Other languages
Chinese (zh)
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.)
Lazas Network Technology Shanghai Co Ltd
Original Assignee
Lazas Network Technology Shanghai 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 Lazas Network Technology Shanghai Co LtdfiledCriticalLazas Network Technology Shanghai Co Ltd
Priority to CN202411963309.0ApriorityCriticalpatent/CN119883149A/en
Publication of CN119883149ApublicationCriticalpatent/CN119883149A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请提供打印小票设置方法、小票打印方法、装置、电子设备及计算机存储介质,打印小票设置方法包括:在打印小票模版设置界面中展示用于商户设置小票图片的小票图片编辑区域;通过多个小票图片编辑区域获得商户设置的多个小票图片和每个小票图片对应的展示位置信息;将多个小票图片发送给云端;获得多个小票图片对应的图片标识数据;生成基于展示位置信息的含有图片标识数据的打印小票模版;将打印小票模版发送给云端以使云端根据所述图片标识数据获得多个小票图片并基于打印小票模版指示设置在商户运营的店铺内的打印设备打印出展示有多个小票图片的小票。该方法解决了云打印机只能打印文字和只能打印黑白色文字的问题,提升了订单的打印效率。

The present application provides a printing receipt setting method, a receipt printing method, a device, an electronic device and a computer storage medium. The printing receipt setting method includes: displaying a receipt picture editing area for merchants to set receipt pictures in a printing receipt template setting interface; obtaining multiple receipt pictures set by merchants and display location information corresponding to each receipt picture through multiple receipt picture editing areas; sending multiple receipt pictures to the cloud; obtaining picture identification data corresponding to multiple receipt pictures; generating a printing receipt template containing picture identification data based on the display location information; sending the printing receipt template to the cloud so that the cloud obtains multiple receipt pictures according to the picture identification data and instructs a printing device set in a store operated by the merchant to print out a receipt showing multiple receipt pictures based on the printing receipt template. This method solves the problem that cloud printers can only print text and can only print black and white text, and improves the printing efficiency of orders.

Description

Print ticket setting method, ticket printing method and device
Technical Field
The present application relates to the field of computer technology, and in particular, to a print ticket setting method, a ticket printing method, a print ticket setting apparatus, a ticket printing apparatus, an electronic device, and a computer storage medium.
Background
With development of cloud printing technology, the cloud printing technology can print through cloud printers of various types, when an order receipt to be printed is printed, the cloud printer needs to analyze an instruction set corresponding to the content of the order receipt to be printed issued by a server to a memory of the cloud printer, and then execute printing operation.
However, currently, when printing order tickets using a cloud printer, the cloud printer can only print text. In addition, aiming at the color print product of the receipt, the traditional Bluetooth and USB printing are mainly adopted, and the cloud printer can only print black and white characters, so that the application of the cloud printer is severely limited.
Therefore, how to solve the problem that the cloud printer can only print text and can only print black and white text is a current urgent problem to be solved.
Disclosure of Invention
The application provides a print receipt setting method, which solves the problem that a cloud printer can only print characters and can only print black and white characters, improves the printing efficiency of orders, and also provides a receipt printing method, a print receipt setting device, a receipt printing device, electronic equipment and a computer storage medium.
The application provides a print ticket setting method which is applied to the front end of a print ticket template, and comprises the steps of displaying a ticket picture editing area for setting ticket pictures of a merchant in a print ticket template setting interface, obtaining a plurality of ticket pictures set by the merchant and display position information corresponding to each ticket picture through a plurality of the ticket picture editing areas, sending the plurality of ticket pictures to a cloud, obtaining picture identification data corresponding to the plurality of ticket pictures, generating a print ticket template containing picture identification data based on the display position information, and sending the print ticket template to the cloud so that the cloud can obtain the plurality of ticket pictures according to the picture identification data, and indicating printing equipment arranged in a shop operated by the merchant to print tickets with the plurality of ticket pictures based on the print ticket template.
Optionally, the display position information corresponding to each receipt picture is obtained by the following manner:
In response to detecting a triggering operation of a receipt display position in a setting page, displaying a receipt picture editing area for editing the display position, wherein one display position comprises at least one receipt picture;
And responding to the detection of the picture editing operation of the editing area of the receipt picture, and obtaining receipt display position information where the picture editing operation is located, wherein the display position information comprises a display position and an editing area position.
Optionally, the cloud comprises a printing equipment server and a picture storage end;
The step of sending the plurality of receipt pictures to the cloud end comprises the step of sending the plurality of receipt pictures to the picture storage end;
The step of sending the print ticket template to the cloud comprises the step of sending the print ticket template to the printing equipment server.
Optionally, the picture identification data includes a hash value;
The method further comprises the steps of obtaining hash values corresponding to the plurality of receipt pictures returned by the picture storage end, wherein the hash values corresponding to the plurality of receipt pictures are used for identifying the plurality of receipt pictures in the picture storage end;
The generating of the print ticket template containing the picture identification data based on the display position information comprises generating the print ticket template containing the hash value based on the display position information.
Optionally, the obtaining the plurality of receipt pictures according to the picture identification data includes obtaining the plurality of receipt pictures from the picture storage terminal according to hash values of the plurality of receipt pictures in a print receipt template set by the merchant.
Optionally, the obtaining the plurality of receipt pictures from the picture storage terminal according to the hash values of the plurality of receipt pictures in the print receipt template set by the merchant comprises sending a picture obtaining request message for requesting to obtain the plurality of receipt pictures corresponding to the plurality of receipt pictures to the picture storage terminal, wherein the picture obtaining request message comprises hash values further corresponding to the plurality of receipt pictures, and obtaining the plurality of receipt pictures returned by the picture storage terminal.
Optionally, the method further comprises the steps of obtaining the link addresses of the plurality of receipt pictures returned by the picture storage terminal according to the picture obtaining request message;
The step of obtaining the plurality of receipt pictures returned by the picture storage terminal comprises the step of downloading the plurality of receipt pictures from the picture storage terminal according to the link addresses of the plurality of receipt pictures.
Optionally, the displaying the small ticket picture editing area for the business to set the small ticket picture in the small ticket template setting interface comprises displaying a plurality of small ticket picture uploading entrance components for the business to upload a plurality of small ticket pictures in the small ticket template setting interface.
Optionally, the step of displaying the plurality of ticket picture uploading entry components for uploading the plurality of ticket pictures by the merchant in the printed ticket template setting interface comprises the step of displaying the merchant logo picture uploading entry components for uploading the merchant logo pictures by the merchant in the merchant logo setting area and displaying the merchant operation picture uploading entry components for uploading the merchant operation pictures by the merchant in the merchant operation area setting area.
Optionally, detecting whether the color types of the plurality of coupon pictures uploaded by the commercial tenant are consistent with the color types of the coupon printing selected by the commercial tenant, if not, printing the colors of the plurality of coupon pictures uploaded by the color conversion commercial tenant according to the coupon printing selected by the commercial tenant to obtain a plurality of coupon pictures with converted colors;
the step of sending the plurality of receipt pictures to the picture storage end comprises the step of sending the plurality of receipt pictures after color conversion to the picture storage end.
Optionally, the method further comprises the steps of processing the colors of the plurality of coupon pictures uploaded by the commercial tenant based on a picture color processing strategy to obtain a plurality of coupon pictures after color processing, wherein the color of the plurality of coupon pictures meets the preset color requirement;
And adjusting the sizes of the plurality of ticket pictures uploaded by the commercial tenant based on a picture size processing strategy to obtain a plurality of ticket pictures with the sizes within a preset picture size range after size adjustment.
Optionally, the method further comprises the steps of obtaining the data of the instance to be printed, and sending a printing instruction to the printing equipment server, wherein the printing instruction comprises the data of the instance to be printed;
The method comprises the steps of responding to a printing instruction, generating a printing instruction set according to the plurality of receipt pictures, the instance data to be printed provided by the front end and the printing receipt templates, and instructing the printing equipment arranged in the store operated by the merchant to print the receipt displaying the plurality of receipt pictures according to the printing instruction set.
Optionally, the obtaining the to-be-printed instance data comprises obtaining order data sent by an order server side, and obtaining the to-be-printed instance data according to the order data.
Optionally, the method further comprises the steps of identifying the two-dimensional code in the two-dimensional code picture to obtain character string information corresponding to the two-dimensional code if the receipt picture is the two-dimensional code picture containing the two-dimensional code, and sending the character string information to the cloud end to generate the two-dimensional code picture based on the character string information when the two-dimensional code picture needs to be obtained.
The application provides a receipt printing method which is applied to a cloud printing equipment server side, wherein the method comprises the steps of obtaining a printing receipt template set by a merchant, wherein the printing receipt template comprises picture identification data corresponding to a plurality of receipt pictures and display position information corresponding to each receipt picture, obtaining a plurality of receipt pictures corresponding to the printing receipt template from a picture storage end of the cloud according to the picture identification data of the plurality of receipt pictures in the printing receipt template, wherein the plurality of receipt pictures are provided for the picture storage end by setting the front end of the printing receipt template, and when a receipt is required to be printed according to the printing receipt template, indicating printing equipment arranged in a shop operated by the merchant to print the receipt displaying the plurality of receipt pictures according to the printing receipt template.
Optionally, the method for printing the tickets with the plurality of ticket pictures according to the print ticket template indicates the printing equipment arranged in the store operated by the merchant to print the tickets with the plurality of ticket pictures, and comprises the steps of generating a print instruction set according to the plurality of ticket pictures, the to-be-printed example data provided by the front end and the print ticket template, and sending the print instruction set to the printing equipment arranged in the store operated by the merchant, so that the printing equipment prints the tickets with the plurality of ticket pictures according to the print instruction set.
Optionally, the method further comprises the steps of responding to the receipt printing instruction sent by the front end to obtain merchant identification information of a merchant to which the front end belongs, and obtaining a printed receipt template and a plurality of receipt pictures corresponding to the merchant identification information based on the merchant identification information.
Optionally, the method further comprises the steps of after obtaining a plurality of receipt pictures corresponding to the printing receipt template from the picture storage end, sending the plurality of receipt pictures to the printing equipment, obtaining picture indexes sent by the printing equipment and used for identifying the plurality of receipt pictures in the printing equipment, and taking the picture indexes as picture indexes of the printing equipment;
the generating a printing instruction set according to the plurality of receipt pictures, the instance data to be printed provided by the front end and the printing receipt template comprises generating a printing instruction set according to the printing equipment picture index, the instance data to be printed provided by the front end and the printing receipt template.
The method comprises the steps of obtaining a plurality of receipt pictures corresponding to a printing receipt template from a picture storage end, setting picture indexes used for identifying the receipt pictures in printing equipment to serve as the picture indexes of the printing equipment, enabling the receipt pictures and the picture indexes of the printing equipment to be sent to the printing equipment, and generating a printing instruction set according to the receipt pictures, the instance data to be printed provided by the front end and the printing receipt template, wherein the printing instruction set is generated according to the picture indexes of the printing equipment, the instance data to be printed provided by the front end and the printing receipt template.
Optionally, the method further comprises the steps of generating a picture printing instruction set according to a plurality of receipt pictures after obtaining the plurality of receipt pictures corresponding to the printing receipt templates from the picture storage end;
Generating a printing instruction set according to the plurality of receipt pictures, the instance data to be printed provided by the front end and the printing receipt template, wherein the generating of the printing instruction set comprises the steps of generating a document printing instruction set according to the instance data to be printed provided by the front end and the printing receipt template, and establishing a corresponding relation between an index of the picture printing instruction set and the document printing instruction set;
the step of sending the printing instruction set to printing equipment arranged in a store operated by the merchant comprises the step of sending the document printing instruction set to the printing equipment;
The method further includes transmitting a correspondence between the photo print instruction set index and the document print instruction set to the printing device.
Optionally, the method further comprises the steps of generating a picture printing instruction set according to a plurality of receipt pictures after obtaining the receipt pictures corresponding to the printing receipt templates from the picture storage end; setting a picture printing instruction set index for the picture printing instruction set, and searching and sending the picture printing instruction set and the picture printing instruction set to the printing equipment;
Generating a printing instruction set according to the plurality of receipt pictures, the instance data to be printed provided by the front end and the printing receipt template, wherein the generating of the printing instruction set comprises the steps of generating a document printing instruction set according to the instance data to be printed provided by the front end and the printing receipt template, and establishing a corresponding relation between an index of the picture printing instruction set and the document printing instruction set;
the step of sending the printing instruction set to printing equipment arranged in a store operated by the merchant comprises the step of sending the document printing instruction set to the printing equipment;
The method further includes transmitting a correspondence between the photo print instruction set index and the document print instruction set to the printing device.
Optionally, the method further comprises the steps of generating a picture printing instruction set according to the plurality of receipt pictures if the preview printing instruction sent by the front end is received, generating a receipt document printing instruction set according to the printing receipt template, obtaining a printing instruction set according to the picture printing instruction set and the receipt document printing instruction set, and sending the printing instruction set to the printing equipment.
The application provides a receipt printing method which is applied to printing equipment in a store operated by a merchant, and the method comprises the steps of obtaining a printing instruction set sent by a printing equipment server side of a cloud end, wherein the printing instruction set is generated according to a plurality of receipt pictures, to-be-printed instance data provided by a front end and a printing receipt template, the printing receipt template comprises picture identification data corresponding to the plurality of receipt pictures and display position information corresponding to each receipt picture, the printing receipt template is set by the merchant through the front end and is sent to the printing equipment server side by the front end, the plurality of receipt pictures are obtained by the merchant through a plurality of receipt picture editing areas in a printing receipt template setting interface displayed by the front end, the plurality of receipt pictures are sent to a picture storage end of the cloud end by the front end, the printing equipment server side obtains the picture identification data of the plurality of receipt pictures in the printing receipt template set according to the merchant, and the printing instruction set displays the plurality of receipt pictures.
Optionally, the method further comprises the steps of obtaining a plurality of receipt pictures corresponding to the printing receipt templates, which are sent by the printing equipment server, setting picture indexes for identifying the plurality of receipt pictures to the plurality of receipt pictures as printing equipment picture indexes, and sending the printing equipment picture indexes to the printing equipment server.
The method comprises the steps of obtaining a picture printing instruction set sent by a printing equipment server, wherein the picture printing instruction set is generated according to a plurality of receipt pictures corresponding to a printing receipt template, setting a picture printing instruction set index for the picture printing instruction set, searching and sending the picture printing instruction set index to the printing equipment server, obtaining a corresponding relation between the picture printing instruction set index and a text printing instruction set, wherein the text printing instruction set is generated according to example data to be printed and the printing receipt template provided by the front end, obtaining a text printing instruction set sent by the printing equipment server according to the corresponding relation between the picture printing instruction set index and the text printing instruction set, and printing the receipt with the plurality of receipt pictures according to the printing instruction set, wherein the receipt with the plurality of receipt pictures is displayed according to the picture printing instruction set and the text printing instruction set.
Optionally, the method further comprises the steps of obtaining a picture printing instruction set and a picture printing instruction set index sent by the printing equipment server, wherein the picture printing instruction set is generated according to a plurality of receipt pictures corresponding to the printing receipt template; obtaining a corresponding relation between a picture printing instruction set index and a document printing instruction set sent by a printing equipment server, wherein the document printing instruction set is generated according to the to-be-printed instance data provided by the front end and the printing receipt template;
The step of printing the tickets with the plurality of ticket pictures according to the printing instruction set comprises the step of printing the tickets with the plurality of ticket pictures according to the picture printing instruction set and the document printing instruction set.
The method comprises the steps of obtaining a picture printing instruction set and a receipt document printing instruction set which are sent by a printing equipment server, wherein the picture printing instruction set is generated according to a plurality of receipt pictures, the receipt document printing instruction set is generated according to a printing receipt template, and printing a receipt displaying the plurality of receipt pictures according to the printing instruction set, and the method comprises the steps of printing the receipt displaying the plurality of receipt pictures according to the picture printing instruction set and the receipt document printing instruction set.
The application provides a print ticket setting method which is applied to the front end of a print ticket template, and comprises the steps of displaying a print color selection component for selecting ticket printing colors by a merchant in a print ticket template setting interface, obtaining ticket printing color data selected by the merchant through the print color selection component, sending the print ticket template set by the merchant to a printing equipment service end of a cloud, wherein the print ticket template comprises the ticket printing color data selected by the merchant, so that the printing equipment service end converts the color of the ticket data required to be printed in the ticket into the ticket printing color selected by the merchant according to the ticket printing color data selected by the merchant, and when the ticket is required to be printed according to the print ticket template set by the merchant, generating a print instruction set according to the print ticket template and the sample data to be printed provided by the front end, and sending the print instruction set to printing equipment arranged in a store operated by the merchant, so that the printing equipment prints the ticket data with the ticket color selected by the merchant according to the print instruction set.
Optionally, the coupon printing color selected by the merchant in the printing color selection component is a coupon printing color supported by the printing device.
The printing device comprises a printing device, a printing instruction set and a printing template set, wherein the printing instruction set comprises a plurality of receipt pictures uploaded by a commercial tenant, a plurality of receipt pictures uploaded by the commercial tenant are obtained, the plurality of receipt pictures uploaded by the commercial tenant are detected to be consistent with the color types corresponding to the receipt printing color data selected by the commercial tenant, if not, the colors of the plurality of receipt pictures uploaded by the commercial tenant are converted according to the color types corresponding to the receipt printing color data selected by the commercial tenant, the plurality of receipt pictures after the color conversion are obtained, the plurality of receipt pictures after the color conversion are displayed, the confirmation operation of the commercial tenant on the plurality of receipt pictures after the color conversion is responded, the plurality of receipt pictures after the color conversion are used as pictures in a receipt printed by the printing device and are sent to a cloud picture storage end, and the printing instruction set comprises the receipt pictures after the color conversion, the print instruction set is generated according to the receipt data provided by the printing device and the print template set.
The application provides a receipt printing method which is applied to a cloud printing equipment server and comprises the steps of obtaining a printing receipt template set by a merchant, wherein the printing receipt template comprises receipt printing color data selected by the merchant, and when a receipt is required to be printed according to the printing receipt template, generating a printing instruction set according to the printing receipt template and to-be-printed example data provided by the front end, and sending the printing instruction set to printing equipment arranged in a shop operated by the merchant so that the printing equipment prints a receipt with a receipt data color selected by the merchant according to the printing instruction set.
Optionally, the color indicated by the coupon printing color data selected by the merchant is a coupon printing color supported by the printing device.
The method comprises the steps of obtaining a plurality of receipt pictures from a picture storage end of a cloud, obtaining the plurality of receipt pictures stored by the picture storage end according to the plurality of receipt pictures uploaded by a business at the front end, detecting whether the color types of the plurality of receipt pictures stored by the picture storage end are consistent with the color types corresponding to receipt printing color data selected by the business, if not, converting the colors of the plurality of receipt pictures stored by the picture storage end according to the color types corresponding to receipt printing color data selected by the business, obtaining the plurality of receipt pictures with converted colors, and taking the plurality of receipt pictures as pictures displayed in the receipt printed by the printing equipment, and generating a printing instruction set according to the receipt printing template and the instance data to be printed provided by the front end, wherein the printing instruction set is generated according to the plurality of receipt pictures with converted colors, the instance data to be printed provided by the front end and the receipt printing template.
The application provides a receipt printing method which is applied to printing equipment arranged in a shop operated by a merchant, and comprises the steps of obtaining a printing instruction set sent by a printing equipment server side of a cloud end, wherein the printing instruction set is generated according to a printing receipt template and to-be-printed instance data, the printing receipt template comprises receipt printing color data selected by the merchant, the printing receipt template is set by the merchant through a front end and is sent to the printing equipment server side by the front end, the receipt printing color data selected by the merchant is selected by the merchant through a printing color selection component in a printing receipt template setting interface displayed by the front end, the to-be-printed instance data is provided to the printing equipment server side by the front end, and the receipt data is printed according to the printing instruction set to form a receipt with the receipt printing color selected by the merchant.
Optionally, the color indicated by the coupon printing color data selected by the merchant is a coupon printing color supported by the printing device.
Optionally, the print instruction set is generated according to a plurality of color-converted ticket pictures, a print ticket template and to-be-printed instance data, the color-converted ticket pictures are pictures to be displayed in tickets printed by the printing device, and the color-converted ticket pictures are obtained by converting color data of tickets selected by the merchant according to the ticket print color data uploaded by the merchant through the front end.
The application provides a print ticket setting device which is applied to the front end of a print ticket template, and comprises a first display unit used for displaying a ticket picture editing area for setting ticket pictures of a merchant in a print ticket template setting interface, a first obtaining unit used for obtaining a plurality of ticket pictures set by the merchant and display position information corresponding to each ticket picture through a plurality of ticket picture editing areas, a first sending unit used for sending the plurality of ticket pictures to a cloud, a second obtaining unit used for obtaining picture identification data corresponding to the plurality of ticket pictures, a first generating unit used for generating a print ticket template containing picture identification data based on the display position information, and a second sending unit cloud used for sending the print ticket template to the cloud so that the plurality of ticket pictures can be obtained according to the picture identification data and the ticket templates can be printed by printing equipment in the store operated by the merchant based on the print ticket indication.
The application provides a receipt printing device which is applied to a printing equipment server side of a cloud, and comprises a third obtaining unit, a fourth obtaining unit and an indicating unit, wherein the third obtaining unit is used for obtaining a printing receipt template set by a merchant, the printing receipt template comprises picture identification data corresponding to a plurality of receipt pictures and display position information corresponding to each receipt picture, the fourth obtaining unit is used for obtaining a plurality of receipt pictures corresponding to the printing receipt template from a picture storage end of the cloud according to the picture identification data of the plurality of receipt pictures in the printing receipt template, the plurality of receipt pictures are provided for the picture storage end by setting the front end of the printing receipt template, and the indicating unit is used for indicating printing a receipt displaying the plurality of receipt pictures according to the printing receipt template when the receipt is required to be printed according to the printing receipt template.
The application provides a receipt printing device which is applied to printing equipment arranged in a store operated by a merchant, and comprises a fifth obtaining unit, a first printing unit and a second printing unit, wherein the fifth obtaining unit is used for obtaining a printing instruction set sent by a printing equipment server side of a cloud end, the printing instruction set is generated according to a plurality of receipt pictures, to-be-printed example data provided by the front end and a printing receipt template, the printing receipt template comprises picture identification data corresponding to the plurality of receipt pictures and display position information corresponding to each receipt picture, the printing receipt template is set by the merchant through the front end and is sent to the printing equipment server side by the front end, the plurality of receipt pictures are obtained by the merchant through a plurality of receipt picture editing areas in a printing receipt template setting interface displayed by the front end, the plurality of receipt pictures are sent to a picture storage end of the cloud end by the front end, the printing equipment server side obtains the printing receipt template from the picture storage end according to picture identification data of the plurality of receipt pictures in the printing receipt set by the printing equipment server side, and the printing instruction set is used for displaying the plurality of receipt pictures.
The application provides a print ticket setting device which is applied to the front end of a print ticket template, and comprises a second display unit, a sixth acquisition unit and a third sending unit, wherein the second display unit is used for displaying a print color selection component for selecting ticket printing colors for a merchant in a print ticket template setting interface, the sixth acquisition unit is used for acquiring ticket printing color data selected by the merchant through the print color selection component, the third sending unit is used for sending the print ticket template set by the merchant to a printing equipment server side of a cloud, the print ticket template comprises the ticket printing color data selected by the merchant, so that the printing equipment server side converts the color of ticket data to be printed in the ticket template into the ticket printing color selected by the merchant according to the ticket printing color data selected by the merchant, and when the ticket is required to be printed according to the print ticket template set by the merchant, a print instruction set is generated according to the print ticket template and the ticket to be printed by the front end, and the print instruction set is sent to printing equipment arranged in the shop according to the print instruction set by the merchant, so that the ticket data is printed by the print equipment of the ticket set of the store ticket has the color selected by the merchant.
The application provides a receipt printing device which is applied to a printing equipment server side of a cloud, and comprises a seventh obtaining unit and a second generating unit, wherein the seventh obtaining unit is used for obtaining a printing receipt template set by a merchant, the printing receipt template comprises receipt printing color data selected by the merchant, and when a receipt needs to be printed according to the printing receipt template, a printing instruction set is generated according to the printing receipt template and the to-be-printed example data provided by the front end, and the printing instruction set is sent to printing equipment arranged in a shop operated by the merchant, so that the printing equipment prints a receipt with the receipt printing color selected by the merchant according to the printing instruction set.
The application provides a receipt printing device which is applied to printing equipment arranged in a store operated by a merchant, and comprises an eighth obtaining unit, a second printing unit and a third printing unit, wherein the eighth obtaining unit is used for obtaining a printing instruction set sent by a printing equipment server side of a cloud end, the printing instruction set is generated according to a printing receipt template and to-be-printed instance data, the printing receipt template comprises receipt printing color data selected by the merchant, the printing receipt template is set by the merchant through a front end and is sent to the printing equipment server side by the front end, the receipt printing color data selected by the merchant is selected by a printing color selection component in a printing receipt template setting interface displayed by the front end, the to-be-printed instance data is provided by the front end to the printing equipment server side, and the second printing unit is used for printing a receipt with the receipt data color which is the receipt printing color selected by the merchant according to the printing instruction set.
The application provides an electronic device which comprises a processor and a memory, wherein the memory is used for storing a computer program, and the computer program is run by the processor to execute the print ticket setting method and the ticket printing method.
The present application provides a computer storage medium storing a computer program that is executed by a processor to execute the print ticket setting method and the ticket printing method described above.
Compared with the prior art, the embodiment of the application has the following advantages:
The application provides a print receipt setting method, which can obtain a plurality of receipt pictures set by a merchant and display position information corresponding to each receipt picture through a receipt picture editing area in a print receipt template setting interface, then send the plurality of receipt pictures to a cloud end to obtain picture identification data corresponding to the plurality of receipt pictures, further generate a print receipt template containing picture identification data based on the display position information, and finally send the print receipt template to the cloud end, so that the cloud end obtains the plurality of receipt pictures according to the picture identification data, and indicates printing equipment arranged in a shop operated by the merchant to print a receipt displaying the plurality of receipt pictures based on the print receipt template. According to the method, the printing receipt template can be set by a merchant, and the merchant can upload a plurality of pictures in the printing receipt through a plurality of receipt picture editing areas, so that the printing device can print out the printing receipt with the mixture of a plurality of pictures and characters, the problem that the printing device can only print the printing receipt with the characters is solved, and the printing efficiency of the printing receipt is further improved.
The application provides a print ticket setting method, which can select ticket printing color data through a printing color selection component in a print ticket template setting interface, and send a print ticket template comprising ticket printing color data selected by a merchant to a printing equipment service end of a cloud end, so that the printing equipment service end converts the color of ticket data needing to be printed in the ticket into the ticket printing color selected by the merchant according to the ticket printing color data selected by the merchant, when the ticket needs to be printed according to the print ticket template set by the merchant, a print instruction set is generated according to the print ticket template and to-be-printed example data provided by the front end, and the print instruction set is sent to printing equipment arranged in a store operated by the merchant, so that the printing equipment prints the ticket data color into the ticket with the ticket printing color selected by the merchant according to the print instruction set. The printing receipt template in the method can be set by a merchant, and the merchant can select receipt printing color data through the printing color selection component, so that the printing equipment can print colorful printing receipt, the problem that the printing equipment can only print black-and-white printing receipt is solved, and the printing efficiency of the printing receipt is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
Fig. 1 is a schematic diagram of a first scenario of a print ticket setting method provided by the present application.
Fig. 2 is a schematic diagram of a second scenario of the print ticket setting method provided by the present application.
Fig. 3 is a schematic diagram of a third scenario of the print ticket setting method provided by the present application.
Fig. 4 is a schematic diagram of a fourth scenario of the print ticket setting method provided by the present application.
Fig. 5 is a schematic view of a fifth scenario of the print ticket setting method provided by the present application.
Fig. 6 is a schematic view of a sixth scenario of the print ticket setting method provided by the present application.
Fig. 7 is a schematic view of a seventh scenario of the print ticket setting method provided by the present application.
Fig. 8 is a flowchart of a print ticket setting method according to the first embodiment of the present application.
Fig. 9 is a flowchart of a receipt printing method according to a second embodiment of the present application.
Fig. 10 is a flowchart of a receipt printing method according to a third embodiment of the present application.
Fig. 11 is a flowchart of a print ticket setting method provided in a fourth embodiment of the present application.
Fig. 12 is a flowchart of a ticket printing method according to a fifth embodiment of the present application.
Fig. 13 is a flowchart of a ticket printing method according to a sixth embodiment of the present application.
Fig. 14 is a schematic view of a print ticket setting apparatus according to a seventh embodiment of the present application.
Fig. 15 is a schematic view of a receipt printing apparatus according to an eighth embodiment of the present application.
Fig. 16 is a schematic view of a ticket printing apparatus according to a ninth embodiment of the present application.
Fig. 17 is a schematic view of a print ticket setting apparatus according to a tenth embodiment of the present application.
Fig. 18 is a schematic view of a receipt printing apparatus according to an eleventh embodiment of the present application.
Fig. 19 is a schematic view of a receipt printer according to a twelfth embodiment of the present application.
Fig. 20 is a schematic diagram of an electronic device according to a thirteenth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. The present application may be embodied in many other forms than those herein described, and those skilled in the art will readily appreciate that the present application may be similarly embodied without departing from the spirit or essential characteristics thereof, and therefore the present application is not limited to the specific embodiments disclosed below.
The application provides a print ticket setting method, a ticket printing method, a print ticket setting device, a ticket printing device, an electronic apparatus, and a computer storage medium. The print ticket setting method, the ticket printing method, the print ticket setting apparatus, the ticket printing apparatus, the electronic device, and the computer storage medium are described below by way of specific embodiments, respectively. The receipt printing method, the receipt printing device, the electronic equipment and the computer storage medium are realized based on the receipt printing method, and in order to more clearly show the receipt printing method provided by the embodiment of the application, an application scene of the receipt printing method provided by the embodiment of the application is introduced. Before introducing an application scenario of the print ticket setting method provided by the embodiment of the present application, first, an implementation background of the embodiment of the present application is briefly described. With the development of cloud printing technology, the cloud printing technology can print through various types of cloud printers, which is a printing device connected through the internet, that allows a user to print from any internet-connected device without requiring a direct physical connection or a conventional Local Area Network (LAN) connection. When the common printer prints, the common printer is generally connected with a local server through a network cable, and then the local server is connected with a remote server. The cloud printing technology has the core concept that the printing tasks are processed and managed through the cloud server, so that printing experience of cross-equipment at any time and any place is realized. When printing the order receipt to be printed, the cloud printer needs to analyze an instruction set corresponding to the content of the order receipt to be printed issued by the server to the memory of the cloud printer, and then execute printing operation. However, currently, when printing order tickets using a cloud printer, the general cloud printer can only print text due to various limitations. In addition, aiming at the color print product of the receipt, the traditional Bluetooth and USB printing are mainly adopted, and the cloud printer can only print black and white characters, so that the application of the cloud printer is severely limited.
Based on the above, the embodiment of the application provides a print ticket setting method, which can obtain a plurality of ticket pictures set by a merchant and display position information corresponding to each ticket picture through a ticket picture editing area in a print ticket template setting interface, then send the plurality of ticket pictures to a cloud end to obtain picture identification data corresponding to the plurality of ticket pictures, further generate a print ticket template containing picture identification data based on the display position information, and finally send the print ticket template to the cloud end, so that the cloud end obtains the plurality of ticket pictures according to the picture identification data, and instruct printing equipment arranged in a shop operated by the merchant to print out tickets displaying the plurality of ticket pictures based on the print ticket template. According to the method, the printing receipt template can be set by a merchant, and the merchant can upload a plurality of pictures in the printing receipt through a plurality of receipt picture editing areas, so that the printing device can print out the printing receipt with the mixture of a plurality of pictures and characters, the problem that the printing device can only print the printing receipt with the characters is solved, and the printing efficiency of the printing receipt is further improved.
The application further provides a print ticket setting method, which can select ticket printing color data through a printing color selection component in a print ticket template setting interface, and send a print ticket template comprising the ticket printing color data selected by a merchant to a printing equipment server side of a cloud end, so that the printing equipment server side converts the color of the ticket data required to be printed in the ticket into the ticket printing color selected by the merchant according to the ticket printing color data selected by the merchant, when the ticket is required to be printed according to the ticket printing template set by the merchant, a print instruction set is generated according to the ticket printing template and the to-be-printed example data provided by the front end, and the print instruction set is sent to printing equipment arranged in a shop operated by the merchant, so that the printing equipment prints the ticket with the ticket data color which is the ticket printing color selected by the merchant according to the print instruction set. The printing receipt template in the method can be set by a merchant, and the merchant can select receipt printing color data through the printing color selection component, so that the printing equipment can print colorful printing receipt, the problem that the printing equipment can only print black-and-white printing receipt is solved, and the printing efficiency of the printing receipt is further improved.
The application scenario of the print ticket setting method provided by the present application is described in detail below with reference to fig. 1 to 7. Taking the process of setting up the printed receipt by the merchant a as an example, please refer to fig. 1, fig. 1 is a schematic diagram of a first scenario of the print receipt setting method provided by the present application, after the merchant a enters the printer setting interface, the printer setting interface displays a plurality of receipt template types, such as a customer association, a merchant association, a kitchen association, etc. Taking the coupon template of the customer link as an example, the merchant can click an edit button corresponding to the customer link to edit the customer link. After clicking the edit button, entering a second page, please refer to fig. 2, fig. 2 is a schematic diagram of a second scenario of the print ticket setting method provided by the present application, wherein a selection button of a ticket color is displayed in the second page, and a user can set the presentation color of the ticket to be black or orange through the color selection button. The display area of the second page is used for displaying specific content presented on the receipt. The second page also comprises a module editing button and a module sorting button, the printing receipt template setting interface can be accessed through the triggering module editing button, the printing receipt template setting interface comprises a plurality of receipt picture editing areas, and the plurality of receipt picture editing areas in the printing receipt template setting interface can be sequentially adjusted through the triggering module sorting button.
After clicking the module editing button, a third page is entered, please refer to fig. 3, fig. 3 is a third scene schematic diagram of the print ticket setting method provided by the present application, wherein the third page is a print ticket setting interface, and a plurality of ticket picture editing areas for setting ticket pictures for merchants are displayed in the page, for example, a ticket type displaying area, a merchant brand displaying area, an order scheduled sending time displaying area, a customer information displaying area, a commodity information displaying area, a coupon displaying area, a merchant operation displaying area, etc. Through the plurality of receipt picture editing areas, a plurality of receipt pictures set by a merchant and display position information corresponding to each receipt picture can be obtained. Taking a display merchant brand identification area as an example, by triggering an editing button corresponding to the merchant brand identification area to enter an identification area editing page, please refer to fig. 4, fig. 4 is a fourth scene schematic diagram of the print ticket setting method provided by the application, in the identification area editing page, a shop logo picture can be uploaded in a picture display area, the size of the shop logo picture can be cut during uploading, the display shape of the shop logo picture can be set, for example, the shop logo picture can be set to be rectangular or square for displaying. In the same way, in the operation area of the exhibition manufacturer, the merchant can customize the uploaded picture, and can select a plurality of template patterns which are well fixed in the picture template market. The setting interface of the merchant custom uploading picture can be seen in fig. 5, and fig. 5 is a schematic diagram of a fifth scene of the print ticket setting method provided by the application. The merchant can edit the merchant operation area by selecting a mode of image-text combination, a mode of only pictures or a mode of only texts. After uploading a plurality of pictures in a print receipt template setting interface, the front end can send the plurality of receipt pictures to a picture storage end of a cloud end, the picture storage end or the front end can generate picture identification data corresponding to the plurality of receipt pictures, the picture identification data can be specifically hash values or other identification data capable of referring to the pictures, the picture identification data is written into the print receipt template, and therefore the print receipt template containing the picture identification data based on the display position information of the plurality of receipt pictures is generated and sent to a printing equipment server end of the cloud end. When a receipt needs to be printed according to the print receipt template, the printing equipment server obtains to-be-printed instance data from the front end, wherein the to-be-printed instance data comprises customer information, such as the name, address, contact information and the like of a customer. And the printing equipment server side obtains a plurality of receipt pictures from the picture storage side according to the picture identification data. And then the printing equipment service terminal generates a printing instruction set according to the plurality of receipt pictures, the to-be-printed instance data provided by the front end and the printing receipt template, and sends the printing instruction set to printing equipment arranged in a shop operated by the merchant, so that the printing equipment prints out the receipt displaying the plurality of receipt pictures according to the printing instruction set.
The above description of the overall scenario of the print ticket setting method provided by the embodiment of the present application is described below with reference to fig. 6 and 7, where a process of setting a print ticket template by a merchant and transmitting the print ticket template to a print device service end in a cloud end by a front end so that the print device service end instructs a print device set in a store operated by the merchant to print tickets displaying a plurality of ticket pictures based on the print ticket template. The front end 10-1 for setting the print ticket template performs step S701 of displaying a ticket picture editing area for setting ticket pictures by a merchant in a print ticket template setting interface, and then performs step S702 of obtaining a plurality of ticket pictures set by the merchant and display position information corresponding to each ticket picture through a plurality of the ticket picture editing areas. And then, executing step S703, namely sending the plurality of receipt pictures to a picture storage end 10-2 of the cloud, executing step S704, namely obtaining picture identification data corresponding to the plurality of receipt pictures, executing step S705, namely generating a printing receipt template containing the picture identification data based on the display position information, and executing step S706, namely sending the printing receipt template set by a merchant to a printing equipment server end 10-3 of the cloud. Step S707, the front end 10-1 of the print receipt template is set to send the instance data to be printed to the printing equipment server end 10-2. Then, step S708 is executed in which the printing device server 10-3 obtains a plurality of receipt pictures corresponding to the print receipt templates from the picture storage 10-2 of the cloud according to the picture identification data of the plurality of receipt pictures in the print receipt templates, then step S709 is executed in which the printing device server 10-3 generates a printing instruction set according to the plurality of receipt pictures, the to-be-printed instance data provided by the front end 10-1 and the print receipt templates when the receipt printing according to the print receipt templates is required, and then step S710 is executed in which the printing device server 10-3 transmits the printing instruction set to the printing device 10-4 provided in the store operated by the merchant. Finally, after the printing apparatus 10-4 obtains the print instruction set, step S711 is performed in which a receipt exhibiting a plurality of receipt pictures is printed out according to the print instruction set.
The above is an overall implementation process of the print ticket setting method provided by the embodiment of the application, the print ticket setting method can obtain a plurality of ticket pictures set by a merchant and display position information corresponding to each ticket picture through a ticket picture editing area in a print ticket template setting interface, then send the plurality of ticket pictures to a cloud end to obtain picture identification data corresponding to the plurality of ticket pictures, further generate a print ticket template containing picture identification data based on the display position information, and finally send the print ticket template to the cloud end, thereby enabling the cloud end to obtain the plurality of ticket pictures according to the picture identification data, and instruct printing equipment arranged in a shop operated by the merchant to print out tickets displaying the plurality of ticket pictures based on the print ticket template. According to the method, the printing receipt template can be set by a merchant, and the merchant can upload a plurality of pictures in the printing receipt through a plurality of receipt picture editing areas, so that the printing device can print out the printing receipt with the mixture of a plurality of pictures and characters, the problem that the printing device can only print the printing receipt with the characters is solved, and the printing efficiency of the printing receipt is further improved.
In another implementation scenario of the print ticket setting method provided by the embodiment of the application, a print color selection component for selecting the print color of the ticket by the merchant can be displayed in a print ticket template setting interface, the merchant can select the print color data of the ticket by the print color selection component, and the print ticket template comprising the print ticket print color data selected by the merchant is sent to a printing equipment server side of the cloud end, so that the printing equipment server side converts the color of the ticket data required to be printed in the ticket into the print color of the ticket selected by the merchant according to the print ticket print color data selected by the merchant, when the ticket is required to be printed according to the print ticket template set by the merchant, a print instruction set is generated according to the print ticket template and the to-be-printed example data provided by the front end, and the print instruction set is sent to printing equipment arranged in a store operated by the merchant, so that the printing equipment prints the ticket data color which is the ticket of the print color selected by the merchant according to the print instruction set. The printing receipt template in the method can be set by a merchant, and the merchant can select receipt printing color data through the printing color selection component, so that the printing equipment can print colorful printing receipt, the problem that the printing equipment can only print black-and-white printing receipt is solved, and the printing efficiency of the printing receipt is further improved.
The above-described fig. 1, fig. 2, fig. 3, fig. 4, fig. 5, fig. 6, and fig. 7 are illustrations of an application scenario of the print ticket setting method according to the present application, and the application scenario of the print ticket setting method according to the present application is not specifically limited in the embodiments of the present application, and is merely one embodiment of the application scenario of the print ticket setting method according to the present application, which is provided for facilitating understanding of the print ticket setting method according to the present application, and is not used for limiting the print ticket setting method according to the present application. The embodiment of the application does not need to be repeated for other application scenes of the print ticket setting method.
First embodiment
The present embodiment provides a print ticket setting method, which is described below with reference to fig. 8. The applicable scenario of the print ticket setting method can be referred to the above-described scenario embodiment, and for some examples of this embodiment, reference is made to the above-described scenario embodiment.
Fig. 8 is a flowchart of a print ticket setting method according to a first embodiment of the present application.
The print receipt setting method is applied to setting the front end of a print receipt template and comprises the following steps.
Step S801, a receipt picture editing area for setting the receipt picture by the merchant is displayed in a printing receipt template setting interface.
The method comprises the step of displaying a receipt picture editing area for setting the receipt picture by a merchant in a print receipt template setting interface. In this embodiment, taking an order receipt printed by a merchant in the catering industry as an example, the merchant can perform custom setting on the order receipt to be printed by setting the front end of the print receipt template, for example, the merchant can upload a plurality of pictures through a receipt picture editing area for the merchant to set the receipt picture displayed in the print receipt template setting interface, and can also input characters in a text editing area in the print receipt template, and adjust the character size of the characters according to the requirement. In the implementation, the method for displaying the small ticket picture editing area for the business to set the small ticket picture in the small ticket template setting interface comprises the step of displaying a plurality of small ticket picture uploading inlet components for the business to upload a plurality of small ticket pictures in the small ticket template setting interface. With continued reference to fig. 3, the displaying the plurality of ticket picture uploading entry components for uploading the plurality of ticket pictures by the merchant in the print ticket template setting interface includes displaying the merchant logo picture uploading entry component for uploading the merchant logo picture by the merchant in the merchant logo setting area and displaying the merchant operation picture uploading entry component for uploading the merchant operation picture by the merchant in the merchant operation area setting area.
It should be noted that, each ticket image uploading entry component may support uploading one image, for example, please continue to join fig. 4, and for the logo image uploading entry component in the logo setting interface of the merchant (the image display area in fig. 4 is also the image uploading entry component), only one logo image of the merchant may be supported. With continued reference to fig. 5, in the display merchant operations area, the merchant may upload the picture through the merchant operations picture upload entry component (at the upload picture in fig. 5). Because the print ticket template setting interface comprises a plurality of ticket picture editing areas, merchants can set a plurality of ticket pictures in the ticket through a plurality of picture uploading entry components in the plurality of ticket picture editing areas for displaying. In the implementation, before a receipt picture editing area for setting a receipt picture by a merchant is displayed in a print receipt template setting interface, the print receipt template setting interface is firstly displayed at the front end, specifically, the front end displays a merchant center service list in response to detection of triggering operation of a small program or a merchant center in a public number, and displays the print receipt template setting interface in response to detection of triggering operation of intelligent hardware in the merchant center service list.
Step S802, obtaining a plurality of receipt pictures set by the commercial tenant and display position information corresponding to each receipt picture through a plurality of receipt picture editing areas.
The step is used for obtaining a plurality of receipt pictures set by the commercial tenant and display position information corresponding to each receipt picture through a plurality of receipt picture editing areas. In the print receipt template setting interface at the front end, the merchant can set a plurality of receipt pictures in the receipt through a plurality of picture uploading entry components in a plurality of receipt picture editing areas for display. Since the ticket pictures are displayed in the ticket picture editing areas, after the positions of the ticket picture editing areas are determined, the display positions of the ticket pictures in the corresponding ticket picture editing areas are also determined. In the implementation, the display position information corresponding to each receipt picture is obtained by responding to the detection of the triggering operation of the receipt display position in the setting page, displaying the receipt picture editing area for editing the display position, wherein one display position comprises at least one receipt picture, and responding to the detection of the picture editing operation of the editing area of the receipt picture, obtaining the receipt display position information where the picture editing operation is located, and the display position information comprises the display position and the editing area position. In the setting page, after the front end responds to the detection of the triggering operation on the receipt display position, the front end enters another page, and a receipt image editing area for editing the display position is displayed in the page. And, a presentation location may include one ticket picture or a plurality of ticket pictures. And after the front end responds to the detection of the picture editing operation of the editing area of the receipt picture, obtaining receipt display position information where the picture editing operation is located, wherein the display position information not only comprises the display position of the receipt picture, but also comprises the editing area position for specifically editing the receipt picture, and the editing page (such as an interface shown in fig. 4 or 5) can be accessed by triggering an editing button on the editing area position. With continued reference to fig. 2, after the merchant activates the "module ordering" button in the setup page, the merchant enters a plurality of ticket picture editing areas (i.e., the interfaces corresponding to fig. 3), which may be used to set the location of each area (module) in the ticket picture editing areas on the ticket. After the display position of the module in the receipt is determined, the receipt picture is arranged in the module, so that the display position information corresponding to each receipt picture can be obtained according to the display position information of the module in the receipt.
In the embodiment of the application, the merchant selects a plurality of required pictures to upload by triggering the picture uploading entry component, and the mode of uploading pictures by the merchant is two, wherein one mode is the customized uploading mode, the merchant can freely upload pictures meeting the requirements, and the pictures can be pictures which are custom shot by a user and are used for identifying the characteristics of the merchant, for example, pictures used for identifying sales promotion information of the merchant. The other is that the merchant can select a fixed picture template from a picture template library and then edit the picture template. Therefore, the picture can also be a picture generated by using a picture template, for example, the picture template can be a good invitation, a collection store, a business telephone, a member day and the like, and when the business selects the picture through the picture template, the picture and the text can be edited on the picture template so as to better meet the use requirement of the business.
And step 803, transmitting the plurality of receipt pictures to a cloud.
The method comprises the steps that the front end is used for sending a plurality of receipt pictures uploaded by a merchant to the cloud end. In specific implementation, the cloud comprises a printing equipment server side and a picture storage side. And the plurality of receipt pictures are sent to the cloud end, specifically, the plurality of receipt pictures are sent to the picture storage end.
Step S804, obtaining picture identification data corresponding to the plurality of receipt pictures.
The method comprises the steps that after a plurality of receipt pictures uploaded by a merchant are sent to a picture storage end by the front end, picture identification data corresponding to the receipt pictures are obtained. The image identification data may be generated after the front end obtains the plurality of coupon images uploaded by the merchant, when the front end sends the plurality of coupon images to the cloud, the front end sends the plurality of coupon images to the cloud together with the image identification data, or may be generated when the image storage end obtains the plurality of coupon images uploaded by the merchant, and then generates image identification data corresponding to the plurality of coupon images according to the plurality of coupon images. The picture identification data may be a hash value, an index, or other data of a picture, which may be any data that may refer to a plurality of ticket pictures set by a merchant. In the embodiment of the application, the generation of the picture identification data at the picture storage end is taken as an example for description. The method comprises the steps of obtaining hash values corresponding to a plurality of receipt pictures returned by a picture storage end, wherein the hash values corresponding to the plurality of receipt pictures are used for identifying the plurality of receipt pictures in the picture storage end.
Step S805, generating a print ticket template containing picture identification data based on the display position information.
The method comprises the steps of generating a print ticket template, wherein the print ticket template comprises display position information of a plurality of ticket pictures and picture identification data. Because the picture identification data includes a hash value, the generating a print ticket template containing picture identification data based on the presentation location information includes generating a print ticket template containing a hash value based on the presentation location information.
Step S806, the print receipt template is sent to the cloud end, so that the cloud end obtains the plurality of receipt pictures according to the picture identification data, and the print receipt showing the plurality of receipt pictures is printed out based on the print receipt template indicating printing equipment arranged in a store operated by the merchant.
The method comprises the steps that the front end is used for sending the print receipt template to the cloud end, so that the cloud end indicates printing equipment arranged in a shop operated by a merchant to print the receipt displaying the plurality of receipt pictures based on the print receipt template. In the implementation, the print receipt template is sent to the cloud, specifically, the print receipt template is sent to the printing equipment server. When the cloud side obtains the plurality of receipt pictures according to the picture identification data, the cloud side obtains the plurality of receipt pictures from the picture storage end according to hash values of the plurality of receipt pictures in a printing receipt template set by the commercial tenant. The method comprises the steps of sending a picture acquisition request message for requesting to acquire the plurality of receipt pictures corresponding to the plurality of receipt pictures to the picture storage end according to hash values of the plurality of receipt pictures in the printing receipt template set by a merchant, and acquiring the plurality of receipt pictures returned by the picture storage end.
After the printing equipment server side of the cloud obtains a plurality of receipt pictures according to the picture identification data, the printing equipment arranged in a shop operated by a merchant is indicated to print out the receipt showing the plurality of receipt pictures based on the printing receipt template. Specifically, when a receipt is required to be printed according to a print receipt template set by the merchant, a print instruction set is generated according to the plurality of receipt pictures, the to-be-printed instance data provided by the front end and the print receipt template, and the print instruction set is sent to printing equipment arranged in a store operated by the merchant, so that the printing equipment prints the receipt displaying the plurality of receipt pictures according to the print instruction set. When the method is implemented, after the front end detects confirmation operation of uploading pictures of a commercial tenant, the pictures uploaded by the commercial tenant are sent to a picture storage end of a cloud end for storage, a print receipt template set by the commercial tenant is sent to a printing equipment server end of the cloud end for storage, so that the printing equipment server end obtains a plurality of receipt pictures from the picture storage end according to picture identification data of a plurality of receipt pictures in the print receipt template set by the commercial tenant, and when a receipt needs to be printed according to the print receipt template set by the commercial tenant, a printing instruction set is generated according to the plurality of receipt pictures, to-be-printed instance data provided by the front end and the print receipt template. Of course, the front end may also detect the confirmation operation of uploading the picture by the merchant after the front end responds to the confirmation operation of the print ticket set by the merchant. When the method is implemented, the front end also needs to obtain the data of the instance to be printed, and when the data of the instance to be printed is obtained, the order data sent by the order service end is obtained, and then the data of the instance to be printed is obtained according to the order data. In practical application, the to-be-printed instance data provided by the front end can be obtained from order data sent by the order service end, and the to-be-printed instance data can be specifically a receiver name, a receiver contact way, a receiver address, specific food content and the like. The printing receipt template can be fixedly provided with common fields such as a merchant address field, a next date field, a word size field and the like. It should be noted that, before the printing device server generates the printing instruction set, the front end also sends a printing instruction to the printing device server, where the printing instruction includes the data of the instance to be printed. When the printing equipment server generates a printing instruction set according to the plurality of receipt pictures, the instance data to be printed provided by the front end and the printing receipt templates, the printing equipment server responds to the printing instruction to generate the printing instruction set according to the plurality of receipt pictures, the instance data to be printed provided by the front end and the printing receipt templates. The printing equipment server sends the printing instruction set to the printing equipment, so that the printing equipment prints the tickets which are displayed with a plurality of ticket pictures, the information of the consignee, the content of the meal and the like according to the printing instruction set.
As an embodiment, at the picture storage end of the cloud, the identification data of the picture may be a hash value of the picture, and the front end may write hash values corresponding to a plurality of ticket pictures in a print ticket template set by a merchant as picture identification data of the plurality of ticket pictures. When the method is implemented, after the front end sends the plurality of receipt pictures to the picture storage end of the cloud end, the front end can obtain hash values corresponding to the plurality of receipt pictures returned by the picture storage end, the hash values corresponding to the plurality of receipt pictures are used for identifying the plurality of receipt pictures in the picture storage end, and the front end can write the hash values corresponding to the plurality of receipt pictures in a printing receipt template set by a merchant to serve as picture identification data of the plurality of receipt pictures. When the front end obtains a plurality of receipt pictures from the picture storage end according to the picture identification data of the plurality of receipt pictures in the printing receipt template set by the merchant, the front end specifically obtains hash values corresponding to the plurality of receipt pictures from the printing receipt template set by the merchant, and sends a picture obtaining request message for requesting to obtain the plurality of receipt pictures to the picture storage end, wherein the picture obtaining request message comprises the hash values corresponding to the plurality of receipt pictures, so that the plurality of receipt pictures returned by the picture storage end are obtained.
As an embodiment, at the picture storage end of the cloud, the identification data of the picture may be a hash value of the picture, and the front end may further set a picture index for identifying a plurality of ticket pictures in a print ticket template set by a merchant, as picture identification data of the plurality of ticket pictures. In the implementation, after the front end sends the plurality of receipt pictures to the picture storage end of the cloud end, the front end obtains hash values corresponding to the plurality of receipt pictures returned by the picture storage end, and the hash values corresponding to the plurality of receipt pictures are used for identifying the plurality of receipt pictures in the picture storage end. The front end sets picture indexes for marking a plurality of receipt pictures in a printing receipt template set by a merchant as picture marking data of the plurality of receipt pictures, establishes a corresponding relation between the picture indexes and hash values corresponding to the plurality of receipt pictures, and sends the corresponding relation between the picture indexes and the hash values corresponding to the plurality of receipt pictures to a printing equipment server. When the front end obtains a plurality of receipt pictures from the picture storage end according to picture identification data of the plurality of receipt pictures in the printing receipt templates set by the commercial tenant, the front end specifically obtains picture indexes from the printing receipt templates set by the commercial tenant, and obtains hash values corresponding to the plurality of receipt pictures according to the corresponding relation between the picture indexes and the hash values corresponding to the plurality of receipt pictures. Then, the front end sends a picture acquisition request message to the picture storage end, wherein the picture acquisition request message comprises hash values corresponding to the plurality of ticket pictures, so that the plurality of ticket pictures returned by the picture storage end are obtained.
As an embodiment, at the picture storage end of the cloud, the identification data of the picture may be a hash value of the picture, and the front end may write hash values corresponding to a plurality of ticket pictures in a print ticket template set by a merchant as picture identification data of the plurality of ticket pictures. In practical application, the picture index for identifying a plurality of receipt pictures can be set at the printing device server. In specific implementation, after the front end sends the plurality of receipt pictures to the picture storage end of the cloud end, the front end obtains hash values corresponding to the plurality of receipt pictures returned by the picture storage end, and the hash values corresponding to the plurality of receipt pictures are used for identifying the plurality of receipt pictures in the picture storage end. The front end writes hash values corresponding to a plurality of receipt pictures into a printing receipt template set by a merchant, and the hash values are used as picture identification data of the plurality of receipt pictures. The printing equipment server side is further provided with picture indexes for identifying the plurality of receipt pictures, and meanwhile, the printing equipment server side establishes a corresponding relation between the picture indexes and hash values corresponding to the plurality of receipt pictures and replaces the hash values corresponding to the plurality of receipt pictures in the printing receipt templates set by merchants with the picture indexes. When the front end obtains a plurality of receipt pictures from the picture storage end according to picture identification data of the plurality of receipt pictures in the printing receipt templates set by the commercial tenant, the front end specifically obtains picture indexes from the printing receipt templates set by the commercial tenant, obtains hash values corresponding to the plurality of receipt pictures according to the corresponding relation between the picture indexes and the hash values corresponding to the plurality of receipt pictures, and sends a picture obtaining request message for requesting to obtain the plurality of receipt pictures to the picture storage end, wherein the picture obtaining request message comprises the hash values corresponding to the plurality of receipt pictures, so that the plurality of receipt pictures returned by the picture storage end are obtained.
In the embodiment of the application, the front end also obtains the link addresses of the plurality of receipt pictures returned by the picture storage end according to the picture obtaining request message, and the obtaining of the plurality of receipt pictures returned by the picture storage end comprises downloading the plurality of receipt pictures from the picture storage end according to the link addresses of the plurality of receipt pictures. After the front end sends the image obtaining request message for requesting to obtain the plurality of receipt images to the image storage end, the front end may obtain the link addresses of the plurality of receipt images returned by the image storage end according to the image obtaining request message, and when obtaining the plurality of receipt images returned by the image storage end, the plurality of receipt images are downloaded from the image storage end according to the link addresses of the plurality of receipt images, where the link addresses of the plurality of receipt images may be uniform resource locators URL (Uniform ResourceLocator) of the images.
In the implementation, if the receipt picture is a two-dimensional code picture containing a two-dimensional code, the two-dimensional code in the two-dimensional code picture is identified, character string information corresponding to the two-dimensional code is obtained, the character string information is sent to the cloud end, and the two-dimensional code picture is generated based on the character string information when the two-dimensional code picture is required to be obtained. It should be noted that, the source of the two-dimensional code picture may be either the original uploaded picture or the cut picture. After the character string information is sent to the cloud, the character string information can be used for generating the two-dimensional code picture based on the character string information when the printing equipment server side of the cloud needs to obtain the two-dimensional code picture or when the printing equipment needs to obtain the two-dimensional code picture.
In practical application, the front end also needs to detect whether the color types of the plurality of coupon pictures uploaded by the commercial tenant are consistent with the color types of the coupon printing selected by the commercial tenant, if not, the colors of the plurality of coupon pictures uploaded by the color conversion commercial tenant are printed according to the coupon selected by the commercial tenant, a plurality of coupon pictures after color conversion are obtained, and the plurality of coupon pictures after color conversion are displayed at the front end for the commercial tenant to check. The front end specifically sends the plurality of color-converted receipt pictures to the picture storage end when sending the plurality of receipt pictures to the picture storage end. For example, the color types of the pictures uploaded by the commercial tenant include black, white, red and orange, and the color types of the tickets selected by the commercial tenant are black, white and orange, and at this time, the front end converts the colors of the pictures uploaded by the commercial tenant into black, white and orange according to the color types of the tickets selected by the commercial tenant. For another example, the picture uploaded by the business is pure black, and the color of the ticket set by the business is orange, then the ticket is finally changed into orange. Note that the coupon print color category selected by the merchant is the color category supported by the printing apparatus.
In this embodiment, the front end also adjusts the color and size of the picture, specifically, processes the color of the plurality of coupon pictures uploaded by the merchant based on a picture color processing policy to obtain a plurality of coupon pictures after color processing meeting the preset color requirement, and adjusts the size of the plurality of coupon pictures uploaded by the merchant based on a picture size processing policy to obtain a plurality of coupon pictures after size adjustment, the size of which is within the preset picture size range. When the cloud printer is used for printing the order form, the memory occupied by the instruction set corresponding to the order form content generally does not exceed the memory capacity of the memory of the cloud printer, and when the instruction set corresponding to the order form content exceeds the memory capacity of the memory of the cloud printer, the cloud printer can be blocked or halted, so that the order form is printed and fails. Therefore, in order to avoid the excessive capacity of the generated instruction set, on the one hand, color conversion needs to be performed on the picture, on the other hand, the size of the single picture must not exceed 12K, in general, the memory occupied by the whole order form after the content of the order form is converted into the printing instruction set must not exceed 60K, of course, the memory requirements of the printing instruction set are different for different printing devices, and may also be that the memory occupied by the printing instruction set must not exceed 140K, or other data, and when implementing, the printing content of the order form is adjusted according to the specific memory requirements of the printing device so that the printing instruction set corresponding to the order form accords with the printing requirements of the printing device. Also, the size of the picture needs to be adjusted, and the size requirement of the picture is that the square picture after cutting is 1:1, and the aspect ratio of the rectangular picture after cutting is 1.6:1.
The above is the overall flow of the print ticket setting method provided by the embodiment of the application, the print ticket setting method can obtain a plurality of ticket pictures set by a merchant and display position information corresponding to each ticket picture through a ticket picture editing area in a print ticket template setting interface, then send the plurality of ticket pictures to a cloud to obtain picture identification data corresponding to the plurality of ticket pictures, further generate a print ticket template containing picture identification data based on the display position information, and finally send the print ticket template to the cloud to enable the cloud to obtain the plurality of ticket pictures according to the picture identification data, and instruct printing equipment arranged in a shop operated by the merchant to print out tickets displaying the plurality of ticket pictures based on the print ticket template. According to the method, the printing receipt template can be set by a merchant, and the merchant can upload a plurality of pictures in the printing receipt through a plurality of receipt picture editing areas, so that the printing device can print out the printing receipt with the mixture of a plurality of pictures and characters, the problem that the printing device can only print the printing receipt with the characters is solved, and the printing efficiency of the printing receipt is further improved.
Second embodiment
Corresponding to the first embodiment, a second embodiment of the present application provides a receipt printing method, which is applied to a printing device server of a cloud. The same parts of the second embodiment as those of the first embodiment will not be described, and reference is made specifically to the relevant parts of the first embodiment.
Fig. 9 is a flowchart of a ticket printing method according to a second embodiment of the present application.
The receipt printing method is applied to a printing equipment server side of a cloud and comprises the following steps of. Step S901, obtaining a print ticket template set by a merchant, wherein the print ticket template comprises picture identification data corresponding to a plurality of ticket pictures and display position information corresponding to each ticket picture. Step S902, obtaining a plurality of receipt pictures corresponding to the print receipt template from a picture storage end of a cloud according to picture identification data of the plurality of receipt pictures in the print receipt template, wherein the plurality of receipt pictures are provided for the picture storage end by setting the front end of the print receipt template. And step 903, when the tickets need to be printed according to the print ticket templates, indicating printing equipment arranged in a shop operated by the merchant to print out the tickets with the plurality of ticket pictures according to the print ticket templates.
In the specific implementation, the method for printing the tickets with the plurality of ticket pictures according to the printing ticket template indicates the printing equipment arranged in the store operated by the merchant to print the tickets with the plurality of ticket pictures, and comprises the steps of generating a printing instruction set according to the plurality of ticket pictures, the to-be-printed example data provided by the front end and the printing ticket template, and sending the printing instruction set to the printing equipment arranged in the store operated by the merchant, so that the printing equipment prints the tickets with the plurality of ticket pictures according to the printing instruction set. It should be noted that, when the print device server receives the print job sent by the front end, the print template is determined according to the merchant identification information of the merchant to which the front end belongs. The method comprises the steps of responding to a receipt printing instruction sent by the front end, obtaining merchant identification information of a merchant to which the front end belongs, and obtaining a printed receipt template and a plurality of receipt pictures corresponding to the merchant identification information based on the merchant identification information.
In this embodiment, the printing device may specifically be a cloud printer, and the printing device server may specifically be a server corresponding to the cloud printer, where after obtaining the print ticket templates set by the merchant, the plurality of ticket pictures, and the to-be-printed instance data provided by the front end, the printing device server needs to convert the to-be-printed order ticket data into an instruction set identifiable by the cloud printer, and then send the instruction set to the cloud printer. After the cloud printer receives the instruction set sent by the server, the cloud printer can buffer the instruction set and identify the printing characters in the instruction set, so that the data to be printed are printed. The instruction set may specifically be an ESC instruction set, which is a simplified version of the ESC print control command, and most order ticket prints now employ the ESC instruction set. A significant feature of the ESC instruction set is that a significant portion of the instructions are a series of codes starting with the ESC control symbol. Thus, after obtaining the order ticket to be printed, the order ticket data needs to be converted into a corresponding instruction set. A correspondence exists between the order ticket data and the corresponding instruction set, and based on the correspondence, a print instruction set corresponding to the order ticket data may be generated.
In particular, the printing device server may generate the print instruction set in a plurality of ways and issue the print instruction set to the printing device. The first way is that the printing device service side generates a print instruction set based on the actual service scene and issues the print instruction set to the printing device. As an embodiment, after the printing device obtains the plurality of receipt pictures sent by the printing device server, the printing device converts the plurality of receipt pictures into the printing device picture index. Specifically, after obtaining a plurality of receipt pictures corresponding to a print receipt template from a picture storage end, a printing equipment server sends the plurality of receipt pictures to a printing equipment. After the printing equipment obtains the plurality of receipt pictures, the plurality of receipt pictures are stored, the plurality of receipt picture mark indexes are used as the printing equipment picture indexes, and the printing equipment picture indexes are sent to the printing equipment server side, and the printing equipment server side obtains the picture indexes sent by the printing equipment and used for identifying the plurality of receipt pictures in the printing equipment. When the printing equipment server generates a printing instruction set according to a plurality of receipt pictures, the instance data to be printed provided by the front end and the printing receipt template, the printing equipment server generates the printing instruction set according to the printing equipment picture index, the instance data to be printed provided by the front end and the printing receipt template. When the printing equipment prints according to the printing instruction set, the printing instruction set is analyzed first, and the picture index of the printing equipment is replaced by the picture which is originally stored by the printing equipment and corresponds to the picture index of the printing equipment. As one embodiment, after the printing device server obtains the plurality of receipt pictures, the printing device server converts the plurality of receipt pictures into the printing device picture index and then issues the printing device picture index. Specifically, after the printing equipment server obtains a plurality of receipt pictures corresponding to the printing receipt template from the picture storage end, a picture index for identifying the plurality of receipt pictures in the printing equipment is set at the printing equipment server and used as the printing equipment picture index, and the plurality of receipt pictures and the printing equipment picture index are sent to the printing equipment. When the printing equipment server generates a printing instruction set according to a plurality of receipt pictures, the instance data to be printed provided by the front end and the printing receipt template, the printing equipment server generates the printing instruction set according to the printing equipment picture index, the instance data to be printed provided by the front end and the printing receipt template. When the printing equipment prints according to the printing instruction set, the printing instruction set is analyzed first, a picture corresponding to the picture index of the printing equipment is obtained from the service end of the printing equipment, and the picture index of the printing equipment is replaced by the picture.
The second way is that the printing device server issues a plurality of ticket cache pictures to the printing device. The reason why the pictures are cached in the printing equipment is that when the pictures and the characters exist in the order form to be printed, the printing instruction set corresponding to the pictures is too large, so that the printing equipment is easy to print failure or too slow, and therefore the printing equipment server side firstly sends the pictures to the printing equipment for storage and index marking. As an embodiment, the printing device sets a picture printing instruction set index, specifically, after the printing device server obtains at least one plurality of receipt pictures corresponding to the printing receipt template from the picture storage end, the printing device generates a picture printing instruction set according to the plurality of receipt pictures, and sends the picture printing instruction set to the printing device. After the printing equipment obtains the picture printing instruction set, the picture printing instruction set is marked with an index, used as the picture printing instruction set index and sent to the printing equipment server. The printing equipment server obtains a picture printing instruction set index which is sent by the printing equipment and is set for a picture printing instruction set, and when a printing instruction set is generated according to a plurality of receipt pictures, the to-be-printed instance data provided by the front end and the printing receipt template, a document printing instruction set is specifically generated according to the to-be-printed instance data provided by the front end and the printing receipt template, and a corresponding relation between the picture printing instruction set index and the document printing instruction set is established. When the printing instruction set is sent to the printing equipment arranged in a shop operated by a merchant, the text printing instruction set is sent to the printing equipment, and the corresponding relation between the picture printing instruction set index and the text printing instruction set is sent to the printing equipment. As an embodiment, the print device server sets a picture print instruction set index, specifically, after the print device server obtains a plurality of receipt pictures corresponding to the print receipt template from the picture storage end, the print device server generates a picture print instruction set according to the plurality of receipt pictures. In this embodiment, the printing apparatus server sets a picture print instruction set index for a picture print instruction set, and sends the picture print instruction set and the picture print instruction set index to the printing apparatus. When a printing instruction set is generated according to a plurality of receipt pictures, the to-be-printed instance data provided by the front end and the printing receipt template, a document printing instruction set is generated according to the to-be-printed instance data provided by the front end and the printing receipt template, and a corresponding relation between a picture printing instruction set index and the document printing instruction set is established. When the printing instruction set is sent to the printing equipment arranged in a shop operated by a merchant, the text printing instruction set is sent to the printing equipment, and the corresponding relation between the picture printing instruction set index and the text printing instruction set is sent to the printing equipment.
In the second mode of generating the print instruction set, after the print apparatus obtains the index of the print instruction set of the picture, it can be known which print instruction set of the picture corresponds to the print instruction set sent by the server side of the print apparatus, so that the print apparatus prints the receipt according to the print instruction set of the picture and the print instruction set.
The third way is to issue a print instruction set in real-time code when the front-end previews the print ticket. When the method is implemented, if a preview printing instruction sent by the front end is received, a printing equipment server generates a picture printing instruction set according to a plurality of receipt pictures, generates a receipt document printing instruction set according to a printing receipt template, obtains the printing instruction set according to the picture printing instruction set and the receipt document printing instruction set, sends the printing instruction set to printing equipment, and prints the receipt according to the printing instruction set by the printing equipment. It should be noted that, when the print device server generates the print instruction set, the method is specifically implemented by calling Napos Sdk.
Third embodiment
Corresponding to the first and second embodiments, a third embodiment of the present application provides a receipt printing method applied to a printing apparatus provided in a store operated by a merchant. The same parts of the third embodiment as those of the first and second embodiments will not be described, and reference is made to the relevant parts of the first and second embodiments.
Fig. 10 is a flowchart of a ticket printing method according to a third embodiment of the present application.
The receipt printing method of the embodiment of the application is applied to printing equipment arranged in a store operated by a merchant and comprises the following steps. Step S1001, a printing instruction set sent by a printing equipment server of a cloud is obtained, the printing instruction set is generated according to a plurality of receipt pictures, to-be-printed instance data provided by a front end and a printing receipt template, the printing receipt template comprises picture identification data corresponding to the plurality of receipt pictures and display position information corresponding to each receipt picture, the printing receipt template is set by a merchant through the front end and is sent to the printing equipment server by the front end, the plurality of receipt pictures are obtained by the merchant through a plurality of receipt picture editing areas in a printing receipt template setting interface displayed by the front end, the plurality of receipt pictures are sent to a picture storage end of the cloud by the front end, and the printing equipment server obtains from the picture storage end according to the picture identification data of the plurality of receipt pictures in the printing receipt template set by the merchant. And step S1002, printing the tickets with the plurality of ticket pictures according to the printing instruction set.
Optionally, the method further comprises the steps of obtaining a plurality of receipt pictures corresponding to the printing receipt templates, which are sent by the printing equipment server, setting picture indexes for identifying the plurality of receipt pictures to the plurality of receipt pictures as printing equipment picture indexes, and sending the printing equipment picture indexes to the printing equipment server.
The method comprises the steps of obtaining a picture printing instruction set sent by a printing equipment server, wherein the picture printing instruction set is generated according to a plurality of receipt pictures corresponding to a printing receipt template, setting a picture printing instruction set index for the picture printing instruction set, searching and sending the picture printing instruction set index to the printing equipment server, obtaining a corresponding relation between the picture printing instruction set index and a text printing instruction set, wherein the text printing instruction set is generated according to example data to be printed and the printing receipt template provided by the front end, obtaining a text printing instruction set sent by the printing equipment server according to the corresponding relation between the picture printing instruction set index and the text printing instruction set, and printing the receipt with the plurality of receipt pictures according to the printing instruction set, wherein the receipt with the plurality of receipt pictures is displayed according to the picture printing instruction set and the text printing instruction set.
The method comprises the steps of obtaining a picture printing instruction set and a picture printing instruction set index which are sent by a printing equipment server, wherein the picture printing instruction set is generated according to a plurality of receipt pictures corresponding to a printing receipt template, obtaining a corresponding relation between the picture printing instruction set index and a document printing instruction set which are sent by the printing equipment server, wherein the document printing instruction set is generated according to example data to be printed and the printing receipt template provided by the front end, obtaining the document printing instruction set according to the corresponding relation between the picture printing instruction set index and the document printing instruction set sent by the printing equipment server, and printing the receipt with the plurality of receipt pictures according to the printing instruction set, wherein the receipt with the plurality of receipt pictures is displayed according to the picture printing instruction set and the document printing instruction set.
The method comprises the steps of obtaining a picture printing instruction set and a receipt document printing instruction set which are sent by a printing equipment server, wherein the picture printing instruction set is generated according to a plurality of receipt pictures, the receipt document printing instruction set is generated according to a printing receipt template, and printing a receipt displaying the plurality of receipt pictures according to the printing instruction set, and the method comprises the steps of printing the receipt displaying the plurality of receipt pictures according to the picture printing instruction set and the receipt document printing instruction set.
Fourth embodiment
In correspondence with the first embodiment, a fourth embodiment of the present application provides a print ticket setting method applied to setting a front end of a print ticket template. The same parts of the fourth embodiment as those of the first embodiment will not be described, and reference is made specifically to the relevant parts of the first embodiment.
Referring to fig. 11, a flowchart of a print ticket setting method according to a fourth embodiment of the present application is shown.
The print receipt setting method is applied to setting the front end of a print receipt template and comprises the following steps. Step 1101, a print color selection component for the merchant to select the print color of the receipt is presented in the print receipt template setting interface. Step S1102, obtaining, by the print color selection component, print color data of the ticket selected by the merchant. And step 1103, transmitting the print ticket template set by the merchant to a printing equipment server side of a cloud, wherein the print ticket template comprises the ticket print color data selected by the merchant, so that the printing equipment server side converts the color of the ticket data required to be printed in the ticket into the ticket print color selected by the merchant according to the ticket print color data selected by the merchant, when the ticket is required to be printed according to the print ticket template set by the merchant, generating a print instruction set according to the print ticket template and the to-be-printed example data provided by the front end, and transmitting the print instruction set to printing equipment arranged in a shop operated by the merchant, so that the printing equipment prints the ticket with the ticket data color selected by the merchant according to the print instruction set.
Optionally, the coupon printing color selected by the merchant in the printing color selection component is a coupon printing color supported by the printing device.
The printing device comprises a printing device, a printing instruction set and a printing template set, wherein the printing instruction set comprises a plurality of receipt pictures uploaded by a commercial tenant, a plurality of receipt pictures uploaded by the commercial tenant are obtained, the plurality of receipt pictures uploaded by the commercial tenant are detected to be consistent with the color types corresponding to the receipt printing color data selected by the commercial tenant, if not, the colors of the plurality of receipt pictures uploaded by the commercial tenant are converted according to the color types corresponding to the receipt printing color data selected by the commercial tenant, the plurality of receipt pictures after the color conversion are obtained, the plurality of receipt pictures after the color conversion are displayed, the confirmation operation of the commercial tenant on the plurality of receipt pictures after the color conversion is responded, the plurality of receipt pictures after the color conversion are used as pictures in a receipt printed by the printing device and are sent to a cloud picture storage end, and the printing instruction set comprises the receipt pictures after the color conversion, the print instruction set is generated according to the receipt data provided by the printing device and the print template set. It should be noted that, after the front end obtains the plurality of ticket pictures uploaded by the commercial tenant, it needs to determine whether the color of the picture is the color category corresponding to the ticket printing color data selected by the commercial tenant, if yes, the picture can be directly sent to the picture storage end of the cloud end, if not, the picture color needs to be converted according to the color category corresponding to the ticket printing color data selected by the commercial tenant.
The embodiment of the application provides a print ticket setting method, which can select ticket printing color data through a printing color selection component in a print ticket template setting interface, and send a print ticket template comprising ticket printing color data selected by a merchant to a printing equipment server side of a cloud end, so that the printing equipment server side converts the color of ticket data needing to be printed in a ticket into the ticket printing color selected by the merchant according to the ticket printing color data selected by the merchant, when the ticket is required to be printed according to the print ticket template set by the merchant, a print instruction set is generated according to the print ticket template and the to-be-printed example data provided by the front end, and the print instruction set is sent to printing equipment arranged in a store operated by the merchant, so that the printing equipment prints the ticket data color into the ticket with the ticket printing color selected by the merchant according to the print instruction set. The printing receipt template in the method can be set by a merchant, and the merchant can select receipt printing color data through the printing color selection component, so that the printing equipment can print colorful printing receipt, the problem that the printing equipment can only print black-and-white printing receipt is solved, and the printing efficiency of the printing receipt is further improved.
Fifth embodiment
Corresponding to the fourth embodiment, a fifth embodiment of the present application provides a receipt printing method, which is applied to a cloud printing device server. The same parts of the fifth embodiment as those of the fourth embodiment will not be described, and reference is made specifically to the relevant parts of the fourth embodiment.
Fig. 12 is a flowchart of a ticket printing method according to a fifth embodiment of the present application.
The receipt printing method is applied to a printing equipment server side of a cloud and comprises the following steps of. Step S1201, a print ticket template set by a merchant is obtained, wherein the print ticket template comprises ticket print color data selected by the merchant, and step S1202, when a ticket is required to be printed according to the print ticket template, a print instruction set is generated according to the print ticket template and the to-be-printed example data provided by the front end, and the print instruction set is sent to printing equipment arranged in a shop operated by the merchant, so that the printing equipment prints a ticket with the ticket data color which is the ticket print color selected by the merchant according to the print instruction set.
Optionally, the color indicated by the coupon printing color data selected by the merchant is a coupon printing color supported by the printing device.
The method comprises the steps of obtaining a plurality of receipt pictures from a picture storage end of a cloud, obtaining the plurality of receipt pictures stored by the picture storage end according to the plurality of receipt pictures uploaded by a business at the front end, detecting whether color types of the plurality of receipt pictures stored by the picture storage end are consistent with color types corresponding to receipt printing color data selected by the business, if not, converting the colors of the plurality of receipt pictures stored by the picture storage end according to the color types corresponding to the receipt printing color data selected by the business, obtaining the plurality of receipt pictures with converted colors, and taking the plurality of receipt pictures as pictures displayed in the receipt printed by the printing equipment, and generating a printing instruction set according to the printing receipt templates and to-be-printed instance data provided by the front end. It should be noted that, the plurality of ticket pictures stored in the picture storage end may be original pictures uploaded by the merchant, or may be pictures processed by the size adjustment policy, or may be pictures after color conversion. In specific implementation, after the print server obtains a plurality of receipt pictures from the picture storage, it needs to determine whether the color of the lower picture is the color supported by the printing color selected by the merchant, if yes, the print server does not need to convert the color of the plurality of receipt pictures obtained from the picture storage, and if not, the print server needs to convert the color of the plurality of receipt pictures obtained from the picture storage.
Sixth embodiment
The sixth embodiment of the present application provides a receipt printing method applied to a printing apparatus provided in a store operated by a merchant, corresponding to the fourth and fifth embodiments. The parts of the sixth embodiment that are the same as those of the fourth and fifth embodiments will not be described, and reference is made specifically to the relevant parts of the fourth and fifth embodiments.
Fig. 13 is a flowchart of a ticket printing method according to a sixth embodiment of the present application.
The receipt printing method of the embodiment of the application is applied to printing equipment arranged in a store operated by a merchant and comprises the following steps. Step S1301, a printing instruction set sent by a printing equipment server of a cloud is obtained, the printing instruction set is generated according to a printing receipt template and to-be-printed instance data, the printing receipt template comprises receipt printing color data selected by a merchant, the printing receipt template is set by the merchant through a front end and is sent to the printing equipment server by the front end, the receipt printing color data selected by the merchant is selected by the merchant through a printing color selection component in a printing receipt template setting interface displayed by the front end, the to-be-printed instance data is provided for the printing equipment server by the front end, and step S1302 prints a receipt with the receipt data color being the receipt printing color selected by the merchant according to the printing instruction set.
Optionally, the color indicated by the coupon printing color data selected by the merchant is a coupon printing color supported by the printing device.
Optionally, the print instruction set is generated according to a plurality of color-converted ticket pictures, a print ticket template and to-be-printed instance data, the color-converted ticket pictures are pictures to be displayed in tickets printed by the printing device, and the color-converted ticket pictures are obtained by converting color data of tickets selected by the merchant according to the ticket print color data uploaded by the merchant through the front end.
Seventh embodiment
The seventh embodiment of the present application also provides a print ticket setting apparatus corresponding to the print ticket setting method provided by the first embodiment of the present application. Since the device embodiment is substantially similar to the first embodiment, the description is relatively simple, and reference is made to the partial description of the first embodiment for relevant points. The device embodiments described below are merely illustrative.
Fig. 14 is a schematic diagram of a print ticket setting apparatus according to a seventh embodiment of the present application.
The print ticket setting device 1400 is applied to the front end of a print ticket template, and comprises a first display unit 1401, a first obtaining unit 1402, a first sending unit 1403, a second obtaining unit 1404, a first generating unit 1405 and a second sending unit 1406, wherein the first display unit 1401 is used for displaying a ticket picture editing area for setting ticket pictures for a merchant in a print ticket template setting interface, the first obtaining unit 1402 is used for obtaining the ticket pictures set by the merchant and display position information corresponding to each ticket picture through a plurality of the ticket picture editing areas, the first sending unit 1403 is used for sending the ticket pictures to a cloud, the second obtaining unit 1404 is used for obtaining picture identification data corresponding to the ticket pictures, the first generating unit 1405 is used for generating a print ticket template containing picture identification data based on the display position information, and the second sending unit 1406 is used for sending the print ticket template to the cloud so that the cloud can obtain the ticket pictures according to the picture identification data and print ticket templates indicating print ticket pictures to print equipment arranged in an operating store.
Eighth embodiment
Corresponding to the second embodiment, an eighth embodiment of the present application provides a receipt printing apparatus. Since the device embodiment is substantially similar to the second embodiment, the description is relatively simple, and reference is made to the description of the second embodiment for relevant points. The device embodiments described below are merely illustrative.
Fig. 15 is a schematic diagram of a ticket printing apparatus according to an eighth embodiment of the present application.
The receipt printing device 1500 is applied to a printing equipment server side of a cloud, and comprises a third obtaining unit 1501, an indicating unit 1503 and a fourth obtaining unit 1502, wherein the third obtaining unit 1501 is used for obtaining a printing receipt template set by a merchant, the printing receipt template comprises picture identification data corresponding to a plurality of receipt pictures and display position information corresponding to each receipt picture, the fourth obtaining unit 1502 is used for obtaining a plurality of receipt pictures corresponding to the printing receipt template from a picture storage side of the cloud according to the picture identification data of the plurality of receipt pictures in the printing receipt template, the plurality of receipt pictures are provided for the picture storage side by setting the front end of the printing receipt template, and the indicating unit 1503 is used for indicating printing equipment arranged in a store operated by the merchant to print a receipt displaying the plurality of receipt pictures according to the printing receipt template when the receipt is required to be printed according to the printing receipt template.
Ninth embodiment
A ninth embodiment of the present application provides a ticket printing apparatus, corresponding to the third embodiment. Since the device embodiment is substantially similar to the third embodiment, the description is relatively simple, and reference is made to the description of the third embodiment for relevant points. The device embodiments described below are merely illustrative.
Fig. 16 is a schematic diagram of a ticket printing apparatus according to a ninth embodiment of the present application.
The receipt printing device 1600 is applied to printing equipment arranged in a store operated by a merchant, and comprises a fifth obtaining unit 1601, a first printing unit 1602 and a second printing unit, wherein the fifth obtaining unit 1601 is used for indicating the printing equipment arranged in the store operated by the merchant to print out the receipt displaying the plurality of receipt pictures according to the print receipt template when the receipt is required to be printed according to the print receipt template, and the first printing unit 1602 is used for printing the receipt displaying the plurality of receipt pictures according to the print instruction set.
Tenth embodiment
A tenth embodiment of the present application provides a print ticket setting apparatus corresponding to the fourth embodiment. Since the device embodiment is substantially similar to the fourth embodiment, the description is relatively simple, and the relevant points are only referred to the part of the description of the fourth embodiment. The device embodiments described below are merely illustrative.
Fig. 17 is a schematic diagram of a print ticket setting apparatus according to a tenth embodiment of the present application.
The print ticket setting device 1700 is applied to the front end of a print ticket template, and comprises a second display unit 1701, a sixth obtaining unit 1702 and a third sending unit 1703, wherein the second display unit 1701 is used for displaying a print color selection component for selecting ticket printing colors by a merchant in a print ticket template setting interface, the sixth obtaining unit 1702 is used for obtaining ticket printing color data selected by the merchant through the print color selection component, the third sending unit 1703 is used for sending the print ticket template set by the merchant to a print device service end of a cloud, the print ticket template comprises the ticket printing color data selected by the merchant, so that the print device service end converts the color of ticket data needing to be printed in a ticket into the ticket printing color selected by the merchant according to the ticket printing color data selected by the merchant, and when the ticket needs to be printed according to the print ticket template set by the merchant, a print instruction set is generated according to the print ticket and the sample data to be printed by the front end, and the print instruction set is sent to a print device arranged in the operation store to the print device according to the print instruction set of the ticket to the ticket printing color data selected by the merchant.
Eleventh embodiment
An eleventh embodiment of the present application provides a receipt printing apparatus corresponding to the fifth embodiment. Since the apparatus embodiment is substantially similar to the fifth embodiment, the description is relatively simple, and the relevant points are found in the part of the description of the fifth embodiment. The device embodiments described below are merely illustrative.
Fig. 18 is a schematic diagram of a ticket printing apparatus according to an eleventh embodiment of the present application.
The receipt printing device 1800 is applied to a printing equipment server side of a cloud, and comprises a seventh obtaining unit 1801, a second generating unit 1802 and a printing instruction set, wherein the seventh obtaining unit 1801 is used for obtaining a printing receipt template set by a merchant, the printing receipt template comprises receipt printing color data selected by the merchant, and the second generating unit 1802 is used for generating a printing instruction set according to the printing receipt template and to-be-printed example data provided by the front end when a receipt needs to be printed according to the printing receipt template, and sending the printing instruction set to printing equipment arranged in a shop operated by the merchant so that the printing equipment prints a receipt with a receipt printing color selected by the merchant according to the printing instruction set.
Twelfth embodiment
A twelfth embodiment of the present application provides a receipt printing apparatus, corresponding to the sixth embodiment. Since the apparatus embodiment is substantially similar to the sixth embodiment, the description is relatively simple, and reference is made to the description of the sixth embodiment for relevant points. The device embodiments described below are merely illustrative.
Fig. 19 is a schematic diagram of a ticket printing apparatus according to a twelfth embodiment of the present application.
The receipt printing device 1900 is applied to printing equipment arranged in a store operated by a merchant, and comprises an eighth obtaining unit 1901, a second printing unit 1902 and a second printing unit 1902, wherein the eighth obtaining unit 1901 is used for obtaining a printing instruction set sent by a printing equipment server of a cloud end, the printing instruction set is generated according to a printing receipt template and to-be-printed instance data, the printing receipt template comprises receipt printing color data selected by the merchant, the printing receipt template is set by the merchant through a front end and is sent to the printing equipment server by the front end, the receipt printing color data selected by the merchant is selected by a printing color selection component in a printing receipt template setting interface displayed by the front end, and the to-be-printed instance data is provided to the printing equipment server by the front end, and the second printing unit 1902 is used for printing a receipt with the receipt data color being the receipt printing color selected by the merchant according to the printing instruction set.
Thirteenth embodiment
The thirteenth embodiment of the present application also provides an electronic device corresponding to the methods of the first to sixth embodiments of the present application.
As shown in fig. 20, fig. 20 is a schematic diagram of an electronic device according to a thirteenth embodiment of the present application.
In this embodiment, an optional hardware structure of the electronic device 2000 may include at least one processor 2001, at least one memory 2002 and at least one communication bus 2005, where the memory 2002 includes a program 2003 and data 2004, as shown in fig. 20. Bus 2005 may be a communication device that transfers data between components within electronic device 2000, such as an internal bus (e.g., a CPU-memory bus, processor central processing unit, abbreviated as CPU), an external bus (e.g., a universal serial bus port, a peripheral component interconnect express port), and so forth. In addition, the electronic device also includes at least one network interface 2006 and at least one peripheral interface 2007. The network interface 2006 to provide wired or wireless communication with an external network 2008 (e.g., the Internet, an intranet, a local area network, a mobile communication network, etc.), in some embodiments, the network interface 2006 may include any number of network interface controllers (English: network interface controller, NIC for short), radio Frequency (RF) modules, transponders, transceivers, modems, routers, gateways, any combination of wired network adapters, wireless network adapters, bluetooth adapters, infrared adapters, near field communication (English: near FieldCommunication, NFC for short), cellular network chips, and so forth. The peripheral interface 2007 is used to connect with a peripheral, which may be, for example, peripheral 1 (2009 in fig. 20), peripheral 2 (2010 in fig. 20), and peripheral 3 (2011 in fig. 20) in the figure. Peripherals, i.e., peripheral devices, which may include, but are not limited to, cursor control devices (e.g., mice, touchpads, or touchscreens), keyboards, displays (e.g., cathode ray tube displays, liquid crystal displays). A display or light emitting diode display, a video input device (e.g., a video camera or an input interface communicatively coupled to a video archive), etc. The processor 2001 may be a CPU, or an Application-specific integrated Circuit ASIC (Application SPECIFIC INTEGRATED Circuit), or one or more integrated circuits configured to implement embodiments of the present application. The memory 2002 may include a high-speed RAM (collectively referred to as Random Access Memory a random access memory) memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The processor 2001 calls programs and data stored in the memory 2002 to execute the methods of the first to sixth embodiments of the present application.
Fourteenth embodiment
The fourteenth embodiment of the present application also provides a computer storage medium storing a computer program corresponding to the methods of the first to sixth embodiments of the present application, the computer program being executed by a processor to perform the methods of the first to sixth embodiments of the present application.
While the application has been described in terms of preferred embodiments, it is not intended to be limiting, but rather, it will be apparent to those skilled in the art that various changes and modifications can be made herein without departing from the spirit and scope of the application as defined by the appended claims.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The Memory may include volatile Memory, random Access Memory (RAM), and/or nonvolatile Memory in a computer-readable medium, such as Read-Only Memory (ROM) or flash RAM. Memory is an example of computer-readable media. 1. Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change Memory (PHASE CHANGE Memory; PRAM), static random access Memory (Static RandomAccess Memory; SRAM), dynamic random access Memory (Dynamic RandomAccess 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, read-Only compact disk read-Only Memory (CD-ROM for short, english: compact Disc Read), digital versatile disks (DVD for short, DIGITAL VERSATILEDISC) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by the computing device. computer-readable media, as defined herein, does not include non-transitory computer-readable storage media (non-transitory computer readable storage media), such as modulated data signals and carrier waves. 2. It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. 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, and the like) having computer-usable program code embodied therein. It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.

Claims (10)

The method comprises the steps that a printing instruction set sent by a printing equipment server side of a cloud is obtained, the printing instruction set is generated according to a plurality of receipt pictures, to-be-printed instance data provided by a front end and a printing receipt template, the printing receipt template comprises picture identification data corresponding to the plurality of receipt pictures and display position information corresponding to each receipt picture, the printing receipt template is set by a merchant through the front end and is sent to the printing equipment server side by the front end, the plurality of receipt pictures are obtained by the merchant through a plurality of receipt picture editing areas in a printing receipt template setting interface displayed by the front end, the plurality of receipt pictures are sent to a picture storage end of the cloud by the front end, and the printing equipment server side obtains from the picture storage end according to picture identification data of the plurality of receipt pictures in the printing receipt template set by the merchant;
And sending the print ticket template set by the merchant to a printing equipment server side of a cloud, wherein the print ticket template comprises the ticket print color data selected by the merchant, so that the printing equipment server side converts the color of the ticket data required to be printed in the ticket into the ticket print color selected by the merchant according to the ticket print color data selected by the merchant, when the ticket is required to be printed according to the print ticket template set by the merchant, a print instruction set is generated according to the print ticket template and the to-be-printed example data provided by the front end, and the print instruction set is sent to printing equipment arranged in a shop operated by the merchant, so that the printing equipment prints the ticket with the ticket data color selected by the merchant according to the print instruction set.
CN202411963309.0A2024-12-272024-12-27Print ticket setting method, ticket printing method and devicePendingCN119883149A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202411963309.0ACN119883149A (en)2024-12-272024-12-27Print ticket setting method, ticket printing method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202411963309.0ACN119883149A (en)2024-12-272024-12-27Print ticket setting method, ticket printing method and device

Publications (1)

Publication NumberPublication Date
CN119883149Atrue CN119883149A (en)2025-04-25

Family

ID=95428545

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202411963309.0APendingCN119883149A (en)2024-12-272024-12-27Print ticket setting method, ticket printing method and device

Country Status (1)

CountryLink
CN (1)CN119883149A (en)

Similar Documents

PublicationPublication DateTitle
US10764139B2 (en)Information processing system and report creation method
US10970021B2 (en)Information processing apparatus and control method to enable a user to specify the number of images to be combined in a frame
US20140117101A1 (en)Producing an image and optical file from a visible first digital image and from a visible second digital image of a machine-readable optical code which encodes information associated with or derived from the first digital image
US10171469B2 (en)Information processing system, access method, and terminal device
US20210042064A1 (en)Information processing system, information processing apparatus, information processing method, and medium
CN1996295A (en)Image forming apparatus and method to search for and print images on network
US20130073687A1 (en)System for managing information using machine-readable codes
US20130026223A1 (en)Selecting images using machine-readable codes
US9733786B2 (en)System and method of capturing and sharing media
CN114356250A (en)Label printing system and method
US20130068831A1 (en)Managing information using machine-readable codes
US11721051B2 (en)Imaging product selection system
US11928171B2 (en)Providing shortened URL and information related contents corresponding to original URL
US9591092B2 (en)Relaying device, image processing device, and system comprising image processing device, relaying device and service server
US8967482B2 (en)Image selection method using machine-readable codes
US20150163291A1 (en)Data processing system, device and method of data processing
US8596523B2 (en)Index print with machine-readable codes
CN119883149A (en)Print ticket setting method, ticket printing method and device
JP2012075087A (en)Image processing apparatus, processing unit, communication system, transmission method, program and storage medium
JP5794476B2 (en) Image processing system, image processing apparatus, image processing method, image processing program, and printed matter
KR20200098286A (en)Deviec, system and method of providing service of creating detailed pages for sales item on open market
CN112101239B (en)Method, device and system for searching missing characters in PDF (portable document format) file
US8534542B2 (en)Making an ordered element list
US12175149B2 (en)Terminal apparatus, image forming apparatus, and system
KR101659886B1 (en)business card ordering system and method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp