Material coding creation method, device, equipment and storage medium

By analyzing existing material encoding and information, building coding rules and automatically creating material encoding, the problem of inefficient material encoding creation in the existing technology is solved, and efficient automatic coding creation is achieved.

CN119783631APending Publication Date: 2025-04-08TIANJIN ZHONGXIN ZHIGUAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411928718.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In the prior art, the creation process of material encoding relies on manual operations, resulting in inefficient encoding and consuming a lot of time and manpower.

Method used

By analyzing existing material encoding and information, coding rules are constructed, and the encoding of the material to be encoded is automatically created using these rules.

Benefits of technology

It improves the efficiency of material coding, reduces the time and labor cost of manual operation, and realizes an automated coding creation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119783631A_ABST
    Figure CN119783631A_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a material coding creation method, device, equipment and storage medium. The method includes: analyzing the stored material coding and the corresponding material information, and constructing the coding rules followed by the stored material coding according to the analysis results; obtaining the material information of the material to be coded, and creating the material coding of the material to be coded according to the material information and the coding rules. Based on this, the embodiment can automatically generate the coding rules directly according to the stored material coding, and automatically create the material coding according to the coding rules, which is more efficient than manual coding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of material management technology, and in particular, to a material coding creation method, device, equipment and storage medium. Background Art

[0002] In order to manage materials more standardizedly, materials in use are usually coded. Each material has a unique code in the unit. In subsequent replacement, repair, maintenance and other scenarios, the code can be used to identify the material to improve work efficiency.

[0003] At present, material management personnel usually manually encode new materials according to pre-set coding rules. This process consumes a lot of time and manpower and has low coding efficiency. Summary of the invention

[0004] The embodiments of the present application provide a material coding creation method, device, equipment and storage medium to improve the efficiency of material coding.

[0005] In a first aspect, an embodiment of the present application provides a material coding creation method, the method comprising:

[0006] Analyze the existing material codes and corresponding material information, and build the coding rules followed by the existing material codes based on the analysis results;

[0007] Obtain the material information of the material to be encoded, and create the material code of the material to be encoded according to the material information and encoding rules.

[0008] In a second aspect, an embodiment of the present application provides a material code creation device, the device comprising:

[0009] A rule building module is used to analyze the existing material codes and the corresponding material information, and to build the coding rules followed by the existing material codes based on the analysis results;

[0010] The coding creation module is used to obtain the material information of the material to be coded, and create the material code of the material to be coded according to the material information and coding rules.

[0011] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:

[0012] one or more processors;

[0013] a storage device for storing one or more programs,

[0014] When one or more programs are executed by one or more processors, the one or more processors implement the material coding creation method provided in any embodiment of the present application.

[0015] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, a material coding creation method as provided in any embodiment of the present application is implemented.

[0016] The technical solution of the embodiment of the present application analyzes the stored material codes and the corresponding material information, and constructs the coding rules followed by the stored material codes according to the analysis results; obtains the material information of the material to be coded, and creates the material code of the material to be coded according to the material information and the coding rules. Based on this, the embodiment can automatically generate the coding rules directly according to the stored material codes, and automatically create the material codes according to the coding rules, which is more efficient than manual coding. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of the process of creating a material code according to the first embodiment of the present application;

[0018] Figure 2 A schematic diagram of the structure of a material code creation device provided in Example 2 of the present application;

[0019] Figure 3 A schematic diagram of the structure of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION

[0020] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0021] Embodiment 1

[0022] Figure 1 A schematic diagram of a process for creating a material code according to the first embodiment of the present application is shown in FIG. Figure 1 As shown, the material code creation method provided in this embodiment can be applied to a material code creation platform mounted on a device with data processing capabilities such as a computer, and can be used in conjunction with some application software to achieve a better experience. Specifically, the method may include the following steps:

[0023] Step 101: Analyze the stored material codes and corresponding material information, and construct the coding rules followed by the stored material codes according to the analysis results.

[0024] In this step, the stored material codes refer to the material codes that have been stored in the current system by people according to experience and habits. Since different platforms have different material coding habits for their own materials, in order to achieve both the existing coding habits and the inefficiency caused by pure manual coding, this step can create coding rules.

[0025] Specifically, the material information may include the category information of the material. In this step, the stored material code may be analyzed bit by bit to obtain multiple code segments contained in the material code; and then the coding rules followed by the stored material code are constructed according to the code segments and the category information.

[0026] When the coding segments are obtained, for the material codes that have formed the same coding segments, when any coding position is analyzed, the coding position and the pending coding position that has not formed a coding segment before the coding position are determined as the pending coding segments; all the pending coding segments are compared, and if they are the same, the analysis of the next coding position is carried out; if they are different, the coding segment that has not formed before the coding position is determined as a coding segment, and the analysis of the next coding position is carried out until all coding positions are analyzed.

[0027] Among them, the material codes that have formed the same coding segments refer to the material codes that have formed the same coding segments. If the coding segments have not been formed, all material codes are regarded as having formed the same coding. It should be noted that each coding segment has a certain meaning, which is usually related to the category.

[0028] For example, some materials are coded as GA00112N03, GA00122N02, GB00124F03, GB00215F01. When manually coding, GA and HB are usually different categories in a category level, the next three digits are a category level, the next two digits are a category level, the next letter is a category level, and the last two digits are a category level.

[0029] These are some empirical habits in manual coding. This step is to identify these coding segments and the meaning of each coding segment.

[0030] Only material codes with the same coding segments are meaningful to be put together for further subdivision. For example, GA00112N03 and GA00122N02 mentioned above have formed the coding segment GA, so it is meaningful to continue to subdivide these two material codes. Material codes starting with GB do not need to be subdivided together with the material codes of GA, and GB itself can perform subsequent subdivisions.

[0031] That is to say, this step will aggregate the material codes with the same formed coding segments to form multiple sets. The formed coding segments in each set are the same, and the subsequent steps are carried out based on this set.

[0032] For the aforementioned GA00112N03 and GA00122N02, for example, after analyzing the sixth position, the coding segment GA has been formed. At this time, 0011 and 0012 can be used as pending coding segments. If these two coding segments are different, "001" can be determined as a coding segment. After subsequent steps, all coding segments in the material code can be obtained, namely two letters, three digits, two digits, one letter, and two digits.

[0033] When determining the meaning information of the coding segment, the meaning information of each coding segment can be determined according to the coding segment and the category hierarchy in the category information, and the structural information of the coding segment and the corresponding meaning information can be determined as the coding rules followed by the existing material coding.

[0034] Specifically, the coding segments can be analyzed one by one. The two letters can correspond to the first category level, and the subsequent ones can correspond to different category levels under the first category level. By branching out step by step, the meaning information of each coding segment can be obtained.

[0035] In a specific example, the materials of GA all belong to the chassis, and the materials of GB all belong to the frame, so the meaning of the code segment corresponding to this code segment is the vehicle structure.

[0036] Step 102: Obtain material information of the material to be encoded, and create a material code for the material to be encoded according to the material information and encoding rules.

[0037] In this step, when a table pasting operation is detected, the copied table information is obtained from the system clipboard; the fields in the table information are identified to obtain material information of multiple materials to be encoded.

[0038] It should be noted that, in this embodiment, the table storing the material information can be directly copied and pasted to complete the coding of the material to be coded in the table. Specifically, the copying and pasting can be implemented using a system-level clipboard.

[0039] When identifying material information, the table structure in the table information can be analyzed. If a header exists, the table information is identified according to the field content in the header to obtain material information of multiple materials to be encoded; if no header exists, the table information is input into a pre-trained field recognition model, and the material information of multiple materials to be encoded output by the field recognition model is obtained.

[0040] Usually, the content in the header will explain what specific information is contained in the fields of each cell in the table. Therefore, the fields in the table can be directly identified based on the content in the header to obtain the material information contained in the table for each material to be coded.

[0041] In addition, when there is no header, a pre-trained field recognition model can be used. Usually, the fields of different cells have certain characteristics. Using this feature and the neural network model, it is possible to well identify what information each field contains about the material to be encoded.

[0042] The material information includes the material category information and the material name. After the material information is obtained, for any material to be coded, multiple coding segments are generated according to the category information and the coding rules; the coding segments are combined according to the coding segment sequence in the coding rules to obtain the material code of the material to be coded.

[0043] It should be noted that, since the category information is obtained, each coding segment can be created for the coded material according to the category level in the category information. For example, if the first category level is chassis, the corresponding coding segment is GA.

[0044] In this embodiment, the stored material codes and the corresponding material information are analyzed, and the coding rules followed by the stored material codes are constructed according to the analysis results; the material information of the material to be coded is obtained, and the material code of the material to be coded is created according to the material information and the coding rules. Based on this, this embodiment can automatically generate coding rules directly according to the stored material codes, and automatically create material codes according to the coding rules, which is more efficient than manual coding.

[0045] Embodiment 2

[0046] Figure 2 This is a schematic diagram of the structure of a material code creation device provided in the second embodiment of the present application. The material code creation device provided in the embodiment of the present application can execute the material code creation method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as Figure 2 As shown, the material coding creation device specifically includes: a rule building module 201 and a coding creation module 202.

[0047] Among them, the rule building module is used to analyze the existing material codes and corresponding material information, and build the coding rules followed by the existing material codes according to the analysis results;

[0048] The coding creation module is used to obtain the material information of the material to be coded, and create the material code of the material to be coded according to the material information and coding rules.

[0049] Furthermore, the material information includes material category information;

[0050] The rule building module is specifically used to:

[0051] Analyze the stored material codes bit by bit to obtain multiple code segments contained in the material codes;

[0052] Construct the coding rules followed by the existing material coding based on the coding segment and category information.

[0053] Furthermore, the rule building module is specifically used for:

[0054] For material codes with the same coding segments, when any coding position is analyzed, the coding position and the undetermined coding position before the coding position that has not formed a coding segment are determined as the undetermined coding segment;

[0055] All pending coding segments are compared. If they are the same, the next coding position is analyzed. If they are different, the unformed coding segment before the coding position is determined as a coding segment, and the next coding position is analyzed until all coding positions are analyzed.

[0056] Furthermore, the rule building module is specifically used for:

[0057] According to the coding segment and the category level in the category information, the meaning information of each coding segment is determined, and the structural information of the coding segment and the corresponding meaning information are determined as the coding rules followed by the existing material coding.

[0058] Furthermore, the encoding creation module is specifically used for:

[0059] When a table paste operation is detected, the copied table information is obtained from the system clipboard;

[0060] The fields in the table information are identified to obtain material information of multiple materials to be encoded.

[0061] Furthermore, the encoding creation module is specifically used for:

[0062] Analyze the table structure in the table information. If a table header exists, identify the table information according to the field content in the table header to obtain material information of multiple materials to be encoded.

[0063] If the table header does not exist, the table information is input into a pre-trained field recognition model, and the material information of multiple materials to be encoded output by the field recognition model is obtained.

[0064] Furthermore, the material information includes the material category information and the material name;

[0065] The encoding creation module is specifically used for:

[0066] For any material to be coded, multiple coding segments are generated according to the category information and coding rules;

[0067] Combine the coding segments according to the coding segment sequence in the coding rule to obtain the material code of the material to be coded.

[0068] Embodiment 3

[0069] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application is shown in FIG. Figure 3 As shown, the electronic device includes a processor 310, a memory 320, an input device 330 and an output device 340; the number of the processor 310 in the electronic device can be one or more. Figure 3 A processor 310 is taken as an example; the processor 310, the memory 320, the input device 330 and the output device 340 in the electronic device can be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0070] The memory 320 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the material coding creation method in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 320, that is, to implement the above-mentioned material coding creation method:

[0071] Analyze the existing material codes and corresponding material information, and build the coding rules followed by the existing material codes based on the analysis results;

[0072] Obtain the material information of the material to be encoded, and create the material code of the material to be encoded according to the material information and encoding rules.

[0073] Furthermore, the material information includes material category information;

[0074] Analyze the stored material codes and corresponding material information, and build the coding rules followed by the stored material codes based on the analysis results, including:

[0075] Analyze the stored material codes bit by bit to obtain multiple code segments contained in the material codes;

[0076] Construct the coding rules followed by the existing material coding based on the coding segment and category information.

[0077] Further analyze the stored material codes bit by bit to obtain multiple code segments contained in the material codes, including:

[0078] For material codes with the same coding segments, when any coding position is analyzed, the coding position and the undetermined coding position before the coding position that has not formed a coding segment are determined as the undetermined coding segment;

[0079] All pending coding segments are compared. If they are the same, the next coding position is analyzed. If they are different, the unformed coding segment before the coding position is determined as a coding segment, and the next coding position is analyzed until all coding positions are analyzed.

[0080] Furthermore, the coding rules followed by the existing material coding are constructed according to the coding segment and category information, including:

[0081] According to the coding segment and the category level in the category information, the meaning information of each coding segment is determined, and the structural information of the coding segment and the corresponding meaning information are determined as the coding rules followed by the existing material coding.

[0082] Furthermore, the material information of the material to be encoded is obtained, including:

[0083] When a table paste operation is detected, the copied table information is obtained from the system clipboard;

[0084] The fields in the table information are identified to obtain material information of multiple materials to be encoded.

[0085] Furthermore, the fields in the table information are identified to obtain material information of multiple materials to be encoded, including:

[0086] Analyze the table structure in the table information. If a table header exists, identify the table information according to the field content in the table header to obtain material information of multiple materials to be encoded.

[0087] If the table header does not exist, the table information is input into a pre-trained field recognition model, and the material information of multiple materials to be encoded output by the field recognition model is obtained.

[0088] Furthermore, the material information includes the material category information and the material name;

[0089] Create material codes for materials to be coded based on material information and coding rules, including:

[0090] For any material to be coded, multiple coding segments are generated according to the category information and coding rules;

[0091] Combine the coding segments according to the coding segment sequence in the coding rule to obtain the material code of the material to be coded.

[0092] The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0093] Embodiment 4

[0094] Embodiment 4 of the present application further provides a storage medium containing computer executable instructions, which, when executed by a computer processor, is used to execute a material coding creation method, the method comprising:

[0095] Analyze the existing material codes and corresponding material information, and build the coding rules followed by the existing material codes based on the analysis results;

[0096] Obtain the material information of the material to be encoded, and create the material code of the material to be encoded according to the material information and encoding rules.

[0097] Furthermore, the material information includes material category information;

[0098] Analyze the stored material codes and corresponding material information, and build the coding rules followed by the stored material codes based on the analysis results, including:

[0099] Analyze the stored material codes bit by bit to obtain multiple code segments contained in the material codes;

[0100] Construct the coding rules followed by the existing material coding based on the coding segment and category information.

[0101] Further analyze the stored material codes bit by bit to obtain multiple code segments contained in the material codes, including:

[0102] For material codes with the same coding segments, when any coding position is analyzed, the coding position and the undetermined coding position before the coding position that has not formed a coding segment are determined as the undetermined coding segment;

[0103] All pending coding segments are compared. If they are the same, the next coding position is analyzed. If they are different, the unformed coding segment before the coding position is determined as a coding segment, and the next coding position is analyzed until all coding positions are analyzed.

[0104] Furthermore, the coding rules followed by the existing material coding are constructed according to the coding segment and category information, including:

[0105] According to the coding segment and the category level in the category information, the meaning information of each coding segment is determined, and the structural information of the coding segment and the corresponding meaning information are determined as the coding rules followed by the existing material coding.

[0106] Furthermore, the material information of the material to be encoded is obtained, including:

[0107] When a table paste operation is detected, the copied table information is obtained from the system clipboard;

[0108] The fields in the table information are identified to obtain material information of multiple materials to be encoded.

[0109] Furthermore, the fields in the table information are identified to obtain material information of multiple materials to be encoded, including:

[0110] Analyze the table structure in the table information. If a table header exists, identify the table information according to the field content in the table header to obtain material information of multiple materials to be encoded.

[0111] If the table header does not exist, the table information is input into a pre-trained field recognition model, and the material information of multiple materials to be encoded output by the field recognition model is obtained.

[0112] Furthermore, the material information includes the material category information and the material name;

[0113] Create material codes for materials to be coded based on material information and coding rules, including:

[0114] For any material to be coded, multiple coding segments are generated according to the category information and coding rules;

[0115] Combine the coding segments according to the coding segment sequence in the coding rule to obtain the material code of the material to be coded.

[0116] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the above method operations, can also execute related operations in the material coding creation method provided in any embodiment of the present application.

[0117] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0118] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0119] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A material coding creation method, characterized in that: The method comprises: Analyze the stored material codes and corresponding material information, and construct the coding rules followed by the stored material codes according to the analysis results; The material information of the material to be encoded is obtained, and the material code of the material to be encoded is created according to the material information and the encoding rule.

2. The method according to claim 1, characterized in that The material information includes material category information; The analyzing of the stored material codes and the corresponding material information, and constructing the coding rules followed by the stored material codes according to the analysis results, includes: Analyze the stored material code bit by bit to obtain multiple code segments contained in the material code; The coding rule followed by the existing material coding is constructed according to the coding segment and the category information.

3. The method according to claim 2, characterized in that The stored material code is analyzed bit by bit to obtain multiple code segments contained in the material code, including: For material codes that have formed the same coding segments, when any coding position is analyzed, the coding position and the undetermined coding position before the coding position that has not formed a coding segment are determined as the undetermined coding segment; All pending coding segments are compared, and if they are the same, the next coding position is analyzed; if they are different, the unformed coding segment before the coding position is determined as a coding segment, and the next coding position is analyzed until all coding positions are analyzed.

4. The method according to claim 2, characterized in that: The coding rule followed by constructing the stored material coding according to the coding segment and the category information includes: According to the coding segment and the category level in the category information, the meaning information of each coding segment is determined, and the structural information of the coding segment and the corresponding meaning information are determined as the coding rules followed by the existing material coding.

5. The method according to claim 1, characterized in that The obtaining of material information of the material to be encoded includes: When a table paste operation is detected, the copied table information is obtained from the system clipboard; The fields in the table information are identified to obtain material information of multiple materials to be encoded.

6. The method according to claim 5, characterized in that The fields in the table information are identified to obtain material information of multiple materials to be encoded, including: Analyze the table structure in the table information, and if a table header exists, identify the table information according to the field content in the table header to obtain material information of multiple materials to be encoded; If the table header does not exist, the table information is input into a pre-trained field recognition model, and the material information of multiple materials to be encoded output by the field recognition model is obtained.

7. The method according to claim 1, characterized in that The material information includes material category information and material name; The step of creating the material code of the material to be coded according to the material information and the coding rule includes: For any material to be coded, multiple coding segments are generated according to the category information and coding rules; The coding segments are combined according to the coding segment sequence in the coding rule to obtain the material code of the material to be coded.

8. A material coding creation device, characterized in that: The device comprises: A rule building module is used to analyze the stored material codes and the corresponding material information, and build the coding rules followed by the stored material codes according to the analysis results; The coding creation module is used to obtain material information of the material to be coded, and create the material code of the material to be coded according to the material information and the coding rule.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the material coding creation method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the material coding creation method as described in any one of claims 1-7 is implemented.