CN111949229A - Method and device for printing bill, computer equipment and storage medium - Google Patents

Method and device for printing bill, computer equipment and storage medium Download PDF

Info

Publication number
CN111949229A
CN111949229A CN202010748116.9A CN202010748116A CN111949229A CN 111949229 A CN111949229 A CN 111949229A CN 202010748116 A CN202010748116 A CN 202010748116A CN 111949229 A CN111949229 A CN 111949229A
Authority
CN
China
Prior art keywords
printing
bill
data
receipt
order
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
CN202010748116.9A
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.)
Vipshop Zhuhai E Commerce Co Ltd
Original Assignee
Vipshop Zhuhai E Commerce 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 Vipshop Zhuhai E Commerce Co Ltd filed Critical Vipshop Zhuhai E Commerce Co Ltd
Priority to CN202010748116.9A priority Critical patent/CN111949229A/en
Publication of CN111949229A publication Critical patent/CN111949229A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1206Improving or facilitating administration, e.g. print management resulting in increased flexibility in input data format or job format or job type
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1244Job translation or job parsing, e.g. page banding
    • G06F3/1247Job translation or job parsing, e.g. page banding by conversion to printer ready format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1257Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention discloses a method and a device for printing a bill, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order identification corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party; acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data; and returning the bill data to the requester so that the requester can print the bill data through the printing equipment. The method for printing the bill of the invention can ensure that the bill which is finally printed by different bill printing demand parties has a uniform bill style, ensure that the bill data returned to the request party can be supported by the printing equipment of the request party, and realize the personalized customization of the bill data.

Description

Method and device for printing bill, computer equipment and storage medium
Technical Field
The present invention relates to the field of electronic information technologies, and in particular, to a method and an apparatus for printing a receipt, a computer device, and a storage medium.
Background
With the development of electronic commerce, various sales modes are developed. In some sales models, such as the JIT model, the warehouse of the e-commerce platform is typically used as a transfer bin, and the goods are actually distributed and stored in a third-party warehouse within a certain range around the transfer bin (which facilitates more rapid delivery of the goods to the JIT warehouse of the e-commerce platform). The ownership of the goods stored in the third-party warehouse belongs to the supplier, after the customer places an order through the website of the E-commerce platform, the supplier sends the goods to the JIT warehouse of the E-commerce platform according to the order, and the goods are put in, sorted, packaged and taken out in a short time and delivered to members through express delivery, so that zero stock is realized, and the stock cost is greatly saved. However, this seemingly high-definition model is only idealized zero stock, and actually there is stock, and after all, the turnover process takes time, that is, the time for the goods to stay in the turnover bin. In addition, once the inventory is not accurately lost, the suppliers need to replenish the inventory, because the suppliers generally send the inventory, and the time for receiving the inventory is greatly prolonged. In order to shorten the time for receiving goods by customers, reduce the cost expenditure of platforms and the like, the goods can be directly packaged in a third-party warehouse (such as a supplier warehouse) and then directly delivered to members from the supplier warehouse through express delivery.
In this process, a form printing is involved. The bill is used for recording relevant information such as a sender, a receiver, the weight, the quantity, the price and the like of a product in the process of transporting the goods in the logistics industry. In order to ensure the attractiveness of the bill, improve user experience and other factors, the e-commerce platform requires that the style and format of the bill to be printed are guaranteed to be uniform and standard. However, on one hand, each company usually has its own style of the receipt, and thus, it cannot be guaranteed that the receipt printed by each company has a uniform style, and on the other hand, because the data formats supported by the printing devices of each company may be different, the format of the receipt data required by each company when printing is different.
Therefore, how to ensure that the bills made by different bill printing requirements have uniform bill styles and formats becomes a problem to be solved urgently.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for printing a simplex, a computer device, and a storage medium.
In order to solve one or more technical problems, the invention adopts the technical scheme that:
in a first aspect, there is provided a method of printing a sheet, the method comprising the steps of:
receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order identification corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party;
acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data;
and returning the bill data to the requester so that the requester can print the bill data through the printing equipment.
Further, the obtaining of the user data corresponding to the order identifier includes:
sending a user data request to a target platform database, wherein the user data request comprises the order identification;
and receiving user data corresponding to the order number from the target platform database.
Further, the method further includes an acquisition process of the facebook template, including:
and acquiring a pre-configured bill model, and analyzing the bill model into a bill template corresponding to the printing parameters.
Further, the surface single model is configured by the following method:
generating a respective visualization control for each element of the simplex model;
and receiving the editing operation of the visual control, and generating a bill of surface model of a target version according to the editing operation.
Further, the printing parameters include at least one of HTML, JSON, lodop.
Further, the order identification includes an order number.
Further, the user data at least comprises a user contact address and a user address.
In a second aspect, there is provided a sheet printing apparatus, the apparatus comprising:
the request receiving module is used for receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order mark corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party;
a data acquisition module for acquiring the user data corresponding to the order identification,
the data generation module is used for loading the user data into the bill template corresponding to the printing parameters so as to generate bill data;
and the data sending module is used for returning the bill data to the requester so that the requester can print the bill data through the printing equipment.
In a third aspect, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the following steps are implemented:
receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order identification corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party;
acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data;
and returning the bill data to the requester so that the requester can print the bill data through the printing equipment.
In a fourth aspect, there is provided a computer readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order identification corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party;
acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data;
and returning the bill data to the requester so that the requester can print the bill data through the printing equipment.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
1. according to the method, the device, the computer equipment and the storage medium for printing the receipt, the receipt printing request sent by a requesting party is received, and the receipt printing request carries an order identification corresponding to the receipt to be printed and a printing parameter which can be supported by the printing equipment of the requesting party; acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data; the bill data are returned to the requester so that the requester can print the bill data through the printing equipment, and the bills which can be printed by different bill printing demanders are guaranteed to have a uniform bill style;
2. according to the method, the device, the computer equipment and the storage medium for printing the bill, which are provided by the embodiment of the invention, the bill model is analyzed into the bill template corresponding to the printing parameters by acquiring the preset bill model, so that the bill data returned to the requesting party can be supported by the printing equipment of the requesting party, and the personalized customization of the bill data is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method of printing a form according to an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating a structure of a sheet printing apparatus according to an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating an internal architecture of a computer device, according to an example embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As described in the background, some e-commerce platforms currently employ a selling method of directly packaging in a supplier warehouse and then directly delivering goods from the supplier warehouse to members by express. In this process, it is required to ensure that the style of the form printing is uniform and standard. However, each supplier may have its own personalized form for printing the receipt, and the data formats supported by the printing devices of each supplier are different, so that it cannot be guaranteed that the final printed form of the receipt by each supplier is uniform and standardized, and it cannot be guaranteed that the uniform receipt template set by the server meets the requirements of the requesting party (e.g., the supplier) for printing the receipt.
In order to solve the above problem, an embodiment of the present invention creatively provides a method for printing a receipt, where a requester sends a receipt printing request, where an order identifier corresponding to a receipt to be printed and a printing parameter supportable by a printing device of the requester are carried, where the order identifier is used to obtain user data required by the receipt, and the printing parameter is used to indicate a format of the receipt data required by the receipt to be printed, and after obtaining the user data, the user data is loaded into a receipt template to generate receipt data, and finally the receipt data is returned to the requester, so that the requester prints the receipt data through the printing device.
Taking an application scenario of delivering goods from a warehouse of a supplier cooperating with an e-commerce platform as an example, the e-commerce platform generally includes a user system, a commodity system, an order system, a supplier system, a carrier system, and the like. After the customer successfully places an order in the commodity system, a corresponding order is generated, and order information corresponding to the order is stored in the order system, wherein the order information at least comprises information such as an order number and commodity data. The order system queries the suppliers downstream, matches the suppliers corresponding to the orders according to the configuration information of the suppliers, and then marks the order information with supplier labels. The order information marked with the supplier label is transmitted to a carrier system for carrying out carrier matching, and the successful matching user can obtain the information such as the freight order number provided by the carrier and the like and simultaneously place an order for the corresponding carrier. At this time, the order information corresponding to the order is basically prepared. At this time, the prepared order information is streamed to the supplier system, the supplier system processes the received data, such as desensitization processing, desensitizes the user information such as member name, address, contact information and the like in the order information, and the desensitized order information enters the supplier system. At this time, the supplier system will perform operation on the desensitized order information, and then call the order printing service in the embodiment of the present invention through the call interface to perform order printing.
When the order printing service is called, information such as an order number and a data format supported by a printing device of the order number is transmitted to the order service, after the order service receives the information, an order system is called, user data such as a member name, an address and a contact way for an order pair are obtained from the order system according to the order number, a corresponding template is obtained according to the data format supported by the printing device, the user data is loaded into the order template to generate order data and return the order data to a supplier system, and after the supplier system receives the order data, the order data is output to a printer and printed on the printer. The printed bill contains commodity data, and operators in the warehouse of the supplier can pick up goods according to the commodity data, pack the bill, and wait for the carrier to collect the bill.
Fig. 1 is a flowchart illustrating a method of printing a receipt according to an exemplary embodiment, and referring to fig. 1, the method includes the steps of:
s1: receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order identification corresponding to a receipt to be printed and printing parameters supportable by printing equipment of the requesting party.
Specifically, the receiving requester includes, but is not limited to, a supplier of the e-commerce platform, and the like. Generally, in order to ensure data, order data received by a supplier does not contain user data, when the supplier receives order data streamed from an upstream order system, a service for printing a bill is called by using a pre-configured interface, and a printing request for printing the bill is sent to a service for printing the bill is sent to the service for printing the bill.
S2: and acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data.
Specifically, in the embodiment of the present invention, different types of printing apparatuses can be supported, that is, the form data supporting a plurality of types of printing apparatuses can be provided. In specific implementation, corresponding user data can be obtained from a corresponding data party according to the order identification, meanwhile, a corresponding bill template is matched according to the printing parameters, the user data is loaded into the bill template, and corresponding bill data is generated.
S3: and returning the bill data to the requester so that the requester can print the bill data through the printing equipment.
As a preferred implementation manner, in an embodiment of the present invention, the acquiring user data corresponding to the order identifier includes:
sending a user data request to a target platform database, wherein the user data request comprises the order identification;
and receiving user data corresponding to the order number from the target platform database.
Specifically, in the embodiment of the present invention, the target platform database includes, but is not limited to, a database of an order system. After receiving a bill printing request sent by a requester, the bill service system may request an upstream order system to obtain order data. The user data request sent to the order system may include the order identifier, and after receiving the user data request, the upstream order system matches the corresponding user data according to the order identifier carried by the upstream order system, and returns the user data to the order service system.
As a preferred implementation manner, in an embodiment of the present invention, the method further includes an obtaining process of the facebook template, including:
and acquiring a pre-configured bill model, and analyzing the bill model into a bill template corresponding to the printing parameters.
Specifically, in the embodiment of the present invention, a form model, that is, a form style, is configured in advance, and the form model defines element information included in a form, and a position, a shape, a size, and the like of each element (for example, a barcode, a two-dimensional code, an order number, a product id, a user address, and the like). After receiving a bill printing request sent by a requester, extracting printing parameters carried in the request, and then analyzing the bill model into a bill template corresponding to the printing parameters.
As a preferred embodiment, in the embodiment of the present invention, the simplex model is configured in the following manner:
generating a respective visualization control for each element of the simplex model;
and receiving the editing operation of the visual control, and generating a bill of surface model of a target version according to the editing operation.
Specifically, in the prior art, a simplex model usually needs to be maintained by a developer, and in the embodiment of the present invention, implementation services are configurable. During specific implementation, a visual configuration interface is provided, each element of the surface model generates corresponding visual controls and is displayed in a listing manner, business personnel can edit the visual controls, such as adjusting the size of the visual controls, and then drag the adjusted visual controls to corresponding positions, so that the surface model is automatically generated. Through the mode, the rapid upgrading (configuration) and adaptation capability of the surface single model can be realized.
In an embodiment of the present invention, the printing parameter includes at least one of HTML, JSON, and lodop.
Specifically, the receipt service may provide receipt data to printing devices that provide different formats, i.e., provide receipt data in different formats. Because the data in pdf format has a large file, on one hand, the consumption of network bandwidth is large, and on the other hand, the printing efficiency of the requester is low, which results in poor use experience. In addition, the data in the picture format is distorted during application, and the picture is blurred due to insufficient frame format. By comprehensively considering all the factors, the embodiment of the invention finally selects three formats supporting HTML, JSON and lodop.
Among them, HTML outputs text, i.e., in text form, is a label that is adapted according to the resolution of the computer and the frame format of the printer, which is particularly suitable for direct printing by thermal printers. Js is a plug-in, which is an upgraded version of HTML printing, can print faster and has better printing effect. JSON refers to data type printing, in this way, in addition to returning the bill data generated by the bill service to the requester for printing directly, the requester is also supported to pre-construct a bill model conforming to the corresponding e-commerce platform in a local system (such as a supplier ERP system), the bill model returns corresponding data according to the bill printing request, and the corresponding position in the bill model filled with the data is output to a printer.
As a preferred implementation manner, in the embodiment of the present invention, the order identifier includes an order number.
As a preferred implementation manner, in the embodiment of the present invention, the user data at least includes a user contact address and a user address.
As a preferred implementation manner, in an embodiment of the present invention, the method further includes a process of implementing version upgrade of the simplex model through white listing and gray release, where the process includes:
the method comprises the steps of configuring a white list in advance, and dynamically configuring the access fields of the white list, wherein the access fields comprise but are not limited to user mobile phones, user IDs, commodity brands, commodity IDs and the like. And matching the relevant data of the bill printing service caller with the configured parameter fields (according to the data or gray scale), judging whether the data is hit, and if the data is hit, releasing the new version of the bill model to the bill printing service caller.
Fig. 2 is a schematic structural diagram illustrating a sheet printing apparatus according to an exemplary embodiment, the apparatus including:
the request receiving module is used for receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order mark corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party;
a data acquisition module for acquiring the user data corresponding to the order identification,
the data generation module is used for loading the user data into the bill template corresponding to the printing parameters so as to generate bill data;
and the data sending module is used for returning the bill data to the requester so that the requester can print the bill data through the printing equipment.
As a preferred implementation manner, in an embodiment of the present invention, the data obtaining module includes:
a request sending unit, configured to send a user data request to a target platform database, where the user data request includes the order identifier;
and the data receiving unit is used for receiving the user data corresponding to the order number from the target platform database.
As a preferred implementation manner, in an embodiment of the present invention, the apparatus further includes:
and the template acquisition module is used for acquiring a pre-configured order model and analyzing the order model into an order template corresponding to the printing parameters.
As a preferred implementation manner, in an embodiment of the present invention, the apparatus further includes:
the model configuration module is used for generating a corresponding visual control for each element of the simplex model; and receiving the editing operation of the visual control, and generating a target version of the facebook model according to the editing operation.
In an embodiment of the present invention, the printing parameter includes at least one of HTML, JSON, and lodop.
As a preferred implementation manner, in the embodiment of the present invention, the order identifier includes an order number.
As a preferred implementation manner, in the embodiment of the present invention, the user data at least includes a user contact address and a user address.
Fig. 3 is a schematic diagram illustrating an internal configuration of a computer device according to an exemplary embodiment, which includes a processor, a memory, and a network interface connected through a system bus, as shown in fig. 3. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of optimization of an execution plan.
Those skilled in the art will appreciate that the configuration shown in fig. 3 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing devices to which aspects of the present invention may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
As a preferred implementation manner, in an embodiment of the present invention, the computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the following steps when executing the computer program:
receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order identification corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party;
acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data;
returning the receipt data to the requester so that the requester can print the receipt data through the printing device
As a preferred implementation manner, in the embodiment of the present invention, when the processor executes the computer program, the following steps are further implemented:
sending a user data request to a target platform database, wherein the user data request comprises the order identification;
and receiving user data corresponding to the order number from the target platform database.
As a preferred implementation manner, in the embodiment of the present invention, when the processor executes the computer program, the following steps are further implemented:
and acquiring a pre-configured bill model, and analyzing the bill model into a bill template corresponding to the printing parameters.
As a preferred implementation manner, in the embodiment of the present invention, when the processor executes the computer program, the following steps are further implemented:
generating a respective visualization control for each element of the simplex model;
and receiving the editing operation of the visual control, and generating a bill of surface model of a target version according to the editing operation.
In an embodiment of the present invention, the printing parameter includes at least one of HTML, JSON, and lodop.
As a preferred implementation manner, in the embodiment of the present invention, the order identifier includes an order number.
As a preferred implementation manner, in the embodiment of the present invention, the user data at least includes a user contact address and a user address.
In an embodiment of the present invention, a computer-readable storage medium is further provided, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order identification corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party;
acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data;
and returning the bill data to the requester so that the requester can print the bill data through the printing equipment.
As a preferred implementation manner, in the embodiment of the present invention, when executed by the processor, the computer program further implements the following steps:
sending a user data request to a target platform database, wherein the user data request comprises the order identification;
and receiving user data corresponding to the order number from the target platform database.
As a preferred implementation manner, in the embodiment of the present invention, when executed by the processor, the computer program further implements the following steps:
and acquiring a pre-configured bill model, and analyzing the bill model into a bill template corresponding to the printing parameters.
As a preferred implementation manner, in the embodiment of the present invention, when executed by the processor, the computer program further implements the following steps:
generating a respective visualization control for each element of the simplex model;
and receiving the editing operation of the visual control, and generating a bill of surface model of a target version according to the editing operation.
In an embodiment of the present invention, the printing parameter includes at least one of HTML, JSON, and lodop.
As a preferred implementation manner, in the embodiment of the present invention, the order identifier includes an order number.
As a preferred implementation manner, in the embodiment of the present invention, the user data at least includes a user contact address and a user address.
In summary, the technical solution provided by the embodiment of the present invention has the following beneficial effects:
1. according to the method, the device, the computer equipment and the storage medium for printing the receipt, the receipt printing request sent by a requesting party is received, and the receipt printing request carries an order identification corresponding to the receipt to be printed and a printing parameter which can be supported by the printing equipment of the requesting party; acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data; the bill data are returned to the requester so that the requester can print the bill data through the printing equipment, and the bills which can be printed by different bill printing demanders are guaranteed to have a uniform bill style;
2. according to the method, the device, the computer equipment and the storage medium for printing the bill, which are provided by the embodiment of the invention, the bill model is analyzed into the bill template corresponding to the printing parameters by acquiring the preset bill model, so that the bill data returned to the requesting party can be supported by the printing equipment of the requesting party, and the personalized customization of the bill data is realized.
It should be noted that: in the above embodiment, when triggering the printing of the receipt, the receipt printing apparatus is exemplified by only the division of the functional modules, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiment of the receipt printing device and the receipt printing method provided by the above embodiment belong to the same concept, that is, the device is based on the receipt printing method, and the specific implementation process thereof is described in detail in the method embodiment and is not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method of printing a sheetlet, the method comprising the steps of:
receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order identification corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party;
acquiring user data corresponding to the order identification, and loading the user data into a bill template corresponding to the printing parameters to generate bill data;
and returning the bill data to the requester so that the requester can print the bill data through the printing equipment.
2. The method for printing a form according to claim 1, wherein the obtaining user data corresponding to the order identifier comprises:
sending a user data request to a target platform database, wherein the user data request comprises the order identification;
and receiving user data corresponding to the order number from the target platform database.
3. The method for printing a receipt according to claim 1 or 2, further comprising a process for acquiring the receipt template, comprising:
and acquiring a pre-configured bill model, and analyzing the bill model into a bill template corresponding to the printing parameters.
4. The sheet printing method according to claim 1 or 2, wherein the sheet model is configured by:
generating a respective visualization control for each element of the simplex model;
and receiving the editing operation of the visual control, and generating a bill of surface model of a target version according to the editing operation.
5. The method of claim 1 or 2, wherein the printing parameters include at least one of HTML, JSON, lodop.
6. The sheet printing method according to claim 1 or 2, wherein the order identification includes an order number.
7. The sheet printing method according to claim 1 or 2, wherein the user data includes at least a user contact address and a user address.
8. A sheet printing apparatus, comprising:
the request receiving module is used for receiving a receipt printing request sent by a requesting party, wherein the receipt printing request carries an order mark corresponding to a receipt to be printed and a printing parameter which can be supported by printing equipment of the requesting party;
a data acquisition module for acquiring the user data corresponding to the order identification,
the data generation module is used for loading the user data into the bill template corresponding to the printing parameters so as to generate bill data;
and the data sending module is used for returning the bill data to the requester so that the requester can print the bill data through the printing equipment.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010748116.9A 2020-07-29 2020-07-29 Method and device for printing bill, computer equipment and storage medium Pending CN111949229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010748116.9A CN111949229A (en) 2020-07-29 2020-07-29 Method and device for printing bill, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010748116.9A CN111949229A (en) 2020-07-29 2020-07-29 Method and device for printing bill, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111949229A true CN111949229A (en) 2020-11-17

Family

ID=73338537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010748116.9A Pending CN111949229A (en) 2020-07-29 2020-07-29 Method and device for printing bill, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111949229A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113128222A (en) * 2021-05-13 2021-07-16 上海寻梦信息技术有限公司 Electronic bill generating method, system, device and storage medium
CN113268208A (en) * 2021-05-13 2021-08-17 北京京东振世信息技术有限公司 Data printing method and device, terminal equipment and storage medium
CN113724049A (en) * 2021-09-07 2021-11-30 上海寻梦信息技术有限公司 Information processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628812A (en) * 2017-03-16 2018-10-09 北京京东尚科信息技术有限公司 Method, apparatus, electronic equipment and the readable storage medium storing program for executing of self-defined face single mode plate
CN110633059A (en) * 2018-06-06 2019-12-31 珠海横琴盛达兆业科技投资有限公司 Printing method of PDF format electronic bill
CN110633058A (en) * 2018-06-06 2019-12-31 珠海横琴盛达兆业科技投资有限公司 Printing method based on remote electronic surface single template
CN111324317A (en) * 2020-02-18 2020-06-23 上海东普信息科技有限公司 Local printing method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628812A (en) * 2017-03-16 2018-10-09 北京京东尚科信息技术有限公司 Method, apparatus, electronic equipment and the readable storage medium storing program for executing of self-defined face single mode plate
CN110633059A (en) * 2018-06-06 2019-12-31 珠海横琴盛达兆业科技投资有限公司 Printing method of PDF format electronic bill
CN110633058A (en) * 2018-06-06 2019-12-31 珠海横琴盛达兆业科技投资有限公司 Printing method based on remote electronic surface single template
CN111324317A (en) * 2020-02-18 2020-06-23 上海东普信息科技有限公司 Local printing method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113128222A (en) * 2021-05-13 2021-07-16 上海寻梦信息技术有限公司 Electronic bill generating method, system, device and storage medium
CN113268208A (en) * 2021-05-13 2021-08-17 北京京东振世信息技术有限公司 Data printing method and device, terminal equipment and storage medium
CN113724049A (en) * 2021-09-07 2021-11-30 上海寻梦信息技术有限公司 Information processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111949229A (en) Method and device for printing bill, computer equipment and storage medium
CA2907578C (en) Flexible store fulfillment
US20240095660A1 (en) Methods and systems for providing multi-carrier/multi-channel/multi-national shipping
CN104574010A (en) Customs warehousing and customs affair management system as well as customs warehousing and customs affair management method
CN104899718A (en) IOT (Internet of Things) system for supply chain management
US20140229348A1 (en) Electronic invoice management and printing
CN108171454A (en) For marketing management method, equipment and computer readable storage medium
US20200219136A1 (en) Apparatus For Printing, Displaying, And Managing Documents, Digital Content, Advertising, Social Media, Mobile Catalogues And The Like For Retail Premises, And System Thereof
CN107977876A (en) For handling the method and device of sequence information
CN106663261A (en) Method, server and system for dynamic customer/provider data pairing
CN113724051A (en) Information processing method, device, system, equipment and storage medium
CN111429080B (en) Distribution system
CN113034077A (en) Information processing method, system, electronic device, storage medium, and program product
CN113537904B (en) Logistics surface sheet generation method, system, electronic equipment and storage medium
CN113706082A (en) Supply chain management method, system and computer readable storage medium
CN112907185A (en) Logistics list number prefetching method, electronic equipment and storage medium
CN110070154B (en) Code material processing method and device, electronic equipment and readable storage medium
CN115752690B (en) Order distribution weighing and metering method, main control device and order distribution weighing and metering system
CN110895763A (en) Commodity supply chain tracing method and device
CN111429072A (en) Method and apparatus for processing appliance demand information
CN110717810A (en) Real-time transaction method, device, equipment and computer readable storage medium
CN109544785A (en) A kind of automatic vending machine and transaction system
CN112068783B (en) Label printing system and method
CN117032602B (en) Printing method and system for rapidly realizing label field mapping and label rule configuration
CN110210941B (en) Order information code generation method applied to business circles and online order system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201117

RJ01 Rejection of invention patent application after publication