Printing Method, Device, Electronic Device and Readable Storage Medium of Logistics Waybill
Automatically print logistics page orders through the browser silent printing mechanism, solving the problem of low printing efficiency of logistics page orders, realizing efficient printing without installing a client, and reducing operation complexity and information leakage risks.
Patent Information
- Application Number
- CN202111629560.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2041-12-28
AI Technical Summary
In the prior art, the printing efficiency of logistics page orders is low, and the need to install a third-party client leads to complex operational processes and high time costs.
Through the browser's silent printing mechanism, the order code is obtained directly from the browser's input box, and the logistics page order is automatically found and printed, avoiding manually closing the printing window. Using the B/S structure system does not require the installation of a third-party client.
It improves the printing efficiency of logistics page orders, reduces operation complexity and time costs, and reduces the risk of information leakage and reduces development costs.
Smart Images

Figure CN114298636B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of printing technology, and in particular, to a method, device, electronic device, and readable storage medium for printing a logistics label Background Art
[0002] With the rapid development of online shopping, logistics labels are attached to the outer packages of shipped items. The logistics label can record the information of the sender, the recipient, and the product. Currently, the sender needs to use a C / S structure system to achieve continuous printing of logistics labels. However, the use of a C / S structure system requires the installation of a third-party client on the terminal, which increases the complexity of the operation process and the time cost, resulting in low printing efficiency.
[0003] Regarding the problem of low printing efficiency, there is currently no good solution. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device, and readable storage medium for printing a logistics label to solve the problem of low printing efficiency. The specific technical solutions are as follows:
[0005] In a first aspect, a method for printing a logistics label is provided. The method includes:
[0006] Obtain a target order code in the input box of a target browser, where the target order code is obtained by scanning a target order identification code through a scanning tool;
[0007] Determine target logistics information corresponding to the target order code according to a preset correspondence between the order code and the logistics information;
[0008] Search for a target logistics label containing the target logistics information from multiple logistics labels stored in a database, where multiple logistics labels are stored in the database, and each logistics label contains different logistics information;
[0009] Call the printing function of the target browser to print the target logistics label, where the target browser is set to a silent printing mechanism to avoid the need to manually close the printing window during the printing process.
[0010] Optionally, before calling the printing function of the target browser to print the target logistics label, the method further includes:
[0011] Send the target logistics label to the target browser in a first format, so that the target browser converts the first format into a second format according to the second format information carried in the target logistics label, and loads the target logistics label in the second format through a web page.
[0012] Optionally, the step of invoking the printing function of the target browser to print the target logistics label includes:
[0013] Invoking the printing function of the target browser to print the target logistics label, wherein the target browser is set to a silent printing mechanism to automatically close the printing window popped up during printing, so as to avoid the need to manually close the printing window during printing.
[0014] Optionally, the step of invoking the printing function of the target browser to print the target logistics label includes:
[0015] Invoking the printing function of the target browser to print the target logistics label, wherein the target browser is set to a silent printing mechanism so as not to pop up a printing window during printing, so as to avoid the need to manually close the printing window during printing.
[0016] Optionally, the method further includes:
[0017] After the printing of the target logistics label is completed, controlling the webpage that loads the target logistics label to automatically close.
[0018] Optionally, before obtaining the target order code in the input box of the target browser, the method further includes:
[0019] Receiving the list of shipping orders imported by the target browser, where the list of shipping orders contains multiple shipping order information, and each shipping order information corresponds to an order code;
[0020] Sending a logistics information request to the logistics service provider so that the logistics service provider calls the logistics interface to obtain logistics information, where the logistics request information contains the shipping order information;
[0021] According to the logistics information fed back by the logistics service provider, establishing a correspondence between the order code and the logistics information, and saving the correspondence in the logistics label information, where each order code corresponds to at least one logistics information;
[0022] Saving the logistics label information in a database;
[0023] Generating a logistics label containing the logistics information through a logistics cloud printing interface, and saving multiple logistics labels in the database.
[0024] Optionally, after receiving the list of shipping orders imported by the target browser, the method further includes:
[0025] Generating an order identification code corresponding to each order code;
[0026] The multiple order identification codes are printed out by a printing device in a preset order. After being scanned by a scanning tool, the corresponding order code of the order identification code is displayed in the input box of the target browser.
[0027] Optionally, after saving the logistics bill information in a database, the method further includes:
[0028] Sending a notification message to the target browser, where the notification message is used to notify the end of generation of the logistics bill information, and the logistics bill information further includes a logistics code, a logistics bill generation time, and a current logistics status;
[0029] After receiving a confirmation instruction sent by the target browser, changing the current logistics status from an undelivered status to a delivered status.
[0030] Optionally, generating a logistics label containing the logistics information through a logistics cloud printing interface includes:
[0031] Invoking the logistics cloud printing interface to generate a logistics label containing the logistics information, where the logistics label carries second format information;
[0032] Receiving the logistics label output by the logistics cloud printing interface.
[0033] In a second aspect, a printing module for a logistics label is provided. The module includes:
[0034] An acquisition module for acquiring a target order code in an input box of a target browser, where the target order code is obtained by scanning a target order identification code with a scanning tool;
[0035] A determination module for determining target logistics information corresponding to the target order code according to a preset correspondence between the order code and the logistics information;
[0036] A search module for searching, from multiple logistics labels stored in a database, for a target logistics label containing the target logistics information, where multiple logistics labels are stored in the database, and the logistics information contained in each logistics label is different;
[0037] An invocation module for invoking the printing function of the target browser to print the target logistics label, where the target browser is set to a silent printing mechanism to avoid the need to manually close the printing window during the printing process.
[0038] In a third aspect, a merchant management system for an e-commerce platform to manage merchants is provided. The merchant management system includes the printing module.
[0039] Optionally, the e-commerce platform includes an e-commerce platform applied to the C2M model.
[0040] In a fourth aspect, a target device is provided, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;
[0041] The memory is used to store a computer program;
[0042] The processor is configured to implement the steps of any of the above-mentioned logistics waybill printing methods when executing the program stored in the memory.
[0043] In a fifth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned logistics waybill printing methods are implemented.
[0044] Advantages of the embodiments of the present application:
[0045] In the present application, the present application does not need to adopt a C / S structure system, so there is no need to install a third-party client on the terminal, which reduces the complexity of the operation process, saves the time for installing the client and the time for starting the client, reduces the time cost, and improves the printing efficiency. At the same time, not adopting a third-party client can also reduce the risk of information leakage. In addition, for the provider of the B / S structure system service, there is no need to develop its own C / S structure system, which reduces the additional development cost.
[0046] Of course, implementing any product or method of the present application does not necessarily need to achieve all the above-mentioned advantages at the same time. Description of the drawings
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0048] Figure 1 It is a schematic diagram of the hardware environment of a logistics waybill printing method provided by an embodiment of the present application;
[0049] Figure 2 It is a flowchart of a method for printing a logistics waybill provided by an embodiment of the present application;
[0050] Figure 3 It is a signaling diagram of a method for printing a logistics waybill provided by an embodiment of the present application;
[0051] Figure 4A schematic structural diagram of a printing device for a logistics label provided by an embodiment of the present application;
[0052] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0053] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0054] In subsequent descriptions, suffixes such as "module", "component", or "unit" used to represent elements are only for the convenience of description of the present application, and have no specific meaning in themselves. Therefore, "module" and "component" can be used interchangeably.
[0055] To solve the problems mentioned in the background art, according to an aspect of the embodiments of the present application, an embodiment of a method for printing a logistics label is provided.
[0056] Optionally, in the embodiments of the present application, the above method for printing a logistics label may be applied to a hardware environment composed of a terminal 101 and a server 103 as shown in Figure 1 As shown in Figure 1 The server 103 is connected to the terminal 101 through a network, and can be used to provide services for the terminal or a client installed on the terminal. A database 105 may be set on the server or independently of the server, and is used to provide data storage services for the server 103. The above network includes but is not limited to: a wide area network, a metropolitan area network, or a local area network. The terminal 101 includes but is not limited to a PC, a mobile phone, a tablet computer, etc.
[0057] The embodiments of the present application provide a method for printing a logistics label, which can be applied to a server and is used to continuously print logistics labels by using a browser.
[0058] The following will combine with the detailed implementation manners to describe in detail a method for printing a logistics label provided by the embodiments of the present application. As shown in Figure 2 The specific steps are as follows:
[0059] Step 201: Obtain a target order code in an input box of a target browser.
[0060] The target order code is obtained by scanning a target order identification code with a scanning tool.
[0061] In an embodiment of the present application, after the user scans the target order identification code through a scanning tool, the target order code corresponding to the target order identification code will appear in the input box of the target browser of the terminal, and the server obtains the target order code in the input box of the target browser. In the present application, the user may be the shipper.
[0062] There are two ways for the server to obtain the target order code in the input box of the target browser: one way is that after the target browser detects the target order code, it actively sends the target order code to the server; the other way is that the server continuously sends a fetch instruction to the target browser, and after the target browser detects the target order code, it sends the target order code to the server according to the fetch instruction.
[0063] Among them, the scanning tool may be a barcode scanner, and the target order identification code is used to uniquely identify the target order, including but not limited to graphics, symbols, numbers, etc. Exemplarily, the target order identification code may be an order QR code or an order barcode. The target order identification code may be in paper version or electronic version. The target order code is the order number corresponding to the shipped goods. Exemplarily, the order number is a 19-digit digital serial number.
[0064] Step 202: Determine the target logistics information corresponding to the target order code according to the preset correspondence between the order code and the logistics information.
[0065] In an embodiment of the present application, the correspondence between the order code and the logistics information is stored in the database, and the server can determine the target logistics information corresponding to the target order code according to this correspondence. Among them, one order code may correspond to at least one logistics information.
[0066] Step 203: Search in the multiple logistics waybills stored in the database for the target logistics waybill containing the target logistics information.
[0067] Among them, multiple logistics waybills are stored in the database, and the logistics information contained in each logistics waybill is different.
[0068] In an embodiment of the present application, multiple logistics waybills are also stored in the database. Each logistics waybill contains one logistics information, and the logistics information contained in each logistics waybill is different. The server searches in the multiple logistics waybills stored in the database for the target logistics waybill containing the target logistics information.
[0069] Step 204: Invoke the printing function of the target browser to print the target logistics waybill.
[0070] Among them, the target browser is set to a silent printing mechanism to avoid the need to manually close the printing window during the printing process.
[0071] In an embodiment of the present application, after the server obtains the target logistics label, it sends the target logistics label to the target browser of the terminal. The target browser is set to a silent printing mechanism, which can prevent the printing window from being manually closed during the printing process. Here, the situations where the printing window needs to be manually closed include, but are not limited to, the printing window popping up during the printing process. The silent printing mechanism can prevent the printing window from popping up during the printing process, or automatically close the printing window after it pops up, so that the user does not need to manually close the printing window. The server calls the printing function of the target browser to print the target logistics label. Among them, since only the target browser is used in the present application and no third-party client is used, the terminal in the present application is a terminal in a B / S structure system.
[0072] In the present application, it is not necessary to adopt a C / S structure system, so there is no need to install a third-party client on the terminal, which reduces the complexity of the operation process, saves the time for installing the client and the time for starting the client, reduces the time cost, improves the printing efficiency. At the same time, not using a third-party client can also reduce the risk of information leakage. In addition, for the provider of the B / S structure system service, there is no need to develop its own C / S structure system, reducing the additional development cost.
[0073] In view of the situation in the prior art that the B / S structure system requires the user to manually initiate the printing process and a printing window pops up during each printing process, the present application can automatically initiate the printing process. Setting the target browser to the silent printing mechanism can prevent the printing window from popping up during the printing process or automatically close the printing window during the printing process, without the user having to manually close the printing window. Just use a scanning tool to scan the order identification code to achieve continuous printing, improving the printing efficiency.
[0074] In addition, in view of the situation in the prior art that the B / S structure system installs browser function plugins or system plugins to assist the B / S structure system to achieve continuous printing, the present application does not need to install browser function plugins or system plugins, reducing the development cost, reducing the risk of information leakage, and at the same time reducing the user's usage difficulty and the complexity of the initial configuration.
[0075] B / S structure: Browser / Server, browser / server mode. It is a network structure mode after the rise of the WEB. The WEB browser is the main application software on the client side. This mode unifies the client and centralizes the core part of the system function implementation on the server, simplifying the development, maintenance and use of the system.
[0076] C / S structure: Client-Server (C / S) structure. The C / S structure usually adopts a two-layer structure. The server is responsible for data management, and the client is responsible for completing the interaction tasks with the user.
[0077] As an alternative implementation, after the printing of the target logistics waybill is completed, the target browser sends a printing end message to the server, and the server sends a clearing instruction to the target browser to cause the target browser to clear the target order code in the input box. Thus, after the scanning tool scans the new order identification code, a new order code will appear in the input box. The server can also not clear the target order code in the input box. When the scanning tool scans the new order identification code, the new order code will replace the target order code in the input box.
[0078] As an alternative implementation, before invoking the printing function of the target browser to print the target logistics waybill, the method further includes: sending the target logistics waybill to the target browser in a first format, so that the target browser converts the first format into a second format according to the second format information carried in the target logistics waybill, and loads the target logistics waybill in the second format through the web page.
[0079] In the embodiment of the present application, the server sends the target logistics waybill to the target browser in a first format, and the second format information is carried in the target logistics waybill. After receiving the target logistics waybill, the target browser converts the first format into a second format according to the second format information, and loads the target logistics waybill in the second format through the web page of the target browser.
[0080] Exemplarily, the first format is base64 encoding, and the second format is pdf format. The server sends the target logistics waybill to the target browser in base64 format, and the target browser converts the base64 encoding format into pdf format, and then loads the target logistics waybill in pdf format through the web page. Base64 encoding is unreadable, so it can improve the security of information transmission.
[0081] As an alternative implementation, invoking the printing function of the target browser to print the target logistics waybill includes: invoking the printing function of the target browser to print the target logistics waybill; automatically closing the popped-up printing window during the printing process or not popping up the printing window during the printing process; after the printing of the target logistics waybill is completed, controlling the web page that loads the target logistics waybill to automatically close.
[0082] In an embodiment of the present application, after the server detects the target logistics label, it indicates that printing can start, and then calls the printing function of the target browser. Since the target browser adopts a silent printing mechanism, the target browser automatically closes the popped-up printing window or prohibits the popping-up of the printing window during the printing process. When the printing of the target logistics label is completed, the server controls the web page that loads the target logistics label to automatically close, avoiding web page lags caused by the target browser opening multiple web pages and reducing the printing efficiency. The present application can improve the printing efficiency by controlling the automatic closing of the web page.
[0083] In the present application, the server can automatically call the printing function of the target browser in the early stage of printing, automatically close the popped-up printing window during the printing process, and automatically close the web page after printing is completed, thereby realizing continuous printing in a B / S structure system.
[0084] As an optional implementation manner, before obtaining the target order code in the input box of the target browser, the method further includes: receiving a list of shipping orders imported by the target browser, where the list of shipping orders contains multiple shipping order information, and each shipping order information corresponds to an order code; sending a logistics information request to the logistics service provider so that the logistics service provider calls the logistics interface to obtain logistics information, where the logistics request information contains the shipping order information; establishing a correspondence between the order code and the logistics information according to the logistics information fed back by the logistics service provider, and saving the correspondence in the logistics label information, where each order code corresponds to at least one logistics information; saving the logistics label information in the database; calling the logistics cloud printing interface to generate logistics labels containing logistics information, and saving multiple logistics labels in the database.
[0085] In an embodiment of the present application, the user imports a list of shipping orders in the target browser, and the server receives the list of shipping orders imported by the target browser. The list of shipping orders contains multiple shipping order information, and each shipping order information corresponds to an order code. After receiving the list of shipping orders, the server sends a logistics information request to the logistics service provider. The logistics request information contains the shipping order information. The logistics service provider calls the logistics interface to obtain the corresponding logistics information according to the shipping order information, and then feeds back the logistics information to the server. The logistics interface and the logistics service are in one-to-one correspondence.
[0086] Exemplarily, if the shipping order information includes recipient information, the logistics information fed back by the logistics service provider to the server contains the desensitized recipient information.
[0087] The server establishes a correspondence between the order code and the logistics information, saves the correspondence in the logistics order information, and finally calls the logistics cloud printing interface to generate a logistics label containing the logistics information, and saves multiple logistics labels in the database. Among them, the logistics cloud printing interface is the cloud printing interface of the logistics cloud service platform of the logistics service provider
[0088] In this application, the server obtains the logistics order information through the logistics service. The logistics order information includes the correspondence between the order code and the logistics information. The database also stores the logistics label containing the logistics information. After the server obtains the target order code by scanning with a scanning tool subsequently, it can obtain the target logistics label containing the corresponding target logistics information according to this correspondence, and print the target logistics label
[0089] As an optional implementation manner, after the receiving terminal imports the list of shipping orders, the method further includes: generating an order identification code corresponding to each order code; printing multiple order identification codes in a preset order through a printing device, where after the order identification code is scanned by a scanning tool, the corresponding order code will be displayed in the input box of the target browser
[0090] In the embodiment of this application, after the server generates an order identification code corresponding to each order code, it can use the printing device to print multiple order identification codes in a preset order. The user uses a scanning tool to scan the printed order identification codes, so as to generate the corresponding order code and display it in the input box of the target browser. Among them, the preset order can be the generation order of the orders or a random order. This application does not make specific restrictions on the preset order. The printing device can be a printer
[0091] In this application, printing out the order identification code and then the user scanning the paper version of the order identification code with a scanning tool can avoid the user using the mouse or keyboard to obtain the next electronic order identification code compared with scanning the electronic order identification code, reduce the number of times the user uses the mouse or keyboard, and improve the continuous printing efficiency
[0092] As an optional implementation manner, after saving the logistics order information in the database, the method further includes: sending a notification message to the target browser, where the notification message is used to notify the end of the generation of the logistics order information. Among them, the logistics order information also includes the logistics code, the logistics order generation time, and the current logistics status; after receiving the confirmation instruction sent by the target browser, changing the current logistics status from the unshipped status to the shipped status
[0093] In an embodiment of the present application, after the server saves the logistics order information in the database, it also sends a notification message to the target browser to notify that the generation of the logistics order information has ended. The logistics order information not only includes the correspondence between the order code and the logistics information, but also includes the logistics code, the generation time of the logistics order, and the current logistics status. The current logistics status is the unshipped status. After the user confirms that the logistics order information is correct, the user sends a confirmation instruction to the server through the target browser, and the server changes the current logistics status from the unshipped status to the shipped status.
[0094] As an alternative implementation, calling the logistics cloud printing interface to generate a logistics label containing logistics information includes: calling the logistics cloud printing interface to generate a logistics label containing logistics information, where the logistics label carries second-format information; receiving the logistics label sent by the logistics cloud printing interface.
[0095] The server calls the logistics cloud printing interface to generate a logistics label containing logistics information. The logistics label carries second-format information, and the second-format information is used to enable the target browser to convert the first format of the target logistics label to the second format. The logistics cloud printing interface sends the logistics label to the server, and the server stores the logistics label in the database.
[0096] The server is specifically a merchant management system, which includes a background operation module and a production and shipping service module. The user can perform operation processing on the background operation module on the terminal.
[0097] Optionally, an embodiment of the present application also provides a signaling diagram of a method for printing a logistics label, as Figure 3 shown, and the specific steps are as follows.
[0098] Step 1: The shipper queries the order information through the production and shipping service module in the background operation module.
[0099] Step 2: The shipper prints the order identification code according to the order information and pastes the order identification code on the commodity packaging.
[0100] Step 3: The shipper imports the shipped order list to the production and shipping service module through the background management module.
[0101] Step 4: Send a logistics information request to the logistics service provider.
[0102] Step 5: The logistics service provider calls the logistics interface to obtain logistics information.
[0103] Step 6: The logistics service provider feeds back the logistics information to the production and shipping service module.
[0104] Step 7: The production and shipping service module saves the correspondence between the order code and the logistics information and the current logistics status in the logistics order information.
[0105] Step 8: The production and delivery service module sends the logistics order information to the background operation module.
[0106] Step 9: After the shipper confirms that the logistics order information is correct, the background operation module sends a confirmation instruction to the production and delivery service module.
[0107] Step 10: The production and delivery service module calls the logistics cloud printing interface to generate a logistics label containing the logistics information.
[0108] Step 11: The production and delivery service module saves the logistics label.
[0109] Step 12: The shipper scans the target order identification code through a scanning tool
[0110] Step 13: The background operation module obtains the target order code in the input box of the target browser.
[0111] Step 14: The background operation module obtains the target logistics label containing the target logistics information from the production and delivery service module
[0112] Step 15: The background operation module calls a printer to print the target logistics label. Based on the same technical concept, an embodiment of the present application also provides a printing device for a logistics label, as Figure 4 shown, the device includes:
[0113] An acquisition module 401, configured to acquire a target order code in an input box of a target browser, where the target order code is obtained by scanning a target order identification code through a scanning tool;
[0114] A determination module 402, configured to determine target logistics information corresponding to the target order code according to a correspondence between a preset order code and logistics information;
[0115] A search module 403, configured to search, from multiple logistics labels stored in a database, for a target logistics label containing the target logistics information, where multiple logistics labels are stored in the database, and the logistics information included in each logistics label is different;
[0116] A call module 404, configured to call a printing function of the target browser to print the target logistics label, where the target browser is set to a silent printing mechanism to avoid manual closing of a printing window during the printing process.
[0117] Optionally, the device is further configured to:
[0118] Send the target logistics label in the first format to the target browser, so that the target browser converts the first format into the second format according to the second format information carried in the target logistics label, and loads the target logistics label in the second format through the web page.
[0119] Optionally, the calling module 404 is used for:
[0120] Call the printing function of the target browser to print the target logistics label, wherein the target browser is set to a silent printing mechanism to automatically close the printing window popped up during printing, so as to avoid the need to manually close the printing window during printing.
[0121] Optionally, the calling module 404 is used for:
[0122] Call the printing function of the target browser to print the target logistics label, wherein the target browser is set to a silent printing mechanism so as not to pop up a printing window during printing, so as to avoid the need to manually close the printing window during printing.
[0123] Optionally, the device is further used for:
[0124] After the printing of the target logistics label is completed, control the web page loading the target logistics label to automatically close.
[0125] Optionally, the device further includes:
[0126] A receiving module, configured to receive a list of shipping orders imported by the target browser, wherein the list of shipping orders contains multiple pieces of shipping order information, and each piece of shipping order information corresponds to an order code;
[0127] A sending module, configured to send a logistics information request to a logistics service provider, so that the logistics service provider calls a logistics interface to obtain logistics information, wherein the logistics request information contains the shipping order information;
[0128] A establishing module, configured to establish a correspondence between the order code and the logistics information according to the logistics information fed back by the logistics service provider, and save the correspondence in the logistics label information, wherein each order code corresponds to at least one piece of logistics information;
[0129] A saving module, configured to save the logistics label information in a database;
[0130] A generating module, configured to generate a logistics label containing the logistics information through a logistics cloud printing interface, and save multiple logistics labels in the database.
[0131] Optionally, the device is further used for:
[0132] Generate an order identification code corresponding to each of the said order codes;
[0133] Print out a plurality of the said order identification codes in a preset order through a printing device, wherein, after being scanned by a scanning tool, the order identification code will display the corresponding order code in the input box of the target browser.
[0134] Optionally, the device is further configured to:
[0135] Send a notification message to the target browser, wherein the notification message is used to notify that the generation of the logistics order information is completed, and the logistics order information further includes a logistics code, a logistics order generation time, and a current logistics status;
[0136] After receiving a confirmation instruction sent by the target browser, change the current logistics status from the unshipped status to the shipped status.
[0137] Optionally, the generation module is configured to:
[0138] Call the logistics cloud printing interface to generate a logistics label containing the logistics information, wherein the logistics label carries second format information;
[0139] Receive the logistics label output by the logistics cloud printing interface.
[0140] According to another aspect of the embodiments of the present application, the present application provides a target device, as Figure 5 shown, including a memory 503, a processor 501, a communication interface 502, and a communication bus 504. A computer program that can run on the processor 501 is stored in the memory 503. The memory 503 and the processor 501 communicate through the communication interface 502 and the communication bus 504. When the processor 501 executes the computer program, the steps of the above method are implemented.
[0141] The memory and the processor in the above target device communicate through a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0142] The memory may include a Random Access Memory (RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0143] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0144] According to another aspect of the embodiments of the present application, there is also provided a computer-readable medium having non-volatile program code executable by a processor.
[0145] Optionally, in the embodiments of the present application, the computer-readable medium is configured to store program code for the processor to execute the above method.
[0146] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments, and details are not repeated here.
[0147] When the embodiments of the present application are specifically implemented, reference may be made to the above respective embodiments, and corresponding technical effects are achieved.
[0148] It will be understood that the embodiments described herein can be implemented using hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other target units for performing the functions described in this application, or a combination thereof.
[0149] For a software implementation, the techniques described herein can be implemented by units that execute the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented within the processor or external to the processor.
[0150] Those of ordinary skill in the art will realize that the units and algorithm steps of the examples described in connection with the embodiments disclosed herein can be implemented using target hardware, or a combination of computer software and target hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. A professional technician can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0151] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0152] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical functional division, and there can be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.
[0153] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0154] In addition, in each embodiment of the present application, each functional unit can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0155] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes. It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0156] The above are only specific embodiments of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but will conform to the broadest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for printing a logistics label, characterized in that, The method includes: Obtain a target order code in the input box of the target browser, where the target order code is obtained by scanning a target order identification code with a scanning tool; Determine the target logistics information corresponding to the target order code according to the preset correspondence between the order code and the logistics information; Search for a target logistics label containing the target logistics information from multiple logistics labels stored in the database, where multiple logistics labels are stored in the database, and the logistics information contained in each logistics label is different; Call the printing function of the target browser to print the target logistics label, where the target browser is set to a silent printing mechanism so that no printing window pops up during the printing process, or the printing window can be automatically closed after it pops up; Wherein, before obtaining the target order code in the input box of the target browser, the method further includes: After receiving the shipping order list imported by the target browser, generate an order identification code corresponding to each order code; Print multiple order identification codes in a preset order through a printing device, where the paper version of the order identification code will display the corresponding order code in the input box of the target browser after being scanned by the scanning tool; Wherein, after the printing of the target logistics label is completed, obtain the printing end information sent by the target browser; Send a clearing instruction to the target browser according to the printing end information, so that the target browser clears the target order code in the input box. After the scanning tool scans a new order identification code, a new order code will appear in the input box or the new order code will replace the target order code in the input box.
2. The method according to claim 1, wherein Before calling the printing function of the target browser to print the target logistics label, the method further includes: Send the target logistics label to the target browser in a first format, so that the target browser converts the first format into a second format according to the second format information carried in the target logistics label, and loads the target logistics label in the second format through the web page.
3. The method according to claim 1, characterized in that, The calling the printing function of the target browser to print the target logistics label includes: Call the printing function of the target browser to print the target logistics label, where the target browser is set to a silent printing mechanism to automatically close the printing window that pops up during the printing process, so as to avoid manually closing the printing window during the printing process.
4. The method according to claim 1, wherein The calling the printing function of the target browser to print the target logistics label includes: Call the printing function of the target browser to print the target logistics label, where the target browser is set to a silent printing mechanism so that no printing window pops up during the printing process, so as to avoid manually closing the printing window during the printing process.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: After the printing of the target logistics label is completed, control the web page loading the target logistics label to automatically close.
6. The method according to any one of claims 1 to 4, characterized in that, Before obtaining the target order code in the input box of the target browser, the method further includes: Receive the list of shipping orders imported by the target browser, where the list of shipping orders contains multiple shipping order information, and each shipping order information corresponds to an order code; Send logistics request information to the logistics service provider so that the logistics service provider can call the logistics interface to obtain logistics information, where the logistics request information contains the shipping order information; Establish a correspondence between the order code and the logistics information according to the logistics information fed back by the logistics service provider, and save the correspondence in the logistics order information, where each order code corresponds to at least one logistics information; Save the logistics order information in the database; Generate a logistics label containing the logistics information through the logistics cloud printing interface, and save multiple logistics labels in the database.
7. The method according to claim 6, characterized in that, After saving the logistics order information in the database, the method further includes: Send a notification message to the target browser, where the notification message is used to notify the end of the generation of the logistics order information, and the logistics order information also includes a logistics code, a logistics order generation time, and the current logistics status; After receiving the confirmation instruction sent by the target browser, change the current logistics status from the unshipped status to the shipped status.
8. The method according to claim 6, wherein Generating a logistics label containing the logistics information through the logistics cloud printing interface includes: Call the logistics cloud printing interface to generate a logistics label containing the logistics information, where the logistics label carries second format information; Receive the logistics label output by the logistics cloud printing interface.
9. A printing module for a logistics label, characterized in that, The module includes: An acquisition module, configured to acquire a target order code in the input box of the target browser, where the target order code is obtained by scanning a target order identification code with a scanning tool; A determination module, configured to determine the target logistics information corresponding to the target order code according to the preset correspondence between the order code and the logistics information; A search module, configured to search, from multiple logistics labels stored in the database, for a target logistics label containing the target logistics information, where multiple logistics labels are stored in the database, and the logistics information contained in each logistics label is different; A call module, configured to call the printing function of the target browser to print the target logistics label, where the target browser is set to a silent printing mechanism so that no printing window pops up during the printing process, or the printing window can be automatically closed after it pops up; Wherein, the module is further configured to: After receiving the list of shipping orders imported by the target browser, generate an order identification code corresponding to each order code; Print multiple order identification codes in a preset order through a printing device, where the paper version of the order identification code will display the corresponding order code in the input box of the target browser after being scanned by the scanning tool; Wherein, the module is further configured to: After completing the printing of the target logistics label, obtain the printing end information sent by the target browser; Send a clearing instruction to the target browser according to the printing end information, so that the target browser clears the target order code in the input box. After the scanning tool scans a new order identification code, a new order code will appear in the input box or the new order code will replace the target order code in the input box.
10. A merchant management system for an e-commerce platform to manage merchants, characterized in that, The merchant management system includes the printing module described in claim 9.
11. The merchant management system according to claim 10, characterized in that, The e-commerce platform includes an e-commerce platform applied to the C2M model.
12. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used to store computer programs; When the processor is used to execute the program stored on the memory, it realizes the method steps described in any one of claims 1-8.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, it realizes the method steps described in any one of claims 1-8.
Citation Information
Patent Citations
Method and device for processing logistics information
CN106557929A
Information processing method and system, electronic equipment, storage medium and program product
CN113034077A
Method and system for directly printing label under B / S (Browser / Server) architecture
CN113282255A