Accessory allocation method and device, equipment and medium

By configuring intelligent warehouse search processing through warehouse loops and API interfaces, the problem of surplus spare parts in overseas warehouses and shortages in central warehouses in the construction machinery industry has been solved, realizing automated allocation, improving efficiency and reducing costs.

CN121010306APending Publication Date: 2025-11-25SANY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511023959.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-11-25

AI Technical Summary

Technical Problem

In the construction machinery industry, excess and stagnant spare parts in overseas warehouses and shortages in the central warehouse lead to increased spare parts procurement and transportation costs. The existing allocation system cannot dynamically respond to urgent order demands and relies on manual operation, resulting in problems such as information lag and long calculation time.

Method used

By configuring n warehouse rings, intelligent warehouse search processing is performed based on preset rules, and different types of API interfaces are called to allocate spare parts, including emergency marking and priority warehouse search mechanisms, to achieve automated allocation.

Benefits of technology

It improved the efficiency of parts allocation, reduced the risk and cost of human error, and solved the problems of excess parts in overseas warehouses and shortages in the central warehouse.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121010306A_ABST
    Figure CN121010306A_ABST
Patent Text Reader

Abstract

The invention provides an accessory allocation method and device, equipment and a medium, and the method comprises the steps: obtaining order information which at least comprises m ordered accessories and corresponding delivery addresses; based on n pre-configured warehouse rings, warehouse searching processing is carried out on m ordering accessories in the order information, warehouse-out warehouses corresponding to the m ordering accessories are obtained, and the n warehouse rings are arranged and configured according to a preset warehouse ring forming rule; and calling a corresponding application programming API interface to carry out accessory allocation based on the ex-warehouse warehouses corresponding to the m ordered accessories. In this way, the technical problems that in the prior art, accessories of a resident warehouse are excessive and stagnant, and a total warehouse is out of stock, so that accessory purchasing and transporting cost is increased can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of order management technology, specifically to a method, apparatus, equipment, and medium for allocating spare parts. Background Technology

[0002] Currently, the demand for spare parts in the construction machinery industry mainly relies on the maintenance and repair of mainframe machines. Unplanned downtime of mainframe machines can significantly impact customer project schedules, leading to additional economic losses. Therefore, the demand for spare parts is typically characterized by urgency, variety, and relatively small quantities of individual parts. However, most spare parts lack stable logistics, resulting in stagnant inventory and poor parts circulation.

[0003] Current technology for spare parts distribution in the construction machinery industry does not involve inter-warehouse transfers. Typically, during monthly inventory preparation, all spare parts are issued from the central warehouse, generating corresponding transfer orders. This leads to a large surplus of spare parts in external warehouses, while the central warehouse experiences severe shortages, thus increasing spare parts procurement and transportation costs. Summary of the Invention

[0004] In view of this, the embodiments of this application aim to provide a spare parts allocation method, apparatus, equipment and medium that can solve the technical problems in the prior art such as excess and stagnant spare parts in overseas warehouses and shortages in the central warehouse, thereby increasing the cost of spare parts procurement and transportation.

[0005] This application provides a method for allocating spare parts, including:

[0006] Obtain order information, which includes at least m ordered accessories and their corresponding shipping addresses, where m is a positive integer;

[0007] Based on a pre-configured set of n warehouse rings, the warehouse search process is performed on the m ordered parts in the order information to obtain the outbound warehouses corresponding to the m ordered parts. The n warehouse rings are arranged and configured according to a preset warehouse ring formation rule, where n is a positive integer.

[0008] Based on the respective outbound warehouses of the m ordered parts, the corresponding application programming API interfaces are called to allocate the parts. Different types of outbound warehouses are configured with different API interfaces.

[0009] In some embodiments, the method further includes:

[0010] The order information is marked as urgent;

[0011] The warehouse search process for m ordered accessories in the order information based on the pre-configured n warehouse rings includes:

[0012] When the order information contains an urgent flag, the warehouse search process is performed on the m ordered parts in the order information based on the pre-configured n warehouse rings.

[0013] In some embodiments, the warehouse search process for m ordered accessories in the order information based on pre-configured n warehouse rings includes at least one of the following:

[0014] Based on the central warehouse corresponding to the n warehouse rings, priority is given to finding warehouses for the m ordered parts. The central warehouse is the local warehouse with the shortest distance to the delivery address among the n warehouse rings.

[0015] Based on the factory procurement rules in the warehouse ring formation rules, the warehouse search is performed on the m ordered parts to determine whether the m ordered parts are located in the factory procurement ring of the n warehouse rings, where the factory procurement ring is the warehouse ring determined based on the factory procurement rules;

[0016] Based on the n warehouse rings, sequential warehouse search is performed on the m ordered parts.

[0017] In some embodiments, the sequential warehouse search for the m ordered accessories based on the n warehouse rings includes any one of the following:

[0018] When a single warehouse has all m ordered parts, the single warehouse shall be given priority as the outbound warehouse corresponding to the m ordered parts. The single warehouse is any warehouse in the n warehouse rings.

[0019] When at least two warehouses in a single warehouse ring simultaneously have the m ordered parts, the at least two warehouses in the single warehouse ring that simultaneously have the m ordered parts shall be preferentially regarded as the outbound warehouses corresponding to the m ordered parts, and the single warehouse ring is any warehouse ring among the n warehouse rings;

[0020] When the m ordered parts cannot be simultaneously available in a single warehouse and a single warehouse ring, the n warehouse rings are recursively searched for warehouses in sequence to split the m ordered parts into outbound warehouses in multiple warehouse rings.

[0021] In some embodiments, the method further includes:

[0022] Get the local repository for each region;

[0023] Using the local warehouse with the shortest distance to the delivery address as the central warehouse, the local warehouses in each region are configured in a ring according to a preset warehouse ringing rule to obtain the n warehouse rings.

[0024] In some embodiments, the warehouse ringing rule includes a distance priority rule and / or an agent internal priority rule, wherein the distance priority rule is used to indicate that warehouses with shorter distances from the central warehouse in the same warehouse ring are arranged in a priority order, and the agent internal priority rule is used to indicate that warehouses belonging to the same agent in the same warehouse ring are arranged in a priority order.

[0025] In some embodiments, the warehouse ring-forming rules include distance priority rules and agent internal priority rules, and configuring the local warehouses in each region into rings according to the preset warehouse ring-forming rules includes:

[0026] When the distance priority rule takes precedence over the agent internal priority rule, warehouses located within the same preset distance range are configured into the same warehouse ring, and warehouses belonging to the same agent are prioritized within the same warehouse ring; or,

[0027] When the internal priority rule of the agent takes precedence over the distance priority rule, warehouses belonging to the same agent are prioritized, and warehouses that do not belong to the same agent are re-arranged according to their distance from the central warehouse.

[0028] In some embodiments, the step of calling the corresponding application programming API interface to allocate parts based on the respective outbound warehouses of the m ordered parts includes at least one of the following:

[0029] When the outbound warehouse is located in the factory procurement loop, the factory procurement API interface is called to purchase and allocate the corresponding spare parts.

[0030] When the outbound warehouse is located in different warehouse rings, the agent's external API interface is called to allocate the corresponding parts to the outbound warehouse.

[0031] When the outbound warehouses are located in the same warehouse ring, and the same warehouse ring is not a factory procurement ring, the agent's internal API interface is invoked to allocate the corresponding parts to the outbound warehouses.

[0032] In some embodiments, the warehouse ring includes any one of the following: a distributor warehouse ring, a factory warehouse ring, and a factory procurement ring, wherein the distributor warehouse ring is used to instruct the corresponding ordered parts to be shipped from the distributor warehouse, the factory warehouse ring is used to instruct the corresponding ordered parts to be shipped from the factory warehouse, and the factory procurement ring is used to instruct the corresponding ordered parts to be procured from a designated factory.

[0033] Another aspect of this application provides an accessory transfer device, comprising:

[0034] The acquisition module is used to acquire order information, which includes at least m ordered accessories and their corresponding shipping addresses, where m is a positive integer;

[0035] The processing module is used to perform warehouse search processing on m ordered parts in the order information based on n pre-configured warehouse rings to obtain the outbound warehouses corresponding to the m ordered parts. The n warehouse rings are arranged and configured according to a preset warehouse ring formation rule, and n is a positive integer.

[0036] The processing module is also used to call the corresponding application programming API interface to allocate parts based on the respective outbound warehouses of the m ordered parts. Different types of outbound warehouses are configured with different API interfaces.

[0037] For any content not introduced or described in the embodiments of this application, please refer to the relevant descriptions in the foregoing method embodiments; they will not be repeated here.

[0038] This application also provides a computer device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the steps of the above-described accessory allocation method.

[0039] In another aspect, this application provides a computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, implement the steps of the above-described accessory allocation method.

[0040] The technical solution provided in this application embodiment can include the following beneficial effects: obtaining order information, wherein the order information includes at least m ordered parts and their corresponding delivery addresses, where m is a positive integer; performing warehouse search processing on the m ordered parts in the order information based on pre-configured n warehouse rings to obtain the outbound warehouses corresponding to the m ordered parts, wherein the n warehouse rings are arranged and configured according to a preset warehouse ring formation rule, where n is a positive integer; and calling the corresponding application programming API interface to allocate parts based on the outbound warehouses corresponding to each of the m ordered parts, wherein different types of outbound warehouses are configured with different API interfaces. In this way, by intelligently searching for and allocating the m ordered parts in the order information, the automatic allocation of ordered parts can be achieved, thereby reducing the tedious operation and error risk of manual allocation, and thus improving the efficiency and reducing the cost of parts allocation. It also solves the problems of excess and stagnant parts in overseas warehouses and stockouts in the central warehouse, which increase the cost of parts procurement and transportation. Attached Figure Description

[0041] Figure 1 This is a flowchart illustrating a method for allocating spare parts according to an embodiment of this application.

[0042] Figure 2 This is a schematic diagram illustrating several emergency accessory marking scenarios provided in the embodiments of this application.

[0043] Figure 3 This is a schematic diagram of a warehouse ring configuration provided in an embodiment of this application.

[0044] Figure 4 This is a schematic diagram of a warehouse forming a ring, provided as an embodiment of this application.

[0045] Figure 5 This is a schematic diagram of a warehouse allocation result provided in an embodiment of this application.

[0046] Figure 6 This is a schematic diagram of the structure of an accessory allocation device provided in an embodiment of this application.

[0047] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0049] An existing system for allocating construction machinery parts includes: a data preprocessing module configured to acquire inventory data from each warehouse and integrate it into a mathematical matrix; a parts allocation module, communicating with the data preprocessing module and configured to determine allocation schemes between warehouses based on the mathematical matrix and a constructed mathematical model; a data storage module, communicating with both the data preprocessing and parts allocation modules and configured to store data from both modules; and a parts allocation dashboard module, communicating with the data storage module and configured to display the data from both modules. However, in practice, the system has the following problems: it relies on monthly inventory data for calculations, making it unable to dynamically respond to urgent order demands; the mathematical model does not consider the time constraints of urgent allocations, nor does it consider principles such as proximity and internal priority. The mathematical model only aims to minimize costs and does not consider optimization objectives in emergency scenarios, such as shortest-time allocation or most complete allocation. Existing technologies rely on manual data cleaning, which can easily lead to information lag in emergency scenarios. The model calculation time is long, which may not be able to meet the immediate needs of emergency parts allocation. To solve the above problems, this application proposes a parts allocation method, apparatus, equipment, and storage medium.

[0050] Please see Figure 1 This is a flowchart illustrating a method for allocating spare parts according to an embodiment of this application. Figure 1 The method shown can be applied to computer devices and may include the following implementation steps:

[0051] S101. Obtain order information, wherein the order information includes at least m ordered accessories and their corresponding delivery addresses, where m is a positive integer.

[0052] In this application, the aforementioned order information can refer to relevant information describing the required ordered accessories, which may include, but is not limited to, order number, delivery address, accessory details (such as the aforementioned m ordered accessories), business unit to which the order belongs, agent to which the order belongs, customer information (such as the ordering customer's name, mobile phone number, etc.), or other custom information. The aforementioned accessory details can refer to detailed information describing the required ordered accessories, which may include, but is not limited to, the quantity of the required accessories (such as m, where m is a positive integer custom-set according to actual needs), accessory code, accessory description, accessory price, and other custom information used to describe the accessories. Specifically, the order information involved in this application can refer to sales order information or service request order information, etc., and this application does not limit this. The aforementioned sales order information refers to the order information for the sale of accessories, and the aforementioned service request order information refers to the order information for a service request initiated when a customer's equipment needs maintenance; further limitations and details are not provided here.

[0053] This application does not limit the implementation method of obtaining the above order information. For example, it can be obtained directly from a local database or received from other devices (such as client devices or servers) via a network.

[0054] In one embodiment, this application can mark m ordered accessories in the above order information as urgent items to construct a corresponding urgent order database, which serves as the data source for subsequent warehouse search processing. This urgent order database may specifically include the above order information, the urgent markings of each of the m ordered accessories, etc. For a description of the order information, please refer to the relevant description of the order information above; it will not be repeated here.

[0055] In practical implementation, this application can mark the system's order information (such as sales orders or service request orders) as urgently needed based on actual business scenarios, thereby constructing a corresponding emergency order database. This facilitates intelligent warehouse search processing for order information with emergency markings in step S102. For example, please refer to... Figure 2 This is a schematic diagram illustrating several scenarios for marking emergency accessories provided in embodiments of this application. For example... Figure 2The document shows seven different scenarios for emergency accessory markings, which can be customized to add or remove according to actual circumstances. This application will not make further limitations or details here.

[0056] In practical applications, this application can add an emergency mark saving function to the system's order generation function. For example, it can add a type enumeration to the sales order or service request order information, such as A004 representing an emergency order. This application can also add an order data synchronization function to the system, synchronizing the order information with the emergency order mark to the intelligent warehouse search engine through the corresponding system platform interface, so that the intelligent warehouse search engine can execute step S102 to intelligently search for the m order parts in the order information.

[0057] S102. Based on the pre-configured n warehouse rings, perform warehouse search processing on the m ordered parts in the order information to obtain the warehouse transfer results corresponding to the m ordered parts. The warehouse transfer results include at least the outbound warehouses corresponding to the m ordered parts. The n warehouse rings are arranged and configured according to the preset warehouse ring formation rules, and n is a positive integer.

[0058] Before step S102, this application requires pre-configuring and generating the aforementioned n warehouse rings. See details below. Figure 3 This is a schematic diagram illustrating a warehouse ring configuration provided in an embodiment of this application. Figure 3 The process shown may include the following implementation steps:

[0059] S301, Obtain the local warehouse for each region.

[0060] This application can retrieve warehouse data from the system according to the business unit scope. This warehouse data may include, but is not limited to, warehouse codes, warehouse names, warehouse-affiliated agents, whether it is a factory warehouse, warehouse location (such as warehouse longitude and latitude), or other warehouse information. Furthermore, local warehouses for each region can be retrieved from the aforementioned warehouse data. It is understood that, for the convenience of transportation or shipment, each prefecture-level city in a province has its own outbound warehouse as a local warehouse. For example, it can be divided according to the prefecture-level cities of the 34 provinces in China, thereby obtaining the local warehouses for each prefecture-level city. Optionally, the agents corresponding to these local warehouses may be the same or different; this application does not impose further restrictions on this. Therefore, this application may also refer to the aforementioned local warehouses as agent warehouses.

[0061] S302. Using the local warehouse with the shortest distance to the delivery address as the central warehouse, configure the local warehouses in each region into rings according to the preset warehouse ring formation rules to obtain the n warehouse rings.

[0062] This application uses the local warehouse with the shortest distance to the aforementioned delivery address as the central warehouse for ring configuration. Then, it configures local warehouses in each region into rings according to pre-defined warehouse ring configuration rules. Specifically, the ring configuration can be based on the location of each local warehouse and its affiliated agent, thereby generating and obtaining the aforementioned n warehouse rings. The aforementioned warehouse ring configuration rules are pre-defined rules set by the system, which may include, but are not limited to, any combination of the following: distance priority rules, agent internal priority rules, or other custom rules. The distance priority rules can refer to rules that configure rings based on the distance to the central warehouse, such as hourly delivery warehouse rings, half-day delivery warehouse rings, one-day delivery warehouse rings, two-day delivery warehouse rings, or multi-day delivery warehouse rings. The distance priority rules also indicate that warehouses with shorter distances to the central warehouse within the same warehouse ring will be prioritized; that is, warehouses with shorter distances to the central warehouse are listed first, and warehouses with longer distances are listed later. In practice, this application can generate local warehouses in each region into the corresponding warehouse ring according to the distance between the local warehouse and the central warehouse in each region. Warehouses with shorter distances within the same warehouse ring can be arranged first. This application does not impose any further restrictions or details on this.

[0063] The aforementioned internal priority rules for agents can refer to rules for ring-based configuration based on agent attributes. For example, warehouses belonging to the same agent are arranged in the same warehouse ring, or warehouses belonging to the same agent are prioritized within the same warehouse ring. These internal priority rules can also be used to indicate that warehouses belonging to the same agent within the same warehouse ring will be prioritized, for example, warehouses belonging to the same agent within the same warehouse ring will be listed first. This application will not elaborate further on or specify these rules.

[0064] In a specific example, the aforementioned warehouse ring formation rule includes the aforementioned distance priority rule and the aforementioned agent internal priority rule. When the aforementioned distance priority rule takes precedence over the aforementioned agent internal priority rule, this application can configure warehouses located within the same preset distance range into the same warehouse ring, such as a one-day delivery warehouse ring or a multi-day delivery warehouse ring. Furthermore, warehouses within the same warehouse ring are arranged according to the aforementioned agent internal priority rule; specifically, warehouses belonging to the same agent are prioritized within the same warehouse ring, that is, warehouses belonging to the same agent are arranged at the front, and warehouses belonging to different agents are arranged at the back, etc.

[0065] When the aforementioned internal priority rule for agents takes precedence over the aforementioned distance priority rule, this application can prioritize the arrangement of warehouses belonging to the same agent. Specifically, warehouses belonging to the same agent can be arranged in the same warehouse ring, etc. Within the same warehouse ring, warehouses with shorter distances to the central warehouse can also be prioritized, such as placing warehouses with shorter distances to the central warehouse at the front and warehouses with longer distances to the central warehouse at the back. Warehouses not belonging to the same agent (i.e., warehouses belonging to different agents) can be further / secondarily arranged according to their distance from the central warehouse, etc., but this application does not impose further limitations or details on this.

[0066] For example, please see Figure 4 This is a schematic diagram of a ring-shaped warehouse provided in an embodiment of this application. For example... Figure 4 As shown, four warehouse rings are formed with Hunan Province as the center, labeled Warehouse Ring 1 to Warehouse Ring 4. These warehouse rings can also be referred to as concentric circles, and each ring includes local warehouses in different regions, such as the local warehouse in Guangxi Zhuang Autonomous Region. All four warehouse rings support the transfer of warehouse parts between different distributors, which will not be further limited or detailed in this application.

[0067] In some embodiments, the aforementioned warehouse ring may include, for example, any of the following: a distributor warehouse ring, a factory-stocked warehouse ring, a factory procurement ring, or other custom warehouse rings. The distributor warehouse ring can be used to instruct the corresponding ordered parts to be shipped from the distributor warehouse. Here, the distributor warehouse can refer to a local warehouse in the aforementioned regions. The distributor warehouse ring can be a warehouse ring configured according to the aforementioned distance priority rule, the aforementioned distributor internal priority rule, and other warehouse ring formation rules, which can be referred to in the relevant descriptions in the foregoing embodiments, and will not be repeated here.

[0068] The aforementioned factory warehouse ring (also known as a factory-stocked warehouse ring) can be used to instruct the corresponding ordered parts to be shipped from the factory warehouse. Specifically, the aforementioned factory warehouse can refer to a factory warehouse that has stock (or parts), such as the factory warehouse of a designated factory. This factory warehouse is distinct from the aforementioned agent warehouse; for example, the aforementioned factory warehouse may include factory warehouses such as 8000 and 8005. In practical applications, this application can insert the agent warehouse ring into a ring based on the distance between each factory warehouse and the aforementioned central warehouse. For example, taking Wuhan as the central warehouse, if the factory warehouse is located in Changsha, and the distance between it and the central warehouse needs to be greater than one-hour delivery and less than half-day delivery, then the factory warehouse ring can be placed after the one-hour delivery warehouse ring and before the half-day delivery warehouse ring, etc.

[0069] The aforementioned factory procurement loop (also known as the factory out-of-stock warehouse loop) is used to indicate that the corresponding ordered parts are procured from a designated factory. The factory procurement loop needs to be configured as a separate loop; specifically, it can be used as a final factory procurement route to procure the corresponding ordered parts when the intelligent warehouse search process fails. Typically, the factory procurement loop can be placed after the multi-day delivery warehouse loop, and this application does not impose further restrictions on this.

[0070] After obtaining the aforementioned n warehouse rings, this application can perform warehouse search processing on the aforementioned m ordered parts based on the aforementioned n warehouse rings to obtain the warehouse transfer results corresponding to the aforementioned m ordered parts. The warehouse transfer results may at least include the outbound warehouses corresponding to the aforementioned m ordered parts. Optionally, the warehouse transfer results may specifically include the part code of the ordered parts, the transfer quantity, the outbound warehouse of the parts transfer, or other custom information, etc., which this application does not impose further limitations on. For example, please refer to... Figure 5 This is a schematic diagram illustrating a warehouse allocation result provided in an embodiment of this application. For example... Figure 5 As shown, all ordered accessories in the order information must be obtained through the following three channels simultaneously: allocation from the same distributor's warehouse loop, allocation from different distributors' warehouse loops, and temporary procurement from the factory procurement loop, etc. This application will not impose further restrictions or details on this.

[0071] This application does not limit the specific implementation of the above warehouse search process. Several possible implementation methods are exemplified below:

[0072] In one implementation, this application can prioritize warehouse search for m ordered parts in the order information based on the central warehouse corresponding to the aforementioned n warehouse rings. The central warehouse is a local warehouse determined according to the delivery address in the order information; specifically, it can be the local warehouse with the shortest / closest distance to the delivery address. In practice, this application can first determine the local warehouse within the business unit with the shortest / closest distance to the delivery address as the central warehouse based on the delivery address and business unit information in the order information. Optionally, this application can also obtain inventory information for each ordered part in all warehouses within the business unit to facilitate subsequent intelligent warehouse search. If the central warehouse has inventory of the corresponding ordered part in the order information, the inventory of the corresponding ordered part in the central warehouse is deducted first, that is, the corresponding ordered part is preferentially dispatched from the central warehouse. Conversely, if the central warehouse does not have inventory of the corresponding ordered part, intelligent warehouse search continues.

[0073] In another implementation, this application can determine whether the m ordered parts are located in the factory procurement loop of the aforementioned warehouse loop rules based on the factory procurement rules in the warehouse loop rules. The factory procurement loop can be a warehouse loop determined based on the aforementioned factory procurement rules, which are custom-defined rules set by the system according to actual needs to determine whether to follow the factory procurement path. For example, if the order information requires more than 5 types of ordered parts, the system can directly follow the factory procurement loop and make direct purchases from the designated factories.

[0074] In another embodiment, this application can sequentially search for the m ordered parts based on the aforementioned n warehouse rings. This application does not limit the specific implementation method; for example, in specific implementations, this application can sequentially search for parts according to the following specific implementation methods.

[0075] In one specific implementation, this application may first search whether there is a single warehouse that simultaneously possesses the m ordered components from the aforementioned order information. If a single warehouse exists that simultaneously possesses the m ordered components, then that single warehouse is preferentially designated as the outbound warehouse corresponding to the m ordered components, that is, outbound shipments are preferentially made from that single warehouse. The single warehouse can be any warehouse in the aforementioned n warehouse rings.

[0076] In another specific implementation, when a single warehouse cannot simultaneously supply the aforementioned m ordered components, this application can search whether a single warehouse ring (specifically, at least two warehouses within a single warehouse ring) simultaneously supplies the aforementioned m ordered components. If so, the at least two warehouses within the single ring that simultaneously supply the aforementioned m ordered components are preferentially designated as the corresponding outbound warehouses for the aforementioned m ordered components. That is, the aforementioned m ordered components are split into orders and shipped out to at least two warehouses within the single warehouse ring to satisfy the aforementioned m ordered components. The aforementioned single ring can be any of the aforementioned n warehouse rings.

[0077] In another specific implementation, when neither the aforementioned single warehouse nor the aforementioned single warehouse ring can simultaneously possess the aforementioned m ordered parts, this application can recursively search for warehouses in the aforementioned n warehouse rings sequentially to distribute the aforementioned m ordered parts to warehouses in multiple warehouse rings for outbound shipment. Specifically, for example, if some ordered parts exist in the current warehouse ring, they are occupied first, and then the next warehouse ring is entered to search for and ship the remaining ordered parts, until all the aforementioned m ordered parts are identified in the corresponding outbound warehouses. Optionally, if there are no warehouse parts to be allocated in the aforementioned n warehouse rings (specifically, the agent warehouse ring and the factory stock ring), the factory procurement ring can be directly used for factory procurement. This application does not impose further limitations or details on this.

[0078] This application can search for warehouses in the order of the above-mentioned implementation methods. The above-mentioned implementation methods can be implemented individually or in combination of any two or more implementation methods. The specific implementation method can be determined according to the actual situation, and this application does not impose any restrictions on it.

[0079] S103. Based on the respective outbound warehouses of the m ordered parts, call the corresponding application programming API interface to allocate the parts. Different types of outbound warehouses are configured with different API interfaces.

[0080] This application encapsulates different Application Programming Interfaces (APIs) based on the aforementioned different types of outbound warehouses. Specifically, this application can encapsulate, according to actual needs, such as internal agent API interfaces, external agent API interfaces (also known as inter-agent API interfaces), factory procurement API interfaces, or other custom function interfaces. Among them, the aforementioned internal agent API interfaces can be used to trigger parts transfer processes within the same agent warehouse loop. The aforementioned external agent API interfaces can be used to trigger parts transfer processes between different agent warehouse loops. The aforementioned factory procurement API interfaces can be used to trigger the factory procurement loop to perform the corresponding parts procurement process.

[0081] In specific implementation, if the outbound warehouses corresponding to the aforementioned m ordered parts are located in the factory procurement loop, this application can directly call the factory procurement API interface to procure and allocate parts from the designated factory. If the outbound warehouses corresponding to the aforementioned m ordered parts are located in the same warehouse loop but not in the aforementioned factory procurement loop, this application can call the agent's internal API interface to allocate the corresponding ordered parts from the outbound warehouses in the same warehouse loop. If the outbound warehouses corresponding to the aforementioned m ordered parts are located in different warehouse loops, this application can call the agent's external API interface to allocate the corresponding ordered parts from the outbound warehouses in different warehouse loops. It should be noted that the above implementation methods can be implemented individually or in combination with any two or more of them, depending on the actual situation, until the allocation of the aforementioned m ordered parts is completed. This application does not impose any further limitations on this.

[0082] By implementing the embodiments of this application, order information is obtained, which includes at least m ordered parts and their corresponding delivery addresses, where m is a positive integer. Based on a pre-configured network of n warehouse rings, the m ordered parts in the order information are searched for warehouses to obtain the corresponding outbound warehouses. The n warehouse rings are arranged according to a preset warehouse ring formation rule, where n is a positive integer. Based on the outbound warehouses corresponding to each of the m ordered parts, the corresponding application programming API (API) interface is called to allocate the parts. Different types of outbound warehouses are configured with different API interfaces. In this way, intelligent warehouse searching and allocation processing of the m ordered parts in the order information enables automatic allocation of ordered parts, thereby reducing the tedious operation and error risk of manual allocation, and thus improving the efficiency and reducing the cost of parts allocation. It also solves the problems of excess and stagnant parts in overseas warehouses and stockouts in the central warehouse, which increase the cost of parts procurement and transportation.

[0083] Based on the foregoing embodiments, please refer to Figure 6 This is a schematic diagram of the structure of an accessory allocation device provided in an embodiment of this application. Figure 6 The illustrated device can be applied to computer equipment. The device 400 may include an acquisition module 601 and a processing module 602.

[0084] The acquisition module 601 is used to acquire order information, which includes at least m ordered accessories and their corresponding shipping addresses, where m is a positive integer.

[0085] The processing module 602 is used to perform warehouse search processing on m ordered parts in the order information based on a pre-configured set of n warehouse rings to obtain the outbound warehouses corresponding to the m ordered parts. The n warehouse rings are arranged and configured according to a preset warehouse ring formation rule, and n is a positive integer.

[0086] The processing module 602 is also used to call the corresponding application programming API interface to allocate parts based on the respective outbound warehouses of the m ordered parts. Different types of outbound warehouses are configured with different API interfaces.

[0087] In some embodiments,

[0088] The processing module 602 is also used to mark the order information as urgent;

[0089] The processing module 602 is specifically used to perform warehouse search processing on m ordered accessories in the order information based on pre-configured n warehouse rings when the order information has an emergency mark.

[0090] In some embodiments, the processing module 602 is specifically configured to perform at least one of the following:

[0091] Based on the central warehouse corresponding to the n warehouse rings, priority is given to finding warehouses for the m ordered parts. The central warehouse is the local warehouse with the shortest distance to the delivery address among the n warehouse rings.

[0092] Based on the factory procurement rules in the warehouse ring formation rules, the warehouse search is performed on the m ordered parts to determine whether the m ordered parts are located in the factory procurement ring of the n warehouse rings, where the factory procurement ring is the warehouse ring determined based on the factory procurement rules;

[0093] Based on the n warehouse rings, sequential warehouse search is performed on the m ordered parts.

[0094] In some embodiments, the processing module 602 is specifically configured to perform at least one of the following:

[0095] When a single warehouse has all m ordered parts, the single warehouse shall be given priority as the outbound warehouse corresponding to the m ordered parts. The single warehouse is any warehouse in the n warehouse rings.

[0096] When at least two warehouses in a single warehouse ring simultaneously have the m ordered parts, the at least two warehouses in the single warehouse ring that simultaneously have the m ordered parts shall be preferentially regarded as the outbound warehouses corresponding to the m ordered parts, and the single warehouse ring is any warehouse ring among the n warehouse rings;

[0097] When the m ordered parts cannot be simultaneously available in a single warehouse and a single warehouse ring, the n warehouse rings are recursively searched for warehouses in sequence to split the m ordered parts into outbound warehouses in multiple warehouse rings.

[0098] In some embodiments,

[0099] The acquisition module 601 is also used to acquire the local warehouse of each region;

[0100] The processing module 602 is further configured to form a ring configuration for the local warehouses in each region, with the local warehouse that is closest to the receiving address as the central warehouse, according to a preset warehouse ring configuration rule, to obtain the n warehouse rings.

[0101] In some embodiments, the warehouse ringing rule includes a distance priority rule and / or an agent internal priority rule, wherein the distance priority rule is used to indicate that warehouses with shorter distances from the central warehouse in the same warehouse ring are arranged in a priority order, and the agent internal priority rule is used to indicate that warehouses belonging to the same agent in the same warehouse ring are arranged in a priority order.

[0102] In some embodiments, the warehouse ringing rule includes a distance priority rule and an agent internal priority rule, and the processing module 602 is specifically used for:

[0103] When the distance priority rule takes precedence over the agent internal priority rule, warehouses located within the same preset distance range are configured into the same warehouse ring, and warehouses belonging to the same agent are prioritized within the same warehouse ring; or,

[0104] When the internal priority rule of the agent takes precedence over the distance priority rule, warehouses belonging to the same agent are prioritized, and warehouses that do not belong to the same agent are re-arranged according to their distance from the central warehouse.

[0105] In some embodiments, the processing module 602 is specifically configured to perform at least one of the following:

[0106] When the outbound warehouse is located in the factory procurement loop, the factory procurement API interface is called to purchase and allocate the corresponding spare parts.

[0107] When the outbound warehouse is located in different warehouse rings, the agent's external API interface is called to allocate the corresponding parts to the outbound warehouse.

[0108] When the outbound warehouses are located in the same warehouse ring, and the same warehouse ring is not a factory procurement ring, the agent's internal API interface is invoked to allocate the corresponding parts to the outbound warehouses.

[0109] In some embodiments, the warehouse ring includes any one of the following: a distributor warehouse ring, a factory warehouse ring, and a factory procurement ring, wherein the distributor warehouse ring is used to instruct the corresponding ordered parts to be shipped from the distributor warehouse, the factory warehouse ring is used to instruct the corresponding ordered parts to be shipped from the factory warehouse, and the factory procurement ring is used to instruct the corresponding ordered parts to be procured from a designated factory.

[0110] For any content not introduced or described in the embodiments of this application, please refer to the relevant descriptions in the foregoing method embodiments; they will not be repeated here.

[0111] Please see Figure 7 This is a schematic diagram of the structure of a computer device provided in another embodiment of this application. For example... Figure 7 The computer devices shown can be mobile phones, computers, digital broadcasting terminals, messaging devices, game consoles, tablets, medical devices, fitness equipment, personal digital assistants, etc.

[0112] Reference Figure 7The device 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input / output interface 712, sensor component 714, and communication component 716.

[0113] Processing component 702 typically controls the overall operation of device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the aforementioned accessory allocation method. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.

[0114] Memory 704 is configured to store various types of data to support the operation of device 700. Examples of this data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0115] Power supply component 706 provides power to various components of device 700. Power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 700.

[0116] Multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0117] Audio component 710 is configured to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.

[0118] Input / output interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.

[0119] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of device 700. For example, sensor assembly 714 may detect the on / off state of device 700, the relative positioning of components such as the display and keypad of device 700, changes in the position of device 700 or a component of device 700, the presence or absence of user contact with device 700, the orientation or acceleration / deceleration of device 700, and temperature changes of device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0120] Communication component 716 is configured to facilitate wired or wireless communication between device 700 and other devices. Device 700 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 716 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0121] In an exemplary embodiment, device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described accessory allocation method.

[0122] Understandably, the processor 720 in this application embodiment can be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method embodiment can be completed by integrated logic circuits in the processor's hardware or by software instructions. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0123] Understandably, the memory 704 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0124] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by the processor 720 of the device 700 to complete the above-described upper accessory allocation method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0125] The aforementioned device can be a standalone electronic device or a part of a standalone electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be a single IC or a collection of multiple ICs. The chip can include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), and SoC (System on Chip). The aforementioned integrated circuit or chip can be used to execute executable instructions (or code) to implement the aforementioned accessory allocation method. These executable instructions can be stored in the integrated circuit or chip or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory, and when the executable instructions are executed by the processor, the above-mentioned parts allocation method is implemented; or, the integrated circuit or chip can receive the executable instructions through the interface and transmit them to the processor for execution to implement the above-mentioned parts allocation method.

[0126] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a programmable device, the computer program having a code portion for performing the above-described accessory allocation method when executed by the programmable device.

[0127] It should be noted that the descriptions of the above embodiments of storage media, devices, and equipment are similar to the descriptions of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the embodiments of storage media, devices, and equipment of this disclosure, please refer to the descriptions of the method embodiments of this disclosure for understanding.

[0128] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0129] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications or equivalent substitutions made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for allocating spare parts, characterized in that, include: Obtain order information, which includes at least m ordered accessories and their corresponding shipping addresses, where m is a positive integer; Based on a pre-configured set of n warehouse rings, the warehouse search process is performed on the m ordered parts in the order information to obtain the outbound warehouses corresponding to the m ordered parts. The n warehouse rings are arranged and configured according to a preset warehouse ring formation rule, where n is a positive integer. Based on the respective outbound warehouses of the m ordered parts, the corresponding application programming API interfaces are called to allocate the parts. Different types of outbound warehouses are configured with different API interfaces.

2. The method according to claim 1, characterized in that, The method further includes: The order information is marked as urgent; The warehouse search process for m ordered accessories in the order information based on the pre-configured n warehouse rings includes: When the order information contains an urgent flag, the warehouse search process is performed on the m ordered parts in the order information based on the pre-configured n warehouse rings.

3. The method according to claim 2, characterized in that, The warehouse search process for m ordered accessories in the order information based on the pre-configured n warehouse rings includes at least one of the following: Based on the central warehouse corresponding to the n warehouse rings, priority is given to finding warehouses for the m ordered parts. The central warehouse is the local warehouse with the shortest distance to the delivery address among the n warehouse rings. Based on the factory procurement rules in the warehouse ring formation rules, the warehouse search is performed on the m ordered parts to determine whether the m ordered parts are located in the factory procurement ring of the n warehouse rings, where the factory procurement ring is the warehouse ring determined based on the factory procurement rules; Based on the n warehouse rings, sequential warehouse search is performed on the m ordered parts.

4. The method according to claim 3, characterized in that, The sequential warehouse search for the m ordered parts based on the n warehouse rings includes any one of the following: When a single warehouse has all m ordered parts, the single warehouse shall be given priority as the outbound warehouse corresponding to the m ordered parts. The single warehouse is any warehouse in the n warehouse rings. When at least two warehouses in a single warehouse ring simultaneously have the m ordered parts, the at least two warehouses in the single warehouse ring that simultaneously have the m ordered parts shall be preferentially regarded as the outbound warehouses corresponding to the m ordered parts, and the single warehouse ring is any warehouse ring among the n warehouse rings; When the m ordered parts cannot be simultaneously available in a single warehouse and a single warehouse ring, the n warehouse rings are recursively searched for warehouses in sequence to split the m ordered parts into outbound warehouses in multiple warehouse rings.

5. The method according to claim 1, characterized in that, The method further includes: Retrieve the local repository for each region; Using the local warehouse with the shortest distance to the delivery address as the central warehouse, the local warehouses in each region are configured in a ring according to a preset warehouse ringing rule to obtain the n warehouse rings.

6. The method according to claim 5, characterized in that, The warehouse ring formation rules include a distance priority rule and / or an agent internal priority rule. The distance priority rule is used to indicate that warehouses with shorter distances from the central warehouse in the same warehouse ring are arranged in a priority order. The agent internal priority rule is used to indicate that warehouses belonging to the same agent in the same warehouse ring are arranged in a priority order.

7. The method according to claim 6, characterized in that, The warehouse ring-forming rules include distance priority rules and agent internal priority rules. The process of configuring local warehouses in each region into rings according to the preset warehouse ring-forming rules includes: When the distance priority rule takes precedence over the agent internal priority rule, warehouses located within the same preset distance range are configured into the same warehouse ring, and warehouses belonging to the same agent are prioritized within the same warehouse ring; or, When the internal priority rule of the agent takes precedence over the distance priority rule, warehouses belonging to the same agent are prioritized, and warehouses that do not belong to the same agent are re-arranged according to their distance from the central warehouse.

8. The method according to any one of claims 1-7, characterized in that, The process of allocating parts based on the respective outbound warehouses of the m ordered parts by calling the corresponding application programming API interface includes at least one of the following: When the outbound warehouse is located in the factory procurement loop, the factory procurement API interface is called to purchase and allocate the corresponding spare parts. When the outbound warehouse is located in different warehouse rings, the agent's external API interface is called to allocate the corresponding parts to the outbound warehouse. When the outbound warehouses are located in the same warehouse ring, and the same warehouse ring is not a factory procurement ring, the agent's internal API interface is invoked to allocate the corresponding parts to the outbound warehouses.

9. The method according to any one of claims 1-7, characterized in that, The warehouse ring includes any one of the following: a distributor warehouse ring, a factory warehouse ring, and a factory procurement ring, wherein the distributor warehouse ring is used to instruct the corresponding ordered parts to be shipped from the distributor warehouse, the factory warehouse ring is used to instruct the corresponding ordered parts to be shipped from the factory warehouse, and the factory procurement ring is used to instruct the corresponding ordered parts to be procured from a designated factory.

10. A component adjustment device, characterized in that, include: The acquisition module is used to acquire order information, which includes at least m ordered accessories and their corresponding shipping addresses, where m is a positive integer; The processing module is used to perform warehouse search processing on m ordered parts in the order information based on n pre-configured warehouse rings to obtain the outbound warehouses corresponding to the m ordered parts. The n warehouse rings are arranged and configured according to a preset warehouse ring formation rule, and n is a positive integer. The processing module is also used to call the corresponding application programming API interface to allocate parts based on the respective outbound warehouses of the m ordered parts. Different types of outbound warehouses are configured with different API interfaces.

11. A computer device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the executable instructions to implement the steps of the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 9.