Batch printing processing method and device
By adopting batch printing processing methods and devices on e-commerce platforms, automatically selecting printers and performing batch printing, the problems of cumbersome and time-consuming printing in the prior art are solved, printing efficiency is improved and delayed delivery risks are reduced.
Patent Information
- Application Number
- CN202510247650.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-06-10
AI Technical Summary
The existing technology is cumbersome when printing express delivery orders and delivery orders on e-commerce platforms, and it consumes a lot of labor, resulting in delayed delivery.
A batch printing processing method and device is adopted to obtain form filtering parameters, automatically select printers, perform express order batch printing, realize automatic printing, and print multiple printers simultaneously through multiple printing processes.
It improves the efficiency of printing express orders and delivery orders, reduces manual intervention, shortens printing time, and avoids delayed delivery.
Smart Images

Figure CN120122904A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of Internet e-commerce backends, and more specifically, to a batch printing processing method and apparatus. Background Art
[0002] Due to the rapid development of the e-commerce industry, after a customer places an order on an e-commerce platform, the merchant needs to deliver the purchased goods to the customer through logistics. The vast majority of logistics choose express delivery. Also, because the express delivery fees of each express company may vary depending on the weight and volume of different goods, there are different calculation methods for express delivery fees.
[0003] Merchants may have multiple express companies shipping goods simultaneously according to different goods, different weights, and different volumes for regular order express bill printing. Existing regular order express bill printing methods usually require selecting a printer for each order and then printing. If the number of orders is large, it will lead to cumbersome printing operations, consume a lot of labor, and may even cause delayed shipments in severe cases.
[0004] Therefore, how to improve the efficiency of printing express bills and shipping bills is an urgent problem to be solved in this application. Summary of the Invention
[0005] In view of this, this application discloses a batch printing processing method and apparatus, aiming to achieve automatic selection of printers, batch printing of express bills, automatic printing, and simultaneous printing on multiple printers through multiple printing processes, thereby improving the efficiency of printing express bills and shipping bills.
[0006] To achieve the above objective, the disclosed technical solutions are as follows:
[0007] A first aspect of this application discloses a batch printing processing method, and the method includes:
[0008] Obtain form screening parameters;
[0009] Obtain express classification list data that meets the screening conditions according to the form screening parameters;
[0010] Determine return list data according to the express classification list data; wherein, the return list data includes orders of multiple different express single batches;
[0011] If the return list data meets the condition for starting automatic printing, start automatic printing so that the obtained target express data to be printed is batch-printed through a preset batch printing method; wherein, the target express data to be printed is obtained by combining the to-be-printed data corresponding to each to-be-printed express node.
[0012] Preferably, obtaining the express classification list data that meets the screening conditions according to the form screening parameters includes:
[0013] If the form screening parameters are not empty, pass the non-empty form screening parameters into the express classification list interface;
[0014] Determine the form screening parameters passed into the express classification list interface as the express classification list data that meets the screening conditions.
[0015] Preferably, determining the returned list data according to the express classification list data includes:
[0016] Obtain a preset number of orders in a preset state from the express classification list data;
[0017] Determine the preset number of orders in the preset state as the order data of one batch until all batches of order data are obtained from the express classification list data to complete the process of returning the list data.
[0018] Preferably, obtaining the target express data to be printed includes:
[0019] If the returned list data meets the condition for starting automatic printing, obtain all the list data of express nodes to be printed;
[0020] Obtain the express data of the current express node to be printed, the list data of the current batch of orders to be printed, and the printer data from all the list data of express nodes to be printed;
[0021] Combine the express data of the current express node to be printed, the list data of the current batch of orders to be printed, and the printer data until the data corresponding to each express node to be printed is completed, and obtain the target express data to be printed.
[0022] Preferably, the step of obtaining all the list data of express nodes to be printed if the returned list data meets the condition for starting automatic printing includes:
[0023] If the returned list data is not empty and the automatic printing function is enabled, determine that the returned list data meets the condition for starting automatic printing;
[0024] Under the condition that the returned list data meets the condition for starting automatic printing, determine whether automatic printing is enabled;
[0025] If the correct automatic printing status value is detected, determine that automatic printing is enabled and return the correct automatic printing status value;
[0026] If the incorrect automatic printing status value is detected, determine that automatic printing is not enabled and determine whether the interface form screening conditions are empty;
[0027] If the filtering conditions of the interface form are empty, an error message is generated;
[0028] If the filtering conditions of the interface form are not empty, all the express delivery node list data to be printed are obtained through the same class style in the page express delivery classification list.
[0029] Preferably, obtaining the express delivery data of the currently to-be-printed express delivery node, the list data of the currently to-be-printed batch of orders, and the printer data from all the express delivery node list data to be printed includes:
[0030] Loop through all the express delivery node list data to be printed to determine whether the currently to-be-printed express delivery node has selected a printer;
[0031] If the currently to-be-printed express delivery node has not selected a printer, skip the currently to-be-printed express delivery node that has not selected a printer;
[0032] If the currently to-be-printed express delivery node has selected a printer, obtain the express delivery data of the currently to-be-printed express delivery node that has selected a printer, the list data of the currently to-be-printed batch of orders of the currently to-be-printed express delivery node that has selected a printer, and the printer data selected by the currently to-be-printed express delivery node that has selected a printer.
[0033] Preferably, it further includes:
[0034] If the returned list data is not empty, perform print list initialization;
[0035] The process of the print list initialization includes:
[0036] Obtain the system printer list data;
[0037] Loop through the returned list data, display the classification of each express delivery line by line on the preset interface, and set the selection item of the printer drop-down list for each express delivery classification to the initial value state of the unselected printer;
[0038] Under the condition that the selection item of the printer drop-down list for each express delivery classification is set to the initial value state of the unselected printer, determine whether the system printer list data is not empty;
[0039] If the system printer list data is not empty, loop through the system printer list data to display each system printer in the drop-down list of selectable printers for each express delivery classification;
[0040] Determine whether the common printer code in the current express delivery type data exists;
[0041] If it does not exist, display the system printer list;
[0042] If it exists and the code of the current system printer in the printer option dropdown list is the same as the preset commonly used printer code for express delivery classification, set the current system printer to the selected state to complete the initialization process of the print list.
[0043] Preferably, if the returned list data meets the condition for starting automatic printing, start automatic printing so that the obtained target express delivery data to be printed is batch-printed by a preset batch printing method, including:
[0044] If the returned list data meets the condition for starting automatic printing, set the order printing occupancy interface and the order express bill data interface; wherein, the order printing occupancy interface is used to avoid duplicate printing.
[0045] Obtain the order ID set, express code, and printer code in the target express delivery data to be printed through the order express bill data interface.
[0046] Combine the order ID set, each express code, and each printer code in the target express delivery data to be printed into each print parameter.
[0047] Batch-print each order to be printed in the target express delivery data to be printed through multiple printing processes and each print parameter, and modify the print status of the printed order through the order modification print interface.
[0048] A second aspect of the present application discloses a batch printing processing device, the device includes:
[0049] A first acquisition unit for acquiring form screening parameters;
[0050] A second acquisition unit for acquiring express delivery classification list data that meets the screening conditions according to the form screening parameters;
[0051] A determination unit for determining the returned list data according to the express delivery classification list data; wherein, the returned list data includes orders of multiple different express deliveries in a single batch.
[0052] A batch printing unit for starting automatic printing if the returned list data meets the condition for starting automatic printing, so that the obtained target express delivery data to be printed is batch-printed by a preset batch printing method; wherein, the target express delivery data to be printed is obtained by combining the to-be-printed data corresponding to each to-be-printed express delivery node.
[0053] Preferably, the second acquisition unit includes:
[0054] An incoming module for, if the form screening parameters are not empty, passing the non-empty form screening parameters to the express delivery classification list interface.
[0055] The first determination module is configured to determine the form screening parameters passed into the express delivery classification list interface as express delivery classification list data that meet the screening conditions.
[0056] As can be seen from the above technical solution, the present application discloses a batch printing processing method and apparatus. The method includes: obtaining form screening parameters, obtaining express delivery classification list data that meet the screening conditions according to the form screening parameters, and determining return list data according to the express delivery classification list data. The return list data includes order data of multiple different express deliveries in a single batch. If the return list data meets the condition for starting automatic printing, start automatic printing so that the obtained target express delivery data to be printed is batch-printed by a preset batch printing method. The target express delivery data to be printed is obtained by combining the to-be-printed data corresponding to each to-be-printed express delivery node. Through the above solution, there is no need for the merchant to select a printer for each order's express delivery to perform the operation of printing the express delivery order. As long as the return list data meets the condition for starting automatic printing, the obtained target express delivery data to be printed is batch-printed by a preset batch printing method, so as to automatically select a printer, batch-print express delivery orders, perform automatic printing, and simultaneously print on multiple printers through multiple printing processes by the preset batch printing method, thereby improving the printing efficiency of express delivery orders and shipping orders. Description of the Drawings
[0057] 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 for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.
[0058] Figure 1 It is a schematic flowchart of a batch printing processing method disclosed in an embodiment of the present application;
[0059] Figure 2 It is a schematic diagram of form screening parameters disclosed in an embodiment of the present application;
[0060] Figure 3 It is a schematic diagram of the system front-end interface disclosed in an embodiment of the present application;
[0061] Figure 4 It is a schematic flowchart of express delivery order printing disclosed in an embodiment of the present application;
[0062] Figure 5 It is a schematic structural diagram of a batch printing processing apparatus disclosed in an embodiment of the present application;
[0063] Figure 6 It is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application. Detailed implementation manners
[0064] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0065] In the present application, the term "including", "comprising" 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 expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0066] As can be seen from the background art, merchants may print regular order express delivery forms for multiple express delivery companies simultaneously according to different commodities, different weights, and different volumes. The existing regular order express delivery form printing method usually requires selecting a printer for each order and then printing. If the number of orders is large, it will lead to cumbersome printing operations, labor-consuming, and may even cause delayed delivery in serious cases. Therefore, how to improve the efficiency of printing express delivery forms and shipping forms is an urgent problem to be solved in the present application.
[0067] To solve the above problems, the present application discloses a batch printing processing method and device, which do not require merchants to select a printer for each order's express delivery to perform the express delivery form printing operation. Only when the returned list data meets the conditions for starting automatic printing, the obtained target express delivery data to be printed is batch-printed through a preset batch printing method, so as to automatically select a printer, batch-print express delivery forms, automatically print, and simultaneously print on multiple printers through multiple printing processes through the preset batch printing method, thereby improving the printing efficiency of express delivery forms and shipping forms. The specific implementation manner will be specifically described through the following embodiments.
[0068] Refer to Figure 1 As shown, a batch printing processing method disclosed in an embodiment of the present application mainly includes the following steps:
[0069] S101: Obtain form screening parameters.
[0070] Among them, the form screening parameters are specifically as Figure 2 shown.
[0071] Figure 2 Among them, the form filtering parameter is used to set that the printable order meets the set quantity, and automatic printing starts after, for example, 1 piece; the form filtering parameter can also be used to set that only the merchant code is equal to the set quantity, such as printing a single-item order with 2 pieces; the form filtering parameter can also be used to set that the order amount is greater than the set amount range, such as printing an order with an order amount greater than 500 yuan and less than 1000 yuan.
[0072] S102: Obtain the express classification list data that meets the filtering conditions according to the form filtering parameter.
[0073] In S102, if the form filtering parameter is not empty, the non-empty form filtering parameter is passed into the express classification list interface, and the form filtering parameter passed into the express classification list interface is determined as the express classification list data that meets the filtering conditions.
[0074] The express classification list data that meets the filtering conditions refers to the order data of a preset quantity of orders in a preset state determined as 1 batch. For example, each express classification obtains 50 unprinted and unoccupied or self-occupied orders as the express classification list data of 1 batch, which is the express classification list data that meets the filtering conditions.
[0075] After selecting and filling in the form filtering parameter in the front-end interface of the system (the operating system for batch printing express bills by multiple printers simultaneously), in response to the query instruction, the method for obtaining the express classification list data is called to obtain the express classification list data that meets the filtering conditions. Among them, the system front-end interface is specifically as Figure 3 shown.
[0076] The content example of the specific express classification list data is as follows:
[0077] array(
[0078] '111' => array(
[0079] 'Express code' => 111,
[0080] 'Express name' => '
Express platform
[0081] 'Total number of orders to be printed for the current express' => 3,
[0082] 'Order data to be printed for the current batch' => 'Order number 1, Order number 2...',
[0083] 'Common printer code for the current express' => '1',
[0084] )
[0085] '222' => array(
[0086] 'Express Code' => 222,
[0087] 'Express Name' => '
Express Platform
[0088] 'Total Number of Orders to be Printed for Current Express' => 4,
[0089] 'Order Data to be Printed for Current Batch' => 'Order Number 1, Order Number 2...',
[0090] 'Common Printer Code for Current Express' => '2,
[0091] )
[0092] )
[0093] The specific process of obtaining the express classification list data is as follows:
[0094] Judge whether the form screening parameter is empty. If the form screening parameter is empty, then judge whether automatic printing (isStartAutoPrint) is enabled;
[0095] If isStartAutoPrint is equal to false, then pop up an error prompt and return;
[0096] If isStartAutoPrint is equal to true, then directly return. If the form screening parameter is not empty, then call the system background to obtain the express classification list interface and pass in the screening parameter;
[0097] Obtain the express classification list data that meets the screening conditions through this express classification list interface.
[0098] S103: Determine the returned list data according to the express classification list data; among them, the returned list data includes orders for multiple different express in a single batch.
[0099] In S103, obtain a preset number (50) of orders in a preset state from the express classification list data, and determine the preset number (50) of orders in a preset state as the order data for 1 batch, until all batch order data is obtained from the express classification list data to complete the process of returning the list data.
[0100] The specific process of determining the returned list data according to the express classification list data is as follows:
[0101] Obtain the express classification list data that meets the screening conditions. For each express classification, obtain 50 unprinted and unoccupied or self-occupied orders as a batch, and return all the data to the system front-end. According to each express classification, take the express classification list data that meets the screening conditions, such as 50 unprinted and unoccupied or occupied by the currently logged-in account (occupied when the currently logged-in user prints the express bill in the following step D1 to avoid multiple repeated prints caused by multiple accounts operating the print simultaneously) as a batch, until all batch order data is obtained from the express classification list data to complete the process of returning the list data;
[0102] Return the returned list data to the system front-end to determine whether the returned list data is empty;
[0103] If the returned list data is empty, determine whether isStartAutoPrint is not enabled. If isStartAutoPrint is equal to false, pop up an error prompt and return;
[0104] If the returned list data is not empty, perform print list initialization (the specific process can refer to the following 1.1 - 1.6), and pass in the express classification list data returned by the interface. Regardless of whether the list data returned by the interface is empty, after the internal logic is executed, it will be judged whether isStartAutoPrint is enabled;
[0105] If isStartAutoPrint is equal to true, change the value of isStartAutoPrint to false and perform start automatic printing (the specific process of starting automatic printing can refer to the following A1 - A3), respond to the start function of the system interface, trigger automatic printing, and call start automatic printing.
[0106] S104: If the returned list data meets the conditions for starting automatic printing, start automatic printing so that the obtained target express data to be printed is batch-printed through a preset batch printing method; among them, the target express data to be printed is obtained by combining the to-be-printed data corresponding to each to-be-printed express node.
[0107] The specific process of obtaining the target express data to be printed is as shown in A1 - A3.
[0108] A1: If the returned list data meets the conditions for starting automatic printing, obtain the list data of all to-be-printed express nodes.
[0109] Specifically, if the returned list data meets the conditions for starting automatic printing, the process of obtaining the list data of all to-be-printed express nodes is as shown in B1 - B6.
[0110] B1: If the returned list data is not empty and the automatic printing function is enabled, it is determined that the returned list data meets the conditions for starting automatic printing.
[0111] If the returned list data is not empty, perform the initialization of the print list. The process of initializing the print list is as shown in 1.1 - 1.7:
[0112] 1.1: Obtain the system printer list data.
[0113] 1.2: Loop through the returned list data, display the classification of each express delivery in a separate line on the preset interface, and set the selection items of the printer drop - down list for each express delivery classification to the initial value state of unselected printers.
[0114] 1.3: With the selection items of the printer drop - down list for each express delivery classification set to the initial value state of unselected printers, determine whether the system printer list data is not empty.
[0115] 1.4: If the system printer list data is not empty, loop through the system printer list data to display each system printer in the drop - down list of selectable printers for each express delivery classification.
[0116] 1.5: Determine whether there is a common printer code in the current express delivery type data.
[0117] 1.6: If it exists and the code of the current system printer in the drop - down list of selectable printers is the same as the preset common printer code for the express delivery classification, set the current system printer to the selected state to complete the process of initializing the print list.
[0118] Among them, the preset common printer code for the express delivery classification is the sorting key when obtaining the local printer list. For example, the first printer key in the list is 1, and the second printer key is 2.
[0119] 1.7: If it does not exist, display the system printer list.
[0120] B2: Under the condition that the returned list data meets the conditions for starting automatic printing, determine whether automatic printing is enabled.
[0121] B3: If the correct automatic printing status value is detected (i.e., the automatic printing status value is true), determine that automatic printing is enabled and return the correct automatic printing status value.
[0122] Among them, determining whether automatic printing is enabled means determining the automatic printing status value. If the automatic printing status value is true, determine that automatic printing is enabled and return the correct automatic printing status value.
[0123] B4: If the automatic printing status value is detected as incorrect (i.e., the automatic printing status value is false), determine that automatic printing is not enabled and check whether the filtering conditions of the interface form are empty.
[0124] B5: If the filtering conditions of the interface form are empty, generate an error message and return.
[0125] Among them, the filtering conditions of the interface form being empty means that Figure 2 none of the form filtering parameters in
[0126] B6: If the filtering conditions of the interface form are not empty, obtain all the data of the express nodes to be printed through the same class style in the page express classification list.
[0127] A2: Obtain the express data of the current express node to be printed, the list data of the current batch of orders to be printed, and the printer data from all the data of the express nodes to be printed.
[0128] It should be noted that each node contains all the data in each express line node on the page. Through this node, the total number of orders to be printed for this express, the data of the orders to be printed in the current batch, and the printer code selected in the current batch can be obtained.
[0129] The specific process of obtaining the express data of the current express node to be printed, the list data of the current batch of orders to be printed, and the printer data from all the data of the express nodes to be printed is shown in C1 - C3.
[0130] C1: Loop through all the data of the express nodes to be printed to determine whether the printer is selected for the current express node to be printed.
[0131] C2: If the printer is not selected for the current express node to be printed, skip the current express node to be printed for which the printer is not selected.
[0132] C3: If the printer is selected for the current express node to be printed, obtain the express data of the current express node to be printed for the selected printer, the list data of the current batch of orders to be printed for the current express node to be printed for the selected printer, and the printer data selected for the current express node to be printed for the selected printer.
[0133] A3: Combine the express data of the current express node to be printed, the list data of the current batch of orders to be printed, and the printer data until the data corresponding to each express node to be printed is combined, obtaining the target express data to be printed.
[0134] When all the express node data lists are processed, set the automatic print status value to true, hide the start button of the system interface, display the stop button, display the mask layer, prohibit all other operation items on the page except the stop button, and determine whether the target express data to be printed is empty;
[0135] If the target express data to be printed is empty, enable a one-time timed task method and return. This timed method can be named aotuPrintTimeOutFn and will be called once every preset time (set according to the actual situation, and the preset time is not specifically limited), such as once every 5 seconds. Then loop through all the target express data to be printed, and call the express bill printing in each target express data to be printed, passing in the target express data to be printed. This method is an asynchronous method, which allows multiple printing processes to proceed simultaneously.
[0136] For the convenience of understanding the process of express bill printing, combined with Figure 4 the following is an example for illustration:
[0137] For example:
[0138] Set the order to be printed as occupied by the currently logged-in account,
[0139] Obtain the order printing data corresponding to this order;
[0140] Print the express bill through the order printing data;
[0141] Set the express bill printing status of the order to the printed status;
[0142] Print the delivery note corresponding to the printed status, and modify the delivery note printing status of the order to the printed status;
[0143] Query whether there are still remaining orders to be printed;
[0144] If there are remaining orders to be printed, pass in the information of the next batch of orders to be printed returned, and then loop to execute the express bill printing process;
[0145] If there are no remaining orders to be printed, end the printing.
[0146] The above process of A1 - A3 is the process of starting automatic printing.
[0147] Specifically, if the returned list data meets the conditions for starting automatic printing, start automatic printing, so that the obtained target express data to be printed is batch-printed through the preset batch printing method, as shown in D1 - D4.
[0148] D1: If the returned list data meets the conditions for starting automatic printing, set the order printing occupancy interface and the order express bill data interface; among them, the order printing occupancy interface is used to avoid duplicate printing.
[0149] In D1, call the system background to set the order printing occupancy interface, pass the order ID set in the current data to be printed into the order printing occupancy interface, and set these orders as occupied by the current logged-in user to prevent other users from obtaining duplicate prints, and return the set of successfully occupied order IDs.
[0150] Judge whether the interface call is successful and whether the data returned by the interface is empty;
[0151] If the interface call is unsuccessful or the data returned by the interface is empty, call the method for querying the remaining batch order data of the express delivery and the method for detecting the printing status to determine whether the current express delivery still needs to be printed and whether all express deliveries still need to be printed. If printing is still required, other processes will execute and the current process will end. If the judgment fails, the returned set of order IDs will be reassigned to the set of order IDs in the current data to be printed.
[0152] Among them, the process of the method for querying the remaining batch order data of the express delivery is as shown in 2.1 - 2.4:
[0153] 2.1: Call the system background to query the batch order interface under the express delivery classification;
[0154] 2.2: Pass the express delivery code in the current data to be printed into the batch order interface under the express delivery classification, obtain the next batch of orders to be printed under the current express delivery classification, and judge whether the returned data of the next batch of orders is empty;
[0155] 2.3: If the returned data of the next batch of orders is empty, directly delete the current express delivery classification node in the express delivery classification list on the system front-end interface and call;
[0156] 2.4: If the returned data of the next batch of orders is not empty, replace the order data in the data to be printed with the returned order data, and then perform express delivery note printing to achieve recursive automatic printing of this express delivery type in a single process.
[0157] The specific method for detecting the printing status is as shown in 3.1 - 3.7:
[0158] 3.1: Judge whether automatic printing is enabled, that is, judge whether the automatic printing status value is true or false;
[0159] 3.2: If the automatic printing status value is false, it is determined that automatic printing is not enabled;
[0160] 3.3: If the automatic printing status value is true, it is determined that automatic printing is not enabled, set a status value stop equal to true, obtain the list data of all express delivery nodes to be printed through the same class style, and loop through this list data;
[0161] 3.4: Determine whether the current express node has selected a printer and whether the list data of the current batch of orders to be printed at the current express node is empty;
[0162] 3.5: If the current express node has not selected a printer, or the list data of the current batch of orders to be printed at the current express node is empty, skip the processing of the current express node and continue with the processing of the next loop node;
[0163] 3.6: If the above judgment is not established (that is, the current express node has selected a printer and the list data of the current batch of orders to be printed at the current express node is not empty), modify the stop value to false. After all node loop processing is completed, determine whether the stop value is true;
[0164] 3.7: If the stop value is true, call the method to stop automatic printing.
[0165] The specific process of the method to stop automatic printing is as shown in 4.1 - 4.3:
[0166] 4.1: In response to the system interface stop signal, determine whether automatic printing is enabled;
[0167] 4.2: If the automatic printing status value is equal to false, it is determined that automatic printing is not enabled, and directly return;
[0168] 4.3: If the automatic printing status value is equal to true, it is determined that automatic printing is enabled, then cancel the aotuPrintTimeOutFn timing method during startup printing, set the automatic printing status value to false, hide the system interface stop button, display the start button, close the mask layer, and allow all other operation items on the page to be operable.
[0169] D2: Obtain the order ID set, express code, and printer code in the target express data to be printed through the order express bill data interface.
[0170] Specifically, call the system background to obtain the order express bill data interface, pass in the order ID set in the current data to be printed through the order express bill data interface, obtain the express bill data of these order IDs, and return the order ID set and express bill data for which the express bill data has been successfully obtained;
[0171] Determine whether the call to the order express bill data interface is successful and whether the data returned by the order express bill data interface is empty. If the interface call is unsuccessful or the data returned by the interface is empty, then call the method for querying the remaining batch order data of the express (specifically refer to 2.1 - 2.4 above), call the printing status detection method (specifically refer to 3.1 - 3.8 above) and return. Determine whether the current express still needs to be printed and whether all expresses still need to be printed. If further printing is required, other processes will execute and the current process has ended. If the judgment fails, reassign the returned order ID set to the order ID set in the current data to be printed.
[0172] D3: Combine the order ID set, each express code, and each printer code in the target data to be printed for the express into each printing parameter.
[0173] In D3, obtain the printer code, printer data, and express bill data in the current data to be printed in the target data to be printed for the express. Combine the printer code, printer data, and express bill data in the current data to be printed into printing parameters, set the printer configuration parameters, and pass in the printing parameters to call the printer printing method to print the express bill.
[0174] Call the system background interface for setting the commonly used printer for the express, pass in the express code and the selected printer code in the current data to be printed, and set the commonly used printer for the current express code; call the system background interface for modifying the order printing status, pass in the order ID set in the current data to be printed, and set the express printing status of the orders corresponding to the order ID set to the printed status. If the modification of the express printing status of the order fails, then determine whether the call to the order printing status interface is successful. If the call to the order printing status interface is unsuccessful, then call the method for querying the remaining batch order data of the express (the specific process can refer to 2.1 - 2.4 above), and call the printing status detection method (the specific process can refer to 3.1 - 3.8 above) and return. Determine whether the current express still needs to be printed and whether all expresses still need to be printed. If further printing is required, other processes will execute and the current process has ended.
[0175] Obtain the shipping note node data, determine whether a printer has been selected for the current shipping note. If a printer has been selected, then call the system background interface for obtaining the shipping note data, pass in the order ID set in the current data to be printed, obtain the printer code from the shipping note node data, combine the printer code, printer data, and the shipping note data obtained from the background interface to get the printing parameters, set the printer configuration parameters, then pass in the printing parameters, call the printer printing method to print the shipping note, and after printing the shipping note, call the system background interface for modifying the shipping note printing status of the order, pass in the order ID set in the current data to be printed, and set the shipping note printing status of these orders to the printed status.
[0176] D4: Batch-print each order in the target express delivery data to be printed through multiple printing processes and respective printing parameters, and modify the printing status of the printed order through the order modification printing status interface.
[0177] The processes of D1 - D4 above are the processes of express delivery form printing.
[0178] In this solution, the express delivery classification list data that meets the screening conditions is obtained through screening parameters in the system. For each express delivery classification, 50 unprinted and unoccupied or self - occupied orders are obtained as a batch and returned. The local printer list is obtained, and the express delivery classification list data is looped through and displayed on the system front - end interface. The printer list is placed as a drop - down list option within each express delivery classification for selection. If there is a commonly used printer for the current express delivery classification and this printer is in the local printer list, then this printer is set to the selected state, which can reduce the printer selection operation for the current express delivery classification;
[0179] When automatic printing is started, the entire system front - end interface will be locked, and no other operations can be performed except the stop button. The express delivery classification list data is looped through, a process is created for each express delivery classification, and express delivery printing is performed;
[0180] The steps of express delivery printing are as follows: Set the current batch of orders for this express delivery classification as occupied to prevent duplicate printing by other users. Obtain the order printing data, perform express delivery form printing. After printing is completed, set the current printer as the commonly used printer for the current express delivery, and set the express delivery form printing status of the current batch of orders as printed to prevent duplicate printing. Print the order shipping note, and set the shipping note printing status of the current batch of orders as printed to prevent duplicate printing. Query the remaining orders to be printed for this express delivery. If there are remaining orders to be printed, directly repeat the express delivery printing process. If there are no remaining orders to be printed, end this process, and determine whether all printing processes have ended. If all have ended, then stop the automatic printing;
[0181] When the automatic printing is stopped, the entire system front - end interface will be unlocked. Printers can be selected for different express delivery classifications, and the express delivery classification data can also be screened and queried again.
[0182] This application can automatically select a printer for the express delivery slips selected for an order based on previous printing records, batch-print express delivery slips, achieve automated printing, greatly reduce the degree of manual intervention, and enable simultaneous printing on multiple printers. Moreover, through this solution, the batch-printing function of order express delivery slips can be realized, and after obtaining the system printers, the commonly used printers for this express delivery can be automatically matched for express delivery slip printing, thereby achieving automatic printer selection, batch printing of express delivery slips, automatic printing, and simultaneous printing on multiple printers. There is no need for merchants to select printers for express delivery slip printing for each order one by one, saving a large amount of time and effort, reducing labor costs for enterprises, and improving the automation ability of platform data synchronization.
[0183] Advantages of the embodiments of this application: There is no need for merchants to select printers for express delivery slip printing for each order one by one. As long as the returned list data meets the conditions for starting automatic printing, the obtained target express delivery data to be printed is batch-printed through a preset batch-printing method, so as to realize automatic printer selection, batch printing of express delivery slips, automatic printing, and simultaneous printing on multiple printers through multiple printing processes by means of the preset batch-printing method, thereby improving the printing efficiency of express delivery slips and shipping documents.
[0184] Based on the above embodiments Figure 1 For a disclosed batch-printing processing method, the embodiments of this application also correspondingly disclose a batch-printing processing device, as Figure 5 shown. The batch-printing processing device includes:
[0185] A first acquisition unit 501, configured to acquire form screening parameters;
[0186] A second acquisition unit 502, configured to acquire express delivery classification list data that meets the screening conditions according to the form screening parameters;
[0187] A determination unit 503, configured to determine the returned list data according to the express delivery classification list data; wherein, the returned list data includes orders of multiple different express deliveries in a single batch;
[0188] A batch-printing unit 504, configured to start automatic printing if the returned list data meets the conditions for starting automatic printing, so that the obtained target express delivery data to be printed is batch-printed through a preset batch-printing method; wherein, the target express delivery data to be printed is obtained by combining the to-be-printed data corresponding to each to-be-printed express delivery node.
[0189] Furthermore, the second acquisition unit 502 includes:
[0190] An incoming module, configured to, if the form screening parameters are not empty, pass the non-empty form screening parameters to the express delivery classification list interface;
[0191] The first determination module is used to determine the form screening parameters passed into the express classification list interface as express classification list data that meet the screening conditions.
[0192] Further, the determination unit 503 includes:
[0193] The first acquisition module is used to acquire a preset number of orders in a preset state from the express classification list data;
[0194] The second determination module is used to determine the orders in a preset number and in a preset state as the order data of one batch until all batches of order data are obtained from the express classification list data to complete the process of returning the list data.
[0195] Further, the batch printing unit 504 for acquiring the target express data to be printed includes:
[0196] The second acquisition module is used to acquire all the express node list data to be printed if the returned list data meets the condition for starting automatic printing;
[0197] The third acquisition module is used to acquire the express data of the current express node to be printed, the list data of the current batch of orders to be printed, and the printer data from all the express node list data to be printed;
[0198] The first combination module is used to combine the express data of the current express node to be printed, the list data of the current batch of orders to be printed, and the printer data until the data corresponding to each express node to be printed is completed, and the target express data to be printed is obtained.
[0199] Further, the second acquisition module includes:
[0200] The first determination sub-module is used to determine that the returned list data meets the condition for starting automatic printing if the returned list data is not empty and the automatic printing function is enabled;
[0201] The judgment sub-module is used to judge whether automatic printing is enabled under the condition that the returned list data meets the condition for starting automatic printing;
[0202] The second determination sub-module is used to determine that automatic printing is enabled and return the correct automatic printing status value if the correct automatic printing status value is detected;
[0203] The third determination sub-module is used to determine that automatic printing is not enabled and judge whether the interface form screening condition is empty if the automatic printing status value is incorrect;
[0204] The generation sub-module is used to generate an error message if the interface form screening condition is empty;
[0205] The first acquisition sub-module is used to obtain all the data of the list of express nodes to be printed through the same class style in the page express classification list if the interface form screening conditions are not empty.
[0206] Further, the third acquisition module includes:
[0207] The judgment sub-module is used to loop through all the data of the list of express nodes to be printed to judge whether the current express node to be printed selects a printer;
[0208] The skip sub-module is used to skip the current express node to be printed that does not select a printer if the current express node to be printed does not select a printer;
[0209] The second acquisition sub-module is used to obtain the express data of the current express node to be printed that selects a printer, the list data of the current batch of orders to be printed of the current express node to be printed that selects a printer, and the printer data selected by the current express node to be printed that selects a printer if the current express node to be printed selects a printer.
[0210] Further, it also includes:
[0211] The execution unit is used to execute the print list initialization if the returned list data is not empty;
[0212] The execution unit includes:
[0213] The fourth acquisition module is used to obtain the system printer list data;
[0214] The setting module is used to loop through the returned list data, display the classification of each express on separate lines in the preset interface, and set the selection items of the printer drop-down list for each express classification to the initial value state of not selecting a printer;
[0215] The setting judgment module is used to judge whether the system printer list data is not empty when the selection items of the printer drop-down list for each express classification are set to the initial value state of not selecting a printer;
[0216] The traversal module is used to traverse the system printer list data if the system printer list data is not empty to display each system printer in the drop-down list of selectable printers for each express classification;
[0217] The judgment module is used to judge whether there is a common printer code in the current express type data;
[0218] The display module is used to display the system printer list if it does not exist;
[0219] The first setting module is used to, if it exists and the code of the current system printer in the printer option drop-down list is consistent with the preset common printer code for express classification, set the current system printer to the selected state to complete the initialization process of the print list.
[0220] Further, the batch printing unit includes:
[0221] The second setting module is used to, if the returned list data meets the conditions for starting automatic printing, set the order printing occupancy interface and the order express bill data interface; among them, the order printing occupancy interface is used to avoid repeated printing.
[0222] The fifth acquisition module is used to obtain the order ID set, express code, and printer code in the target express data to be printed through the order express bill data interface.
[0223] The second combination module is used to combine the order ID set, each express code, and each printer code in the target express data to be printed into each print parameter.
[0224] The batch printing module is used to batch-print each order to be printed in the target express data to be printed through multiple printing processes and each print parameter, and modify the printing status of the printed order through the order modification printing interface.
[0225] The beneficial effects of the embodiments of the present application: There is no need for merchants to select printers for express bill printing operation for each order's express one by one. As long as the returned list data meets the conditions for starting automatic printing, the obtained target express data to be printed is batch-printed through the preset batch printing method, so as to realize automatic selection of printers, batch printing of express bills, automatic printing, and simultaneous printing of multiple printers through multiple printing processes through the preset batch printing method, thereby improving the printing efficiency of express bills and shipping bills.
[0226] The embodiments of the present application also provide a storage medium, and the storage medium includes stored instructions. Among them, when the instructions run, they control the device where the storage medium is located to execute the above batch printing processing method.
[0227] The embodiments of the present application also provide an electronic device, and its structural schematic diagram is as Figure 6 shown, specifically including a memory 601, and one or more instructions 602. Among them, one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to execute the above batch printing processing method.
[0228] For the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0229] It should be noted that the various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other. For system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and reference can be made to the corresponding parts of the method embodiments for the relevant content.
[0230] The steps in the methods of the embodiments of this application can be adjusted, combined, and deleted according to actual needs.
[0231] Finally, it should also be noted that in this text, 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.
[0232] The above description of the disclosed embodiments enables those skilled in the art to implement or use this 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 scope of this application. Therefore, this application will not be limited to these embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0233] The above is only the preferred embodiment of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of this application.
Claims
1. A batch printing processing method, characterized in that: The method comprises: Get form filtering parameters; Acquire express category list data that meets the screening conditions according to the form screening parameters; Determine return list data according to the express classification list data; wherein the return list data includes orders of multiple single batches of different express delivery; If the returned list data meets the conditions for starting automatic printing, automatic printing is started so that the acquired target express data to be printed is batch printed through a preset batch printing method; wherein, the target express data to be printed is obtained by combining the data to be printed corresponding to all the express nodes to be printed.
2. The method according to claim 1, characterized in that: The step of obtaining express category list data that meets the screening conditions according to the form screening parameters includes: If the form screening parameter is not empty, the form screening parameter that is not empty is passed to the express category list interface; The form filter parameters passed into the express category list interface are determined as the express category list data that meets the filter conditions.
3. The method according to claim 1, characterized in that: The step of determining the return list data according to the express classification list data includes: Acquire a preset number of orders in a preset state from the express classification list data; The preset number of orders in a preset state are determined as one batch of order data until all batches of order data are obtained from the express classification list data to complete the process of returning the list data.
4. The method according to claim 1, characterized in that: Get the target express data to be printed, including: If the returned list data meets the conditions for starting automatic printing, obtain the list data of all express nodes to be printed; Obtain the express data of the current express node to be printed, the current batch order list data to be printed and the printer data from all express node list data to be printed; The express data of the current express node to be printed, the current batch order list data to be printed and the printer data are combined until the data corresponding to all the express nodes to be printed are combined to obtain the target express data to be printed.
5. The method according to claim 4, characterized in that If the returned list data meets the conditions for starting automatic printing, obtaining all express node list data to be printed includes: If the returned list data is not empty and the automatic printing function is turned on, determining that the returned list data meets the automatic printing start-up condition; If the returned list data meets the conditions for starting automatic printing, determining whether automatic printing is turned on; If the automatic printing status value is detected to be correct, it is determined that the automatic printing is turned on, and the correct automatic printing status value is returned; If it is detected that the automatic printing status value is wrong, it is determined that the automatic printing is not turned on, and whether the interface form screening condition is empty; If the interface form screening condition is empty, an error message is generated; If the interface form screening condition is not empty, obtain the list data of all express nodes to be printed through the same class style of the express category list on the page.
6. The method according to claim 4, characterized in that The method of obtaining the express data of the current express node to be printed, the order list data of the current batch to be printed, and the printer data from the list data of all express nodes to be printed includes: Loop through all the list data of the express nodes to be printed to determine whether the printer is selected for the current express node to be printed; If the current express node to be printed has no selected printer, skip the current express node to be printed with no selected printer; If the current express node to be printed selects a printer, obtain the express data of the current express node to be printed of the selected printer, the current batch order list data to be printed of the current express node to be printed of the selected printer, and the printer data selected by the current express node to be printed of the selected printer.
7. The method according to claim 5, characterized in that Also includes: If the returned list data is not empty, execute print list initialization; The process of initializing the print list includes: Get system printer list data; Loop through the returned list data, display each express category in a separate line on the preset interface, and set the printer drop-down list selection item of each express category to the initial value state of the unselected printer; When the printer drop-down list selection item for each express category is set to the initial value of unselected printers, determine whether the system printer list data is not empty; If the system printer list data is not empty, traverse the system printer list data to display each system printer in the printer option drop-down list of each express category; Determine whether the commonly used printer code in the current express type data exists; If it does not exist, the system printer list will be displayed; If it exists, and the code of the current system printer in the printer option drop-down list is consistent with the preset express classification commonly used printer code, set the current system printer to the selected state to complete the print list initialization process.
8. The method according to claim 1, characterized in that: If the returned list data meets the automatic printing start condition, the automatic printing is started so that the acquired target express data to be printed is batch printed by a preset batch printing method, including: If the returned list data meets the conditions for starting automatic printing, an order printing occupation interface and an order express order data interface are set; wherein the order printing occupation interface is used to avoid repeated printing; Obtain the order ID set, express code and printer code in the target express data to be printed through the order express data interface; Combining the order ID set, each express code and each printer code in the target express data to be printed into each printing parameter; Through multiple printing processes and various printing parameters, batch printing is performed on each order to be printed in the target express data to be printed, and the printing status of the printed order is modified through the order modification printing interface.
9. A batch printing processing device, characterized in that: The device comprises: A first acquisition unit, used to acquire form screening parameters; A second acquisition unit, used for acquiring express classification list data meeting the screening conditions according to the form screening parameters; A determination unit, used to determine return list data according to the express classification list data; wherein the return list data includes orders of a plurality of single batches of different express delivery; The batch printing unit is used to start automatic printing if the returned list data meets the conditions for starting automatic printing, so that the acquired target express data to be printed is batch printed through a preset batch printing method; wherein, the target express data to be printed is obtained by combining the data to be printed corresponding to all the express nodes to be printed.
10. The device according to claim 9, characterized in that The second acquisition unit includes: The input module is used to input the non-empty form filtering parameters into the express classification list interface if the form filtering parameters are not empty; The first determination module is used to determine the form screening parameters passed into the express classification list interface as express classification list data that meets the screening conditions.
Citation Information
Cited By
Mobile phone shell printing equipment and control method thereof
CN120963218A