Disclosure of Invention
The invention mainly aims to provide a material management method, a server and a storage medium, which aim to improve the flexibility of material management and further improve the execution efficiency of material dispatch work.
In order to achieve the above object, the present invention provides a material management method comprising the steps of:
receiving basic information of purchase materials and corresponding storage positions, and acquiring a pre-established spatial position structure tree;
filling each child node of the space position structure tree according to the purchase material basic information and the storage position to generate a material structure tree;
receiving a dispatch request, wherein the dispatch request comprises a target place and target dispatch material information;
determining a material dispatching scheme corresponding to the storage position according to the material structure tree, the target place and the target dispatching material information;
outputting the material dispatch scheme.
Optionally, the target dispatch material information includes a target type of a target material to be dispatched and a target number corresponding to the target type, the number of the storage locations is more than one, and the step of determining the material dispatch scheme corresponding to the storage locations according to the material structure tree, the target location and the target dispatch material information includes:
determining material basic information of the child nodes corresponding to the storage positions according to the material structure tree, wherein the material basic information is determined according to the purchase material basic information;
and determining a material dispatching scheme matched with the target type, the target place and the target quantity according to each storage position and the corresponding material basic information, wherein the material dispatching scheme comprises target storage positions needing to dispatch the target materials in the more than one storage positions and the types and the quantities of the materials corresponding to the target storage positions.
Optionally, the basic information of materials includes a material category, a valid period and a material stock, and the step of determining a material allocation scheme matching the target category, the target location and the target number according to each storage location and the corresponding basic information of materials includes:
determining the storage position of the material category matched with the target category as an alternative position;
and determining the material dispatching scheme according to the distance between each alternative position and the target place, the length of the interval duration between the effective period corresponding to each alternative position and the current date and the amount of the material stock corresponding to each alternative position.
Optionally, after the step of outputting the material allocation scheme, the method further includes:
sending the material dispatching scheme to a management terminal;
receiving material verification information fed back by the management terminal, and updating the material structure tree according to the material verification information;
wherein the material verification information includes whether the material dispatch protocol matches the material stored in the corresponding storage location.
Optionally, after the step of outputting the material allocation scheme, the method further includes:
receiving a dispatching completion notice, and determining corresponding material residual information, wherein the material residual information is the related information of the residual material fed back after the material dispatching scheme is completed;
and updating the material structure tree according to the material residual information.
Optionally, the child node stores the material basic information corresponding to the storage location determined according to the purchase material basic information, and after the step of generating the material structure tree, the method further includes:
receiving a material update request, and determining corresponding material update information and a corresponding first child node in the material structure tree;
updating the material basic information of the first child node according to the material updating information; or alternatively, the first and second heat exchangers may be,
receiving a material transfer request, and determining a corresponding second child node and a corresponding third child node in the material structure tree;
and transferring the material basic information of the second child node to the third child node.
Optionally, the child node stores the material basic information corresponding to the storage location determined according to the purchase material basic information, where the material basic information includes a valid period and a material inventory, and after the step of generating the material structure tree by filling each child node of the spatial location structure tree according to the purchase material basic information and the storage location, the method further includes:
acquiring an update period of the material structure tree;
detecting whether the material stock and the effective period of each child node of the material structure tree meet preset conditions according to the updating period;
when the material stock and the effective period of the child node meet the preset conditions, sending material update prompt information corresponding to the child node to a management terminal, wherein the material update prompt information comprises storage positions corresponding to the child node;
the preset condition includes that the stock of the materials is smaller than a preset stock, and/or the time interval between the effective period and the current date is smaller than a preset time interval.
Optionally, the storage location includes warehouse location information, floor information within the warehouse, and/or zone information within the warehouse.
In addition, in order to achieve the above object, the present application also proposes a server including: a memory, a processor, and a material management program stored on the memory and executable on the processor, the material management program configured to implement the steps of the material management method as described in any one of the above.
In addition, in order to achieve the above object, the present application also proposes a storage medium having stored thereon a material management program which, when executed by a processor, implements the steps of the material management method according to any one of the above.
The invention provides a material management method, which comprises the steps of receiving basic information of purchased materials and corresponding storage positions, and acquiring a pre-established spatial position structure tree; filling each child node of the space position structure tree according to the basic information of the purchased materials and the storage position to generate a material structure tree; when receiving the dispatch request, determining and outputting a material dispatch scheme corresponding to the storage position according to the material structure tree and the target place and the target dispatch material information determined according to the dispatch request. Compared with the method for determining the materials stored in the warehouse according to the recorded warehouse information and then determining the material dispatching scheme, the method for dispatching the materials based on the spatial position structure tree can conduct material management on specific storage positions, achieves fine material dispatching work, improves flexibility of material management, and accordingly improves execution efficiency of material dispatching work.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a server. As shown in fig. 1, the server may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a network interface 1003, and a memory 1004. Wherein the communication bus 1002 is used to enable connected communication between these components. The network interface 1003 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1004 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable Non-Volatile Memory (NVM), such as a disk Memory. The memory 1004 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is not limiting and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a material management program may be included in the memory 1004, which is a storage medium. In the server shown in fig. 1, the network interface 1003 is mainly used for data communication with other devices; the processor 1001 may be used to call a material management program stored in the memory 1004 and perform the relevant step operations of the material management method in the following embodiments.
The embodiment of the invention also provides a material management method which is applied to the server.
Referring to fig. 2, an embodiment of a material management method according to the present application is provided. In this embodiment, the material management method includes:
step S10, receiving basic information of purchased goods and materials and corresponding storage positions, and acquiring a pre-established spatial position structure tree;
the basic information of purchasing materials is related information when a worker purchases materials, and can be used for tracing the corresponding material purchasing situation, and the basic information of purchasing materials can comprise information such as material names, purchasing quantity, material manufacturers, purchasing ways, purchasing responsible persons and the like.
The storage location is a location where the material is stored after the material is purchased, and the worker can confirm the purchased material according to the storage location for periodic inspection or dispatch of the material.
The space position structure tree is a tree structure constructed for managing the material storage positions, the storage positions are mapped through the child nodes in the tree structure tree, and the child nodes have a tree-like father-child hierarchical relationship so as to correspond to the membership of the actual storage positions. The space position structure tree can be added, modified or deleted with child nodes according to actual needs so as to adapt to the actual storage position needs. For example, if there are three partitions, i.e., the first partition, the second partition, and the third partition, a child node may be newly added in the spatial location structure tree to correspond to the first partition, and three child nodes are newly added with the child node as a parent node to correspond to the three partitions in the first partition.
Optionally, after the staff in charge of purchasing the materials purchases the materials and stores the materials to the storage position, the basic information of purchasing the materials and the storage position of the materials purchased for the time are recorded, and the server receives the basic information of purchasing the materials and the storage position recorded by the staff and acquires the spatial position structure tree so as to prepare to fuse the recorded information with the spatial position structure tree.
Step S20, filling each child node of the space position structure tree according to the purchase material basic information and the storage position to generate a material structure tree;
optionally, after receiving the basic information of purchasing materials and the storage position, the server determines the mapping relation between the sub-nodes in the spatial position structure tree and the storage position. After the mapping relation is determined, the corresponding purchase material basic information is stored in the child node, and the child node in which the material information is stored and the storage position is mapped, namely the child node of the material structure tree, is generated.
In this embodiment, the spatial location structure tree corresponds to a structure tree in which basic information of purchasing materials is not entered, the material structure tree corresponds to a structure tree in which material information is stored, and the spatial location structure tree and the material structure tree are not independent two structure trees but are managed together based on the same structure tree.
Step S30, receiving a dispatch request, wherein the dispatch request comprises a target place and target dispatch material information;
the dispatch request may be initiated by an externally initiated request to invoke a property in the property structure tree, such as invoking the property for relief and rescue requirements. Further, the dispatch request content includes a target location and target dispatch material information, where the target location is a location to which the material is target to be dispatched, and the target dispatch material information is specific information of the material required to be invoked by the dispatch request, for example, a type and a quantity of the material.
In addition, the dispatch request may also include information describing the specific situation of the dispatch request, so that the staff member can confirm the specific situation of the dispatch request-related event and make manual advice or assistance.
Step S40, determining a material dispatching scheme corresponding to the storage position according to the material structure tree, the target place and the target dispatching material information; outputting the material dispatch scheme.
The server determines an appropriate material dispatch plan based on the material structure tree (i.e., the actually stored material) and the target location and target dispatch material information (i.e., the material required for dispatch and the location to which dispatch is to be performed), and outputs the material dispatch plan, according to which a worker can determine how to perform the material dispatch job to satisfy the dispatch request.
The embodiment of the invention provides a material management method, which comprises the steps of receiving basic information of purchased materials and corresponding storage positions, and acquiring a pre-established spatial position structure tree; filling each child node of the space position structure tree according to the basic information of the purchased materials and the storage position to generate a material structure tree; when receiving the dispatch request, determining and outputting a material dispatch scheme corresponding to the storage position according to the material structure tree and the target place and the target dispatch material information determined according to the dispatch request. Compared with the method for determining the materials stored in the warehouse according to the recorded warehouse information and then determining the material dispatching scheme, the method for dispatching the materials based on the spatial position structure tree can conduct material management on specific storage positions, achieves fine material dispatching work, improves flexibility of material management, and accordingly improves execution efficiency of material dispatching work.
Further, in this embodiment, the storage location includes warehouse location information, floor information within the warehouse, and/or zone information within the warehouse.
The warehouse location information, the floor information within the warehouse, and/or the zone information within the warehouse are all information used by the staff to determine the actual storage location. The warehouse location information is latitude and longitude location information of the warehouse, and in other embodiments, may be information that can determine the warehouse location, such as a street address of the warehouse.
In addition, depending on the field requirements of the material storage location, and the different circumstances of each warehouse or storage location, the storage location may include other information that may be used to locate the storage location information, such as warehouse name, warehouse identification code, storage space number within the warehouse, house number, etc.
Optionally, the storage location of the batch of material includes a combination of warehouse location information, floor information within the warehouse, zone information within the warehouse, and other information available for positioning. By way of example, the storage location for asset A may be the 3-floor B area of the warehouse corresponding to the east longitude 113 deg. 27 '30', north latitude 37 deg. 26 '22'.
Through refining the information of the storage position, the server can dispatch the materials at specific positions according to the storage position, and staff can directly determine the specific positions of the materials through the storage position without determining the position of the warehouse first and then acquiring the record of the storage content of the warehouse, so that the flexibility of material management is improved, and the execution efficiency of material dispatch work is improved.
Further, based on the above embodiment, another embodiment of the material management method of the present application is provided. In this embodiment, the target dispatch material information includes a target type of a target material to be dispatched and a target number corresponding to the target type, and the number of storage positions is more than one. Based on this, referring to fig. 3, the step of determining a material dispatch plan corresponding to the storage location according to the material structure tree, the target location, and the target dispatch material information includes:
step S41, determining material basic information of the child nodes corresponding to the storage positions according to the material structure tree, wherein the material basic information is determined according to the purchase material basic information;
and step S42, determining a material dispatch scheme matched with the target category, the target place and the target quantity according to each storage position and the corresponding material basic information, wherein the material dispatch scheme comprises target storage positions needing to dispatch the target material in the more than one storage positions and categories and quantities of the materials to be dispatched corresponding to the target storage positions.
The target type and the target quantity are the type and the quantity of target materials required to be called corresponding to the dispatch request.
Optionally, the server may determine the requirement of the corresponding dispatch request according to the target type of the target material and the target number corresponding to the target type. Considering that the target number of materials stored in a single storage location may not be met for dispatch, it is contemplated that the material dispatch plan may be determined with more than one storage location, and thus the material dispatch plan may be determined based on the material conditions stored in more than one storage location.
The material basic information is material information stored in a storage location for recording the corresponding child node, the material basic information is determined based on the purchase material basic information, and the material basic information includes, for example, material stock determined based on the purchase quantity of the purchase material basic information.
Optionally, the server can determine the current material situation stored in the corresponding storage position through the material basic information of the child nodes of the material structure tree, and then determine a material dispatching scheme matching the target location, the target type and the target number according to the current material situation stored in the storage position. The staff member can determine the storage position, namely the target storage position, of the more than one storage positions, to which the materials need to be dispatched, and the type and the quantity of the materials of each storage position need to be dispatched through the material dispatch scheme.
In other embodiments, the material structure tree may include a preset material allocation scheme, the preset material allocation scheme is pre-recorded by a worker referring to a commonly used allocation material type and material quantity, and the server may match the preset material allocation scheme meeting the requirement according to the target location and the target allocation material information.
According to the material basic information of the sub-nodes in the material structure tree, the material conditions stored in the corresponding storage positions are determined, and the material dispatching scheme meeting the target site and the target dispatching material information is matched, so that dispatching can be carried out according to the specific storage conditions of the materials, the granularity of material management and dispatching is reduced, and the flexibility of material dispatching is improved.
Further, in this embodiment, the basic information of materials includes a material category, a term of validity, and a material stock, and the step of determining a material allocation scheme matching the material category, the target location, and the target number according to each of the storage locations and the corresponding basic information of materials includes:
step S420, determining the storage position of the material category matched with the target category as an alternative position;
step S421, determining the material dispatching scheme according to the distance between each alternative position and the target place, the length of the interval duration between the effective period corresponding to each alternative position and the current date, and the amount of the material stock corresponding to each alternative position.
The effective period is the effective quality guarantee period of the corresponding materials, the material stock is the quantity of the materials stored in the corresponding storage position, and the material type, the effective period and the material stock are determined based on the basic information of purchasing materials.
Optionally, the server selects a child node matching the target category from the target category structure tree according to the target category of the target category to be dispatched, namely, determines a storage position storing the material corresponding to the target category, and the determined storage position is an alternative position. And determining the effective period and the material inventory corresponding to the alternative positions, and determining a proper material allocation scheme according to the distance between the alternative positions and the target site, the length of the interval duration between the effective period and the current date corresponding to each alternative position and three indexes of the corresponding material inventory.
Optionally, in this embodiment, the first sorting is performed according to the distance between the candidate location and the target location, where the sorting order is from near to far; performing a second sorting according to the length of the interval between the corresponding effective period and the current date aiming at the result of the first sorting, wherein the sorting order is from short to long; thirdly ordering according to the corresponding material stock aiming at the result of the second ordering, wherein the ordering order is from more to less; obtaining a third sorting result, determining an alternative position of a first sorting position as a target storage position for dispatching materials, determining whether the material stock of the alternative position can meet the target quantity, if not, adding the alternative position of a second sorting position as the target storage position, judging whether the total material stock of the target storage positions at the moment can meet the target quantity again, and if not, adding the alternative position of a next sorting position as the target storage position until the target quantity is met; a material dispatch plan is generated by which a worker can determine which materials of which storage locations need to be dispatched to how much inventory is to be delivered to the target site.
In other embodiments, the basic information of the materials may further include brands of materials, and the materials are ranked for the fourth time according to brands of materials, so as to match with materials corresponding to proper brands of materials preferentially; or the order between the three orders is adjusted, for example, the first order is performed by the duration of the interval between the effective period and the current date.
The sub-nodes are ordered according to the three indexes of distance, effective period and inventory, so that materials which can be matched with the dispatching request can be screened out and are preferred, a material dispatching scheme considering quality and efficiency is determined, and the effect of material dispatching work is improved.
Further, based on the above embodiment, a further embodiment of the material management method of the present application is provided. In this embodiment, referring to fig. 4, after the step of outputting the material allocation scheme, the method further includes:
step S43, the material dispatch scheme is sent to a management terminal;
step S44, receiving the material verification information fed back by the management terminal, and updating the material structure tree according to the material verification information;
step S45, wherein the material verification information includes whether the material allocation scheme matches the material stored in the corresponding storage location.
The material verification information is information fed back by whether the material stored in the place and the content in the material dispatching scheme are matched after the worker receives the material dispatching scheme through the management terminal and reaches the corresponding storage position core.
Optionally, when the staff verifies that the material stored in the storage location is matched with the content in the material allocation scheme, the management terminal may send corresponding material verification information indicating the matching to the server, and continue to perform the material allocation according to the material allocation scheme; when the staff verifies that the materials stored in the current place of the storage position are not matched with the contents in the material dispatching scheme, relevant information can be input according to the difference of the materials, corresponding material verification information indicating the mismatch can be determined or generated and sent to the server, and the server can update the material basic information of the corresponding child node to be correct information according to the material verification information.
In other embodiments, the basic information of the material may include time information of whether the corresponding child node is most recently verified to be matched with the material, and the time information is added to a reference element of the material allocation scheme to improve accuracy of the material allocation scheme.
By receiving the material verification information, whether the material stored in the storage location site is matched with the generated material dispatching scheme or not can be compared, so that whether the material dispatching scheme is accurate or not is verified, and the reliability of the material dispatching scheme is improved.
Further, in the present embodiment, after step S40, the method further includes:
step S50, receiving a dispatching completion notice and determining corresponding material residual information, wherein the material residual information is the related information of the residual material fed back after the material dispatching scheme is completed;
and step S51, updating the material structure tree according to the material residual information.
Optionally, after the material dispatching work corresponding to the dispatching request is completed, the staff verifies the use condition of the dispatched material, when the material remains, the remaining material can be recovered and stored, material remaining information is generated according to the condition of the remaining material, and the material remaining information is sent to the server through the management terminal. The server receives the residual information of the materials, updates the material structure tree according to the information, confirms that the related materials in the corresponding material dispatching scheme are consumed or used, and updates the child nodes according to the storage condition of the residual materials so as to enable the residual materials to pass through the material structure tree again for recording.
In other embodiments, the remaining materials may be added back to the material structure tree as new materials after statistical sorting when they are recovered.
The surplus materials requested by dispatch are recovered, the surplus materials are stored again and correspondingly updated to the material structure tree, so that the effective utilization of the materials can be ensured, and the utilization efficiency of the materials is improved.
Further, based on the above embodiment, still another embodiment of the material management method of the present application is provided. In this embodiment, referring to fig. 5, after the step of generating the material structure tree by filling each child node of the spatial location structure tree according to the purchase material basic information and the storage location, the method further includes:
step S21, receiving a material update request, and determining corresponding material update information and a corresponding first child node in the material structure tree;
step S22, the material basic information of the first child node is updated according to the material updating information;
the material update request is a request sent to the server through the management terminal after the worker updates the material at the storage position, and in addition, the server can determine the specific content of the material updated by the worker according to the material update information, for example, the material update request is used for supplementing the stock, and the material with the adjacent effective period is replaced with another batch of material, and the like.
Optionally, after the staff updates the material at the storage location, the corresponding information is recorded according to the updated content, the management terminal determines or generates the corresponding material update information and sends a material update request to the server, and after the server receives the material update request, the server determines the first sub-node (i.e. the storage location corresponding to the updated material) and the material update information, updates the material basic information in the first sub-node according to the material update information, and re-matches the material basic information of the first sub-node with the actual condition of the corresponding storage location.
Step S23, or, receiving a material transfer request, and determining a corresponding second child node and a corresponding third child node in the material structure tree;
and step S24, transferring the material basic information of the second child node to the third child node.
The material transfer request is a request sent to the server by the management terminal after a worker transfers the material of the storage position, and the material is transferred from the first storage position to the second storage position by way of example, the second child node is a child node corresponding to the storage position stored before the material transfer, and the third child node is a child node corresponding to the storage position stored after the material transfer.
In other embodiments, if the changed storage location does not map a child node, and the membership of the changed storage location is the same as the original storage location and is in the same level, the mapping relationship between the second child node and the storage location may be modified, so that the storage location corresponding to the second child node is changed to the changed storage location, and a third child node is generated.
Optionally, after the staff changes the storage position of the material, corresponding information is input according to the storage positions before and after the change, the management terminal determines or generates and sends a material transfer request to the server, the server determines the second sub-node and the third sub-node after receiving the material transfer request, and transfers the material basic information in the second sub-node to the third sub-node, so that the sub-node position and the actual storage position of the material in the material structure tree are re-corresponding.
By receiving the material update request and the material transfer request, the server can flexibly adjust the material basic information in the material structure tree according to the actual condition of the material so as to match the actual condition of the site of the storage position, thereby improving the flexibility of material management.
Further, in this embodiment, after the step of generating the material structure tree, filling each child node of the spatial location structure tree according to the purchase material basic information and the storage location, the method further includes:
step S25, obtaining an update period of the material structure tree;
step S26, detecting whether the material stock and the effective period of each child node of the material structure tree meet preset conditions according to the updating period;
step S27, when the material stock and the effective period of the child node meet the preset conditions, sending material update prompt information corresponding to the child node to a management terminal, wherein the material update prompt information comprises storage positions corresponding to the child node;
the preset condition includes that the stock of the materials is smaller than a preset stock, and/or the time interval between the effective period and the current date is smaller than a preset time interval.
The update period is a period time of periodic maintenance of the material structure tree, which is set by a worker when the material structure tree is generated, for example, for one month.
Optionally, the server checks the basic information of each sub-node in the material structure tree every cycle time of the update cycle, wherein, it checks whether the material stock of the sub-node is smaller than a preset stock, and/or checks that the interval between the effective period and the current date is smaller than a preset time, so as to determine whether the material in the corresponding storage position has a condition that the effective period is close or the stock is insufficient and cannot meet the possible material dispatching work. When it is determined that there is a child node meeting the preset condition, sending the material update prompt information of the child node to the management terminal so as to inform a worker of receiving the material update prompt information, and updating materials which do not meet the preset condition according to the material update prompt information, for example, replacing a new batch of materials with a longer effective period or supplementing inventory, so as to cope with the material dispatching work which may occur.
In other embodiments, different update periods may be set for different kinds of materials according to the kinds of materials, so as to consider different situations that part of materials are easy to store or difficult to store, thereby saving resources for updating or maintaining the material structure tree.
By detecting whether the materials of each child node of the material structure tree meet the preset conditions according to the update period, the quality of the stored materials can be periodically detected, and the materials with the valid period are prevented from being dispatched or insufficient stock is needed to be dispatched; meanwhile, the server initiates detection to automatically early warn the staff, so that the staff does not need to spend manpower for checking in real time and in real time, and the material management efficiency is improved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium is stored with a material management program, and the material management program realizes the relevant steps of any embodiment of the material management method when being executed by a processor.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.