Material selection model generation, material selection method and device
By generating a material selection model, distinguishing special and general materials, giving priority to special materials and supplementing general materials, solving the problems of difficult coding and errors in customer order material selection, and achieving efficient and accurate material selection and inventory management.
Patent Information
- Application Number
- CN202211598101.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-12
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2042-12-12
AI Technical Summary
In the prior art, there is difficulty in controlling the coding of the customer order material selection and high probability of human selection errors, and it is easy to cause passive production management due to the lack of materials, making it impossible to achieve efficient and accurate material selection.
Provide a method for generating material selection model. By obtaining material encoding and attribute information, a material selection model is generated based on product orders, distinguishing special materials from general materials, giving priority to special materials, supplementing general materials to meet order needs, and generating material purchase orders.
It improves the accuracy and efficiency of material selection, reduces the difficulty of manual selection, reduces the backlog of material inventory, and achieves efficient adaptation of materials and product orders.
Smart Images

Figure CN115797013B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of resource management, and in particular to a material selection model generation, material selection method and device. Background Art
[0002] With the explosive growth of big data businesses such as cloud computing, Internet manufacturers have generated a large demand for servers. Along with this, there are higher requirements for high convenience, high timeliness and direct accessibility of intelligent manufacturing platforms, so that production personnel can place orders for materials with one click through the intelligent manufacturing platform.
[0003] With the continuous increase in server demand, the customer base is wide, the material selection requirements for customer orders are not unique, the product lines used to produce customer orders are not unique, and the materials adapted to the product lines are not unique. However, in the existing technology, different customer orders are treated differently, that is, new unique material codes are generated for different customer orders for management and control, and one code corresponds to a material with the same function. The disadvantage of this is that it will make too many material codes difficult to control; and in the process of processing customer orders, it often happens that there is a need to add or replace materials due to lack of materials. Based on the above existing technology, production management personnel will be very passive, that is, the unique material codes that have been generated for other customer orders need to be re-encoded before they can be used. In other words, manual identification is required to determine whether there are replaceable materials. In addition, the probability of manual error in material selection is extremely high.
[0004] Therefore, there is an urgent need to propose a material selection model generation, material selection method and device that can solve the above technical problems. Summary of the Invention
[0005] Based on this, it is necessary to provide a material selection model generation, material selection method and device that can improve material selection efficiency and improve material selection accuracy in response to the above technical problems.
[0006] In one aspect, a method for generating a material selection model is provided, the method being applied to batch processing of customer orders on a product line, the method comprising:
[0007] In response to a request to generate a material matching model, obtain the material code and material attribute information of the material;
[0008] Based on the material attribute information, a product order adapted for the material is obtained, where the product order is generated based on the customer order and the product line, and the product order has a unique product order code corresponding to it, and the product order code is at least one;
[0009] When the number of product orders that the material is adapted to is not one, obtaining a material that is adapted to the product order based on the product order, where the number of the material is at least one;
[0010] When the number of materials that are compatible with the product order is one, the material is defined as a dedicated material for the product order;
[0011] A material matching model is generated based on the material code of the dedicated material and the product order code of the product order.
[0012] In one embodiment, the method further includes: when the number of product orders to which the material is adapted is one, defining the material as a dedicated material for the product order.
[0013] In one embodiment, the method further includes: when the material compatible with the product order is not one, defining the material as the first general material of the product, and the first general material is not one; judging whether there is a special material in the first general material; if there is a special material in the first general material, defining the special material as a second general material, and eliminating the special material to generate a third general material, and the second general material is at least one; based on the third general material, according to the preset special material selection rules, generating the general material of the product order.
[0014] In one embodiment, generating the material matching model further includes: generating the material matching model based on the material code of the second general material, the material code of the third general material and the product order code.
[0015] In one embodiment, the method further includes: generating a product order code; generating the product order code includes: based on a customer order, obtaining a product line for producing the customer order; obtaining a customer order code of the customer order and a product line code of the product line to generate the product order code.
[0016] In another aspect, a material selection method is provided. The method is implemented based on the material selection model generated by the material selection model generation method, and the method includes:
[0017] Responding to a material matching request, obtaining a product order code, wherein the material matching request includes the product order code and a material quantity requirement;
[0018] Based on the product order code and the material matching model, obtaining a material code of a dedicated material used to produce the product order;
[0019] Material selection is performed based on the material code of the special material and the material quantity requirement.
[0020] In one embodiment, after selecting the material based on the material code, the method includes: obtaining the quantity of the material based on the material code, and determining whether the quantity of the material meets the material quantity requirement; if the quantity of the material does not meet the material quantity requirement, obtaining a first material gap; based on the first material gap, selecting a third general material to fill the first material gap.
[0021] In one embodiment, after selecting the material based on the material code, the method further includes: if the third general material cannot fill the first material gap, obtaining the second material gap; based on the second material gap, selecting the second general material to fill the second material gap; if the second general material cannot fill the second material gap, generating a material purchase order to purchase the material.
[0022] In one embodiment, after a material purchase order is generated and the material is purchased, the method further includes: filling the second material gap based on the purchased material; after the second material gap is filled, updating the purchased material to the material matching model based on the material matching model generation method.
[0023] In another aspect, a material selection device is provided, comprising:
[0024] Response unit, used to respond to material selection requests;
[0025] an acquisition unit, configured to acquire a product order code, wherein the material selection request includes an order code and a material quantity requirement; and further configured to acquire a material code of a dedicated material used to produce the product order based on the product order code and a material selection model;
[0026] A matching unit is used to match materials based on the material code and the material quantity requirement.
[0027] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0028] Responding to a material matching request, obtaining a product order code, wherein the material matching request includes the product order code and a material quantity requirement;
[0029] Based on the product order code and the material matching model, obtaining a material code of a dedicated material used to produce the product order;
[0030] Material selection is performed based on the material code of the special material and the material quantity requirement.
[0031] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0032] Responding to a material matching request, obtaining a product order code, wherein the material matching request includes the product order code and a material quantity requirement;
[0033] Based on the product order code and the material matching model, obtaining a material code of a dedicated material used to produce the product order;
[0034] Material selection is performed based on the material code of the special material and the material quantity requirement.
[0035] The above-mentioned material selection model generation, material selection method, device and computer equipment, the material selection model generation method includes: in response to a material selection model generation request, obtaining the material code and material attribute information of the material; based on the material attribute information, obtaining the product order adapted by the material, the product order is generated based on the customer order and product line, the product order corresponds to a unique product order code, and the product order code is at least one; when the product order adapted by the material is not one, then based on the product order, obtaining a material adapted to the product order, the material is at least one; when the material adapted to the product order is one, defining the material as a special material for the product order; based on the material code of the special material and the product order code of the product order, generating a material selection model. Based on the above-mentioned material selection model generation method, a correspondence between product orders and materials can be established, and a material selection model can be quickly generated based on product orders.
[0036] The material selection method implemented based on the material model generated by the above-mentioned material selection model generation method includes: obtaining a product order code in response to a material selection request, wherein the material selection request includes a product order code and a material quantity requirement; obtaining a material code of a special material used to produce the product order based on the product order code and the material selection model; and performing material selection based on the material code of the special material and the material quantity requirement. This method can achieve rapid material selection and, during the material selection process, reduces the difficulty of material selection for material selection staff, improves the compatibility of the selected materials with product orders, and improves the accuracy and efficiency of material selection. In addition, the selection process of prioritizing the purchase of special materials and general materials based on product orders can reduce material inventory backlogs to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 Schematic diagram of a process for generating a material matching model in one embodiment;
[0038] Figure 2 Schematic diagram of a material selection process in one embodiment;
[0039] Figure 3 This is an application environment diagram of a material selection method in one embodiment;
[0040] Figure 4 Schematic diagram of a material selection process in one embodiment;
[0041] Figure 5 It is a structural block diagram of a material matching model generating device in one embodiment;
[0042] Figure 6 This is a structural block diagram of a material selection device in one embodiment;
[0043] Figure 7 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0045] This application provides a material selection method, such as Figure 1 As shown, the method is applied to a product line to process customer orders in batches, and the method includes:
[0046] Responding to a material matching request, obtaining a product order code, wherein the material matching request includes the product order code and a material quantity requirement;
[0047] Based on the product order code and a pre-generated material matching model, obtaining a material code of a dedicated material used to produce the product order;
[0048] Material selection is performed based on the material code of the special material and the material quantity requirement.
[0049] In one embodiment, the method includes: generating the material matching model; generating the material matching model includes: obtaining a material code and material attribute information of a material in response to a material matching model generation request;
[0050] Based on the material attribute information, a product order adapted for the material is obtained, the product order is generated based on the customer order and the product line, the product order corresponds to a unique product order code, and the product order code is at least one; when the product order adapted for the material is not one, based on the product order, a material adapted for the product order is obtained, and the material is at least one; when the material adapted for the product order is one, the material is defined as a special material for the product order; based on the material code of the special material and the product order code of the product order, a material matching model is generated.
[0051] In one embodiment, the method further includes: generating the product order; generating the product order includes: encoding the product line used to process the customer order to generate a product line code; encoding the customer order to generate a customer order code; based on each product line, obtaining the customer orders that the production line can process; generating a product order code based on the customer order code and the product line code. For example: encoding the product line to generate product line codes A, B, and C respectively; encoding the customer order to generate customer order codes 1, 2, and 3 respectively; if the customer orders that product line A can process are customer order 1 and customer order 2, and the customer order that product line B can process is customer order 3, then the generated product order codes are product order A1, product order A2, and product order B3 respectively. In actual application scenarios, technicians can reversely deduce the customer order code and product line code of the product order based on the product order code of the product order, and accordingly locate the customer order and product line.
[0052] In one embodiment, based on the material attribute information, a product order adapted for the material is obtained, including: based on the material attribute information, obtaining the material category and material version of the material; based on the material category of the material, obtaining a product order adapted for the material; based on the product order, generating a product order library; based on the material version of the material, obtaining a product order adapted for the material from the product order library, and defining the product order as a target product order.
[0053] In one embodiment, the method further includes: when the number of product orders to which the material is adapted is one, defining the material as a dedicated material for the product order.
[0054] In one embodiment, the method further includes: when there is more than one material that is compatible with the product order, defining the material as the first general material of the product, the first general material being more than one; determining whether there is a special material in the first general material; if there is a special material in the first general material, defining the special material as the second general material, eliminating the special material, and generating a third general material, the second general material being at least one; based on the third general material, generating the general material of the product order according to a preset special material selection rule. It should be understood that determining whether there is a special material in the first general material includes: based on the first general material, determining whether there is a special material for other product orders in the first general material, the other product orders being product orders other than the current product order.
[0055] In one embodiment, generating the material selection model further includes generating the material selection model based on the material code of the second general material, the material code of the third general material, and the product order code. It should be understood that the material selection model may be in the form of a table, as long as a technician can obtain the material by identifying the correspondence between the material code and the product order code based on the table.
[0056] In one embodiment, generating the material selection model further includes: obtaining the total quantity of materials and indicating the total quantity of materials in the material selection model; obtaining the quantity of materials corresponding to each piece of material attribute information and indicating the quantity of each piece of material attribute information on the corresponding material. For example, if the total number of materials in the material library is 850, then 850 is indicated in the material selection model; if the materials in the material library include a first material and a second material, where the quantity of the first material is 430 and the quantity of the second material is 420, then 430 and 420 are indicated on the first and second materials, respectively; further, based on the material attribute information of the first material, the first material further includes a first material A and a first material B, where the quantity of the first material A is 210 and the quantity of the first material B is 110, then 210 and 110 are indicated on the first material A and the first material B, respectively. It should be understood that the material attribute information includes, but is not limited to, material versions; and those skilled in the art can continue to subdivide the first material A and the first material B based on actual circumstances until work requirements are met.
[0057] This application also provides a material selection method, such as Figure 2 As shown, the material selection includes:
[0058] Pre-generate material selection model;
[0059] Responding to a material matching request, obtaining a product order code, wherein the material matching request includes the product order code and a material quantity requirement;
[0060] Based on the product order code and the material matching model, obtaining a material code of a dedicated material used to produce the product order;
[0061] Material selection is performed based on the material code of the special material and the material quantity requirement.
[0062] Wherein, the material selection model is generated in advance according to the material selection model generation method described in the above embodiment.
[0063] In one embodiment, after selecting the material based on the material code, the method includes: obtaining the quantity of the material based on the material code, and determining whether the quantity of the material meets the material quantity requirement; if the quantity of the material does not meet the material quantity requirement, obtaining a first material gap; based on the first material gap, selecting a third general material to fill the first material gap.
[0064] In one embodiment, after selecting the material based on the material code, the method further includes: if the third general-purpose material cannot fill the first material gap, obtaining a second material gap; based on the second material gap, selecting a second general-purpose material to fill the second material gap; and if the second general-purpose material cannot fill the second material gap, generating a material purchase order to purchase the material. In other words, during the material selection process based on the product order, materials are selected sequentially in the order of priority: specialized materials, third general-purpose materials, and second general-purpose materials, until the quantity of the materials meets the material quantity requirement of the product order.
[0065] It should be understood that when selecting a second general material based on the second material gap, it is necessary to ensure that the second general material meets the requirements of the product order that uniquely corresponds to it. Only when the second general material meets the requirements of the product order that uniquely corresponds to it and has surplus can the second general material be selected based on the second material gap. For example: define the current product order as the first product order, which requires 900 items of material. The product order has 500 items of the dedicated material and 300 items of the third general material, so the product order still requires 100 items of material. Based on the above 100 item requirements, the second general material is selected. Define the product order whose only applicable material is the second general material as the second product order, which has 150 items of the second general material and requires 120 items. Then, only 30 orders can be used to fill the material gap of the first product order. If the material requirement of the second product order is 150 items, the second general material cannot be used to fill the material gap of the first product order.
[0066] In one embodiment, after a material purchase order is generated and the material is purchased, the method further includes: filling the second material gap based on the purchased material; after the second material gap is filled, updating the purchased material to the material matching model based on the material matching model generation method.
[0067] The material selection method provided in this application can be applied to Figure 3 In the application environment shown, terminal 102 communicates with server 104 via a network. A user sends a material selection request to server 104 via terminal 102, and server 104 executes the material selection in response to the request. Terminal 102 may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Server 104 may be implemented as a standalone server or a server cluster consisting of multiple servers.
[0068] In one embodiment, Figure 2 As shown, a material selection method is provided, which is applied to Figure 1 The following steps are used as an example to illustrate the terminal in the figure:
[0069] Pre-generate material selection model;
[0070] Responding to a material matching request, obtaining a product order code, wherein the material matching request includes the product order code and a material quantity requirement;
[0071] Based on the product order code and the material matching model, obtaining a material code of a dedicated material used to produce the product order;
[0072] Material selection is performed based on the material code of the special material and the material quantity requirement.
[0073] In one embodiment, Figure 4 As shown, based on the material code, after selecting the material, the method includes: based on the material code, obtaining the quantity of the material, and judging whether the quantity of the material meets the material quantity requirement; if the quantity of the material does not meet the material quantity requirement, obtaining the first material gap; based on the first material gap, selecting a third general material to fill the first material gap.
[0074] In one embodiment, Figure 4 As shown, based on the material code, after selecting the material, the method also includes: if the third general material cannot make up for the first material gap, obtaining the second material gap; based on the second material gap, selecting the second general material to make up for the second material gap; if the second general material cannot make up for the second material gap, generating a material purchase order to purchase the material.
[0075] In one embodiment, after a material purchase order is generated and the material is purchased, the method further includes: filling the second material gap based on the purchased material; after the second material gap is filled, updating the purchased material to the material matching model based on the material matching model generation method.
[0076] In one embodiment, a material matching model is generated in advance, including: in response to a material matching model generation request, obtaining the material code and material attribute information of the material; based on the material attribute information, obtaining a product order adapted for the material, the product order is generated based on the customer order and the product line, the product order corresponds to a unique product order code, and the product order code is at least one; when the product order adapted for the material is not one, obtaining a material adapted for the product order based on the product order, and the material is at least one; when the material adapted for the product order is one, defining the material as a special material for the product order; generating a material matching model based on the material code of the special material and the product order code of the product order.
[0077] In one embodiment, the material selection model is generated in advance, further comprising: when the number of product orders adapted by the material is one, defining the material as a dedicated material for the product order.
[0078] In one embodiment, a material matching model is generated in advance, further comprising: when there is not one material that is compatible with the product order, defining the material as the first general material of the product, and the first general material is not one; judging whether there is a special material in the first general material; if there is a special material in the first general material, defining the special material as the second general material, and eliminating the special material to generate a third general material, and the second general material is at least one; based on the third general material, generating a general material for the product order in accordance with preset special material matching rules.
[0079] In one embodiment, pre-generating a material matching model further includes: generating a material matching model based on the material code of the second general material, the material code of the third general material and the product order code.
[0080] It should be understood that although Figure 1-2 and Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 1-2 and Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0081] In one embodiment, Figure 5 As shown, a material selection model generation device is provided, comprising: a first response unit, a first acquisition unit, a first definition unit, and a first generation unit, wherein:
[0082] The first response unit is configured to obtain the material code and material attribute information of the material in response to the material matching model generation request;
[0083] The first acquisition unit is configured to acquire, based on the material attribute information, a product order compatible with the material, the product order being generated based on the customer order and the product line, the product order corresponding to a unique product order code being at least one; and further configured to acquire, based on the product order, a material compatible with the product order when the number of product orders compatible with the material is not one, the material being at least one;
[0084] The first definition unit is used to define the material as a dedicated material for the product order when the number of materials adapted to the product order is one;
[0085] The first generating unit is configured to generate a material matching model based on the material code of the dedicated material and the product order code of the product order.
[0086] In one embodiment, the first definition unit is further configured to define the material as a dedicated material for the product order when the number of product orders to which the material is adapted is one.
[0087] In one embodiment, the device further includes a first determination unit configured to determine whether there is a special material in the first general material.
[0088] In one embodiment, the first definition unit is further used to define the material as the first general material of the product when there is more than one material that is compatible with the product order, and the first general material is not one; it is also used to define the special material as the second general material if there is a special material in the first general material, and to eliminate the special material to generate a third general material, and the second general material is at least one; the first generation unit is further used to generate the general material of the product order based on the third general material according to the preset special material selection rules.
[0089] In one embodiment, the first generating unit is further configured to generate a material matching model based on the material code of the second general material, the material code of the third general material, and the product order code.
[0090] In one embodiment, the first generating unit is further configured to obtain, based on the customer order, a product line for producing the customer order; and to obtain a customer order code of the customer order and a product line code of the product line to generate the product order code.
[0091] In one embodiment, Figure 6 As shown, a material selection device is provided, which realizes material selection based on the material selection model generated by the aforementioned material selection model generation device, and the device includes: a response unit, an acquisition unit and a selection unit;
[0092] The response unit is used to respond to the material selection request;
[0093] The acquisition unit is configured to acquire a product order code, wherein the material selection request includes an order code and a material quantity requirement; and is further configured to acquire a material code of a dedicated material used to produce the product order based on the product order code and a material selection model;
[0094] The matching unit is used to perform material matching based on the material code and the material quantity requirement.
[0095] In one embodiment, the device further includes a judgment unit for obtaining the quantity of the material based on the material code and judging whether the quantity of the material meets the material quantity requirement.
[0096] In one embodiment, the acquisition unit is further used to acquire a first material gap if the quantity of the material does not meet the material quantity requirement; the matching unit is further used to match a third general material based on the first material gap to fill the first material gap.
[0097] In one embodiment, the acquisition unit is further used to acquire a second material gap if the third general material cannot fill the first material gap; the matching unit is further used to match a second general material based on the second material gap to fill the second material gap.
[0098] In one embodiment, the device further includes a purchase order generating unit, configured to generate a material purchase order for material procurement if the second general material cannot fill the second material gap.
[0099] In one embodiment, the matching unit is further configured to fill the second material gap based on the purchased material.
[0100] In one embodiment, the device further includes an updating unit for updating the purchased material to the material matching model after the second material gap is filled.
[0101] It should be understood that the response unit included in the material selection device described in this embodiment and the first response unit included in the material selection model generation device described in the above embodiment are two unrelated units; similarly, the acquisition unit included in the material selection device and the first acquisition unit included in the above material selection model generation device are also two unrelated units, and there is no connection between them; the judgment unit included in the material selection device and the first judgment unit included in the above material selection model generation device are also two unrelated units, and there is no connection between them.
[0102] For the specific limitations of the material selection model generation device, please refer to the limitations of the material selection model generation method above. For the specific limitations of the material selection device, please refer to the limitations of the material selection method above, which will not be repeated here. The above-mentioned material selection model generation device and each unit in the material selection device can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned units can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
[0103] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a material selection method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse.
[0104] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0105] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are performed:
[0106] Responding to a material matching request, obtaining a product order code, wherein the material matching request includes the product order code and a material quantity requirement;
[0107] Based on the product order code and the material matching model, obtaining a material code of a dedicated material used to produce the product order;
[0108] Material selection is performed based on the material code of the special material and the material quantity requirement.
[0109] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0110] Based on the material code, the quantity of the material is obtained to determine whether the quantity of the material meets the material quantity requirement; if the quantity of the material does not meet the material quantity requirement, a first material gap is obtained; based on the first material gap, a third general material is selected to fill the first material gap.
[0111] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0112] If the third general material cannot fill the first material gap, then obtain the second material gap; based on the second material gap, select the second general material to fill the second material gap; if the second general material cannot fill the second material gap, then generate a material purchase order to purchase the material.
[0113] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0114] The second material gap is filled based on the purchased material; after the second material gap is filled, the purchased material is updated to the material matching model based on the material matching model generation method.
[0115] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0116] In response to a request to generate a material matching model, obtain the material code and material attribute information of the material;
[0117] Based on the material attribute information, a product order adapted for the material is obtained, where the product order is generated based on the customer order and the product line, and the product order has a unique product order code corresponding to it, and the product order code is at least one;
[0118] When the number of product orders that the material is adapted to is not one, obtaining a material that is adapted to the product order based on the product order, where the number of the material is at least one;
[0119] When the number of materials that are compatible with the product order is one, the material is defined as a dedicated material for the product order;
[0120] A material matching model is generated based on the material code of the dedicated material and the product order code of the product order.
[0121] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0122] When the product order to which the material is adapted is one, the material is defined as a dedicated material for the product order.
[0123] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0124] When there is more than one material that matches the product order, the material is defined as the first general material of the product, and the first general material is not one; determine whether there is a special material in the first general material; if there is a special material in the first general material, define the special material as the second general material, eliminate the special material, and generate a third general material, and the second general material is at least one; based on the third general material, according to the preset special material selection rules, generate the general material of the product order.
[0125] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0126] A material matching model is generated based on the material code of the second general material, the material code of the third general material, and the product order code.
[0127] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0128] Based on a customer order, a product line for producing the customer order is obtained; a customer order code of the customer order is obtained, and a product line code of the product line is obtained to generate the product order code.
[0129] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0130] Responding to a material matching request, obtaining a product order code, wherein the material matching request includes the product order code and a material quantity requirement;
[0131] Based on the product order code and the material matching model, obtaining a material code of a dedicated material used to produce the product order;
[0132] Material selection is performed based on the material code of the special material and the material quantity requirement.
[0133] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0134] Based on the material code, the quantity of the material is obtained to determine whether the quantity of the material meets the material quantity requirement; if the quantity of the material does not meet the material quantity requirement, a first material gap is obtained; based on the first material gap, a third general material is selected to fill the first material gap.
[0135] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0136] If the third general material cannot fill the first material gap, then obtain the second material gap; based on the second material gap, select the second general material to fill the second material gap; if the second general material cannot fill the second material gap, then generate a material purchase order to purchase the material.
[0137] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0138] The second material gap is filled based on the purchased material; after the second material gap is filled, the purchased material is updated to the material matching model based on the material matching model generation method.
[0139] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0140] In response to a request to generate a material matching model, obtain the material code and material attribute information of the material;
[0141] Based on the material attribute information, a product order adapted for the material is obtained, where the product order is generated based on the customer order and the product line, and the product order has a unique product order code corresponding to it, and the product order code is at least one;
[0142] When the number of product orders that the material is adapted to is not one, obtaining a material that is adapted to the product order based on the product order, where the number of the material is at least one;
[0143] When the number of materials that are compatible with the product order is one, the material is defined as a dedicated material for the product order;
[0144] A material matching model is generated based on the material code of the dedicated material and the product order code of the product order.
[0145] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0146] When the product order to which the material is adapted is one, the material is defined as a dedicated material for the product order.
[0147] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0148] When there is more than one material that matches the product order, the material is defined as the first general material of the product, and the first general material is not one; determine whether there is a special material in the first general material; if there is a special material in the first general material, define the special material as the second general material, eliminate the special material, and generate a third general material, and the second general material is at least one; based on the third general material, according to the preset special material selection rules, generate the general material of the product order.
[0149] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0150] A material matching model is generated based on the material code of the second general material, the material code of the third general material, and the product order code.
[0151] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0152] Based on a customer order, a product line for producing the customer order is obtained; a customer order code of the customer order is obtained, and a product line code of the product line is obtained to generate the product order code.
[0153] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0154] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0155] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A material matching model generation method, characterized in that: The method is applied to a product line to process customer orders in batches, and the method includes: In response to a request to generate a material matching model, obtain the material code and material attribute information of the material; Based on the material attribute information, a product order adapted for the material is obtained, where the product order is generated based on the customer order and the product line, and the product order has a unique product order code corresponding to it, and the product order code is at least one; When the number of product orders that the material is adapted to is not one, obtaining a material that is adapted to the product order based on the product order, where the number of the material is at least one; When the number of materials that are compatible with the product order is one, the material is defined as a dedicated material for the product order; A material matching model is generated based on the material code of the dedicated material and the product order code of the product order.
2. The material selection model generation method according to claim 1, characterized in that: The method further comprises: When the product order to which the material is adapted is one, the material is defined as a dedicated material for the product order.
3. The material matching model generation method according to claim 2, characterized in that: The method further comprises: When the number of materials that are compatible with the product order is not one, the material is defined as the first general material of the product, and the first general material is not one; Determining whether there is a special material in the first general material; If there is a special material in the first general material, define the special material as the second general material, and eliminate the special material to generate a third general material, and the second general material is at least one; Based on the third general material, according to the preset special material selection rule, the general material of the product order is generated.
4. The material selection model generation method according to claim 3, characterized in that: The generating of the material matching model further includes: A material matching model is generated based on the material code of the second general material, the material code of the third general material, and the product order code.
5. The material matching model generation method according to claim 4, characterized in that: The method further comprises: generating a product order code; Generating the product order code, including: Based on the customer order, obtaining a product line for producing the customer order; The customer order code of the customer order and the product line code of the product line are obtained to generate the product order code.
6. A material selection method, characterized in that: The method is implemented based on the material matching model generated by the material matching model generation method according to any one of claims 1 to 5, and the method includes: Responding to a material matching request, obtaining a product order code, wherein the material matching request includes the product order code and a material quantity requirement; Based on the product order code and the material matching model, obtaining a material code of a dedicated material used to produce the product order; Material selection is performed based on the material code of the special material and the material quantity requirement.
7. The material selection method according to claim 6, characterized in that: After selecting the material based on the material code, the method includes: Based on the material code, obtaining the quantity of the material, and determining whether the quantity of the material meets the material quantity requirement; If the quantity of the material does not meet the material quantity requirement, obtaining a first material gap; Based on the first material gap, a third general material is selected to fill the first material gap.
8. The material selection method according to claim 7, characterized in that: After selecting the material based on the material code, the method further includes: If the third general material cannot fill the first material gap, then obtain the second material gap; Based on the second material gap, a second general material is selected to fill the second material gap; If the second general material cannot fill the second material gap, a material purchase order is generated to purchase the material.
9. The material selection method according to claim 8, characterized in that: After generating a material purchase order and purchasing the materials, the method further includes: Filling the second material gap based on the purchased materials; After the second material gap is filled, the purchased materials are updated to the material selection model.
10. A material selection device for implementing the material selection method according to any one of claims 6 to 9, characterized in that: The device comprises: Response unit, used to respond to material selection requests; an acquisition unit, configured to acquire a product order code, wherein the material selection request includes an order code and a material quantity requirement; and further configured to acquire a material code of a dedicated material used to produce the product order based on the product order code and a material selection model; A matching unit is used to match materials based on the material code and the material quantity requirement.
Citation Information
Patent Citations
Production material preparation management method and device, computer equipment and storage medium
CN115293691A