A data processing method, apparatus, electronic device, and storage medium

By calculating the demand and inventory of parts during the assembly cycle and generating a replenishment plan, the problem of out-of-stock caused by improper inventory management during the assembly process is solved, and reasonable inventory management and timely replenishment are achieved.

CN114386906BActive Publication Date: 2025-06-10HANYUN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210026953.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-11
Publication Date
2025-06-10
Estimated Expiration
2042-01-11

AI Technical Summary

Technical Problem

In the prior art, the number of each component in the inventory cannot be accurately predicted during the assembly and processing process, resulting in the problem of stock backlog and the lack of certain components during use.

Method used

By calculating the demand for each target component during the target cycle and calculating the actual inventory based on the current inventory and unavailable orders, when the actual inventory is less than the demand, a purchase plan is generated, including the purchase channel, recommended purchase quantity, purchase amount and estimated arrival time.

Benefits of technology

The demand forecast and inventory management of each target component during the target cycle is achieved, inventory backlog and out of stock is avoided, and a timely replenishment plan is provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114386906B_ABST
    Figure CN114386906B_ABST
Patent Text Reader

Abstract

The present application provides a data processing method, apparatus, electronic device, and storage medium. Among them, the method includes: calculating a first demand quantity for each target component in the target period according to the expected working hours in the target period and the assembly duration of the components to be assembled; for each target component, calculating the actual inventory quantity of the target component in the inventory before the start time of the target period according to the first inventory quantity of the target component in the current inventory and the outstanding orders for ordering the target component; when the actual inventory quantity is less than the first demand quantity, generating at least one first purchase plan according to the time difference between the current time and the start time and the quantity difference between the first demand quantity and the actual inventory quantity. Through the above method, the embodiments of the present application can predict the inventory of target components and provide purchase plans when the inventory is insufficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent management technologies, and more specifically, to a data processing method, apparatus, electronic device, and storage medium. Background Art

[0002] During assembly and processing, it is necessary to ensure an adequate supply of components in inventory. Therefore, inventory management is an important task. The inventor found in the research that in the prior art, there will be a large backlog of inventory. When in use, it is impossible to predict whether the quantity of each component in the inventory is sufficient, resulting in a situation where there are many components stored in the inventory, but the quantity of a certain component to be used is insufficient. Summary of the Invention

[0003] In view of this, embodiments of the present application provide a data processing method, apparatus, electronic device, and storage medium to predict the inventory of target components and provide a purchase plan when the inventory is insufficient.

[0004] In a first aspect, embodiments of the present application provide a data processing method, the method comprising:

[0005] Calculating a first demand quantity for each target component within the target period according to the expected working hours within the target period and the assembly duration of the component to be assembled; the target component is a component used to assemble the component to be assembled;

[0006] For each target component, calculating the actual inventory quantity of the target component in the inventory before the start time of the target period according to the first inventory quantity of the target component in the current inventory and the outstanding orders for ordering the target component;

[0007] When the actual inventory quantity is less than the first demand quantity, generating at least one first purchase plan according to the time difference between the current time and the start time and the quantity difference between the first demand quantity and the actual inventory quantity; the first purchase plan includes a purchase channel, a recommended purchase quantity, a purchase amount, and an expected arrival time.

[0008] In a feasible implementation, calculating a first demand quantity for each target component within the target period according to the expected working hours within the target period and the component to be assembled includes:

[0009] Calculating a first quantity of the component to be assembled produced within the target period according to the expected working hours and the assembly duration of the component to be assembled;

[0010] Obtain the parts list of the to-be-assembled part; the parts list includes the target parts for forming the to-be-assembled part and the second quantity of the target parts for forming one to-be-assembled part;

[0011] For each part, calculate the first demand quantity of the target part according to the first quantity and the second quantity of the target part in the parts list.

[0012] In a feasible implementation, according to the first inventory quantity of the target part in the current inventory and the outstanding orders for ordering the target part, calculate the actual inventory quantity of the target part in the inventory before the start time of the target period, including:

[0013] For each outstanding order, calculate the expected arrival quantity of the target part in the outstanding order before the start time of the target period according to the purchase quantity and purchase time in the outstanding order;

[0014] Determine the sum value between the expected arrival quantity and the first inventory quantity as the actual inventory quantity.

[0015] In a feasible implementation, after generating at least one first purchase plan, the method further includes:

[0016] According to the preset purchase authority, determine at least one second purchase plan in which the purchase amount in each first purchase plan meets the purchase authority;

[0017] For each second purchase plan, set weights for the purchase amount of the second purchase plan, the first difference between the recommended purchase quantity of the second purchase plan and the quantity difference, and the second difference between the expected arrival time of the second purchase plan and the start time, to obtain the cost performance score of each second purchase plan;

[0018] Sort the at least one second purchase plan according to the cost performance score to obtain a purchase list that meets the purchase authority;

[0019] Obtain the purchase channel in the target second purchase plan ranked first in the purchase list;

[0020] Automatically purchase the target parts in the quantity of the recommended purchase quantity in the target second purchase plan according to the purchase channel and generate purchase information.

[0021] In a feasible implementation, after generating at least one first purchase plan, the method further includes:

[0022] Send the first display data including the at least one first purchase plan, the second display data including the purchase list, and the third display data including the purchase information to a display terminal.

[0023] In a feasible implementation, after calculating the actual inventory quantity of the target component in the inventory before the start time of the target period, the method further includes:

[0024] Obtain the assembly plan before the start time;

[0025] If the target component is included in the assembly plan, calculate the second demand quantity for the target component according to the current time and the assembly progress of the assembly plan;

[0026] Adjust the quantity of the actual inventory to the third difference according to the third difference between the actual inventory quantity and the second demand quantity.

[0027] In a second aspect, an embodiment of the present application further provides a data processing device, and the device includes:

[0028] A first calculation unit, configured to calculate a first demand quantity for each target component within the target period according to the expected working duration within the target period and the assembly duration of the components to be assembled; the target components are the components used to assemble the components to be assembled;

[0029] A second calculation unit, configured to calculate, for each target component, the actual inventory quantity of the target component in the inventory before the start time of the target period according to the first inventory quantity of the target component in the current inventory and the outstanding orders for ordering the target component;

[0030] A first generation unit, configured to generate at least one first purchase plan according to the time difference between the current time and the start time and the quantity difference between the first demand quantity and the actual inventory quantity when the actual inventory quantity is less than the first demand quantity; the first purchase plan includes a purchase channel, a recommended purchase quantity, a purchase amount, and an expected arrival time.

[0031] In a feasible implementation, the first calculation unit is configured to:

[0032] Calculate a first quantity of the components to be assembled produced within the target period according to the expected working duration and the assembly duration of the components to be assembled;

[0033] Obtain the component list of the components to be assembled; the component list includes the target components used to form the components to be assembled and a second quantity of the target components used to form one of the components to be assembled;

[0034] For each component, calculate a first demand quantity of the target component according to the first quantity and a second quantity of the target component in the component list.

[0035] In a feasible implementation, the second calculation unit is configured to:

[0036] For each of the outstanding orders, calculate an expected arrival quantity of the target component in the outstanding order before a start time of the target period according to a purchase quantity and a purchase time in the outstanding order;

[0037] Determine a sum value between the expected arrival quantity and the first inventory quantity as the actual inventory quantity.

[0038] In a feasible implementation, the device further includes:

[0039] A determination unit, configured to, after generating at least one first purchase plan, determine at least one second purchase plan in which a purchase amount in each of the first purchase plans meets the purchase authority according to a preset purchase authority;

[0040] A weight unit, configured to, for each second purchase plan, set weights for a purchase amount of the second purchase plan, a first difference between a recommended purchase quantity of the second purchase plan and a quantity difference, and a second difference between an expected arrival time of the second purchase plan and the start time, to obtain a cost performance score of each second purchase plan;

[0041] A sorting unit, configured to sort the at least one second purchase plan according to the cost performance score to obtain a purchase list that meets the purchase authority;

[0042] A first acquisition unit, configured to acquire a purchase channel in a target second purchase plan ranked first in the purchase list;

[0043] A second generation unit, configured to automatically purchase the target component in a quantity of the recommended purchase quantity in the target second purchase plan according to the purchase channel and generate purchase information.

[0044] In a feasible implementation, the device further includes:

[0045] A sending unit, configured to, after generating at least one first purchase plan, send first display data including the at least one first purchase plan, second display data including the purchase list, and third display data including the purchase information to a display terminal.

[0046] In a feasible implementation, the device further includes:

[0047] A second acquisition unit, configured to acquire an assembly plan before the start time after calculating the actual inventory quantity of the target component in the inventory before the start time of the target period;

[0048] A fourth calculation unit, configured to calculate a second demand quantity for the target component according to the current time and the assembly progress of the assembly plan if the assembly plan includes the target component;

[0049] An adjustment unit, configured to adjust the quantity of the actual inventory to the third difference according to the third difference between the actual inventory quantity and the second demand quantity.

[0050] In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the method according to any one of the first aspects.

[0051] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it performs the steps of the method according to any one of the first aspects.

[0052] A data processing method, device, electronic device, and storage medium provided by an embodiment of the present application calculate a first demand quantity for each target component in the target period according to the expected working duration in the target period and the assembly duration of the components to be assembled; the target components are components used to assemble the components to be assembled; for each target component, calculate the actual inventory quantity of the target component in the inventory before the start time of the target period according to the first inventory quantity of the target component in the current inventory and the outstanding orders for ordering the target component; when the actual inventory quantity is less than the first demand quantity, generate at least one first purchase plan according to the time difference between the current time and the start time and the quantity difference between the first demand quantity and the actual inventory quantity; the first purchase plan includes a purchase channel, a recommended purchase quantity, a purchase amount, and an expected arrival time.

[0053] Through the above method, compared with the solution in the prior art where a large number of component models are directly stockpiled and it is only known which component is missing during use, the embodiments of the present application can predict the first demand for each target component within the target period, determine the actual inventory of the target component, determine the quantity of the target component lacking within the target period based on the quantity difference between the first demand and the actual inventory, and provide a purchase plan when the inventory is insufficient.

[0054] To make the above objects, features, and advantages of the present application more obvious and understandable, the following specifically enumerates preferred embodiments and, in conjunction with the accompanying drawings, provides a detailed description as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other relevant drawings can also be obtained based on these drawings.

[0056] Figure 1 Shows a flowchart of a data processing method provided by an embodiment of the present application.

[0057] Figure 2 Shows a flowchart of an automatic replenishment method provided by an embodiment of the present application.

[0058] Figure 3 Shows a schematic structural diagram of a data processing device provided by an embodiment of the present application.

[0059] Figure 4 Shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0060] To make the objects, technical solutions, and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the protection scope of the present application. Additionally, it should be understood that the schematic drawings are not drawn to actual scale. The flowcharts used in the present application show the operations implemented according to some embodiments of the present application. It should be understood that the operations in the flowchart may not be implemented in sequence, and steps without logical context relationships may be reversed or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present application.

[0061] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application generally described and illustrated herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.

[0062] It should be noted in advance that the term "including" will be used in the embodiments of the present application to indicate the existence of the features stated thereafter, but does not exclude the addition of other features.

[0063] It should be noted in advance that the devices or electronic devices involved in the embodiments of the present application can be executed on a single server or on a server group. The server group can be centralized or distributed. In some embodiments, the server can be local or remote relative to the terminal. For example, the server can access information and / or data stored in the service requestor terminal, service provider terminal, or database, or any combination thereof via a network. As another example, the server can be directly connected to at least one of the service requestor terminal, service provider terminal, and database to access the stored information and / or data. In some embodiments, the server can be implemented on a cloud platform; by way of example only, the cloud platform can include a private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, inter-cloud, multi-cloud, etc., or any combination thereof.

[0064] Figure 1 The flowchart of a data processing method provided by an embodiment of the present application is shown, as Figure 1 shown, the method includes the following steps:

[0065] Step 101, calculate the first demand quantity of each target component in the target period according to the expected working hours in the target period and the assembly hours of the components to be assembled; the target components are the components used to assemble the components to be assembled.

[0066] Specifically, the length of the target period is preset. For example, each natural week is set as a period, or each natural month is set as a period. The assembly hours of the components to be assembled are obtained according to the average length of the actual assembly time, or can be set artificially. The expected working hours can be determined according to the work schedule or shift time set by each user or manufacturer, or can be directly input by the user.

[0067] Before the start of each target period, obtain the estimated working hours within the target period and the assembly duration of the parts to be assembled, so as to calculate the number of parts to be assembled expected to be completed within the target period based on the estimated working hours and the assembly duration, and calculate the first demand quantity of each target part for each part to be assembled according to the number of parts to be assembled. In another feasible implementation provided by the embodiments of the present application, the first demand quantity of each target part within the target period can also be determined according to the target quantity of the parts to be assembled within the target period.

[0068] It should be noted that before the start of each target period, it is necessary to detect the first demand quantity of each target part within the target period. The detection time can be carried out according to the period. For example, the first demand quantity of the next period is detected on the last working day of each period, or the first demand quantity of the next period is detected every natural day, and the specific value of the first demand quantity of each target part is obtained.

[0069] Step 102, for each target part, calculate the actual inventory quantity of the target part in the inventory before the start time of the target period according to the first inventory quantity of the target part in the current inventory and the outstanding orders for ordering the target part.

[0070] Specifically, the inventory data and order data are obtained by accessing the storage space for storing the inventory information of the inventory system and the order information of the order system. After calculating the first demand quantity of each target part within the target period according to Step 101, for each target part, obtain the storage quantity of the target part in the inventory at the current detection time, and use this storage quantity as the first inventory quantity. According to the arrival situation of each order information, determine the outstanding orders whose purchased products in the unreceived order information are the target part, and determine the expected arrival quantity according to the purchase quantity, purchase time and expected delivery time of the target part in the outstanding order. According to the expected arrival quantity and the first inventory quantity, determine the actual inventory quantity of the target part in the inventory before the start time of the target period.

[0071] Step 103, when the actual inventory quantity is less than the first demand quantity, generate at least one first purchase plan according to the time difference between the current time and the start time and the quantity difference between the first demand quantity and the actual inventory quantity; the first purchase plan includes the purchase channel, the recommended purchase quantity, the purchase amount and the expected arrival time.

[0072] Specifically, after obtaining the first demand quantity and the actual inventory quantity according to steps 101 and 102, if the actual inventory quantity is less than the first demand quantity, it indicates that the quantity of the target component stored in the inventory is insufficient to meet the usage requirements within the target period, and the work objective within the target period cannot be completed. Then, based on the time difference between the current time and the start time, and the quantity difference between the first demand quantity and the actual inventory quantity, at least one first purchase plan is generated, that is, it is necessary to purchase and obtain the target quantity of the target component before the arrival of the target period. Specifically, the first purchase plan can be generated according to the established algorithm model. The algorithm model takes the quantity difference and the time difference as inputs, and uses historical purchase information, historical transportation time, historical transaction amount, public purchase links, selling information, selling locations, and selling amounts as reference factors to generate at least one first purchase plan for purchasing the target component.

[0073] A data processing method provided by an embodiment of the present application calculates the first demand quantity of each target component within the target period according to the expected working duration within the target period and the assembly duration of the components to be assembled; the target components are the components used to assemble the components to be assembled; for each target component, according to the first inventory quantity of the target component in the current inventory and the outstanding orders for ordering the target component, calculate the actual inventory quantity of the target component in the inventory before the start time of the target period; when the actual inventory quantity is less than the first demand quantity, generate at least one first purchase plan according to the time difference between the current time and the start time, and the quantity difference between the first demand quantity and the actual inventory quantity; the first purchase plan includes a purchase channel, a recommended purchase quantity, a purchase amount, and an expected arrival time.

[0074] Through the above method, compared with the prior art solution of directly stockpiling a large number of inventory of various types of components and only realizing the shortage of a certain component during use, the embodiment of the present application can predict the first demand quantity of each target component within the target period, determine the actual inventory quantity of the target component, determine the quantity of the target component lacking within the target period according to the quantity difference between the first demand quantity and the actual inventory quantity, and provide a purchase plan when the inventory is insufficient.

[0075] In a feasible implementation, when performing step 101, the method includes the following steps:

[0076] Step 110, calculate the first quantity of the components to be assembled produced within the target period according to the expected working duration and the assembly duration of the components to be assembled.

[0077] Specifically, after obtaining the expected working hours within the target period, calculate the assembly quantity of each to-be-assembled component within the target period according to the expected working hours and the assembly duration of each to-be-assembled component. For example, assume the expected working hours is 40 hours and the assembly duration of to-be-assembled component one is 2 hours, then the assembly quantity of to-be-assembled component one within the target period is (40 / 2) = 20 pieces. Then, within the target period, the assembly quantity that workshop one can complete for assembling this to-be-assembled component is 20, and this first quantity is 20 pieces. It should be noted that this first quantity can also be directly set according to the production scheduling.

[0078] Step 111, obtain the parts list of the to-be-assembled component; the parts list includes the target parts for forming the to-be-assembled component and the second quantity of the target parts for forming one to-be-assembled component.

[0079] Specifically, the parts list is pre-stored, and each to-be-assembled component corresponds to a parts list, and the parts list includes the target parts for forming the to-be-assembled component and the second quantity of the target parts for forming one to-be-assembled component.

[0080] For example, according to the example in step 110, when the calculated first quantity of the to-be-assembled component is 20, assume the parts list includes parts named: part one, part two, and part three, the second quantity corresponding to part one is 5, the second quantity of part two is 6, and the second quantity corresponding to part three is 1.

[0081] Step 112, for each part, calculate the first demand quantity of the target part according to the first quantity and the second quantity of the target part in the parts list.

[0082] Specifically, according to the examples in step 110 and step 111, the calculation method for the first demand quantity is as follows:

[0083] When the target part is part one, the first demand quantity is: 20 * 5 = 100 pieces;

[0084] When the target part is part two, the first demand quantity is: 20 * 6 = 120 pieces;

[0085] When the target part is part three, the first demand quantity is: 20 * 1 = 20 pieces.

[0086] In a feasible implementation, when performing step 102, the method further includes the following steps:

[0087] Step 113: For each of the outstanding orders, calculate the expected arrival quantity of the target parts in the outstanding order before the start time of the target period according to the purchase quantity and purchase time in the outstanding order. Determine the sum value between the expected arrival quantity and the first inventory quantity as the actual inventory quantity.

[0088] Specifically, according to the purchase quantity and purchase time in the outstanding order of the target parts, combined with the start time of the target period, calculate the expected arrival quantity of the target parts that can arrive before the start time. Then, include the expected arrival quantity of the target parts that can arrive before the start time in the actual inventory quantity, that is, actual inventory quantity = expected arrival quantity + first inventory quantity.

[0089] Figure 2 The flowchart shows a method for automatic replenishment provided by an embodiment of the present application. In a feasible implementation, after performing step 103, the method further includes:

[0090] Step 201: According to the pre-set purchase authority, determine at least one second purchase plan in each of the first purchase plans whose purchase amount meets the purchase authority.

[0091] Specifically, the purchase authority includes the maximum allowable purchase amount for automatic purchase. Then, the purchase amount in the first purchase plan meeting the purchase authority means that the purchase amount in the first purchase plan is less than or equal to the preset maximum allowable purchase amount in the purchase authority; the purchase amount in the first purchase plan not meeting the purchase authority means that the purchase amount in the first purchase plan is greater than the preset maximum allowable purchase amount in the purchase authority. Thus, screen the plans in the first purchase plan to obtain the second purchase plan that meets the purchase authority.

[0092] For example, the location for assembling the parts to be assembled, that is, the receiving point, is the first location, the quantity difference is 1000, and the time difference is 10 days. According to the publicly available information and historical purchase information, the purchasable purchase information determined is:

[0093] Purchase channel one, purchase unit price is 10 yuan, purchasable quantity is 200, and the shipping point is the first location.

[0094] Purchase channel two, purchase unit price is 8 yuan, purchasable quantity is 1000, and the shipping point is the second location.

[0095] Purchase channel three, purchase unit price is 12 yuan, purchasable quantity is 500, and the shipping point is the second location.

[0096] Purchase channel four, purchase unit price is 13 yuan, purchasable quantity is 1000, and the shipping point is the first location.

[0097] The options provided in the first purchase plan include:

[0098] Option 1: Purchase 1000 target components through purchase channel 2. Based on the shipping point and the receiving point, the estimated transportation days for these 1000 target components are calculated to be 5 days.

[0099] Option 2: Purchase 200 target components through purchase channel 1. Based on the shipping point and the receiving point, the estimated transportation days for these 200 target components are calculated to be 2 days.

[0100] Purchase 800 target components through purchase channel 2. Based on the shipping point and the receiving point, the estimated transportation days for these 200 target components are calculated to be 5 days.

[0101] Assume the maximum allowable purchase amount is 20,000 yuan. Then each of the above first purchase plans meets the purchase authority, and both of the above two first purchase plans are determined as the second purchase plans. Assume the maximum purchase amount in the purchase authority is 8,000 yuan. Then the first purchase plan corresponding to Option 2 above does not meet the maximum purchase amount in the purchase authority. Then only Option 1 in the first purchase plan is determined as the second purchase plan.

[0102] Step 202: For each second purchase plan, set weights for the purchase amount of the second purchase plan, the first difference between the recommended purchase quantity of the second purchase plan and the quantity difference, and the second difference between the estimated arrival time of the second purchase plan and the start time, to obtain the cost performance score of each second purchase plan.

[0103] Specifically, the difference between the recommended purchase quantity and the quantity difference may be the same or different. Set weights for time, amount, and quantity in the second purchase plan, so as to obtain the cost performance score of the second purchase plan through the allocation of weights. For example, when the weights of time, amount, and quantity are set to 0.5, 0.3, and 0.2 respectively, more importance is attached to the arrival time in each second purchase plan.

[0104] Step 203: Sort the at least one second purchase plan according to the cost performance score to obtain a purchase list that meets the purchase authority.

[0105] Specifically, after obtaining the cost performance score of each second purchase plan according to Step 202, sort the at least one second purchase plan according to the cost performance score of each second purchase plan to obtain a purchase list that meets the purchase authority.

[0106] Step 204: Obtain the purchase channel in the target second purchase plan ranked first in the purchase list.

[0107] Specifically, since each second purchase plan includes a purchase channel, after sorting each second purchase plan, obtain the purchase channel in the target second purchase plan ranked first in the purchase list. The purchase channel includes but is not limited to: purchase link, purchase phone number, purchase page.

[0108] Step 205: Automatically purchase the target parts in the quantity recommended in the target second purchase plan according to the purchase channel, and generate purchase information.

[0109] Specifically, after obtaining the purchase channel in the target second purchase plan according to Step 204, automatically select the target parts according to this purchase channel, and generate purchase information for purchasing the target parts.

[0110] In a feasible implementation, after executing Step 205, the method further includes the following steps:

[0111] Send the first display data including the at least one first purchase plan, the second display data including the purchase list, and the third display data including the purchase information to a display terminal.

[0112] Specifically, send the first display data, the second display data, and the third display data to the display terminal so that the user can adjust the purchase plan on the display terminal. For example, after automatically purchasing according to Step 205, the user can also cancel the order and purchase the target parts by himself according to the at least one first purchase plan provided by the first display data.

[0113] It should be noted that the display terminal can also display the demand quantity and actual inventory quantity of each target part within the target period, so as to remind the user to replenish the stock.

[0114] In a feasible implementation, after executing Step 102, the method further includes:

[0115] Obtain the assembly plan before the start time; if the target parts are included in the assembly plan, calculate the second demand quantity for the target parts according to the current time and the assembly progress of the assembly plan; adjust the quantity of the actual inventory to the third difference according to the third difference between the actual inventory and the second demand quantity.

[0116] Specifically, if the target parts are to be used before the start of the target period, it is necessary to determine the usage quantity of each target part before the start of the target period, and subtract the usage quantity of the target parts from the actual inventory to obtain the actual inventory of the real target parts.

[0117] Figure 3 The structure diagram of a data processing device provided by an embodiment of the present application is shown. As Figure 3 shown, the device includes a first calculation unit 301, a second calculation unit 302, and a first generation unit 303.

[0118] The first calculation unit is configured to calculate, according to the expected working duration within a target period and the assembly duration of the components to be assembled, the first demand quantity of each target component within the target period; the target components are the components used to assemble the components to be assembled.

[0119] The second calculation unit is configured to, for each target component, calculate the actual inventory quantity of the target component in the inventory before the start time of the target period according to the first inventory quantity of the target component in the current inventory and the outstanding orders for ordering the target component.

[0120] The first generation unit is configured to, when the actual inventory quantity is less than the first demand quantity, generate at least one first purchase plan according to the time difference between the current time and the start time and the quantity difference between the first demand quantity and the actual inventory quantity; the first purchase plan includes a purchase channel, a recommended purchase quantity, a purchase amount, and an expected arrival time.

[0121] In a feasible implementation, the first calculation unit is configured to:

[0122] Calculate the first quantity of the components to be assembled produced within the target period according to the expected working duration and the assembly duration of the components to be assembled.

[0123] Obtain the component list of the components to be assembled; the component list includes the target components used to form the components to be assembled and the second quantity of the target components used to form one component to be assembled.

[0124] For each component, calculate the first demand quantity of the target component according to the first quantity and the second quantity of the target component in the component list.

[0125] In a feasible implementation, the second calculation unit is configured to:

[0126] For each of the outstanding orders, calculate the expected arrival quantity of the target component in the outstanding order before the start time of the target period according to the purchase quantity and the purchase time in the outstanding order.

[0127] Determine the sum value of the expected arrival quantity and the first inventory quantity as the actual inventory quantity.

[0128] In a feasible implementation, the device further includes:

[0129] A determination unit, configured to, after generating at least one first purchase plan, determine at least one second purchase plan in which the purchase amount in each of the first purchase plans meets the preset purchase authority according to the preset purchase authority.

[0130] A weight unit, configured to, for each second purchase plan, set weights for the purchase amount of the second purchase plan, the first difference between the recommended purchase quantity of the second purchase plan and the difference in goods quantity, and the second difference between the estimated arrival time of the second purchase plan and the start time, to obtain the cost performance score of each second purchase plan.

[0131] A sorting unit, configured to sort the at least one second purchase plan according to the cost performance score to obtain a purchase list that meets the purchase authority.

[0132] A first acquisition unit, configured to acquire the purchase channel in the target second purchase plan ranked first in the purchase list.

[0133] A second generation unit, configured to automatically purchase the target components in the quantity of the recommended purchase quantity in the target second purchase plan according to the purchase channel and generate purchase information.

[0134] In a feasible implementation, the device further includes:

[0135] A sending unit, configured to, after generating at least one first purchase plan, send first display data including the at least one first purchase plan, second display data including the purchase list, and third display data including the purchase information to a display terminal.

[0136] In a feasible implementation, the device further includes:

[0137] A second acquisition unit, configured to, after calculating the actual inventory quantity of the target components in the inventory before the start time of the target period, acquire the assembly plan before the start time.

[0138] A fourth calculation unit, configured to, if the target components are included in the assembly plan, calculate the second demand quantity for the target components according to the current time and the assembly progress of the assembly plan.

[0139] An adjustment unit, configured to adjust the quantity of the actual inventory to the third difference according to the third difference between the actual inventory quantity and the second demand quantity.

[0140] A data processing device provided by an embodiment of the present application calculates a first demand quantity for each target component in a target period according to the expected working duration in the target period and the assembly duration of the components to be assembled; the target components are the components used to assemble the components to be assembled; for each target component, according to the first inventory quantity of the target component in the current inventory and the outstanding orders for ordering the target component, calculate the actual inventory quantity of the target component in the inventory before the start time of the target period; when the actual inventory quantity is less than the first demand quantity, generate at least one first purchase plan according to the time difference between the current time and the start time and the quantity difference between the first demand quantity and the actual inventory quantity; the first purchase plan includes a purchase channel, a recommended purchase quantity, a purchase amount, and an expected arrival time.

[0141] Compared with the prior art solution of directly stockpiling a large number of components of various models in inventory and only knowing which component is missing when in use, the embodiment of the present application can predict the first demand quantity of each target component in a target period, determine the actual inventory quantity of the target component, determine the quantity of the target component missing in the target period according to the quantity difference between the first demand quantity and the actual inventory quantity, and provide a purchase plan when the inventory is insufficient.

[0142] Figure 4 The structure diagram of an electronic device provided by an embodiment of the present application is shown, including: a processor 401, a storage medium 402, and a bus 403. The storage medium 402 stores machine-readable instructions executable by the processor 401. When the electronic device runs the data processing method in the embodiment, the processor 401 communicates with the storage medium 402 through the bus 403, and the processor 401 executes the machine-readable instructions to execute the steps in the embodiment.

[0143] In the embodiment, the storage medium 402 can also execute other machine-readable instructions to execute other methods described in the embodiment. For the specific method steps and principles of execution, refer to the description of the embodiment, and details are not described herein again.

[0144] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it is used to execute the steps in the embodiment.

[0145] In the embodiment of the present application, when the computer program is run by a processor, it can also execute other machine-readable instructions to execute other methods described in the embodiment. For the specific method steps and principles of execution, refer to the description of the embodiment, and details are not described herein again.

[0146] In several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For another example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or modules can be in electrical, mechanical, or other forms.

[0147] The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0148] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0149] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0150] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A data processing method, characterized in that, the method includes: calculating a first demand quantity for each target component part within the target period according to the estimated working duration within the target period and the assembly duration of the component part to be assembled; the target component parts are the component parts used to assemble the component part to be assembled; for each target component part, calculating the actual inventory quantity of the target component part in the inventory before the start time of the target period according to the first inventory quantity of the target component part in the current inventory and the outstanding orders for ordering the target component part; when the actual inventory quantity is less than the first demand quantity, generating at least one first purchase plan according to the time difference between the current time and the start time and the quantity difference between the first demand quantity and the actual inventory quantity; the first purchase plan includes a purchase channel, a recommended purchase quantity, a purchase amount, and an estimated arrival time; after generating at least one first purchase plan, determining at least one second purchase plan in which the purchase amount in each of the first purchase plans meets the purchase authority according to the preset purchase authority; for each second purchase plan, setting weights for the purchase amount of the second purchase plan, the first difference between the recommended purchase quantity of the second purchase plan and the quantity difference, and the second difference between the estimated arrival time of the second purchase plan and the start time respectively to obtain the cost performance score of each second purchase plan; sorting the at least one second purchase plan according to the cost performance score to obtain a purchase list that meets the purchase authority; obtaining the purchase channel in the target second purchase plan ranked first in the purchase list; automatically purchasing the target component parts with the recommended purchase quantity in the target second purchase plan according to the purchase channel, and generating purchase information.

2. The method according to claim 1, characterized in that, calculating a first demand quantity for each target component part within the target period according to the estimated working duration within the target period and the component part to be assembled includes: calculating a first quantity of the component part to be assembled produced within the target period according to the estimated working duration and the assembly duration of the component part to be assembled; obtaining the component part list of the component part to be assembled; the component part list includes the target component parts used to form the component part to be assembled and the second quantity of the target component parts used to form one component part to be assembled; for each component part, calculating the first demand quantity of the target component part according to the first quantity and the second quantity of the target component part in the component part list.

3. The method according to claim 1, characterized in that, calculating the actual inventory quantity of the target component part in the inventory before the start time of the target period according to the first inventory quantity of the target component part in the current inventory and the outstanding orders for ordering the target component part includes: For each of the outstanding orders, calculate the estimated arrival quantity of the target components in the outstanding order before the start time of the target period according to the purchase quantity and purchase time in the outstanding order. Determine the sum value between the estimated arrival quantity and the first inventory quantity as the actual inventory quantity.

4. The method according to claim 1, wherein, after generating at least one first purchase plan, the method further includes: Sending first display data including the at least one first purchase plan, second display data including the purchase list, and third display data including the purchase information to a display terminal.

5. The method according to claim 1, wherein, after calculating the actual inventory quantity of the target components in the inventory before the start time of the target period, the method further includes: Obtaining an assembly plan before the start time; If the target components are included in the assembly plan, calculate the second demand quantity for the target components according to the current time and the assembly progress of the assembly plan; Adjust the quantity of the actual inventory to the third difference according to the third difference between the actual inventory quantity and the second demand quantity.

6. A data processing device, wherein, the device includes: A first calculation unit for calculating the first demand quantity for each target component within the target period according to the estimated working hours within the target period and the assembly duration of the components to be assembled; the target components are the components used to assemble the components to be assembled; A second calculation unit for calculating the actual inventory quantity of the target components in the inventory before the start time of the target period for each target component according to the first inventory quantity of the target components in the current inventory and the outstanding orders for ordering the target components; A first generation unit for generating at least one first purchase plan according to the time difference between the current time and the start time and the quantity difference between the first demand quantity and the actual inventory quantity when the actual inventory quantity is less than the first demand quantity; the first purchase plan includes a purchase channel, a recommended purchase quantity, a purchase amount, and an estimated arrival time; A determination unit for determining at least one second purchase plan in which the purchase amount in each first purchase plan meets the purchase authority after generating at least one first purchase plan according to the pre-set purchase authority; A weight unit for setting weights for the purchase amount of each second purchase plan, the first difference between the recommended purchase quantity of the second purchase plan and the quantity difference, and the second difference between the estimated arrival time of the second purchase plan and the start time respectively to obtain the cost performance score of each second purchase plan; A sorting unit for sorting the at least one second purchase plan according to the cost performance score to obtain a purchase list that meets the purchase authority. A first acquisition unit, configured to acquire a purchase channel in a target second purchase plan ranked first in the purchase list; A second generation unit, configured to automatically purchase the target components in a recommended purchase quantity in the target second purchase plan according to the purchase channel, and generate purchase information.

7. An electronic device Characterized in that It includes: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the data processing method according to any one of claims 1 to 5.

8. A computer-readable storage medium Characterized in that A computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, it performs the steps of the data processing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Scheduling method based on bottleneck procedure

    CN104077633A

  • Allocating system and allocating method

    CN106991543A

  • Purchase demand information generation method and device, computer equipment and storage medium

    CN112581050A