Material distribution method and device, computer equipment and storage medium
By generating target alternative material groups and optimizing material delivery time according to supply methods, the problems of material shortage and dynamic switching of delivery time are solved, and material utilization and production efficiency are improved.
Patent Information
- Application Number
- CN202510486275.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-07-25
AI Technical Summary
The existing technology is difficult to cope with the problems of material shortage, complex substitution relationships and dynamic switching of material delivery in the manufacturing industry, resulting in production delays and waste of resources.
By obtaining multiple alternative materials of the target material, a target alternative material group is generated based on priority, a planned order is updated, and the target supply date is determined according to the conversion rules of different supply methods, the supply period is divided, and dynamic material allocation is realized.
It improves material utilization, optimizes production plans, reduces the risk of production interruptions, and improves market response speed and supply chain resilience.
Smart Images

Figure CN120373772A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a material allocation method, device, computer device, and storage medium. Background Art
[0002] In the manufacturing production process, due to factors such as unstable raw material supply and production plan changes, there are often situations of material shortages in the early stage of production. This may delay the delivery date, affect customer satisfaction, and even result in the loss of business opportunities in more serious cases. To ensure the smooth progress of the production process, production is usually carried out by adding substitute materials.
[0003] Traditional material allocation methods mainly rely on manual experience and lack scientificity and systematicness; even when systems such as ERP are implemented, corresponding material management methods (such as the MRP module of ERP) are usually based on the assumption of infinite production capacity and are difficult to handle problems such as material shortages, complex substitution relationships, and dynamic switching in combination with material delivery dates in actual production. Therefore, there is an urgent need for a material allocation method that can achieve dynamic material allocation according to the substitution relationship between materials and improve material utilization rate in the case of material shortages. Summary of the Invention
[0004] This application provides a material allocation method, device, computer device, and storage medium to at least solve the problems in related technologies that are difficult to handle material shortages, complex substitution relationships, and dynamic switching in combination with material delivery dates in actual production.
[0005] This application provides a material allocation method, including:
[0006] Obtain multiple substitute materials corresponding to the target material in the planned order, determine the target substitute material group based on the priorities of the multiple substitute materials corresponding to the target material and the target material, where the target substitute material group includes the target material and the target substitute material; update the planned order based on the target substitute material group information to obtain an updated planned order; determine the order to be released according to the target substitute material inventory; convert the supply date of the target substitute material corresponding to the order to be released according to the conversion rules corresponding to different supply methods to obtain the target supply date of the target substitute material corresponding to the order to be released in different supply methods; divide the target supply date to obtain multiple target supply periods; determine the target material allocation strategy of the order to be released based on the target supply period and the demand date of the target substitute material corresponding to the order to be released; allocate materials according to the updated planned order and the target material allocation strategy of the order to be released.
[0007] This application also provides a material allocation device, including:
[0008] A determination module, configured to obtain multiple alternative materials corresponding to a target material in a planned order, determine a target alternative material group based on the priorities of the multiple alternative materials corresponding to the target material and the target material, where the target alternative material group includes the target material and the target alternative materials; an update module, configured to update the planned order based on the target alternative material group information to obtain an updated planned order; a conversion module, configured to determine a to-be-released order according to the target alternative material inventory; convert the supply date of the target alternative material corresponding to the to-be-released order according to the conversion rules corresponding to different supply methods to obtain the target supply dates of the target alternative materials corresponding to the to-be-released orders of different supply methods; divide the target supply dates to obtain multiple target supply periods; an allocation module, configured to determine the target material allocation strategy of the to-be-released order based on the target supply periods and the target alternative material demand dates corresponding to the to-be-released order; allocate materials according to the updated planned order and the target material allocation strategy of the to-be-released order.
[0009] The present application also provides a computer device, including: a memory, configured to store a computer program; a processor, configured to implement the steps of the material allocation method in the following implementation manners when executing the computer program.
[0010] Obtain multiple alternative materials corresponding to a target material in a planned order, determine a target alternative material group based on the priorities of the multiple alternative materials corresponding to the target material and the target material, where the target alternative material group includes the target material and the target alternative materials; update the planned order based on the target alternative material group information to obtain an updated planned order; determine a to-be-released order according to the target alternative material inventory; convert the supply date of the target alternative material corresponding to the to-be-released order according to the conversion rules corresponding to different supply methods to obtain the target supply dates of the target alternative materials corresponding to the to-be-released orders of different supply methods; divide the target supply dates to obtain multiple target supply periods; determine the target material allocation strategy of the to-be-released order based on the target supply periods and the target alternative material demand dates corresponding to the to-be-released order; allocate materials according to the updated planned order and the target material allocation strategy of the to-be-released order.
[0011] The present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program, when executed by a processor, implements the steps of the material allocation method in any of the following implementation manners.
[0012] Obtain multiple alternative materials corresponding to the target material in the planned order, determine the target alternative material group based on the priorities of the multiple alternative materials corresponding to the target material and the target material. The target alternative material group includes the target material and the target alternative materials; update the planned order based on the target alternative material group information to obtain an updated planned order; determine the order to be released according to the target alternative material inventory; convert the supply date of the target alternative material corresponding to the order to be released according to the conversion rules corresponding to different supply methods to obtain the target supply dates of the target alternative materials corresponding to the orders to be released in different supply methods; divide the target supply dates to obtain multiple target supply periods; determine the target material allocation strategy for the order to be released based on the target supply periods and the demand dates of the target alternative materials corresponding to the order to be released; allocate materials according to the updated planned order and the target material allocation strategy of the order to be released.
[0013] Through the material allocation method provided by this application, since the target alternative material group can be determined based on the priorities of the multiple alternative materials corresponding to the target material and the target material, the planned order is updated according to the target alternative material group information, and the material allocation of the planned order is executed according to the updated planned order; and the order to be released is also determined according to the target alternative material inventory; the supply date of the target alternative material corresponding to the order to be released is converted according to the conversion rules corresponding to different supply methods to obtain the target supply dates of the target alternative materials corresponding to the orders to be released in different supply methods; the target supply dates are divided to obtain multiple target supply periods; the target material allocation strategy for the order to be released is determined based on the target supply periods and the demand dates of the target alternative materials corresponding to the order to be released; the material allocation of the order to be released is executed according to the target material allocation strategy.
[0014] In this way, not only can the target alternative materials for the target material in the planned order be found to cope with the shortage of the target material in the planned order, but also the problem that the inventory of the target alternative materials may not be sufficient to meet the needs of other orders to be processed is considered. The supply date of the target alternative material corresponding to the order to be released is converted and the date is divided, and then the target material allocation strategy for the order to be released is determined to solve the technical problems in the related art that it is difficult to cope with material shortages, complex substitution relationships and dynamic switching in combination with material delivery dates in actual production, and achieve the technical effect of realizing dynamic material allocation according to the substitution relationship between materials and improving material utilization rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0016] Figure 1 It is a schematic flowchart of the material distribution method provided by the embodiment of the present application;
[0017] Figure 2 It is a schematic diagram of generating a target alternative material group provided by the embodiment of the present application;
[0018] Figure 3 It is a structural block diagram of the material distribution device provided by the embodiment of the present application;
[0019] Figure 4 It is an internal structure diagram of the computer device provided by the embodiment of the present application. Detailed implementation manners
[0020] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.
[0021] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0022] In the prior art, there are the following two defects in the management of alternative materials: 1. Static substitution rules: relying on manual setting of the priority of material usage, it is impossible to dynamically adjust the substitution strategy according to real-time inventory and delivery date. 2. Insufficient global optimization: Most solutions only solve local substitution problems and do not combine the collaborative optimization of material kit planning and material supply.
[0023] With the intensification of market competition, the demand for product quality and cost control is increasing day by day. The traditional supply chain management methods often have problems such as low efficiency and resource waste. Especially in the supply distribution of alternative materials, it is difficult to quickly respond to changes in production demand, resulting in an extended production cycle and increased costs.
[0024] The material distribution method provided by the present application is applied to an automated planning and scheduling system (APS system) to optimize the supply distribution of alternative materials. On the premise of considering the priority of alternative materials, it combines the optimization of consumption of alternative material supply with the delivery date, reduces the risk of production interruption, optimizes cost control, improves the market response speed, and enhances the resilience of the supply chain.
[0025] To enable those skilled in the art of this technical field to better understand the solution of this application, the following further detailed description of this application will be given in conjunction with the accompanying drawings and specific embodiments.
[0026] As Figure 1 shown, an embodiment of this application provides a material distribution method, and this method specifically includes the following steps:
[0027] Step 101: Obtain multiple alternative materials corresponding to the target material in the planned order, and determine a target alternative material group based on the priorities of the multiple alternative materials corresponding to the target material and the target material. The target alternative material group includes the target material and the target alternative material.
[0028] Specifically, obtain the target material in the planned order, where the target material is the material whose inventory does not meet the demand for the target material in the planned order; select multiple alternative materials corresponding to the target material from the material database, and the material database includes various materials, information of various materials, and substitution relationships between various materials; use the alternative material with the highest priority among the multiple alternative materials corresponding to the target material as the target alternative material; generate a target alternative material group based on the target alternative material and the target material.
[0029] Materials are a general term for items such as raw materials, parts, semi-finished products, and finished products used in the production process. Here, the planned order can be a production order, which records the material information required for a certain production plan. The target material refers to the material whose inventory quantity is less than the demand quantity of the target material in the planned order. In order to normally promote the production plan, it is necessary to select the target alternative material of the target material to promote the production plan based on the target material and the target alternative material.
[0030] In this application, a material database will be pre-constructed, and the material database stores information of various materials and data on substitution relationships between various materials. Multiple alternative materials corresponding to the target material can be found from the database. Select the alternative material with the highest priority among the multiple alternative materials corresponding to the target material as the target alternative material. Here, the target alternative material can be a single entity material or a combined type material composed of two or more single entity materials.
[0031] Specifically, this application further includes: determining the priorities of multiple alternative materials corresponding to the target material. Determining the priorities of multiple alternative materials corresponding to the target material includes: obtaining the serial number codes of multiple alternative materials corresponding to the target material and the supply dates of multiple alternative materials corresponding to the target material; assigning a first weight value to the serial number codes of multiple alternative materials corresponding to the target material; assigning a second weight value to the supply dates of multiple alternative materials corresponding to the target material; calculating the priorities of multiple alternative materials corresponding to the target material based on the first weight value and the second weight value.
[0032] In this application, the information of multiple materials recorded in the material database includes the serial number codes of multiple materials. Here, the serial number code represents the priority of the material itself. A first weight value is assigned to multiple alternative materials according to the priority of the material itself represented by the serial number codes of multiple materials. The material supply dates corresponding to multiple alternative materials are obtained. The alternative materials with earlier supply dates or in stock are assigned a higher second weight value. The first weight value and the second weight value can be multiplied to obtain a product. The numerical size of the product is the priority of multiple alternative materials. The larger the numerical value of the product, the higher the priority.
[0033] The inventory of multiple alternative materials can be obtained, and the inventory of multiple alternative materials is sorted according to the priorities of multiple alternative materials. The required quantity of the planned order for the target alternative material is obtained, and a quantity range is configured for each alternative material. The configuration range of the alternative material with the highest priority is 1 - the inventory of the alternative material with the highest priority. The lower limit of the configuration range of the alternative material with the lower priority is the inventory quantity of the alternative material with this priority, and the upper limit of the configuration range of the alternative material with the lower priority is the sum of the inventory quantity of the alternative material with this priority and the inventory quantities of all upper-priority corresponding alternative materials. For example, the inventory of the alternative material with the highest priority is 1, the inventory of the alternative material with the second highest priority is 2, the inventory of the alternative material with the third highest priority is 3, and the required quantity of the planned order for the target alternative material is 4. At this time, the configuration quantity range of the alternative material with the highest priority is 1, the configuration quantity range of the alternative material with the second highest priority is 1 - 3, and the configuration quantity range of the alternative material with the third highest priority is 3 - 6. It is judged which layer of priority corresponding alternative material's configuration range the required quantity of the target alternative material is located in. If the required quantity of the planned order for the target alternative material is 4, then the alternative materials with the highest priority, the second highest priority, and the third highest priority are used as the target alternative materials.
[0034] Step 102: Update the planned order based on the target alternative material group information to obtain an updated planned order.
[0035] Specifically, take the node corresponding to the target material in the planned order as the node to be updated; use the target alternative material group as the node, and generate updated nodes with the target material and the target alternative material as the sub-nodes of the target alternative material group; update the node to be updated based on the updated nodes to obtain the updated planned order.
[0036] After obtaining the target alternative material, the target alternative material group information can be generated according to the target alternative material and the target material. Exemplarily, please refer to Figure 2 , Figure 2 which shows examples of the generation of the target alternative material group in three scenarios.
[0037] In the planned order F in the first scenario, A is the target material and B is the target replacement material. Replace the target material with the target replacement material, and generate a target alternative material group node above the target material node and the target replacement material node, and replace the target material with the target replacement material.
[0038] In the planned order F in the second scenario, B is the target material and Ph is the target replacement material. Replace the target material with the target replacement material, and generate a target alternative material group node above the target material node and the target replacement material node. The target replacement material in this scenario is a combined material, and the combined material as a whole replaces the target material.
[0039] In the planned order F in the third scenario, Ph1 is the target material and Ph2 is the target replacement material. Replace the target material with the target replacement material, and generate a target alternative material group node above the target material node and the target replacement material node. Both the target material and the target replacement material in this scenario are combined materials. When replacing the combined materials, the combination as a whole is replaced.
[0040] In a specific implementation manner, information such as the name, supply source category, material number, planned location, production location, validity period range, batch, priority, planned order number, usage, cost, etc. of the target replacement material group information can be updated in tabular form under a certain component in the original planned order to form an updated planned order.
[0041] Step 103: Determine the order to be released according to the target alternative material inventory.
[0042] Specifically, obtain other pending orders including the target alternative material except for the updated planned order; judge whether the inventory of the target alternative material and the transaction date of the target alternative material meet the requirements of the pending list for the quantity of the target alternative material and the time limit of the target alternative material; if not, take the pending list that does not meet the requirements as the order to be released, and release the demand for the target alternative material in the pending order.
[0043] In practical applications, after using the target substitute material to replace the target material, the inventory of the target substitute material may not be sufficient to support the execution of the production plan for other pending orders including the target substitute material.
[0044] Therefore, it is necessary to determine whether the inventory of the target substitute material and the transaction date of the target substitute material meet the requirements of the pending list for the quantity of the target substitute material and the time limit of the target substitute material. If they meet the requirements, there is no need to process these pending lists. If they do not meet the requirements, the pending lists that do not meet the requirements need to be used as pending release orders, and the demand for the target substitute material in the pending release orders needs to be released, and a new target material allocation strategy corresponding to the pending release orders needs to be formulated.
[0045] Step 104: Convert the supply date of the target substitute material corresponding to the pending release order according to the conversion rules corresponding to different supply methods to obtain the target supply date of the target substitute material corresponding to the pending release order with different supply methods; divide the target supply date to obtain multiple target supply periods.
[0046] Specifically, different supply methods include inventory supply method, near-term supply method, and long-term supply method. The near-term supply method includes the first near-term supply method, the second near-term supply method, the third near-term supply method, and the fourth near-term supply method.
[0047] In practical applications, materials are obtained through supply methods such as inventory method, in-transit PO method (near-term supply method), and long-term arrival method.
[0048] The in-transit PO method also includes near-term supply methods such as ASN (Advanced Shipping Notice), pull PO, framework PO confirmation, and framework PO.
[0049] Among them, framework PO (the fourth near-term supply method) is a PO converted from an approved procurement application and is used for suppliers to prepare goods in advance; framework PO confirmation (the third near-term supply method) is the delivery date reply made by the supplier based on the framework PO; pull PO (the second near-term supply method) is a PO generated based on the framework PO confirmation and is used to transmit the pull demand, and the supplier delivers goods based on this PO; ASN (the first near-term supply method) is a shipping note created by the supplier when shipping based on the pull PO.
[0050] Convert the supply date of the target substitute material corresponding to the pending release order according to the conversion rules corresponding to different supply methods to obtain the target supply date of the target substitute material corresponding to the pending release order with different supply methods; divide the target supply date to obtain multiple target supply periods, including:
[0051] If different supply methods include inventory supply methods, the target supply date of the target alternative material for the inventory supply method is not converted; for inventory types, they are directly consumed according to the alternative material priority, which will not be elaborated further.
[0052] If different supply methods include the first near-term supply method, the actual supply date of the target alternative material for the first near-term supply method is offset by the first time period;
[0053] If different supply methods include the second near-term supply method, the actual supply date of the target alternative material for the second near-term supply method is offset by the second time period, and the supply date of the target alternative material for the second near-term supply method is converted into the first supply date range, and the first supply date range is divided with a preset time as the division unit to obtain multiple first supply date periods;
[0054] If different supply methods include the third near-term supply method, the actual supply date of the target alternative material for the third near-term supply method is offset by the third time period, and the supply date of the target alternative material for the third near-term supply method is converted into the second supply date range, and the second supply date range is divided with a preset time as the division unit to obtain multiple second supply date periods;
[0055] If different supply methods include the fourth near-term supply method, the actual supply date of the target alternative material for the fourth near-term supply method is offset by the fourth time period;
[0056] If different supply methods include the long-term supply method, the actual supply date of the target alternative material for the long-term supply method is offset by the fifth time period.
[0057] In a specific implementation manner, the arrival dates corresponding to each category vary from the next day to more than one year. When the whole factory plan is running, if the supply date coverage range increases, the number of times the planning engine switches and searches according to the alternative priority increases, which affects the operation speed of the planning engine. When the number of switches and searches is too large, the planning result may not be obtained within the specified time. By converting and dividing the supply date of the target alternative material corresponding to the release order, the target material allocation strategy for the release order to be determined is further determined, and the planning strategy parameters for gradually delaying the demand date are set, and the in-transit POs and other long-term arriving materials are segmented by supply category in time to achieve consuming the available supply according to the priority within the same demand period, while reducing the number of switches and searches.
[0058] ASN: Unified offset of 4 days (the first duration). Pulling PO: Initial offset of 6 days (the second duration). Convert the arrival dates of all pulling POs into the time interval from 6 to 26 days in the future (the first supply date range), with an interval of 2 days (the division unit), divided into 10 intervals. Framework PO confirmation: Initial offset of 28 days (the third duration). Convert the arrival dates of all framework PO confirmations into the time interval from 28 to 80 days in the future, with an interval of 2 days, divided into 28 intervals; Framework PO: Unified offset of 82 days (the fourth duration). Forecast delivery date reply and long-term supplies such as manual PR: Unified offset of 84 days (the fifth duration). Here, the manual PR refers to the purchase requisition created manually, and the framework PO is converted from the purchase requisition. According to the above offset algorithm, convert the in-transit POs and long-term incoming materials and other supplies from 1 day in the future to 1 year later into the future within 4 to 84 days (the second supply date range) evenly according to the above algorithm, with a total of 42 intervals. Combine the offset parameters set by the planning engine and gradually delay by 2 days (the delay unit) each time until the demand is met, so as to achieve the consumption of global alternative materials in the optimal way according to the delivery date within a limited time. Here, the delay is the demand delay. When no available supply is found, the demand date is delayed by 2 days each time to see if there is any available supply within the demand date. In this way, it is possible to consume the available supply according to the priority within the same demand period, while reducing the number of switches and searches.
[0059] When the supplies such as inventory, in-transit POs, and long-term incoming materials are all consumed, a PR is issued to show the material gap and send a warning message to drive material procurement. In this way, the optimal consumption effect of the delivery date of global alternative materials can be achieved. By optimizing the allocation of alternative materials, it is ensured that the production plan is not affected by the shortage of raw materials, can complete the order on time, and improve customer satisfaction.
[0060] It can be understood that the specific durations such as the first duration, the second duration, the third duration, the fourth duration, the fifth duration, the first supply date range, the second supply date range, the division unit, and the delay unit mentioned in the above embodiments can be set according to actual experience.
[0061] In this application, relevant parameters for realizing the time offset of the supply date can be set. For example, the supply date can be modified according to the supply category. For example, set the supply categories of the ASNs generated by different types of POs for M3, M4, and M5, and uniformly place them on the fourth day in the future. The framework PO type is uniformly placed on the 82nd day in the future, and others such as manually created PRs are uniformly placed on the 84th day in the future.
[0062] In one implementation, the application will issue a planned order based on unlimited supply, implement alternative material allocation through demand delay and deep search strategy, and give priority to alternative materials with earlier delivery dates, taking into account the priority of alternative materials. Different from the traditional MRP method of using the priority or use possibility of alternative materials, it can better consume the supply of alternative materials and ensure the timely delivery rate.
[0063] Step 105: Determine a target material allocation strategy for the order to be released based on the target supply period and the target replacement material requirement date corresponding to the order to be released.
[0064] Specifically, the target supply date of the target substitute material of different supply modes is matched with the demand date of the target substitute material. If they match, the target supply date of the target substitute material of different supply modes that matches the demand date of the target substitute material is used as the target substitute material of the target supply mode, and the target material allocation strategy of the to-be-released order is generated according to the target substitute material of the target supply mode; if they do not match, the demand date of the target substitute material is delayed, and it is determined whether the demand date of the delayed target substitute material can match the target supply date of the target substitute material of different supply modes; if so, the target substitute material of different supply modes that can match the demand date of the delayed target substitute material is obtained, and the target material allocation strategy of the to-be-released order is generated according to the target substitute material of different supply modes that matches the demand date of the delayed target substitute material.
[0065] By converting the supply date of the target substitute material corresponding to the order to be released according to the conversion rules of different supply methods, the supply date of the target substitute material corresponding to different supply methods is evenly converted into a certain date range in the future, and the demand date of the target substitute material is gradually delayed by the delay unit until the demand is met, so as to realize the consumption of global substitute materials in the best delivery manner within a limited time. The delay here refers to the demand delay. If no available supply is found, the demand date is delayed by the delay unit day each time to see if there is any available supply that falls within the demand date. In this way, the available supply can be consumed according to priority within the same demand period, while reducing the number of switches and searches.
[0066] Step 106: Allocate materials according to the updated planned orders and the target material allocation strategy of the orders to be released.
[0067] The production plan corresponding to the original planned order is executed according to the updated material allocation plan of the planned order, and the production plan of the pending order corresponding to the original pending order is executed according to the target allocation strategy of the pending order. In this way, the target substitute material corresponding to the planned order is found, and the problem that the inventory of the target substitute material may not be sufficient to meet the needs of other pending orders is considered. The supply date of the target substitute material corresponding to the pending order is converted and divided, and then the target material allocation strategy of the pending order is determined. By dynamically adjusting the use of substitute materials, inventory backlogs caused by over-reliance on a certain raw material can be avoided. Optimize inventory structure: The system can automatically select the most suitable substitute material according to demand, reduce unnecessary inventory holding costs, avoid waste and idleness of resources, and thus improve resource utilization and production efficiency.
[0068] In one embodiment, the present application also includes setting up a material shortage report to display the shortage quantity, inventory quantity, quantity of different recent supply methods, whether the recent supply method can meet the needs of the planned order, etc. of each material in the order, so as to clearly observe the situation of each material in the order and respond quickly to the shortage of the order.
[0069] The material allocation method in the present application is applied to the material allocation system, which can be an APS system. The material allocation system includes a material database, which stores information on multiple materials and data on substitution relationships between multiple materials. Specifically, it includes material coding information, its substitution material coding information, etc., to build a substitute material knowledge base, including substitutions between physical materials, physical materials and virtual stages (combination materials), and virtual stages (combination materials). Among them, virtual stages (combination materials): a virtual code for managing multiple physical materials, usually called combination stages. Explanation of the substitution relationship between physical materials and combination stages: This situation is mostly due to different forms of incoming materials but the same use during production. For example: fan + fan frame constitutes combination stage code A, which has a substitution relationship with the physical material fan module a. Explanation of the substitution relationship between combination stages: the incoming materials are all separately incoming, but the combination stages they constitute can be substituted for each other. Combined with the substitute material data in the product BOM, the corresponding dummy material (substitute material) is generated based on the rule of "substitute material upper material + the material with the highest priority in the lower component substitute group". Combined with the deep search strategy, according to the basic parameters and custom configuration, the demand date is gradually delayed and the forward supply is divided and converted to achieve the consumption of substitute materials in a limited time in the best way according to the delivery date, thereby realizing the automatic call of substitute material information and the automatic execution of allocation rules. In addition, the APS system monitors material inventory, production plan and substitute material usage in real time, and combines the current inventory of materials, PO in transit and forward arrival of materials and other supply information to issue early warning information in a timely manner when there is a risk of material shortage.
[0070] Embodiments of the present application provide a material distribution device, specifically as follows Figure 3 shown. The material distribution device includes: a determination module 20, an update module 21, a conversion module 22, and a distribution module 23.
[0071] The determination module is configured to obtain multiple alternative materials corresponding to the target material in the planned order, and determine a target alternative material group based on the priorities of the multiple alternative materials corresponding to the target material and the target material. The target alternative material group includes the target material and the target alternative materials;
[0072] The update module is configured to update the planned order based on the target alternative material group information to obtain an updated planned order;
[0073] The conversion module is configured to determine the order to be released according to the target alternative material inventory; convert the supply date of the target alternative material corresponding to the order to be released according to the conversion rules corresponding to different supply methods to obtain the target supply date of the target alternative material corresponding to the order to be released in different supply methods; divide the target supply date to obtain multiple target supply periods;
[0074] The distribution module is configured to determine the target material distribution strategy of the order to be released based on the target supply period and the target alternative material demand date corresponding to the order to be released; distribute the materials according to the updated planned order and the target material distribution strategy of the order to be released.
[0075] For the description of the features in the corresponding embodiments of the material distribution device, reference can be made to the relevant descriptions in the corresponding embodiments of the material distribution method, which will not be elaborated here one by one.
[0076] Embodiments of the present application also provide a computer device, as follows Figure 4 shown, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above embodiments of the material distribution method.
[0077] Embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps in any of the above embodiments of the material distribution method when running.
[0078] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks, or optical disks and other various media that can store computer programs.
[0079] Those skilled in the art may further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0080] The above has introduced in detail a material distribution method provided by this application. Specific examples are used herein to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of this application, several improvements and modifications can still be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A material distribution method, characterized in that, Including: Obtain multiple alternative materials corresponding to the target material in the planned order, and determine a target alternative material group based on the priorities of the multiple alternative materials corresponding to the target material and the target material. The target alternative material group includes the target material and target alternative materials; Update the planned order based on the target alternative material group information to obtain an updated planned order; Determine the order to be released according to the inventory of the target alternative material; Convert the supply date of the target alternative material corresponding to the order to be released according to the conversion rules corresponding to different supply methods to obtain the target supply date of the target alternative material corresponding to the order to be released under different supply methods; Divide the target supply date to obtain multiple target supply time periods; Determine the target material allocation strategy of the order to be released based on the target supply time period and the demand date of the target alternative material corresponding to the order to be released; Allocate materials according to the updated planned order and the target material allocation strategy of the order to be released.
2. The material distribution method according to claim 1, wherein The obtaining multiple alternative materials corresponding to the target material in the planned order and determining the target alternative material group based on the priorities of the multiple alternative materials corresponding to the target material and the target material includes: Obtain the target material in the planned order, where the target material is a material whose inventory does not meet the demand for the target material in the planned order; Select multiple alternative materials corresponding to the target material from the material database, where the material database includes various materials, information on various materials, and substitution relationships between various materials; Take the alternative material with a higher priority among the multiple alternative materials corresponding to the target material as the target alternative material; Generate a target alternative material group based on the target alternative material and the target material.
3. The material distribution method according to claim 1, characterized in that The updating the planned order based on the target alternative material group information to obtain an updated planned order includes: Take the node corresponding to the target material in the planned order as the node to be updated; Use the target alternative material group as the node, and generate updated nodes with the target material and target alternative materials as the sub-nodes of the target alternative material group; Update the node to be updated based on the updated nodes to obtain an updated planned order.
4. The material distribution method according to claim 1, wherein The determining the order to be released according to the inventory of the target alternative material includes: Obtain other pending orders including the target alternative material except for the updated planned order; Judge whether the inventory of the target alternative material and the transaction date of the target alternative material meet the requirements of the pending list for the quantity of the target alternative material and the time limit of the target alternative material; If not, take the pending list that does not meet the requirements as the order to be released, and release the demand for the target alternative material in the pending order.
5. The material distribution method according to claim 1, characterized in that The method further includes: determining the priorities of multiple alternative materials corresponding to the target material. The determining the priorities of multiple alternative materials corresponding to the target material includes: Obtain the serial number codes of multiple alternative materials corresponding to the target material and the supply dates of multiple alternative materials corresponding to the target material; Assign a first weight value to the serial number codes of multiple alternative materials corresponding to the target material; Assign a second weight value to the supply dates of multiple alternative materials corresponding to the target material; Calculate the priorities of multiple alternative materials corresponding to the target material based on the first weight value and the second weight value.
6. The material distribution method according to claim 1, characterized in that The different supply methods include an inventory supply method, a near-term supply method, and a long-term supply method. The near-term supply method includes a first near-term supply method, a second near-term supply method, a third near-term supply method, and a fourth near-term supply method. The supply date of the target alternative material corresponding to the to-be-released order is converted according to the conversion rules corresponding to different supply methods to obtain the target supply date of the target alternative material corresponding to the to-be-released order for different supply methods; The target supply date is divided to obtain multiple target supply periods, including: If the different supply methods include an inventory supply method, the target supply date of the target alternative material of the inventory supply method is not converted; If the different supply methods include a first near-term supply method, the actual supply date of the target alternative material of the first near-term supply method is offset by a first time period; If the different supply methods include a second near-term supply method, the actual supply date of the target alternative material of the second near-term supply method is offset by a second time period, and the supply date of the target alternative material of the second near-term supply method is converted into a first supply date range, and the first supply date range is divided with a preset time as the division unit to obtain multiple first supply date periods; If the different supply methods include a third near-term supply method, the actual supply date of the target alternative material of the third near-term supply method is offset by a third time period, and the supply date of the target alternative material of the third near-term supply method is converted into a second supply date range, and the second supply date range is divided with a preset time as the division unit to obtain multiple second supply date periods; If the different supply methods include a fourth near-term supply method, the actual supply date of the target alternative material of the fourth near-term supply method is offset by a fourth time period; If the different supply methods include a long-term supply method, the actual supply date of the target alternative material of the long-term supply method is offset by a fifth time period.
7. The material distribution method according to claim 1, wherein The determining the target material allocation strategy of the to-be-released order based on the target supply period and the demand date of the target alternative material corresponding to the to-be-released order includes: Matching the target supply dates of the target alternative materials of different supply methods with the demand date of the target alternative material; If they match, the target supply dates of the target alternative materials of different supply methods that match the demand date of the target alternative material are used as the target alternative materials of the target supply method, and the target material allocation strategy of the to-be-released order is generated according to the target alternative materials of the target supply method; If they do not match, the demand date of the target alternative material is delayed, and it is judged whether the delayed demand date of the target alternative material can match the target supply dates of the target alternative materials of different supply methods; If it can, the target alternative materials of different supply methods that can match the delayed demand date of the target alternative material are obtained, and the target material allocation strategy of the to-be-released order is generated according to the target alternative materials of different supply methods that match the delayed demand date of the target alternative material.
8. A material distribution device, characterized in that, Including: A determination module, configured to obtain multiple alternative materials corresponding to a target material in a planned order, and determine a target alternative material group based on the priorities of the multiple alternative materials corresponding to the target material and the target material, where the target alternative material group includes the target material and target alternative materials; An update module, configured to update the planned order based on the target alternative material group information to obtain an updated planned order; A conversion module, configured to determine a to-be-released order according to the target alternative material inventory; Convert the supply date of the target alternative material corresponding to the to-be-released order according to the conversion rules corresponding to different supply methods to obtain the target supply date of the target alternative material corresponding to the to-be-released order for different supply methods; Divide the target supply date to obtain multiple target supply periods; An allocation module, configured to determine a target material allocation strategy for the to-be-released order based on the target supply period and the target alternative material demand date corresponding to the to-be-released order; Allocate materials according to the updated planned order and the target material allocation strategy of the to-be-released order.
9. A computer device, characterized in that, It includes: A memory, configured to store a computer program; A processor, configured to implement the steps of the material allocation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, where the computer program, when executed by a processor, implements the steps of the material allocation method according to any one of claims 1 to 7.