Order data processing method and device, medium and electronic equipment
Patent Information
- Application Number
- CN202211437245.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-17
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2042-11-17
AI Technical Summary
然而,目前的订单数据处理方案的准确性还有待于进一步提高
[0014] According to one aspect of the embodiments of this application, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the above embodiments.
Smart Images

Figure CN116128402B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer and data processing technology, and more specifically, to an order data processing method, apparatus, medium, and electronic device. Background Technology
[0002] In scenarios involving order data processing and analysis, the typical approach involves retrieving information on the target materials from a pre-defined material database based on the bill of materials (BOM) for each order. Then, based on this target material information and raw material supply, materials are allocated to each order, resulting in a material allocation list. Finally, based on this material allocation list, it is determined whether each order can be completed successfully. However, the accuracy of current order data processing solutions needs further improvement. Therefore, improving the accuracy of order data processing is a pressing technical problem that requires immediate attention. Summary of the Invention
[0003] Embodiments of this application provide an order data processing method, apparatus, computer program product or computer program, computer-readable medium and electronic device, which can at least improve the accuracy of order data processing to a certain extent.
[0004] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0005] According to one aspect of the embodiments of this application, an order data processing method is provided, the method comprising: obtaining the order priority of each order in at least one order; selecting a target order from the orders whose order data processing has not been completed according to the order priority; marking the target order with a first tag or a second tag according to the order deadline of the target order, the remaining demand of the order materials in the target order, the scheduled supply of the order materials in each day, the remaining inventory of the order materials, and the remaining capacity, so as to complete the order data processing of the target order, wherein the first tag is used to indicate that the target order can be completed before the order deadline, and the second tag is used to indicate that the target order cannot be completed before the order deadline; if there are orders whose order data processing has not been completed, returning to the step of selecting a target order from the orders whose order data processing has not been completed according to the order priority, until the order data processing of each order is completed.
[0006] In some embodiments of this application, based on the foregoing scheme, marking the target order with a first label or a second label according to the order period of the target order, the remaining demand of the order materials in the target order, the scheduled work order supply of the order materials on each day, the remaining inventory of the order materials, and the remaining capacity includes: determining whether to mark the target order with a first label based on the order period of the target order, the remaining demand of the order materials in the target order, and the scheduled work order supply of the order materials on each day; if the target order is not marked with a first label, then determining whether to mark the target order with a first label based on the remaining inventory of the order materials; if the target order is not marked with a first label, then marking the target order with a first label or a second label based on the remaining capacity.
[0007] In some embodiments of this application, based on the foregoing scheme, determining whether to mark the target order with a first tag according to the order period of the target order, the remaining demand of the order materials in the target order, and the scheduled work order supply of the order materials on each date includes: obtaining a first set of dates that meet the order period; sequentially deducting the remaining demand of the order materials in the target order from the latest to the earliest date in the first set by the scheduled work order supply corresponding to each date; if the scheduled work order supply corresponding to the date in the first set deducts all the remaining demand, then the target order is marked with a first tag; if the scheduled work order supply corresponding to the date in the first set does not deduct all the remaining demand, then the target order is not marked with a first tag.
[0008] In some embodiments of this application, based on the foregoing scheme, determining whether to mark the target order with a first tag based on the remaining inventory of the order material includes: if the remaining inventory of the order material in the first date set completely deducts the remaining demand, then the target order is marked with a first tag. If the remaining inventory of the order material in the first date set does not completely deduct the remaining demand, then the target order is not marked with a first tag.
[0009] In some embodiments of this application, based on the foregoing scheme, the remaining capacity includes the remaining capacity of production lines capable of producing the order materials in the first date set. The step of marking the target order with a first tag or a second tag based on the remaining capacity includes: determining work order insertion points from production lines capable of producing the order materials on each date in the first date set, obtaining a set of work order insertion points; determining the changeover time for each work order insertion point in the set of work order insertion points; selecting the work order insertion point with the shortest changeover time from the set of work order insertion points as the target work order insertion point; and marking the target work order insertion point... An entry point is determined to insert a work order, and the supply quantity of the inserted work order is calculated. The remaining demand is deducted from the supply quantity. If the supply quantity completely deducts the remaining demand, the target order is marked with a first tag. If the supply quantity does not completely deduct the remaining demand, the target work order is removed from the work order insertion point set, and the process returns to selecting the work order insertion point with the shortest changeover time from the work order insertion point set. This process continues until the supply quantity completely deducts the remaining demand, at which point the target order is marked with a first tag. If all work order insertion points in the work order insertion point set are selected, and the supply quantity does not completely deduct the remaining demand, the target order is marked with a second tag.
[0010] In some embodiments of this application, based on the foregoing scheme, the step of calculating the supply quantity of the inserted work order and deducting the remaining demand quantity from the supply quantity of the inserted work order includes: determining the time interval of the inserted work order and determining the second set of dates occupied by the time interval of the work order; traversing the raw material supply quantity of each date in the second set of dates, and calculating the supply quantity of the inserted work order for each date in the second set of dates based on the raw material supply quantity and the production efficiency of the order materials; and deducting the remaining demand quantity sequentially from the supply quantity of the inserted work order for each date in the second set of dates.
[0011] In some embodiments of this application, based on the foregoing scheme, if the target order is marked with a second tag, the method further includes: obtaining a third set of dates that do not meet the order deadline; sequentially deducting the remaining demand of the order materials in the target order from the earliest to the latest date in the third set by the supply quantity of the scheduled work orders corresponding to each date; if the supply quantity of the scheduled work orders corresponding to the dates in the third set does not deduct all the remaining demand, then deducting the remaining demand by the remaining inventory in the third set; if the remaining inventory of the order materials in the third set does not deduct all the remaining demand, then determining an insert work order in the third set based on the remaining capacity in the third set, and deducting the remaining demand by the supply quantity of the insert work order corresponding to the insert work order in the third set.
[0012] According to one aspect of the embodiments of this application, an order data processing apparatus is provided. The apparatus includes: an acquisition unit, configured to acquire the order priority of each order in at least one order; a selection unit, configured to select a target order from the orders whose order data processing has not been completed according to the order priority; and a marking unit, configured to mark the target order with a first tag or a second tag according to the order deadline of the target order, the remaining demand of the order materials in the target order, the scheduled supply of the order materials in each day's work orders, the remaining inventory of the order materials, and the remaining production capacity, so as to complete the order data processing of the target order. The first tag is used to indicate that the target order can be completed before the order deadline, and the second tag is used to indicate that the target order cannot be completed before the order deadline. The acquisition unit is further configured to, if there are orders whose order data processing has not been completed, return to the step of selecting a target order from the orders whose order data processing has not been completed according to the order priority, until the order data processing of each order is completed.
[0013] According to one aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods described in the above embodiments.
[0014] According to one aspect of the embodiments of this application, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the above embodiments.
[0015] According to one aspect of the embodiments of this application, an electronic device is provided, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to perform the method described in the above embodiments.
[0016] In some embodiments of this application, order data is processed based on order priority, ensuring that high-priority orders are processed first and guaranteeing the rationality of order data processing. Furthermore, during the processing of each order's data, a first or second tag can be used to indicate whether the target order can be completed before the order deadline, standardizing order data processing and improving efficiency. Moreover, when determining whether a target order can be completed before the deadline, considering remaining capacity can improve the accuracy of order data processing.
[0017] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0019] Figure 1 A flowchart of an order data processing method according to an embodiment of this application is shown;
[0020] Figure 2 A detailed flowchart illustrating the marking of a first label or a second label on the target order according to one embodiment of this application is shown;
[0021] Figure 3 A detailed flowchart illustrating the determination of whether to mark the target order with a first label according to one embodiment of this application is shown;
[0022] Figure 4 A detailed flowchart illustrating the determination of whether to mark the target order with a first label according to one embodiment of this application is shown;
[0023] Figure 5 A detailed flowchart illustrating the marking of a first label or a second label on the target order according to one embodiment of this application is shown;
[0024] Figure 6A detailed flowchart is shown, according to an embodiment of this application, for calculating the supply quantity of the inserted work order and subtracting the remaining demand quantity from the supply quantity of the inserted work order.
[0025] Figure 7 A flowchart of an order data processing method according to an embodiment of this application is shown;
[0026] Figure 8 A block diagram of an order data processing apparatus according to one embodiment of the present application is shown;
[0027] Figure 9 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0028] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0029] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0031] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0032] It should be noted that "multiple" in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0033] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such uses of these terms can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described.
[0034] Before elaborating on this solution, let's briefly explain the orders involved. In this application, an order specifically refers to a demand for a particular material, including the required quantity and the deadline for fulfilling that demand. For example, a demand for 10,000 pieces of a particular garment, with a deadline of August 8, 2022. Upon receiving an order, the order data needs to be processed. This involves planning the production volume on each production line for each date to determine if delivery can be made before the required delivery date (i.e., the order deadline). For orders that cannot be delivered on time, the delayed delivery date or the reason for non-delivery needs to be determined.
[0035] The implementation details of the technical solutions in the embodiments of this application are described in detail below:
[0036] Figure 1 A flowchart of an order data processing method according to an embodiment of this application is shown. This order data processing method can be executed by a device with computing processing capabilities. (Refer to...) Figure 1 As shown, this order data processing method includes at least steps 110 to 170, which are detailed below:
[0037] In step 110, the order priority of each order in at least one order is obtained.
[0038] In step 130, the target order is selected from the orders whose order data processing has not been completed, according to the order priority.
[0039] In step 150, based on the order period of the target order, the remaining demand of the order materials in the target order, the scheduled supply of the order materials in each day, the remaining inventory of the order materials, and the remaining production capacity, a first tag or a second tag is assigned to the target order to complete the order data processing of the target order. The first tag is used to indicate that the target order can be completed before the order period, and the second tag is used to indicate that the target order cannot be completed before the order period.
[0040] In step 170, if there are orders whose order data processing has not been completed, the process returns to the step of selecting the target order from the orders whose order data processing has not been completed according to the order priority, until the order data processing of each order is completed.
[0041] In this application, when there are multiple orders, the order set can be denoted as M. The priorities of all orders m∈M can be obtained, and the orders can be sorted according to their priorities, with the order having the highest priority being selected. The order requirements are then iterated through to process the order data.
[0042] In this application, it should be noted that the order priority can be determined in ascending order of order deadline, in descending order of order number, or in descending order of order material demand. It is understood that the method of determining the order priority can be arbitrary, and this application does not impose any specific limitations on it.
[0043] In this application, on the one hand, order data is processed based on order priority, ensuring that high-priority orders are processed first, thus guaranteeing the rationality of order data processing. On the other hand, during the processing of each order's data, a first or second tag can be used to indicate whether the target order can be completed before the order deadline, standardizing order data processing and improving processing efficiency. Furthermore, by considering remaining capacity when determining whether a target order can be completed before the order deadline, the accuracy of order data processing can be improved.
[0044] Next, in such Figure 1 Based on the scheme shown, the order data processing method proposed in this application is further explained.
[0045] In such Figure 1 In one embodiment of step 150 shown, the target order is labeled with a first tag or a second tag based on the order period of the target order, the remaining demand of the order materials in the target order, the scheduled supply of the order materials in each day's work orders, the remaining inventory of the order materials, and the remaining production capacity. This can be done according to... Figure 2Perform the steps shown.
[0046] See Figure 2 This document illustrates a detailed flowchart of a process for marking a first label or a second label on a target order according to an embodiment of this application. Specifically, it includes steps 151 to 153:
[0047] In step 151, based on the order period of the target order, the remaining demand of the order materials in the target order, and the scheduled work order supply of the order materials on each date, it is determined whether to mark the target order with a first tag.
[0048] In such Figure 2 In one embodiment of step 151 shown, based on the order period of the target order, the remaining demand of the order materials in the target order, and the scheduled supply quantity of the order materials for each date, it is determined whether to mark the target order with a first tag. This can be done according to the following... Figure 3 Perform the steps shown.
[0049] See Figure 3 This document illustrates a detailed flowchart of an embodiment of the present application for determining whether to mark a first label for the target order. Specifically, it includes steps 1511 to 1514:
[0050] Step 1511: Obtain the first set of dates that satisfy the order deadline.
[0051] Step 1512: According to the date order from latest to earliest in the first date set, the remaining demand of the order materials in the target order is deducted from the supply quantity of the scheduled work order corresponding to each date.
[0052] Step 1513: If the supply of the scheduled work orders corresponding to the dates in the first date set deducts all of the remaining demand, then the target order is marked with a first tag.
[0053] Step 1514: If the supply of the scheduled work orders corresponding to the dates in the first date set does not completely deduct the remaining demand, then the target order is not marked with the first tag.
[0054] Specifically, you can record the order materials in the target order. At present remaining demand Let D be the first set of dates that satisfy the order deadline for the target order. ·1 For example, if the current date is August 1, 2022, and the order deadline for the target order is August 8, 2022, then the first set of dates D that satisfies the order deadline is... ·1This could be represented as "August 1, 2022, August 2, 2022, August 3, 2022, August 4, 2022, August 5, 2022, August 6, 2022, August 7, 2022, August 8, 2022".
[0055] Select the first date set D ·1 Latest date in Iterate through the dates from back to front: record order materials. On the date The supply quantity of the pre-ordered work order (i.e., the materials for the pre-ordered production order on date d) The quantity of materials is Confirm Order Materials The number of work orders supplied is pass Deduct remaining demand And obtain the updated remaining demand. When the target order is fully satisfied, that is... The target order is labeled with a first tag if the target order is active, otherwise... Continue to deduct the remaining demand from the material supply quantity of the previous date's work order. This process is repeated until all remaining demand is deducted, at which point the target order is marked with a first tag.
[0056] If the first date set D ·1 When all dates in the data have been checked, the remaining demand quantity was not included. If all deductions are made, the target order will not be marked with the first tag.
[0057] Continue to refer to Figure 2 In step 152, if the target order is not marked with the first label, it is determined whether to mark the target order with the first label based on the remaining inventory of the order materials.
[0058] In such Figure 2 In one embodiment of step 152 shown, determining whether to mark the target order with the first label based on the remaining inventory of the ordered materials can be done as follows: Figure 4 Perform the steps shown.
[0059] See Figure 4 This document illustrates a detailed flowchart of an embodiment of the present application for determining whether to mark a first label for the target order. Specifically, it includes steps 1521 to 1522:
[0060] Step 1521: If the remaining inventory of the order material in the first date set deducts all of the remaining demand, then mark the target order with a first tag.
[0061] Step 1522: If the remaining inventory of the order material in the first date set does not completely deduct the remaining demand, then the first tag is not marked for the target order.
[0062] Specifically, obtaining order materials Remaining inventory Confirm Order Materials The amount of inventory supply used is pass Deduct remaining demand And obtain the updated remaining demand. When the target order is fully satisfied, that is... The first label is marked for the target order if it is true; otherwise, the first label is not marked for the target order.
[0063] Continue to refer to Figure 2 In step 153, if the target order is not marked with the first label, then the target order is marked with the first label or the second label according to the remaining capacity.
[0064] In this application, the remaining capacity may include the remaining capacity of production lines capable of producing the ordered materials in the first date set.
[0065] In such Figure 2 In one embodiment of step 153 shown, the target order is labeled with a first label or a second label according to the remaining capacity, which can be done as follows: Figure 5 Perform the steps shown.
[0066] See Figure 5 This document illustrates a detailed flowchart of marking a first label or a second label on the target order according to an embodiment of this application. Specifically, it includes steps 1531 to 1537:
[0067] Step 1531: Determine the work order insertion point from the production lines that can produce the order material on each date in the first date set, and obtain the work order insertion point set.
[0068] Step 1532: Determine the changeover time for each work order insertion point in the work order insertion point set.
[0069] Step 1533: Select the work order insertion point with the shortest changeover time from the set of work order insertion points as the target work order insertion point.
[0070] Step 1534: Determine the insertion point of the target work order, calculate the supply quantity of the insertion work order, and deduct the remaining demand quantity from the supply quantity of the insertion work order.
[0071] Step 1535: If the supply quantity of the inserted work order deducts all of the remaining demand quantity, then the target order is marked with a first tag.
[0072] Step 1536: If the inserted work order supply does not completely deduct the remaining demand, remove the target work order insertion point from the work order insertion point set, and return to the step of selecting the work order insertion point with the shortest changeover time from the work order insertion point set, until the inserted work order supply completely deducts the remaining demand, and mark the target order with a first tag.
[0073] Step 1537: If all work order insertion points in the work order insertion point set are selected, and the inserted work order supply does not deduct all of the remaining demand, then mark the target order with a second label.
[0074] In this embodiment, the supply quantity of the inserted work order is calculated, and the remaining demand quantity is deducted from the supply quantity of the inserted work order, which can be done according to the following... Figure 6 Perform the steps shown.
[0075] See Figure 6 This document illustrates a detailed flowchart of calculating the supply quantity of the inserted work order according to an embodiment of this application, and subtracting the remaining demand quantity from the supply quantity of the inserted work order. Specifically, it includes steps 15341 to 15343:
[0076] Step 15341: Determine the time interval of the inserted work order, and determine the second set of dates occupied by the time interval of the work order.
[0077] Step 15342: Iterate through the raw material supply quantity for each date in the second date set, and calculate the insert work order supply quantity for each date in the second date set based on the raw material supply quantity and the production efficiency of the order materials.
[0078] Step 15343: Subtract the remaining demand amount sequentially from the supply amount of the inserted work orders for each date in the second date set.
[0079] Specifically, you can record the order materials. The production lines that can be produced are: Production line assembly on various dates Let S be the set of work order insertion points that satisfy the order deadlines among the production tasks on each production line.
[0080] It should be noted that the work order insertion point refers to the time interval between two adjacent production tasks on a production line. For example, if the production task of production line 1 in a certain time interval (12:00, 14:00) is to produce garment A, the production task in the time interval (21:00, 22:00) is to produce garment B, and the production task in the time interval (14:00, 21:00) is empty, then the time interval (14:00, 21:00) can be the time interval where the work order insertion point is located.
[0081] For a work order insertion point s∈S, the order materials are calculated as follows: Insert the changeover time value after production at this point.
[0082] Let i be the production task before the work order insertion point and the production task after the work order insertion point. prev and i next The changeover time before insertion is After insertion, material i prev Materials received from orders The production changeover time is Order materials To material i next The production changeover time is therefore,
[0083]
[0084] The work order insertion points in the set S can be sorted in ascending order according to the changeover time, and the insertion point at the top of the sorted list can be selected. To select With the goal of minimizing work order insertion points, we begin by iterating through the insertion points as follows:
[0085] Record work order insertion point The production line it is located on is Check other subsequent production tasks on the production line in reverse order. If the sequence, quantity, and corresponding order deadlines remain unchanged, adjust them as far back as possible to obtain the time interval for inserting the work order at the current work order insertion point. Denote the interval The earliest date in the second set of dates covered, D·2, is taken. Iterate through the dates from beginning to end as follows:
[0086] Target order existing remaining demand For order materials On the production line Previous date The production process is as follows:
[0087] Record the remaining available production time of the production line. (i.e., work order time interval) Limited available production time and production materials production rate The producible quantity under capacity constraints is:
[0088]
[0089] Record order materials The required raw materials are as follows Produce one unit of the order material Required raw materials Quantity is Raw material j on the date Available supply is The producible quantity under raw material supply constraints is:
[0090]
[0091] So date The theoretical production capacity is Add the production task to the work order insertion point And through theoretical production volume for Deduct remaining demand When the target order is fully satisfied, that is... The target order is labeled with a first tag if the target order is active, otherwise... Continue iterating through the second date set D ·2 The next date in the second date set D. ·2 When all dates in the data are iterated over, if the remaining demand... If not all of it is deducted, then Continue iterating through the work order insertion point set S to find the next work order insertion point.
[0092] When all work order insertion points in the work order insertion point set S have been traversed, if the remaining demand quantity... If not all of it is deducted, then the target order is marked with a second tag.
[0093] The order data processing solution provided in this application improves the accuracy of order data processing by taking into account both capacity and raw material supply constraints, as well as the changeover time before and after production changeover.
[0094] In addition, when allocating production capacity, the capacity used can be adjusted to be delayed as much as possible without changing the delivery date of higher priority orders, so that lower priority orders can be better met.
[0095] In one embodiment of this application, if the target order is marked with a second tag, the following can also be performed: Figure 7 The steps are shown.
[0096] See Figure 7 The flowchart illustrates an order data processing method according to an embodiment of this application. Specifically, it includes steps 181 to 184:
[0097] Step 181: Obtain the third set of dates that do not meet the order deadline.
[0098] Step 182: According to the date order from earliest to latest in the third date set, the remaining demand of the order materials in the target order is deducted from the supply quantity of the scheduled work order corresponding to each date.
[0099] Step 183: If the supply of the scheduled work orders corresponding to the dates in the third date set does not completely deduct the remaining demand, then the remaining demand is deducted from the remaining inventory in the third date set.
[0100] Step 184: If the remaining inventory of the ordered material in the third date set does not completely deduct the remaining demand, then an insert work order is determined in the third date set based on the remaining capacity in the third date set, and the remaining demand is deducted by the supply quantity of the insert work order corresponding to the insert work order in the third date set.
[0101] Specifically, obtain the third set D of dates where the target order does not meet the order deadline. ·3 Take the earliest date from the set. Starting from the beginning, the dates are iterated through, and the remaining demand for materials in the target order is deducted from the pre-ordered supply quantity for each date. In the third date set D... ·3 When all dates in the list are iterated over, if the remaining demand... If not all of the remaining demand is deducted from the remaining inventory of the third date set, then the remaining demand is deducted from the remaining inventory of the third date set. If the remaining demand is not fully deducted from the remaining inventory of the third date set, then the production line set is recorded. The set of work order insertion points US where the delivery dates of production tasks do not meet is defined. These insertion points are sorted in ascending order according to the changeover time, and the insertion point at the top of the sorted list is selected. Begin traversing the insertion point. Calculate the insertion point. Feasible time interval The earliest date in the covered date set UD′ is taken. The process iterates through the dates from beginning to end. The remaining demand is deducted from the supply of the scheduled work orders corresponding to each date, until the remaining demand is completely deducted. If the remaining demand cannot be completely deducted, an analysis of material shortages and insufficient production capacity can be performed.
[0102] In this application, an analysis of material shortages and insufficient production capacity was conducted for orders that could not be fulfilled by normal production, thereby enhancing the completeness of order data processing.
[0103] The following describes an apparatus embodiment of this application, which can be used to execute the order data processing method in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the order data processing method described above.
[0104] Figure 8 A block diagram of an order data processing apparatus according to an embodiment of the present application is shown.
[0105] Reference Figure 8 As shown, an order data processing apparatus 800 according to an embodiment of this application includes: an acquisition unit 801, a selection unit 802, and a marking unit 803.
[0106] The system includes an acquisition unit 801 for acquiring the order priority of each order in at least one order; a selection unit 802 for selecting a target order from the orders whose data processing has not been completed, according to the order priority; and a marking unit 803 for marking the target order with a first tag or a second tag based on the target order's order deadline, the remaining demand for materials in the target order, the daily scheduled work order supply of the materials, the remaining inventory of the materials, and the remaining production capacity, in order to complete the order data processing of the target order. The first tag indicates that the target order can be completed before the order deadline, and the second tag indicates that the target order cannot be completed before the order deadline. The acquisition unit 801 is also configured to, if there are orders whose data processing has not been completed, return to the step of selecting a target order from the orders whose data processing has not been completed according to the order priority, until the order data processing of each order is completed.
[0107] In some embodiments of this application, based on the foregoing scheme, the marking unit 803 is configured to: determine whether to mark the target order with a first label based on the order period of the target order, the remaining demand of the order materials in the target order, and the scheduled work order supply of the order materials on each date; if the target order is not marked with a first label, determine whether to mark the target order with a first label based on the remaining inventory of the order materials; if the target order is not marked with a first label, mark the target order with a first label or a second label based on the remaining production capacity.
[0108] In some embodiments of this application, based on the foregoing scheme, the marking unit 803 is further configured to: obtain a first set of dates that meet the order deadline; according to the date order from latest to earliest in the first set of dates, deduct the remaining demand of the order materials in the target order sequentially by the pre-ordered work order supply quantity corresponding to each date; if the pre-ordered work order supply quantity corresponding to the date in the first set of dates deducts all the remaining demand quantity, then the target order is marked with a first tag; if the pre-ordered work order supply quantity corresponding to the date in the first set of dates does not deduct all the remaining demand quantity, then the target order is not marked with a first tag.
[0109] In some embodiments of this application, based on the foregoing scheme, the marking unit 803 is further configured to: mark the target order with a first label if the remaining inventory of the order material in the first date set completely deducts the remaining demand; and not mark the target order with a first label if the remaining inventory of the order material in the first date set does not completely deduct the remaining demand.
[0110] In some embodiments of this application, based on the foregoing scheme, the marking unit 803 is further configured to: determine work order insertion points from the production lines that can produce the order materials on each date in the first date set, thereby obtaining a set of work order insertion points; determine the changeover time of each work order insertion point in the set of work order insertion points; select the work order insertion point with the shortest changeover time from the set of work order insertion points as the target work order insertion point; determine the inserted work order at the target work order insertion point, and calculate the inserted work order supply quantity of the inserted work order, deducting the remaining demand quantity from the inserted work order supply quantity; if the inserted work order supply quantity will reduce the remaining demand quantity... If the remaining demand is completely deducted, the target order is marked with a first label. If the inserted work order supply does not completely deduct the remaining demand, the target work order insertion point is removed from the work order insertion point set, and the process returns to selecting the work order insertion point with the shortest changeover time from the work order insertion point set, until the inserted work order supply completely deducts the remaining demand, at which point the target order is marked with a first label. If all work order insertion points in the work order insertion point set are selected, and the inserted work order supply does not completely deduct the remaining demand, the target order is marked with a second label.
[0111] In some embodiments of this application, based on the foregoing scheme, the marking unit 803 is further configured to: determine the time interval of the inserted work order, and determine the second set of dates occupied by the time interval of the work order; traverse the raw material supply of each date in the second set of dates, and calculate the inserted work order supply of each date in the second set of dates based on the raw material supply and the production efficiency of the order materials; and deduct the remaining demand from the inserted work order supply of each date in the second set of dates in turn.
[0112] In some embodiments of this application, based on the foregoing scheme, if the target order is marked with a second tag, the acquisition unit 801 is further configured to: acquire a third set of dates that do not meet the order deadline; according to the date order from earliest to latest in the third set, deduct the remaining demand of the order materials in the target order sequentially through the supply quantity of the scheduled work orders corresponding to each date; if the supply quantity of the scheduled work orders corresponding to the dates in the third set does not deduct all the remaining demand, then deduct the remaining demand through the remaining inventory of the third set; if the remaining inventory of the order materials in the third set does not deduct all the remaining demand, then determine the insertion work order in the third set according to the remaining capacity in the third set, and deduct the remaining demand through the supply quantity of the insertion work order corresponding to the insertion work order in the third set.
[0113] Figure 9A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0114] It should be noted that, Figure 9 The computer system 900 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0115] like Figure 9 As shown, the computer system 900 includes a Central Processing Unit (CPU) 901, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 902 or programs loaded from Storage Unit 908 into Random Access Memory (RAM) 903, such as performing the methods described in the above embodiments. The RAM 903 also stores various programs and data required for system operation. The CPU 901, ROM 902, and RAM 903 are interconnected via a bus 904. An Input / Output (I / O) interface 905 is also connected to the bus 904.
[0116] The following components are connected to I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to I / O interface 905 as needed. Removable media 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 910 as needed so that computer programs read from them can be installed into storage section 908 as needed.
[0117] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 909, and / or installed from removable medium 911. When the computer program is executed by central processing unit (CPU) 901, it performs various functions defined in the system of this application.
[0118] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0119] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0120] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0121] In another aspect, this application also provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods described in the above embodiments.
[0122] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0123] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0124] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.
[0125] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0126] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for processing order data, characterized in that, The method includes: Get the order priority of each order in at least one order; Based on the order priority, select the target order from the orders whose data processing has not been completed; Based on the order deadline of the target order, the remaining demand of the order materials in the target order, the scheduled supply of the order materials in each day, the remaining inventory of the order materials, and the remaining production capacity, the target order is labeled with a first tag or a second tag to complete the order data processing of the target order. The first tag is used to indicate that the target order can be completed before the order deadline, and the second tag is used to indicate that the target order cannot be completed before the order deadline. The step of marking the target order with a first or second label based on the order period of the target order, the remaining demand for materials in the target order, the daily scheduled supply of materials, the remaining inventory of the materials, and the remaining production capacity includes: Based on the order period of the target order, the remaining demand of the order materials in the target order, and the scheduled supply of the order materials for each date, determine whether to mark the target order with a first tag; The step of determining whether to mark the target order with a first tag based on the order period of the target order, the remaining demand of the order materials in the target order, and the scheduled supply quantity of the order materials for each date includes: Obtain the first set of dates that satisfy the order deadline; According to the date order from latest to earliest in the first date set, the remaining demand of the order materials in the target order is deducted sequentially from the supply quantity of the scheduled work order corresponding to each date; If the supply of the scheduled work orders corresponding to the dates in the first date set is reduced by the remaining demand, then the target order is marked with a first tag; If the supply of the scheduled work orders corresponding to the dates in the first date set does not completely deduct the remaining demand, then the target order will not be marked with the first tag; If the target order is not marked with the first label, then determine whether to mark the target order with the first label based on the remaining inventory of the materials in the order; The step of determining whether to mark the target order with the first tag based on the remaining inventory of the order materials includes: If the remaining inventory of the ordered material in the first date set completely deducts the remaining demand, then the target order is marked with a first tag; If the remaining inventory of the order material in the first date set does not completely deduct the remaining demand, then the target order will not be marked with the first tag; If the target order is not marked with the first label, then the target order is marked with either the first label or the second label based on the remaining capacity; The remaining capacity includes the remaining capacity of production lines capable of producing the ordered materials in the first date set. The step of marking the target order with a first tag or a second tag based on the remaining capacity includes: From the production lines where the order materials can be produced on each date in the first date set, the work order insertion point is determined to obtain a set of work order insertion points. The work order insertion point is the time interval between two production tasks that are adjacent in the time dimension on a production line. For each work order insertion point in the set of work order insertion points, the material corresponding to the production task before the work order insertion point is determined as the first material, and the material corresponding to the production task after the work order insertion point is determined as the second material. The changeover time of the work order insertion point is obtained by subtracting the changeover time of the first material from the order material and the changeover time of the order material from the second material. Select the work order insertion point with the smallest changeover time value from the set of work order insertion points, and use it as the target work order insertion point. The inserted work order is determined at the target work order insertion point, and the time interval of the inserted work order and the second set of dates occupied by the time interval are determined. For each date in the second set of dates, the production quantity under capacity constraints is determined based on the remaining available production time within the time interval of the work order within the date and the production rate of the order material on the production line where the target work order insertion point is located. Based on the quantity of each raw material required to produce one unit of the ordered material and the available supply of each raw material on the date, the available supply of each raw material on the date is divided by the corresponding quantity of raw materials required to produce one unit of the ordered material to obtain the quantity of the ordered material that each raw material can support for production, and the minimum value among the quantity of the ordered material that each raw material can support for production is determined as the producible quantity under the raw material supply constraint. The minimum value among the remaining demand, the productionable quantity under the capacity constraint, and the productionable quantity under the raw material supply constraint is determined as the inserted work order supply quantity for the date, and the remaining demand is deducted from the inserted work order supply quantity for the date. If the supply of inserted work orders for each date in the second date set deducts all of the remaining demand, then the target order is marked with a first tag; If the supply of inserted work orders for each date in the second date set does not completely deduct the remaining demand, then the target work order insertion point is removed from the work order insertion point set, and the process returns to the step of selecting the work order insertion point with the smallest changeover time value from the work order insertion point set, until the supply of inserted work orders completely deducts the remaining demand, and the target order is marked with a first label. If all work order insertion points in the set of work order insertion points are selected, and the supply of the inserted work order does not deduct all of the remaining demand, then the target order is marked with a second label. If there are orders whose order data processing has not been completed, then return to the step of selecting the target order from the orders whose order data processing has not been completed according to the order priority, until the order data processing of each order is completed.
2. The method according to claim 1, characterized in that, Determining the insertion point of the target work order includes: The subsequent production tasks on the production line where the target work order insertion point is located are checked in reverse order. If the order, quantity, and corresponding order of the subsequent production tasks remain unchanged, the subsequent production tasks are adjusted as far back as possible to obtain the work order time interval for inserting the inserted work order at the target work order insertion point.
3. The method according to claim 1, characterized in that, If the target order is tagged with a second label, the method further includes: Obtain the set of third dates that do not meet the stated order deadline; According to the date order from earliest to latest in the third date set, the remaining demand of the order materials in the target order is deducted sequentially from the supply quantity of the scheduled work order corresponding to each date; If the supply of the scheduled work orders corresponding to the dates in the third date set does not completely deduct the remaining demand, then the remaining demand is deducted from the remaining inventory in the third date set. If the remaining inventory of the ordered material in the third date set does not completely deduct the remaining demand, then an insert work order is determined in the third date set based on the remaining capacity in the third date set, and the remaining demand is deducted by the supply quantity of the insert work order corresponding to the insert work order in the third date set.
4. An order data processing device, characterized in that, The device includes: The acquisition unit is used to acquire the order priority of each order in at least one order; The selected unit is used to select a target order from the orders whose order data processing has not been completed, according to the order priority. A tagging unit is used to tag the target order with a first tag or a second tag based on the target order's order deadline, the remaining demand for the order materials in the target order, the scheduled supply of the order materials in each day's work orders, the remaining inventory of the order materials, and the remaining production capacity, so as to complete the order data processing of the target order. The first tag is used to indicate that the target order can be completed before the order deadline, and the second tag is used to indicate that the target order cannot be completed before the order deadline. The marking unit is further configured to: obtain a first set of dates that meet the order deadline; and, in accordance with the date order from latest to earliest in the first set of dates, deduct the remaining demand of the order materials in the target order from the supply quantity of the pre-ordered work order corresponding to each date; and, if the supply quantity of the pre-ordered work order does not deduct all the remaining demand, deduct the remaining demand from the remaining inventory of the order materials in the first set of dates. When the remaining inventory does not completely deduct the remaining demand, the work order insertion point is determined from the production lines that can produce the order material on each date in the first date set, and a work order insertion point set is obtained. The work order insertion point is the time interval between two production tasks that are adjacent in the time dimension on a production line. For each work order insertion point in the set of work order insertion points, the material corresponding to the production task before the work order insertion point is determined as the first material, and the material corresponding to the production task after the work order insertion point is determined as the second material. The changeover time from the first material to the order material and the changeover time from the order material to the second material are added together, and the changeover time from the first material to the second material is subtracted to obtain the changeover time change value of the work order insertion point. The work order insertion point with the smallest changeover time change value is selected as the target work order insertion point. The inserted work order is determined at the target work order insertion point, and the work order time interval of the inserted work order and the second set of dates it occupies are determined; for each date in the second set of dates, the production quantity under capacity constraints is determined based on the remaining available production time within the work order time interval within the date and the production rate of the order material on the production line where the target work order insertion point is located. Based on the quantities of each raw material required to produce one unit of the ordered material and the available supply of each raw material on the date, determine the quantity of the ordered material that each raw material can support for production, and determine the minimum value among them as the producible quantity under the raw material supply constraint; determine the minimum value among the remaining demand, the producible quantity under the capacity constraint, and the producible quantity under the raw material supply constraint as the inserted work order supply quantity on the date, and subtract the remaining demand from the inserted work order supply quantity on the date; If the supply of inserted work orders for each date in the second date set does not completely deduct the remaining demand, the target work order insertion point is removed from the work order insertion point set, and the work order insertion point with the smallest changeover time value is selected. If all work order insertion points in the work order insertion point set are selected and the remaining demand is not completely deducted, a second label is marked for the target order. The acquisition unit is also used to, if there are orders whose order data processing has not been completed, return to the step of selecting the target order from the orders whose order data processing has not been completed according to the order priority, until the order data processing of each order is completed.
5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is loaded and executed by a processor to perform the operations performed by the method as described in any one of claims 1 to 3.
6. An electronic device, characterized in that, The electronic device includes one or more processors and one or more memories, wherein at least one piece of program code is stored in the one or more memories, and the at least one piece of program code is loaded and executed by the one or more processors to perform the operation performed by the method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Method for promising order of semiconductor assembly and test enterprise
CN103246950A