Disclosure of Invention
In order to solve at least one of the technical problems, the application provides a delivery document self-service information reading, distributing and printing method and device, which assist a delivery driver in quickly printing the delivery document.
The application provides a self-service information reading, distributing and printing method for outbound documents in a first aspect, which comprises the following steps: acquiring a two-dimensional code which is generated by a user side and carries a printing task; analyzing the two-dimensional code, checking whether a print task carried by the two-dimensional code is in a print queue, if the print task is in the print queue, sending print attribute information to the user side, and if the print task is not in the print queue, sending the print task to a data management system; receiving additional information of the data management system to the printing task, wherein the additional information and the information carried by the printing task jointly form printing content; and sending the printing content to a printer, and sending printing attribute information related to the printer and the printing queue to a user side and a data management system.
Preferably, when analyzing the two-dimensional code, the method further includes: analyzing the line id in the printing task carried by the two-dimensional code and sending the line id to the data management system; and receiving the goods sorting condition of the data management system on the line associated with the line id, if the goods of the corresponding line are not sorted, canceling the printing task, and sending the printing error information to the user side.
Preferably, the transmitting the print content to a printer includes: acquiring a printer queue in which a plurality of printers are arranged in advance; reading the current printers to be distributed in the printer queue according to a circulation mode; and sending the printing content to the printer.
Preferably, the transmitting the print content to a printer includes: and sending the printing content to a printer with the minimum number of tasks.
Preferably, the method further comprises the following steps: receiving fault information of a printer; redistributing unfinished print tasks of the printer with the fault, sending new print attribute information to the data management system, and updating the print attribute information by the data management system; and after receiving the two-dimensional code information of the user side, sending the updated printing attribute information to the user side.
The second aspect of the present application provides a self-service information reading, distributing and printing device for outbound documents, comprising: the two-dimensional code reading module is used for acquiring a two-dimensional code which is generated by a user side and carries a printing task; the analysis module is used for analyzing the two-dimensional code and verifying whether a print task carried by the two-dimensional code is in a print queue or not, if the print task is in the print queue, sending print attribute information to the user side, and if the print task is not in the print queue, sending the print task to a data management system; the printing content generating module is used for receiving additional information of the data management system to the printing task, and the additional information and the information carried by the printing task jointly form printing content; and the printer selection module is used for sending the printing content to a printer and sending printing attribute information related to the printer and the printing queue to a user side and a data management system.
Preferably, the parsing module further includes: the line reading unit is used for analyzing a line id in a printing task carried by the two-dimensional code and sending the line id to the data management system; and the error information processing unit is used for receiving the goods sorting condition of the data management system on the line associated with the line id, canceling the printing task if the goods of the corresponding line are not sorted, and sending the printing error information to the user side.
Preferably, the printer selection module includes: a printer queue acquisition unit configured to acquire a printer queue in which a plurality of printers are arranged in advance; the printer allocation unit is used for reading the printers to be allocated currently in the printer queue in a circulating mode; and the printing content sending unit is used for sending the printing content to the printer.
Preferably, the printer selection module includes: and the printer selecting unit is used for sending the printing content to a printer with the minimum number of tasks.
Preferably, the method further comprises the following steps: the fault information acquisition module is used for receiving fault information of the printer; the printer updating module is used for redistributing unfinished printing tasks of the printer with the fault, sending new printing attribute information to the data management system and updating the printing attribute information by the data management system; and the printing attribute information sending module is used for sending the updated printing attribute information to the user side after receiving the two-dimensional code information of the user side.
According to the method and the system, on the system level, the two-dimension code information is scanned and identified by a self-service system through presentation, and the system automatically processes the printing information through system operation and data calling. The application improves printing efficiency and printing experience.
Detailed Description
In order to make the implementation objects, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described in more detail below with reference to the accompanying drawings in the embodiments of the present application. In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are some, but not all embodiments of the present application. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application, and should not be construed as limiting the present application. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present application are within the scope of protection of the present application. Embodiments of the present application will be described in detail below with reference to the drawings.
The first aspect of the present application provides a method for reading, distributing and printing self-service information of an outbound document, as shown in fig. 1, which mainly includes:
and step S1, acquiring the two-dimensional code carrying the print job generated by the user terminal.
In this embodiment, the user side generally refers to the handheld removal end of driver, and through removing the APP generation on the end and print the two-dimensional code according to the line, contain information such as warehouse id, delivery batch, delivery date, driver name, driver cell-phone number, line id. After a user fills in relevant information, the two-dimensional code is automatically generated, the method is applied to a printing terminal, for example, equipment connected with a plurality of printers, and the printing terminal is provided with a fixed code scanner and used for reading the two-dimensional code carrying a printing task, which is provided by a user side.
Step S2, analyzing the two-dimensional code, checking whether the print task carried by the two-dimensional code is in a print queue, if the print task is in the print queue, sending print attribute information to the user side, and if the print task is not in the print queue, sending the print task to a data management system.
It can be understood that, since the print job carried by each two-dimensional code is for printing the outbound document, it necessarily includes a unique identification number for characterizing the print job, such as a line id, or a delivery batch, etc., so as to prevent the user from printing many times, or facilitate the user to perform a print information query, etc. The printing attribute information related to the printing task mainly includes a printer number and a current state of the printer, the printer state may be, for example, to-be-printed, in-printing, printing completed, etc., the printing attribute information may be stored in the printing terminal, or may be stored in the server side, in this step S2, the printing terminal verifies the printing attribute information, if the information related to printing has been sent to a certain printer, is in-process to be printed, or is completed, i.e., the printing task is in the printing queue, the user is notified of the related printer number, and the user side indicates the printer number and the printing state after being presented with a code scan. In general, the print job queue needs to display information such as delivery date, driver, line (store), distribution printer, print status, code scanning time, and print time.
In an alternative embodiment, if the information related to printing is printed by a certain printer, a related prompt for continuing printing can be set on the user side, and after the user clicks the related plug-in, the two-dimensional code is regenerated, and the two-dimensional code is attached with a reprinted label, so that the printing terminal can recognize the reprinted label and can prevent rejection of printing due to the fact that the reprinted label has the same identification number with the printed task.
And step S3, receiving additional information of the data management system to the print job, wherein the additional information and the information carried by the print job together form print content.
In this embodiment, information carried by the print job is edited by the user side and stored in the two-dimensional code, such as a distribution batch, a distribution date, a driver name, a driver mobile phone number, and the like, and the information is used to supplement print content, and the real print content is additional information, which is stored in the data management system of the server side and includes specific information of the order, such as a commodity name, a quantity, an amount, a preference, a distribution address, a consignee, and the like. According to the method and the device, information concerned by a driver or information which the driver needs to attach and information of the order are edited and stored separately, the driver edits order identification information and content which needs to be supplemented to form a printing task, the printing terminal automatically acquires related order information and combines the order information with the information carried by the printing task to form printing content with similar customization, and user (driver) experience is improved.
And step S4, sending the printing content to a printer, and sending the printing attribute information related to the printer and the printing queue to a user side and a data management system.
After the printing content is completed, the printer is assigned to print, and the user is notified of the printing attribute information, and the specific notification process is as described in step S2, which is not described again.
In some optional embodiments, when parsing the two-dimensional code, the method further includes: analyzing the line id in the printing task carried by the two-dimensional code and sending the line id to the data management system; and receiving the goods sorting condition of the data management system on the line associated with the line id, if the goods of the corresponding line are not sorted, canceling the printing task, and sending the printing error information to the user side. In the embodiment, the data management system is used for monitoring the goods sorting information according to the line id to prevent error printing, and if the goods sorting information is not acquired or the line is not sorted, the corresponding task is removed and a code scanning interface prompts a driver of error information.
In some optional embodiments, sending the print content to a printer comprises: acquiring a printer queue in which a plurality of printers are arranged in advance; reading the current printers to be distributed in the printer queue according to a circulation mode; and sending the printing content to the printer.
In some optional embodiments, sending the print content to a printer comprises: and sending the printing content to a printer with the minimum number of tasks.
The two embodiments described above provide a scheme for allocating printers, and the printers may be allocated in a round-robin manner, or may be arranged with a small number of idle and queued printers.
In some alternative embodiments, further comprising: receiving fault information of a printer; redistributing unfinished print tasks of the printer with the fault, sending new print attribute information to the data management system, and updating the print attribute information by the data management system; and after receiving the two-dimensional code information of the user side, sending the updated printing attribute information to the user side.
In the embodiment, the printing terminal monitors the states of all printers, wherein the states comprise idle, printing and abnormal; if the printer reports an error or does not execute a printing task for a long time (15min), the state of the printer is updated to be abnormal, when the printer is abnormal, an abnormal prompt is displayed above a corresponding queue, the content is 'abnormal printer, the printer is required to be contacted with a manager for processing', a fault device can be closed due to the fact that a receipt is not output due to the fault of the printer, other printer execution tasks are automatically distributed by the system from new scanning, if the repeated printing times are failed to check, or the printing information is not acquired, corresponding error information is displayed, and if the printer is out of paper, the manager is informed to perform paper adding operation.
The printer preferentially adopts thermal printing, after the printer is started, the printer is automatically connected with the printing terminal to receive the printing tasks distributed by the printing terminal, and cutting lines are required to be cut between different lines in the printing process.
According to the method and the system, on the system level, the two-dimension code information is scanned and identified by a self-service system through presentation, and the system automatically processes the printing information through system operation and data calling. The application improves printing efficiency and printing experience.
In a second aspect of the present application, a device for reading, distributing and printing self-service information of an outbound document corresponding to the above method is provided, which mainly includes: the two-dimensional code reading module is used for acquiring a two-dimensional code which is generated by a user side and carries a printing task; the analysis module is used for analyzing the two-dimensional code and verifying whether a print task carried by the two-dimensional code is in a print queue or not, if the print task is in the print queue, sending print attribute information to the user side, and if the print task is not in the print queue, sending the print task to a data management system; the printing content generating module is used for receiving additional information of the data management system to the printing task, and the additional information and the information carried by the printing task jointly form printing content; and the printer selection module is used for sending the printing content to a printer and sending printing attribute information related to the printer and the printing queue to a user side and a data management system.
In some optional embodiments, the parsing module further comprises: the line reading unit is used for analyzing a line id in a printing task carried by the two-dimensional code and sending the line id to the data management system; and the error information processing unit is used for receiving the goods sorting condition of the data management system on the line associated with the line id, canceling the printing task if the goods of the corresponding line are not sorted, and sending the printing error information to the user side.
In some optional embodiments, the printer selection module comprises: a printer queue acquisition unit configured to acquire a printer queue in which a plurality of printers are arranged in advance; the printer allocation unit is used for reading the printers to be allocated currently in the printer queue in a circulating mode; and the printing content sending unit is used for sending the printing content to the printer.
In some optional embodiments, the printer selection module comprises: and the printer selecting unit is used for sending the printing content to a printer with the minimum number of tasks.
In some alternative embodiments, further comprising: the fault information acquisition module is used for receiving fault information of the printer; the printer updating module is used for redistributing unfinished printing tasks of the printer with the fault, sending new printing attribute information to the data management system and updating the printing attribute information by the data management system; a print attribute information sending module, configured to send updated print attribute information to the user side after receiving the two-dimensional code information of the user side
In other aspects of the present application, a computer device is provided, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the outbound document self-service information reading, distributing and printing method as described above.
In this embodiment, the computer device is a self-service terminal disposed beside the plurality of printers, is connected to the plurality of printers and the server, controls the printers to print by the above method, and is capable of identifying the two-dimensional code of the user side, extracting information in the two-dimensional code, and sending the information or the two-dimensional code to the server, that is, the data management system of the present application.
In other aspects of the present application, a readable storage medium is provided, which stores a computer program, and the computer program is used for implementing the self-service information reading, distributing and printing method for the outbound documents as described above when being executed by a processor.
In particular, according to embodiments of the present application, the processes described above with reference to the flow diagrams may be implemented as a computer software program, in particular a computer program installed on a mobile phone terminal, which is capable of interacting with a server. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. The computer storage media of the present application may be computer-readable signal media or computer-readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present application may be implemented by software or hardware. The modules or units described may also be provided in a processor, the names of which in some cases do not constitute a limitation of the module or unit itself.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.