Picking order batch printing method and system
By dividing the printed paper into four identical areas and adjusting the printing area according to the height proportion of the picking order, the problems of waste and inconsistent size of the picking order paper are solved, and efficient picking order printing and cutting are achieved.
Patent Information
- Application Number
- CN202510396301.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-08
AI Technical Summary
During e-commerce activities, the printing paper utilization rate of picking orders is low, resulting in serious paper waste. The printing sizes of non-standard picking orders are uneven, making it difficult to cut and allocate them to multiple pickers in a unified manner.
Divide the print paper into four printing areas of the same size. The printing areas are adaptively allocated according to the height ratio of the picking order, and a picking order combination is generated. By adjusting the picking order template and adaptive logic, multiple picking orders are combined to print on one piece of paper.
It greatly improves the utilization rate of printing paper, unifies the printing size of non-standard picking orders, makes them batch-cut, and improves picking efficiency.
Smart Images

Figure CN120276690A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a method and system for batch printing of picking lists. Background Art
[0002] In e-commerce activities, before shipping, sellers need to generate picking lists based on order information and print them out for pickers to select goods. Since the number of product categories in each order is different, the heights of the picking lists corresponding to different orders will vary greatly; the more product categories in an order, the larger the size of the generated picking list. To simultaneously accommodate the printing of these non-standard picking lists, usually some large-sized papers (such as A4 paper) are selected to print the picking lists; and to facilitate the picking division among different pickers, usually one picking list is printed on one piece of paper. This method of printing picking lists will waste a large amount of printing paper.
[0003] Regarding other technical problems related to this application, they will be further elaborated later. The above content is only used to assist in understanding the technical solution of this application, and does not mean that all of the above content is prior art. Summary of the Invention
[0004] The main purpose of this application is to provide a method and system for batch printing of picking lists, which can automatically generate picking lists according to different order information and flexibly allocate printing areas in the printing paper according to the size of the picking lists, thereby greatly improving the utilization rate of the printing paper for picking lists and unifying the printing size and cutting size of non-standard picking lists.
[0005] To achieve the above purpose, this application proposes a method for batch printing of picking lists, and the method includes: Step S1: Determine the printing format according to the size of the printing paper, calculate the height Ha of the printing format, and divide the printing format into four printing areas with the same height and width. The four printing areas are the first to fourth printing areas located in the upper left, lower left, upper right, and lower right of the printing format respectively, and set the printing order of the first to fourth printing areas. After all the printing areas on the current paper are occupied, call the next printing paper; Step S2: Determine the picking list template according to the printing format. The picking list template includes a picking list header, a table header, a picking list tail, and a category display area for displaying the product categories of the order. The width of the picking list template corresponds to the width of the printing area, and the height of the picking list template varies with the number of product categories of the corresponding order; Step S3: Obtain one or more orders to be printed, and generate corresponding picking lists respectively based on the order information of each order and the picking list template; calculate the height Hc of each picking list based on the height dimensions of the picking list header, picking list footer, table header, and the height dimension of each order commodity category in the picking list template, and calculate the printing height ratio γ of each picking list, γ = Hc / Ha; Step S4: When the printed content of the picking list exceeds a certain printing area, the exceeded part extends to the next printing area; obtain the occupancy status of each printing area in the printing paper, and sequentially select the unoccupied printing areas in the first to fourth printing areas as the starting printing areas; execute the corresponding adaptive logic according to γ of each picking list to obtain the target printing area, and the target printing area is the printing area filled with the picking list, including: Step S41: When γ ∈ (0, 0.5], use the starting printing area as the target printing area; Step S42: When γ ∈ (0.5, 1.0], determine whether the starting printing area is the first or third printing area; if so, use the starting printing area and the subsequent one printing area as the target printing area; if not, vacate the starting printing area according to the adaptation rule, and use the two printing areas after the starting printing area as the target printing area; Step S43: When γ ∈ (1.0, 1.5], use the starting printing area and the subsequent two printing areas as the target printing area; Step S44: When γ ∈ (1.5, +∞), calculate the number N of occupied printing areas of the picking list, and use the starting printing area and the subsequent N - 1 printing areas as the target printing area, where when γ / 0.5 is an integer, N = γ / 0.5; when γ / 0.5 is a non - integer, N is the value obtained by rounding up γ / 0.5; Step S5: Generate the picking list combinations of each printing paper based on each picking list and the corresponding target printing area, and print and output the picking list combinations.
[0006] Other features and technical effects of this application are described and explained in the following part of the specification. The technical problem - solving idea and related product design scheme of this application are: In order to save printing paper, the text layout of the picking list can be reduced and multiple picking lists can be combined and printed on one printing paper. However, this printing method will make the height dimensions of the picking lists uneven, and when it is desired to separate the picking lists for multiple pickers to operate, the multiple picking lists cannot be batch - cut.
[0007] After verification, it is found that if the printing area of the existing printing paper (such as A4 paper) is split into four cross-shaped printing areas, so that the width and height of each printing area are the same, and printing is carried out in the first to fourth printing areas in the order of upper left, lower left, upper right, and lower right; then more than 95% of the printing sizes of non-standard picking lists can be unified, so that these combined printed picking lists (picking list combinations) can be batch cut.
[0008] For this reason, the applicant first determines the printing area according to the size of the printing paper. The height and width of the printing area are Ha and Wa respectively; then the picking list template is determined according to the printing area. The picking list template includes a picking list header, a picking list footer, a table header, and a category display area for displaying the categories of order goods, so that the width of the picking list template corresponds to the width Wb of each printing area (Wb = 0.5 * Wa), and the height Hc of the picking list template changes with the number of categories of goods in the corresponding order. Such as Figure 4 and Figure 5 , the picking list header, the picking list footer, and the table header have fixed heights (the total height of the three is Hd), and each category of goods in the category display area has a fixed height He. When the picking list corresponds to an order containing n categories of goods, the height Hc of the category display area = Hd + He * n.
[0009] In addition, the content and structure of the picking list template are also adjusted, including: displaying the main order goods information through the table header and the category display area. The field names in the table header can include product description, product code (SKU or other codes), product shelf location, and product quantity. In the corresponding category display area, the product description information mainly reflects product pictures, product names, and a small amount of attribute information to reduce the content of the picking list. In addition, information such as picking list number, order number, user number, and store name can be configured at the picking list header; the picking list footer can be configured with picking list barcodes, buyer information, delivery address information, picker information, etc. Other information not presented can also be stored in the picking list barcode together with important order information. In this way, the size of the picking list can be greatly compressed, and the important content of the picking list can be presented without significantly reducing the text layout.
[0010] In addition, the applicant also proposes a method of matching the printing area based on the printing height ratio γ, so as to further unify the printing size of non-standard purchase orders. Among them, the printing height ratio γ = Hc / Ha, which specifically includes: first, obtaining the occupancy status of each printing area in the current printing paper, and sequentially selecting the unoccupied printing areas in the first to fourth printing areas as the starting printing areas; then, executing the corresponding adaptive logic according to the γ values of each picking list to determine the target printing area corresponding to each picking list; finally, generating a picking list combination corresponding to each printing paper based on each picking list and the corresponding target printing area, and printing and outputting the picking list combination. Among them, the execution operation steps of the adaptive logic are as described above.
[0011] This method of printing picking lists can automatically generate picking lists according to different order information, and flexibly allocate printing areas in the printing paper according to the size of the picking lists, thereby greatly improving the utilization rate of the printing paper for picking lists, avoiding paper waste, and unifying the printing size and cutting size of non-standard picking lists, so that the printed picking lists can be flexibly separated for multiple pickers to operate, thereby improving the picking efficiency of order goods.
[0012] In addition, this printing method can also simplify the printing programming and rendering operations of picking lists, because: when programming software, the four printing areas of each printing paper can be used as an array, each printing area constitutes a small array, and each small array stores the data of a printing area. The occupied blank printing area is represented by an empty placeholder (null value); thus, when the picking list is rendered, the data structure remains consistent with the default structure of the view. Each printing paper in the view defaults to four areas, and each small array in the data structure also corresponds to four areas, and the excess part is replaced by null values. Therefore, when programming software, only the focus needs to be placed on data processing, and the simplest on-demand display of corresponding content can be used for rendering, without operating various complex layouts in rendering (such as calibrating the view layer, etc.).
[0013] Other implementation schemes and technical effects will be elaborated later.
[0014] Furthermore, this application also includes systems corresponding to various methods. The system includes the functional modules involved in this application, executes the operation instructions of the corresponding functional modules or corresponding methods, and outputs relevant data information to the front-end interface of the system. The system is stored in a server and / or computer device including a processor, and the processor is used to execute the operation instructions of the system.
[0015] Declaration: The functional modules of this application can be integrated with each other, can exist independently, or one functional module can be a sub-module of another functional module; the step numbers such as S1 and S2 do not limit the sequence of the corresponding operation steps. Description of the Drawings
[0016] The accompanying drawings are used to provide a further understanding of the present application and do not constitute a limitation to the present application; the content shown in the accompanying drawings may be the actual data of the embodiments and falls within the protection scope of the present application.
[0017] Figure 1 It is a schematic flow chart of the batch printing method in an embodiment of the present application; Figure 2 It is a schematic principle diagram of the batch printing method in an embodiment of the present application; Figure 3 It is a schematic diagram of the partition of the printing paper in an embodiment of the present application; Figure 4 It is a schematic structural diagram of the picking list in an embodiment of the present application; Figure 5 It is a schematic diagram of the combination of picking lists on the printing paper in an embodiment of the present application. Detailed implementation manners
[0018] In order to make the purpose, technical solutions and advantages of the present application clearer and more understandable, the following further elaborates on the embodiments of the present application in detail through specific implementation manners in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0019] Refer to Figure 1 , the present application proposes a batch printing method for picking lists. In an embodiment of the present application, the method includes steps S1 - S5 as follows.
[0020] Step S1: Determine the printing format according to the size of the printing paper, calculate the height Ha of the printing format, and divide the printing format into four printing areas with the same height and width. The four printing areas are the first to fourth printing areas located in the upper left, lower left, upper right, and lower right of the printing format respectively, and set the printing order of the first to fourth printing areas. After all the printing areas of the current paper are occupied, call the next printing paper.
[0021] Refer to Figure 2 , obtain the size of the printing paper, define the printing direction as landscape printing, and after removing the printing margins horizontally and vertically, obtain the size of the printing format. Divide it according to the horizontal and vertical center lines of the printing paper to obtain the first to fourth printing areas located in the upper left, lower left, upper right, and lower right of the printing format respectively. The printing margins are marked in a certain area around the paper and no content is printed on them. The four printing areas have a sequential occupation order.
[0022] Create an array containing four elements and map each element to four printing areas in sequence to obtain [First printing area, Second printing area, Third printing area, Fourth printing area]. The array structure remains consistent with the default structure of the view. Each sheet of the view defaults to four areas, and each sub-array of the array structure also corresponds to four areas. The exceeded part is replaced by null values. When a picking list requires multiple printing sheets, create a large array containing multiple arrays. At this time, the structural relationship is that the large array corresponds to multiple printing sheets, the array corresponds to one printing sheet, and the sub-array corresponds to one printing area.
[0023] In this solution, the units of the printing sheet size, printing format size, printing area size, and picking list size are kept consistent. Refer to Figure 3 , when the printing sheet size is A4 (210mm * 297mm), define the paper orientation of the printing sheet as horizontal, remove the printing margins of 10mm * 2 in the height direction and 8.5mm * 2 in the width direction, and obtain the printing format height Ha = 190mm, printing format width Wa = 280mm, printing area height Hb = 0.5Ha = 95mm, and printing area width Wb = 0.5Wa = 140mm.
[0024] The width Wc of the picking list ≤ the width of the printing area is Wb = 1 / 2 of the printing format width Wa, and the height Hb of the printing area = 1 / 2 of the printing format height Ha.
[0025] Step S2: Determine the picking list template according to the printing format. The picking list template includes a picking list header, a table header, a picking list footer, and a category display area for displaying the categories of order goods. The width of the picking list template corresponds to the width of the printing area, and the height of the picking list template varies with the number of categories of goods in the corresponding order.
[0026] Refer to Figure 4 , the picking list consists of a picking list header, a table header, a category display area, and a picking list footer. The height of the picking list varies with the number of categories of goods. The picking list header and the picking list footer are used to distinguish each picking list. The picking list header can be the picking list number, order number, store name, user number, wave number, etc. The picking list footer can be the picking list barcode, buyer information, delivery address information, buyer information, picker information, etc. The table header has a fixed format and fields for identifying the fields of the goods category. The fields can be product description, quantity, SKU, product shelf location, product picture, etc. Step S3: Obtain one or more orders to be printed, and generate corresponding picking lists based on the order information of each order and the picking list template respectively; calculate the height Hc of each picking list based on the height dimensions of the picking list header, picking list footer, table header, and the height dimension of each order's product category in the picking list template, and calculate the printing height ratio γ of each picking list, where γ = Hc / Ha.
[0027] Receive the orders selected by the user, clean and classify the received order data, filter abnormal orders (such as marked manual intervention orders, address error orders, etc.), and sort the orders according to the priority (such as urgent orders, key customer orders, etc.).
[0028] Determine the fields to be filled in the picking list template, match the corresponding fields from the order information of the orders to be printed according to the field mapping rules, and fill the field values into the picking list template according to the field index. The field mapping logic includes the matching rules for matching corresponding fields according to similarity and the filling rules for field values; the filling rules include direct filling, conversion format filling, and numerical verification filling; direct filling means directly filling the field value corresponding to the field into the picking list template, conversion format filling means performing data type conversion, date format standardization, unit unification, etc. on the field value corresponding to the field and then filling it into the picking list template, and numerical verification filling means performing rule verification on the field value corresponding to the field and filling it into the picking list template after meeting the rules.
[0029] Obtain the total height Hd of the picking list header, table header, and picking list footer in the picking list template, and the fixed height of the product category is He. Count the number of product categories in the current picking list as n, and calculate the picking list height Hc according to Hc = Hd + He * n.
[0030] Alternatively, render the picking list hidden in a temporary container, traverse the DOM elements in the temporary container, determine the cumulative height of each element in the picking list, adapt the cumulative height to the printing area, and calculate the picking list height Hc. The width of the temporary container is the same as the width of the printing area. That is, hide or move the picking list out of the visible area, traverse the DOM nodes in the hidden rendering result to determine the picking list height Hc, or the height attribute of the DOM node can be used to obtain the height to determine the picking list height Hc. In addition, long text may cause the element height to increase dynamically. When hiding and rendering, fix the width of the temporary container to keep the width of the temporary container the same as the area width.
[0031] Calculate the value of the picking list height Hc divided by the printing format height Ha to obtain the printing height ratio γ.
[0032] Step S4: When the printed content of the picking list exceeds a certain printing area, the exceeding part extends downward to the next printing area; obtain the occupancy status of each printing area in the printing paper, and sequentially select the unoccupied printing areas among the first to fourth printing areas as the starting printing area; execute the corresponding adaptive logic according to each picking list γ to obtain the target printing area, and the target printing area is the printing area filled with the picking list, including: Step S41: When γ ∈ (0, 0.5], use the starting printing area as the target printing area; Step S42: When γ ∈ (0.5, 1.0], determine whether the starting printing area is the first or third printing area; if so, use the starting printing area and the subsequent one printing area as the target printing area; if not, leave the starting printing area empty according to the adaptation rule, and use the two printing areas after the starting printing area as the target printing area; Step S43: When γ ∈ (1.0, 1.5], use the starting printing area and the two subsequent printing areas as the target printing area; Step S44: When γ ∈ (1.5, +∞), calculate the number N of occupied printing areas of the picking list, and use the starting printing area and the subsequent N - 1 printing areas as the target printing area, where when γ / 0.5 is an integer, N = γ / 0.5; when γ / 0.5 is a non-integer, N is the value obtained by rounding up γ / 0.5.
[0033] This embodiment explains the four-zone layout scenarios of several typical picking lists: First, pre-render all picking lists in a temporary container, declare a storage area, denoted as A, and the storage area corresponds to the four-zone of the printing paper. Then, sequentially traverse the pre-rendered picking lists, determine the height of the current picking list, and calculate the printing height ratio γ of the picking list.
[0034] 1. When γ ∈ (0, 0.5], Display 4 picking lists in A in sequence. At this time, A is [Picking List 1, Picking List 2, Picking List 3, Picking List 4]; 2. When γ ∈ (0.5, 1.0], (1) There is no picking list filled in A. The starting printing area of the current picking list is the first printing area, and the exceeding part does not split and extends downward normally, occupying the adjacent second printing area below. At this time, A is [Current Picking List, Current Picking List, Empty Occupancy, Empty Occupancy]; (2) There is a picking list filled in Area 1 of A. According to the adaptation rule, to prevent the picking list from being separated left and right, the current area is abandoned. Starting from Area 3 of the printing area, the starting printing area of the current picking list is Area 3 of the printing area. The exceeding part is not divided and directly extends downward, occupying Area 4 of the printing area. At this time, A is [Picking List 1, Empty placeholder, Current picking list, Current picking list]; (3) There are picking lists filled in Areas 1 and 2 of A. The starting printing area of the current picking list is Area 3 of the printing area. The exceeding part is not divided and normally extends downward, occupying the adjacent Area 4 of the printing area. At this time, A is [Picking List 1, Empty placeholder, Current picking list, Current picking list]; (4) There are picking lists filled in Areas 1, 2, and 3 of A. According to the adaptation rule, to prevent the picking list from being separated by different sheets of paper, the current area is abandoned. Starting from another sheet of paper, the starting printing area of the current picking list is Area 1 of the next sheet of paper, the same as the first case of this category; 3. When γ ∈ (1.0, 1.5], it is confirmed that the current picking list is to be segmented. (1) There is no picking list filled in A. The starting printing area of the current picking list is Area 1 of the printing area. Starting from the head of the picking list according to Ha, the cutting area is determined to obtain Sub - picking Lists 1 and 2. Sub - picking List 1 occupies Areas 1 and 2 of the printing area, and a table header is added to the top of Sub - picking List 2, which occupies Area 3 of the printing area; (2) There is a picking list filled in Area 1 of A. The starting printing area of the current picking list is Area 2 of the printing area. Starting from the head of the picking list according to Hb, the cutting position is determined to obtain Sub - picking Lists 1 and 2. Sub - picking List 1 occupies Area 2 of the printing area, and a table header is added to the top of Sub - picking List 2, which occupies Areas 3 and 4 of the printing area; (3) There are picking lists filled in Areas 1 and 2 of A. The starting printing area of the current picking list is Area 3 of the printing area, the same as the first case of this category. Sub - picking List 1 occupies Areas 3 and 4 of the printing area, and a table header is added to the top of Sub - picking List 2, which occupies Area 1 of the next sheet of paper; (4) There are picking lists filled in Areas 1, 2, and 3 of A. The starting printing area of the current picking list is Area 4 of the printing area, the same as the second case of this category. Sub - picking List 1 occupies Area 4 of the printing area, and a table header is added to the top of Sub - picking List 2, which occupies Areas 1 and 2 of the next sheet of paper; 4. When γ ∈ (1.5, +∞), according to the adaptation rule, it is confirmed that the current picking list is to be segmented. (1) There is no picking list filled in A. The starting printing area of the current picking list is the first printing area. Starting from the head of the picking list according to Ha, determine the cutting position 1 to obtain sub-picking list 1. Sub-picking list 1 occupies the first and second printing areas. According to Ha, sequentially cut the remaining product categories and the tail of the picking list to obtain sub-picking list 2... sub-picking list n, and the remaining picking list. Add a table header at the top of each sub-picking list and the remaining picking list. Each sub-picking list occupies two adjacent upper and lower printing areas, and cut sequentially until the height of the remaining picking list is not greater than Ha. Among them, when the height of the remaining picking list ≤ Hb, the remaining picking list occupies one header printing area; when Ha ≥ the height of the remaining picking list > Hb, the remaining picking list occupies two adjacent upper and lower printing areas; (2) There is already a picking list filled in the first printing area in A. The starting printing area of the current picking list is the second printing area. Starting from the head of the picking list according to Hb, determine the cutting position 1 to obtain sub-picking list 1. Sub-picking list 1 occupies the second printing area, the same as the first case of this category; (3) There is a picking list filled in the first and second printing areas in A. The starting printing area of the current picking list is the third printing area. Starting from the head of the picking list according to Ha, determine the cutting position 1 to obtain sub-picking list 1. Sub-picking list 1 occupies the third and fourth printing areas, the same as the first case of this category; (4) There is already a picking list filled in the first, second, and third printing areas in A. The starting printing area of the current picking list is the fourth printing area. Starting from the head of the picking list according to Hb, determine the cutting position 1 to obtain sub-picking list 1. Sub-picking list 1 occupies the fourth printing area, the same as the first case of this category.
[0035] When the above situation of the picking list being separated left and right or on different papers occurs, the adaptation rules need to be followed, that is, the product categories cannot be displayed separately. When the position of the nth product category exceeds the paper, the nth product category, the subsequent product categories, and the tail of the picking list need to be moved as a whole to the next printing area, and a table header is added at the same time; and, the tail of the picking list cannot be displayed separately. When the tail of the picking list exceeds the paper, the tail of the picking list needs to be moved separately to the next printing area.
[0036] Step S5: Generate a picking list combination for each sheet based on each picking list and the corresponding target printing area, and print and output the picking list combination.
[0037] Update the occupancy status of the printing area in the printing paper according to the number of target printing areas. Determine whether the printing paper is fully occupied according to the updated occupancy status of the fourth printing area. If the occupancy status of the fourth printing area is empty, confirm that the printing paper is not fully occupied, and poll the next picking list until all four printing areas are occupied.
[0038] If the occupancy status of the fourth printing area is not empty, it is confirmed that the printing paper is fully occupied. Based on each picking list and the corresponding target printing area, a picking list combination for each printing paper is generated, and the picking list combination is visually processed to obtain visual data. The picking list combination is a combination of any item of picking list, sub-picking list, and placeholder. The visual processing includes formatting text data, adapting picture data, and rendering table data. The visual data is converted into a printing instruction according to preset printing parameters, and the printing instruction is transmitted to a printing device to perform a printing operation. The preset printing parameters include paper type, color mode, and resolution. The printing instruction consists of an instruction header and an instruction content block. The instruction header is used to initialize the printer, and the instruction content block is a drawing command for writing data to be printed area by area.
[0039] Reference Figure 5 , the printing height ratio γ of picking list 1 ∈ (0.5, 1.0], and the printing height ratio γ of picking lists 2 and 3 ∈ (0, 0.5]. The picking list combination of the paper is [picking list 1, picking list 1, picking list 2, picking list 3,]. For picking lists filled in two adjacent printing areas vertically, no splitting is performed; the vertical center line of the printing format is fixedly displayed; for picking lists with picking list headers filled in the second and fourth printing areas, a horizontal center line needs to be added at the top.
[0040] In one embodiment, an order selected by a user is received, and the number of orders is counted. When the number of orders exceeds five, an order queue is created according to the user's selection time to manage the orders, and the priority of each order is determined, and the order queue is sorted again; the number of printing areas with an occupancy status of occupied in the printed paper is counted, and the area ratio is calculated. The area ratio is the ratio of the number of printing areas with an occupancy status of occupied to the total number of printing areas of the printed paper. When the area ratio exceeds 1 / 4, the same types of commodities in the orders are merged, four orders are simultaneously extracted from the order queue, and four picking lists are generated. Each picking list is filled into four printing areas of the printing paper in sequence.
[0041] In one embodiment, the picking list can be adaptively typeset according to the position of the horizontal center line on the printing format. The adaptive typesetting includes that the picking list as a whole cannot be automatically adjusted according to the printing area. When filling a non-standard picking list into the printing area, the picking list is cut to adapt to the height of the printing area. At this time, when calculating the number of target printing areas filled by the picking list, it can be determined according to the number of sub-picking lists after splitting. When a sub-picking list occupies two printing areas, the number of sub-picking lists needs to be multiplied by 2; and the picking list header, table header, picking list tail, and single commodity category of the picking list are a small whole and cannot be split, but the small wholes of the picking list can be split from each other. At this time, it can adapt to the height of the printing area.
[0042] In one embodiment, the printing method further includes: setting the printing paper to A4 size. The printing direction of the printing paper has two modes: landscape printing and portrait printing. The picking list template is determined according to the landscape printing format of the printing paper. The height dimensions of the picking list header and the table header are taken as 20 ± 1 mm, the height of the picking list tail is taken as 24 ± 1 mm, and each commodity category in the category display area has a fixed height He, and He is taken as 22 ± 1 mm. Monitor the number of commodity categories n of each historical picking list that has been printed within a period of time. When the proportion of picking lists with n ∈ [3, 4] exceeds 40%, it is determined whether the current starting printing area is the first printing area: if so, adjust the printing direction of the current printing paper to portrait printing, and reduce the size of the current picking list template, and print it at 0.65 - 0.70 times the size of the original picking list; if not, maintain the printing direction of the current printing paper as landscape printing and print it according to the original picking list size. In this way, based on the waste degree of the paper in the historical picking list, the printing method of the picking list can be adjusted to keep the saving degree of the printing paper at a very good level. After verification, when the number of commodity categories n of the picking list is in [3, 4], the waste degree of the paper of the picking list is the highest, and reducing it to 0.65 - 0.70 times the size can minimize the blank printing area without adjusting the layout of the picking list template.
[0043] In one embodiment, the total weight M1 of the picking goods corresponding to each picking list can be pre-stored in the picking list barcode, the weight M2 of the order package after picking is obtained, and it is judged whether there is missing inspection of goods in the picking list based on the weight deviation between M1 and M2. When the weight deviation is within the predetermined range, a picking success prompt message is generated, otherwise a picking exception message is generated. In this way, the safety of commodity picking can be improved and missing inspection of goods during picking can be avoided.
[0044] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. All equivalent transformations made under the inventive concept of the present application by using the content of the specification and drawings of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for batch printing of picking lists, characterized in that, Including: Step S1: Determine the printing format according to the size of the printing paper, calculate the height Ha of the printing format, and divide the printing format into four printing areas with the same height and width. The four printing areas are the first to fourth printing areas located in the upper left, lower left, upper right, and lower right of the printing format respectively. Set the printing order of the first to fourth printing areas. After all the printing areas on the current paper are occupied, call the next printing paper; Step S2: Determine the picking list template according to the printing format. The picking list template includes a picking list header, a table header, a picking list footer, and a category display area for displaying the categories of order goods. The width of the picking list template corresponds to the width of the printing area, and the height of the picking list template varies with the number of categories of goods in the corresponding order; Step S3: Obtain one or more orders to be printed, and generate corresponding picking lists based on the order information of each order and the picking list template respectively; Calculate the height Hc of each picking list based on the height dimensions of the picking list header, picking list footer, table header, and the height dimension of each order's goods category in the picking list template, and calculate the printing height ratio γ of each picking list, γ = Hc / Ha; Step S4: When the printing content of the picking list exceeds a certain printing area, the exceeded part extends to the next printing area; Obtain the occupancy status of each printing area in the printing paper, and sequentially select the unoccupied printing area in the first to fourth printing areas as the starting printing area; Execute the corresponding adaptive logic according to γ of each picking list to obtain the target printing area. The target printing area is the printing area filled with the picking list, including: Step S41: When γ ∈ (0, 0.5], use the starting printing area as the target printing area; Step S42: When γ ∈ (0.5, 1.0], determine whether the starting printing area is the first or third printing area; If so, use the starting printing area and the next printing area as the target printing area; If not, empty the starting printing area according to the adaptation rule, and use the two printing areas after the starting printing area as the target printing area; Step S43: When γ ∈ (1.0, 1.5], use the starting printing area and the two printing areas after it as the target printing area; Step S44: When γ ∈ (1.5, +∞), calculate the number N of occupied printing areas of the picking list, and use the starting printing area and the N - 1 printing areas after it as the target printing area. Among them, when γ / 0.5 is an integer, N = γ / 0.5; When γ / 0.5 is a non - integer, N is the value obtained by rounding up γ / 0.5; Step S5: Generate the picking list combination of each printing paper based on each picking list and the corresponding target printing area, and print and output the picking list combination.
2. The method according to claim 1, characterized in that, Step S1 includes: Determine the size of the printing format according to the size of the printing paper, define the paper direction of the printing paper as horizontal, calculate the width of the printing format as Wa and the height as Ha; Based on the horizontal and vertical center dividing lines of the printing format, four printing areas with the same height and width are obtained. The four printing areas are the first to fourth printing areas located in the upper left, lower left, upper right, and lower right of the printing format respectively; Set the printing order of the first to fourth printing areas. After all the printing areas on the current paper are occupied, call the next printing paper; Create a paper array corresponding to the printing format, and establish a mapping relationship between the four elements of the paper array and the four printing areas of the printing format. The paper array is [First printing area, Second printing area, Third printing area, Fourth printing area].
3. The method according to claim 1, wherein Step S3 includes: Obtain one or more orders to be printed, obtain order information, and determine the fields to be filled in the picking list template; Match the corresponding fields from the order information according to the field mapping rules, index the corresponding field values, fill the field values into the picking list template, generate picking lists corresponding to each order, and label each picking list with the corresponding picking list number; Determine the number n of product categories in the picking list. According to the fixed height He of the product category in the picking list template and the total height Hd, calculate the height Hc of the picking list, where Hc = Hd + n * He; Calculate the ratio of the height Hc of the picking list to the height Ha of the printing format to obtain the printing height ratio γ of the picking list.
4. The method according to claim 1, wherein Step S4 includes: Obtain the occupancy status of each printing area in the printing paper, and sequentially select the unoccupied printing areas among the first to fourth printing areas as the starting printing areas. The occupancy status includes occupied and unoccupied. The occupied status includes filled with a picking list in the printing area and reserved for empty space in the printing area. The unoccupied status is when there is neither a picking list nor a need to empty the printing area; Execute the corresponding adaptive logic according to γ of each picking list to determine the target printing area of the picking list.
5. The method according to claim 1, wherein The target printing area is the printing area filled with the picking list; The adaptation rule is that when the number of target printing areas is two and the initial printing area of the picking list is not the first or third printing area, empty the starting printing area, update the occupancy status of the starting printing area to reserved, and when the picking list fills two adjacent printing areas up and down, ignore the middle dividing line of the two printing areas and display the picking list continuously, and when the picking list fills the printing areas across the left and right partitions and across the printing papers, add a table header to the picking list displayed in the subsequent printing area.
6. The method according to claim 1, wherein Step S43 includes: When γ ∈ (1, 1.5], determine whether the starting printing area is the first or third printing area; If so, determine the cutting position according to Ha to obtain the first and second sub - picking lists. The first sub - picking list occupies two adjacent printing areas up and down; If not, determine the cutting position according to the height of the printing area to obtain the first and second sub - picking lists. The second sub - picking list occupies two adjacent printing areas up and down; Add a table header to the top of the second sub - picking list according to the adaptation rule, and use the starting printing area and the two subsequent printing areas as the target printing areas.
7. The method according to claim 1, wherein Step S44 includes: When γ ∈ (1.5, +∞), determine whether the starting printing area is the head printing area; If so, starting from the head of the picking list according to Ha, determine the first cutting position to obtain the first sub-picking list, and the first sub-picking list occupies two adjacent printing areas; If not, starting from the head of the picking list according to the height of the printing area, determine the first cutting position to obtain the first sub-picking list, and the first sub-picking list occupies one printing area; Starting from the first cutting position according to Ha, sequentially cut the picking list, and add a table header to the top of each sub-picking list according to the adaptation rule, where the height of the last sub-picking list ≤ Ha; Calculate the number N of printing area occupied by the picking list. Use the starting printing area and the subsequent N - 1 printing areas as the target printing areas. Among them, when γ / 0.5 is an integer, N = γ / 0.5; when γ / 0.5 is a non-integer, N is the value obtained by rounding up γ / 0.
5.
8. The method according to claim 1, wherein Step S5 includes: Update the occupied status of the printing format in the printing paper according to the number of target printing areas of the picking list; Judge whether the printing paper is fully occupied according to the occupied status of the fourth printing area after the update; If the occupied status is unoccupied, confirm that the printing paper is not fully occupied, and poll the next picking list until all four printing areas are occupied; If the occupied status is occupied, confirm that the printing paper is fully occupied, generate a picking list combination of each printing paper based on each picking list and the corresponding target printing area, perform visualization processing on the picking list combination to obtain visualization data, convert the visualization data into a printing instruction according to the preset printing parameters, and transmit the printing instruction to the printing device to execute the printing operation.
9. The method according to claim 1, wherein It also includes: Set the printing paper to A4 size. The printing direction of the printing paper has two modes: horizontal printing and vertical printing. Determine the picking list template according to the horizontal printing format of the printing paper. The height dimensions of the picking list head and the table head are taken as 20 ± 1mm, the height of the picking list tail is taken as 24 ± 1mm, and each commodity category in the category display area has a fixed height He, and He is taken as 22 ± 1mm; Monitor the number n of commodity categories of each historical picking list that has been printed within a period of time. When the proportion of picking lists with n ∈ [3, 4] exceeds 40%, judge whether the current starting printing area is the first printing area: If so, adjust the printing direction of the current printing paper to vertical printing and reduce the size of the current picking list template, and print it at 0.65 - 0.70 times the size of the original picking list; if not, maintain the printing direction of the current printing paper as horizontal printing and print it at the original picking list size.
10. A batch printing system, characterized in that, The batch printing system executes the operation instructions included in the batch printing method of the picking list described in any one of claims 1 - 9.