Method, device, computer equipment and storage medium for generating bill of materials
By automatically extracting the cylinder cloth information of the fabric dyeing task and generating a bill of materials, it solves the problem of information transmission errors caused by multi-system operations in traditional methods, and improves the production efficiency and accuracy of fabric dyeing.
Patent Information
- Application Number
- CN202111092865.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-17
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2041-09-17
AI Technical Summary
The traditional method of generating bill of materials requires multiple systems to operate, resulting in errors in the transmission of information in the dyeing process, wasting manpower, material resources and financial resources, and reducing fabric dyeing production efficiency.
By extracting and processing the information of the cylinder cloth information of the fabric dyeing task, obtaining dyeing process information, generating proofing tasks, obtaining color adjustment information, and generating a bill of material based on this information, reducing frequent information interactions between the server and the terminal, and automatically generating materials List.
Improve the efficiency of bill of material generation, reduce manual operations, improve the processing efficiency of fabric dyeing tasks, and reduce the error rate.
Smart Images

Figure CN113793124B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of fabric dyeing production, and in particular to a method, device, computer equipment and storage medium for generating a bill of materials. Background Art
[0002] With the development of computer technology, some enterprises have begun to use computer technology to carry out the management of fabric dyeing production. In fabric dyeing production, the bill of materials is the formula for fabric dyeing production. The various materials used in the fabric dyeing production process need to be clearly identified in the bill of materials. In addition, the bill of materials is also an important document in the fabric dyeing production process. The efficiency of the bill of materials generation will affect the efficiency of the enterprise in fabric dyeing production.
[0003] The traditional method of generating a bill of materials requires the use of multiple systems, and a large number of people are required to operate the system from process formulation to the generation of the bill of materials. Since each system is independent of each other, errors may occur when the dyeing process information is transmitted. Therefore, the method of relying on manual operation to generate a bill of materials will largely waste manpower, material resources and financial resources, resulting in low production and work efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a bill of materials generation method, device, computer equipment and storage medium that can improve the processing efficiency of fabric dyeing tasks in response to the above technical problems.
[0005] A method for generating a bill of materials, the method comprising:
[0006] Performing information extraction processing on the cylinder cloth information of the fabric dyeing task to obtain dyeing process information of the fabric dyeing task; the dyeing process information includes process information;
[0007] Generate a proofing task corresponding to the process information, and obtain color matching information corresponding to the proofing task;
[0008] A bill of materials for the fabric dyeing task is generated according to the dyeing process information and the color matching information.
[0009] In one embodiment, the step of extracting information from the cylinder cloth information of the fabric dyeing task to obtain the dyeing process information of the fabric dyeing task includes:
[0010] Acquire dyeing process rules; the dyeing process rules are used to represent the information required when generating the dyeing process information;
[0011] Query the cylinder cloth information of the fabric dyeing task to obtain the process information corresponding to the dyeing process rule;
[0012] The dyeing process information is generated according to the process information.
[0013] In one embodiment, after extracting information from the cylinder cloth information of the fabric dyeing task to obtain the dyeing process information of the fabric dyeing task, the method further includes:
[0014] Storing the dyeing process information in a database;
[0015] Acquire a storage result of the dyeing process information in the database; the storage result is used to indicate a storage state of the dyeing process information in the database;
[0016] Generate a proofing task corresponding to the process information, including:
[0017] If the storage result is that the dyeing process information is successfully stored, a proofing task corresponding to the process information is generated.
[0018] In one embodiment, the obtaining of color information corresponding to the proofing task includes:
[0019] Acquire each subtask of the proofing task, and generate task allocation information corresponding to each subtask;
[0020] According to the task allocation information, each of the subtasks is sent to a corresponding terminal; each of the terminals is used to execute the received subtask to obtain corresponding color adjustment information;
[0021] Receive the corresponding color adjustment information returned by each of the terminals.
[0022] In one embodiment, generating a bill of materials for the fabric dyeing production task according to the dyeing process information and the color matching information includes:
[0023] Obtain a bill of materials template; the bill of materials template is used to represent the generation format of the bill of materials;
[0024] The dyeing process information and the color matching information are respectively imported into corresponding positions in the bill of materials template to generate the bill of materials.
[0025] In one embodiment, after generating a bill of materials for the fabric dyeing task according to the dyeing process information and the color matching information, the method further includes:
[0026] Performing integrity check on the data in the bill of materials to obtain an integrity check result of the bill of materials;
[0027] If the integrity check result shows that there is an abnormality in the integrity of the data, data filling processing is performed on the bill of materials to obtain a filled bill of materials.
[0028] In one embodiment, after the bill of materials is filled with data to obtain a filled bill of materials, the method further includes:
[0029] Performing error detection on data in the filled bill of materials to obtain an error detection result of the filled bill of materials;
[0030] If the error detection result is that the data is erroneous, then performing data correction processing on the filled bill of materials to obtain a corrected bill of materials;
[0031] The bill of materials is updated to the corrected bill of materials.
[0032] A bill of materials generating device, the device comprising:
[0033] A process information extraction module is used to extract information from the cylinder cloth information of the fabric dyeing task to obtain dyeing process information of the fabric dyeing task; the dyeing process information includes dyeing process information;
[0034] A proofing task generating module, used to generate a proofing task corresponding to the dyeing process information, and obtain color matching information corresponding to the proofing task;
[0035] A bill of materials generation module is used to generate a bill of materials for the fabric dyeing task according to the dyeing process information and the color matching information.
[0036] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0037] Performing information extraction processing on the cylinder cloth information of the fabric dyeing task to obtain dyeing process information of the fabric dyeing task; the dyeing process information includes process information;
[0038] Generate a proofing task corresponding to the process information, and obtain color matching information corresponding to the proofing task;
[0039] A bill of materials for the fabric dyeing task is generated according to the dyeing process information and the color matching information.
[0040] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0041] Performing information extraction processing on the cylinder cloth information of the fabric dyeing task to obtain dyeing process information of the fabric dyeing task; the dyeing process information includes process information;
[0042] Generate a proofing task corresponding to the process information, and obtain color matching information corresponding to the proofing task;
[0043] A bill of materials for the fabric dyeing task is generated according to the dyeing process information and the color matching information.
[0044] The above-mentioned bill of materials generation method, device, computer equipment and storage medium can obtain the dyeing process information of the fabric dyeing task by performing information extraction processing on the cylinder cloth information of the fabric dyeing task, and then generate a proofing task corresponding to the process information in the dyeing process information, and then obtain the color matching information corresponding to the proofing task, and finally generate the bill of materials of the fabric dyeing task according to the obtained dyeing process information and color matching information. By adopting this method, there is no need for the server to frequently respond to the information extraction operation and task generation operation of the terminal, and the information extraction processing and task generation processing can be directly performed, thereby improving the processing efficiency between the various links required to generate the bill of materials, and there is no need for the user to manually perform the bill of materials generation operation of the fabric dyeing task through the terminal, and the bill of materials of the fabric dyeing task can be directly generated through the obtained dyeing process information and color matching information, so that the efficiency of generating the bill of materials is improved, thereby improving the processing efficiency of the fabric dyeing task. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 An application environment diagram of a method for generating a bill of materials in one embodiment;
[0046] Figure 2 A schematic diagram of a process flow of a method for generating a bill of materials in one embodiment;
[0047] Figure 3 It is a schematic diagram of an interface for extracting information of cylinder cloth in a fabric dyeing task in one embodiment;
[0048] Figure 4 A schematic flow chart of the steps of obtaining dyeing process information of a fabric dyeing task in one embodiment;
[0049] Figure 5 A schematic diagram of an interface of dyeing process information generated in one embodiment;
[0050] Figure 6 It is a schematic diagram of an interface of another generated dyeing process information in one embodiment;
[0051] Figure 7 A schematic flow chart of steps for storing dyeing process information in one embodiment;
[0052] Figure 8 A schematic flow chart of the steps of obtaining color adjustment information corresponding to a proofing task in one embodiment;
[0053] Fig. 9 A flowchart of steps for generating a bill of materials for a fabric dyeing task in one embodiment;
[0054] Fig.10 This is a schematic diagram of the interface of the bill of materials in one embodiment;
[0055] Fig.11 It is a flowchart of the steps of performing integrity check on the data in the bill of materials in one embodiment;
[0056] Fig.12 It is a flowchart of the steps of performing error detection on data in a filled bill of materials in one embodiment;
[0057] Fig.13 A schematic flow chart of a method for generating a bill of materials in another embodiment;
[0058] Fig.14 It is a flowchart of a method for generating a bill of materials in another embodiment;
[0059] Fig.15 It is a structural block diagram of a material bill generating device in one embodiment;
[0060] Fig.16 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0062] The bill of materials generation method provided in this application can be applied to Figure 1In the application environment shown. Among them, the terminal 101 communicates with the server 102 through the network. The server 102 extracts and processes the cylinder cloth information of the fabric dyeing task to obtain the dyeing process information of the fabric dyeing task, and then generates the corresponding proofing task according to the process information in the dyeing process information. The server 102 sends the proofing task to the terminal 101, and then receives the color matching information corresponding to the proofing task returned by the terminal 101, so that the server 102 generates the bill of materials of the fabric dyeing task according to the dyeing process information and the color matching information. Among them, the terminal 101 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 102 can be implemented with an independent server or a server cluster composed of multiple servers.
[0063] In one embodiment, Figure 2 As shown, a method for generating a bill of materials is provided, and the method is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:
[0064] Step S201, extracting information from the cylinder cloth information of the fabric dyeing task to obtain dyeing process information of the fabric dyeing task; the dyeing process information includes process information.
[0065] Among them, fabric dyeing tasks refer to tasks that require fabric dyeing, such as the dyeing task of a cotton fabric. Cylinder fabric information refers to information related to the fabric dyeing task and the dye cylinder required to perform the fabric dyeing task, such as fabric type, fabric composition, fabric type, color system, width, process flow, customer name and cylinder weight. Dyeing process information refers to the process data required to implement the fabric dyeing process, such as process information and machine parameters. Process information refers to the basic data of each process step that should be performed in the fabric dyeing process, such as process number, process type, process steps, process code and bath ratio.
[0066] Specifically, if the user needs to dye the fabric, a fabric dyeing request can be triggered on the terminal. The terminal responds to the fabric dyeing request, generates a corresponding fabric dyeing task, and sends the fabric dyeing task to the server. The server then receives the fabric dyeing task and obtains the cylinder cloth information of the fabric dyeing task. The server calls the corresponding information extraction instruction according to the fabric dyeing task, performs information extraction operations on the cylinder cloth information of the fabric dyeing task, obtains the process information in the cylinder cloth information, and then obtains the dyeing process information corresponding to the process information. Therefore, after the server obtains the dyeing process information, it uses the dyeing process information as the processing basis to perform the subsequent bill of materials generation steps.
[0067] For example, the interface for extracting information about the cylinder cloth in the fabric dyeing task is as follows: Figure 3As shown, if the user needs to dye the fabric, a fabric dyeing request is triggered on the terminal, and the terminal responds to the fabric dyeing request and generates a corresponding fabric dyeing task. The fabric dyeing task contains the cylinder cloth information, and the fabric dyeing task is sent to the server. Then the server receives the fabric dyeing task and obtains the cylinder cloth information of the fabric dyeing task. The server calls the corresponding information extraction instruction according to the type of fabric dyeing task, performs the information extraction operation on the cylinder cloth information of the fabric dyeing task, and obtains the total cylinder weight, width, color system, customer, cloth type, yarn composition, yarn type and process flow in the cylinder cloth information, and then generates the corresponding dyeing process information in combination with the above information.
[0068] Step S202: Generate a proofing task corresponding to the process information, and obtain color matching information corresponding to the proofing task.
[0069] The sampling task refers to the task of producing samples according to the fabric dyeing task. The color matching information refers to the color formula information of the dye used in the sampling task.
[0070] Specifically, the server detects whether the conditions for generating a proofing task are met. If the server detects that the dyeing process information is successfully stored in the database, it generates a proofing task corresponding to the process information according to the process information in the dyeing process information. Then, the server assigns the proofing task, and then sends the assigned proofing task to the corresponding terminal, thereby receiving the color information corresponding to the assigned proofing task returned by each terminal after executing the assigned proofing task. Therefore, after the server obtains the color information, it uses the color information as a processing basis to execute the subsequent bill of materials generation step.
[0071] Step S203, generating a bill of materials for the fabric dyeing task according to the dyeing process information and the color matching information.
[0072] Among them, the bill of materials refers to the technical document that describes the raw materials, color formula and quantity of the product of the fabric dyeing task.
[0073] Specifically, the server detects whether the conditions for generating a bill of materials are met, obtains a detection result that the conditions for generating a bill of materials are met, and then fills the dyeing process information and color adjustment information into the corresponding positions in the bill of materials template to generate a bill of materials; if the user needs to view the bill of materials, a bill of materials request can be triggered on the terminal, and the terminal responds to the bill of materials request and sends the bill of materials request to the server, and then the terminal receives the bill of materials returned by the server, thereby displaying the bill of materials for the user to view.
[0074] In the above-mentioned bill of materials generation method, by extracting information from the cylinder cloth information of the fabric dyeing task, the dyeing process information of the fabric dyeing task can be obtained, and then a proofing task corresponding to the process information in the dyeing process information is generated, and then the color matching information corresponding to the proofing task is obtained, and finally the bill of materials of the fabric dyeing task is generated according to the obtained dyeing process information and color matching information. By adopting this method, there is no need for the server to frequently respond to the information extraction operation and task generation operation of the terminal, and the information extraction processing and task generation processing can be directly performed, thereby improving the processing efficiency between the various links required to generate the bill of materials, and there is no need for the user to manually perform the bill of materials generation operation of the fabric dyeing task through the terminal, and the bill of materials of the fabric dyeing task can be directly generated through the obtained dyeing process information and color matching information, so that the efficiency of bill of materials generation is improved, thereby improving the processing efficiency of the fabric dyeing task.
[0075] In one embodiment, Figure 4 As shown, the above step S201, extracting information from the cylinder cloth information of the fabric dyeing task to obtain the dyeing process information of the fabric dyeing task, specifically includes the following steps:
[0076] Step S401, obtaining dyeing process rules; the dyeing process rules are used to represent the information required for generating dyeing process information.
[0077] Step S402, querying the cylinder cloth information of the fabric dyeing task to obtain the process information corresponding to the dyeing process rules.
[0078] Step S403: generating dyeing process information according to the process information.
[0079] Specifically, after obtaining the fabric dyeing task, the server queries the stored dyeing process rules, and then obtains the dyeing process rules containing the information required to generate the dyeing process information. According to the dyeing process rules, the server queries the information corresponding to the dyeing process rules from the cylinder cloth information of the fabric dyeing task, so that the server obtains the process information corresponding to the dyeing process rules. The server calls the dyeing process information generation instruction and generates the dyeing process information in combination with the process information.
[0080] For example, the interface of the generated dyeing process information is as follows Figure 5 and Figure 6As shown, after obtaining the fabric dyeing task, the server queries the stored dyeing process rules, and then obtains the dyeing process rules containing the information required for generating the dyeing process information. According to the dyeing process rules, the server queries the information corresponding to the dyeing process rules from the cylinder cloth information of the fabric dyeing task, so that the server obtains the process flow, color system and other information corresponding to the dyeing process rules. The server calls the dyeing process information generation instruction, combines the process flow, color system and other information, and generates the dyeing process information. The dyeing process information includes process steps, cotton dyeing information, color fixing information and machine parameters.
[0081] In this embodiment, the server can query the cylinder cloth information of the fabric dyeing task by obtaining the dyeing process rules, and then obtain the process information corresponding to the dyeing process rules, so that the server generates the dyeing process information according to the process information. With this method, the server does not need to frequently respond to the information extraction and information generation operations of the terminal, and can directly perform process information extraction and dyeing process information generation, thereby improving the processing efficiency of generating dyeing process information in the process of generating the bill of materials, thereby improving the processing efficiency of the fabric dyeing task.
[0082] In one embodiment, Figure 7 As shown, the above step S201, after extracting information from the cylinder cloth information of the fabric dyeing task to obtain the dyeing process information of the fabric dyeing task, also includes a step of storing the dyeing process information, which specifically includes the following steps:
[0083] Step S701, storing the dyeing process information in a database.
[0084] Step S702, obtaining the storage result of the dyeing process information in the database; the storage result is used to indicate the storage status of the dyeing process information in the database.
[0085] Specifically, after obtaining the dyeing process information, the server stores the dyeing process information in a database, such as an SQL database. The database receives the dyeing process information and returns the storage result of the dyeing process information in the database. The server receives the storage result and determines the storage status of the dyeing process information in the database through the storage result. Therefore, after the server obtains the storage result of the dyeing process information, it uses the storage result as a processing basis to perform subsequent steps of generating proofing tasks and generating a bill of materials.
[0086] The above step S203, generating a proofing task corresponding to the process information, includes: if the storage result is that the dyeing process information is successfully stored, generating a proofing task corresponding to the process information.
[0087] Specifically, after the server obtains the storage result sent by the database, it checks the storage result. If the storage result is that the dyeing process information is successfully stored, the condition for generating a proofing task is met, and the server generates a proofing task corresponding to the process information in the dyeing process information. If the storage result is that the dyeing process information storage fails, the condition for generating a proofing task is not met, and the server re-sends the dyeing process information to the database for storage. The server receives the re-sent dyeing process information and returns the storage result of the dyeing process information in the database. The server receives the storage result. If the storage result is that the dyeing process information is successfully stored, the server stops sending and generates a proofing task corresponding to the process information. If the storage result is still a failure, the above process is repeated until the storage result received by the server is that the dyeing process information is successfully stored.
[0088] In this embodiment, the server stores the dyeing process information in the database, and then obtains the storage result of the dyeing process information in the database. If the storage result is that the dyeing process information is successfully stored, the server generates a proofing task corresponding to the process information. With this method, the server does not need to frequently respond to the task generation operation of the terminal, and can directly perform task generation processing, thereby improving the processing efficiency of generating proofing tasks in the process of generating a bill of materials, thereby improving the processing efficiency of fabric dyeing tasks.
[0089] In one embodiment, Figure 8 As shown, the above step S202, obtaining the color adjustment information corresponding to the proofing task, specifically includes the following steps:
[0090] Step S801, obtaining each subtask of the proofing task, and generating task allocation information corresponding to each subtask.
[0091] Step S802: sending each subtask to a corresponding terminal according to the task allocation information; each terminal is used to execute the received subtask to obtain corresponding color adjustment information.
[0092] Step S803: receiving the corresponding color adjustment information returned by each terminal.
[0093] The task allocation information is used to describe the allocation information between the subtasks and the terminals.
[0094] Specifically, the server divides the proofing task into multiple subtasks, such as 6, 10, and 14 subtasks. The server assigns each subtask to the terminal according to the type of the subtask, and then generates task assignment information for each subtask. Then, according to the task assignment information, each subtask is sent to the corresponding terminal. Each terminal receives the corresponding subtask and displays the received subtask. The user performs corresponding operations according to the subtask on the terminal. After the user completes the corresponding operation, the color information input operation is triggered on the terminal. The terminal responds to the color information input operation and sends the color information to the server. Then, the server obtains the corresponding color information returned by each terminal, and then the server stores the color information in a database, such as an SQL database. The database receives the color information and returns the storage result of the color information in the database. The server receives the storage result and judges the storage status of the color information in the database through the storage result. Therefore, after the server obtains the storage result of the color information, it uses the storage result as a processing basis to execute the subsequent bill of materials generation step.
[0095] In this embodiment, the server obtains each subtask of the proofing task, and then generates task allocation information corresponding to each subtask, and then sends each subtask to the corresponding terminal according to the task allocation information, and finally the server receives the corresponding color information returned by each terminal. With this method, the server does not need to frequently respond to the proofing task allocation operation of the terminal, and can directly send the subtask to the terminal according to the task allocation information, thereby improving the processing efficiency of obtaining color information in the process of generating the bill of materials, thereby improving the processing efficiency of the fabric dyeing task.
[0096] In one embodiment, Fig. 9 As shown, the above step S203 generates a bill of materials for the fabric dyeing task according to the dyeing process information and the color matching information, which specifically includes the following steps:
[0097] Step S901, obtaining a bill of materials template; the bill of materials template is used to indicate a generation format of the bill of materials.
[0098] Step S902, respectively importing the dyeing process information and the color matching information into corresponding positions in the bill of materials template to generate a bill of materials.
[0099] Specifically, after obtaining the storage result of the successful storage of the color information, the server queries the stored bill of materials template, and then obtains the bill of materials template containing the bill of materials generation format, and then matches the dyeing process information and the color information with the information in the bill of materials template, and then imports the dyeing process information and the color information into the corresponding position in the bill of materials template. For the data in the bill of materials template that cannot be directly imported from the dyeing process information and the color information, such as the printing time and the billing time, the server calls the corresponding data generation instruction to generate the corresponding data, and then imports the data into the corresponding position in the bill of materials template, and finally generates the bill of materials.
[0100] For example, the generated bill of materials interface is as follows Fig.10 As shown, after obtaining the color information, the server queries the bill of materials template, matches the dyeing process information and the color information with the information in the bill of materials template, and then imports the process flow, finishing method, cloth type, process code, machine parameters and other dyeing process information in the dyeing process information, as well as the colorist's name, color, formula and other color information in the color information into the corresponding positions in the bill of materials template. For data that cannot be directly imported from the dyeing process information and the color information, the server calls the corresponding data generation instructions to generate data such as printing time, order opening time, ID number, etc., and then imports these generated data into the corresponding positions in the bill of materials template to finally generate a bill of materials.
[0101] In this embodiment, the server imports the dyeing process information and the color matching information into the corresponding positions in the acquired bill of materials template, and then generates a bill of materials. With this method, the user does not need to manually generate the bill of materials for the fabric dyeing task through the terminal, and the bill of materials for the fabric dyeing task can be directly generated through the acquired dyeing process information and the color matching information, so that the efficiency of generating the bill of materials is improved, thereby improving the processing efficiency of the fabric dyeing task.
[0102] In one embodiment, Fig.11 As shown, the above step S203, after generating the bill of materials for the fabric dyeing task according to the dyeing process information and the color matching information, also includes the step of performing integrity detection on the data in the bill of materials, which specifically includes the following steps:
[0103] Step S1101, perform integrity check on the data in the bill of materials to obtain the integrity check result of the bill of materials.
[0104] Among them, integrity detection refers to the server detecting whether there are any missing data in the generated bill of materials.
[0105] Specifically, after the server generates the bill of materials, it uses an integrity detection algorithm or integrity detection software to detect whether the data in the bill of materials is complete, and then the integrity detection algorithm or integrity detection software returns the integrity detection result of the bill of materials to the server, and the server receives the integrity detection result of the bill of materials.
[0106] Step S1102: If the integrity check result shows that there is an abnormality in the integrity of the data, data filling processing is performed on the bill of materials to obtain a filled bill of materials.
[0107] Specifically, if the integrity test result shows that the integrity of the data is normal, the subsequent test steps are performed on the bill of materials; if the integrity test result shows that there is an abnormality in the integrity of the data, the bill of materials is subjected to data filling processing, that is, the server fills in the missing data in the bill of materials through data filling instructions, so that the server obtains the filled bill of materials. The data filling instructions are used to re-import the missing dyeing process information, color matching information, and / or other information in the generated bill of materials template. After the server obtains the filled bill of materials, it performs an integrity test on the data of the filled bill of materials again. If the integrity test result shows that the integrity of the data is normal, the subsequent test steps are performed on the bill of materials. If the integrity test result shows that there is still an abnormality in the integrity of the data, the above data filling process is repeated until the integrity test result of the data of the filled bill of materials shows that the integrity of the data is normal.
[0108] In this embodiment, the server performs an integrity check on the data in the bill of materials. If there is an abnormality in the integrity of the data, the bill of materials is filled with data to obtain a filled bill of materials. This method can avoid the situation where the server sends the bill of materials to the terminal and then receives the data integrity of the bill of materials returned by the terminal and there is an abnormality. Instead, the integrity of the data in the bill of materials is checked immediately after the bill of materials is generated. There is no need to manually check the integrity of the data. The server can automatically complete the integrity check of the data in the bill of materials and perform data filling, so that the error rate in the bill of materials is reduced, thereby improving the efficiency of generating the bill of materials.
[0109] In one embodiment, Fig.12 As shown, the above step S1102, after performing data filling processing on the bill of materials to obtain the filled bill of materials, also includes the step of performing error detection on the data in the filled bill of materials, which specifically includes the following steps:
[0110] Step S1201, performing error detection on the data in the filled bill of materials to obtain an error detection result of the filled bill of materials.
[0111] Error detection refers to the server detecting whether there are invalid values, error values and garbled characters in the filled bill of materials data.
[0112] Specifically, after the server obtains the filled bill of materials, it detects whether there are errors in the data of the bill of materials through an error detection algorithm or error detection software, and then sends the detection result of the filled bill of materials to the server, and the server receives the error detection result of the filled bill of materials.
[0113] Step S1202: If the error detection result is that there is an error in the data, data correction processing is performed on the filled bill of materials to obtain a corrected bill of materials.
[0114] Specifically, if the error detection result is that the data is correct, the subsequent update steps are performed on the bill of materials; if the error detection result is that the data is erroneous, the bill of materials is subjected to data correction processing, that is, the server corrects the erroneous data in the bill of materials through data correction instructions, so that the server obtains a corrected bill of materials. The data correction instruction is used to modify the erroneous data in the filled list to correct data. After the server obtains the corrected bill of materials, it performs error detection on the data of the corrected bill of materials again. If the error detection result is that the data is correct, the subsequent update steps are performed on the bill of materials. If the error detection result is that the data is still erroneous, the above data correction processing is repeated until the error detection result of the data of the corrected bill of materials is correct.
[0115] Step S1203, updating the BOM to a corrected BOM.
[0116] Specifically, if the server performs data filling and / or data correction processing on the generated bill of materials, the originally generated bill of materials will be updated to the corrected (or filled) bill of materials; if the user needs to view the bill of materials, a bill of materials request can be triggered on the terminal, and the terminal responds to the bill of materials request and sends the bill of materials request to the server, and then the terminal receives the bill of materials returned by the server, thereby displaying the bill of materials for user viewing.
[0117] In this embodiment, the server performs error detection on the data in the filled bill of materials. If there are errors in the data, the filled bill of materials is corrected to obtain a corrected bill of materials. This method can avoid the situation where the server sends the bill of materials to the terminal and then receives the data in the bill of materials returned by the terminal and there are errors. Instead, the data in the bill of materials is immediately error-checked after the bill of materials is filled. There is no need to manually check the data errors. The server can automatically complete the error detection of the data in the bill of materials and perform data correction, so that the error rate in the bill of materials is further reduced, thereby greatly improving the efficiency of generating the bill of materials.
[0118] In one embodiment, Fig.13 As shown in the figure, another method of generating bill of materials is provided, which can be applied to Figure 1 The server in the example is used to illustrate the following steps:
[0119] Step S1301, obtaining dyeing process rules; the dyeing process rules are used to represent the information required for generating dyeing process information.
[0120] Step S1302, query the cylinder cloth information of the fabric dyeing task to obtain the process information corresponding to the dyeing process rules.
[0121] Step S1303, generating dyeing process information according to the process information.
[0122] Step S1304, storing the dyeing process information in a database.
[0123] Step S1305, obtaining the storage result of the dyeing process information in the database; the storage result is used to indicate the storage status of the dyeing process information in the database.
[0124] Step S1306: If the storage result is that the dyeing process information is successfully stored, a proofing task corresponding to the process information is generated.
[0125] Step S1307, obtaining each subtask of the proofing task, and generating task allocation information corresponding to each subtask.
[0126] Step S1308, sending each subtask to a corresponding terminal according to the task allocation information; each terminal is used to execute the received subtask to obtain corresponding color adjustment information.
[0127] Step S1309: receiving the corresponding color adjustment information returned by each terminal.
[0128] Step S1310, obtaining a bill of materials template; the bill of materials template is used to indicate a format for generating a bill of materials.
[0129] Step S1311, respectively importing the dyeing process information and the color matching information into corresponding positions in the bill of materials template to generate a bill of materials.
[0130] Step S1312, perform integrity check on the data in the bill of materials to obtain the integrity check result of the bill of materials.
[0131] Step S1313: If the integrity check result shows that there is an abnormality in the integrity of the data, data filling processing is performed on the bill of materials to obtain a filled bill of materials.
[0132] Step S1314, performing error detection on the data in the filled bill of materials to obtain an error detection result of the filled bill of materials.
[0133] Step S1315: If the error detection result is that there is an error in the data, data correction processing is performed on the filled bill of materials to obtain a corrected bill of materials.
[0134] Step S1316, updating the BOM to a corrected BOM.
[0135] The above-mentioned bill of materials generation method does not require the server to frequently respond to the information extraction operation and task generation operation of the terminal, and can directly perform information extraction processing and task generation processing, thereby improving the processing efficiency between the various links required to generate the bill of materials, and does not require the user to manually perform the bill of materials generation operation for the fabric dyeing task through the terminal. The bill of materials for the fabric dyeing task can be directly generated through the obtained dyeing process information and color adjustment information, which improves the generation efficiency of the bill of materials and thus improves the processing efficiency of the fabric dyeing task.
[0136] In order to more clearly illustrate the bill of materials generation method provided by the embodiment of the present disclosure, the bill of materials generation method is specifically described below with a specific embodiment. Fig.14 As shown, the present disclosure also provides a method for generating a bill of materials, which specifically includes the following contents:
[0137] Step S1401, process review: the server identifies the dyeing process information according to the cylinder cloth information of the fabric dyeing task through automatic processing in the server background, that is, according to the dyeing process rules, the dyeing process information is obtained by running program instructions, and then the dyeing process information is stored in the database. The server sends the dyeing process information to the terminal, and the terminal is used to display the dyeing process information.
[0138] Step S1402, re-processing request: the server obtains the storage result of the dyeing process information in the database. If the storage result is that the dyeing process information is successfully stored, a proofing task corresponding to the process information is automatically generated.
[0139] Step S1403, color adjustment to the party: After the server generates a proofing task corresponding to the process information, it divides the proofing task into multiple subtasks, and then generates task allocation information corresponding to each subtask. According to the task allocation information, the server sends each subtask to the corresponding terminal respectively, and each terminal executes the received subtask. After completing the subtask, each terminal obtains the corresponding color adjustment information, and then the terminal sends the color adjustment information to the server, so that the server obtains the color adjustment information.
[0140] Step S1404, bill of materials: the server automatically generates a bill of materials based on the dyeing process information and color matching information.
[0141] In this embodiment, by integrating the review process, re-processing request, color matching and material list generation functions, the manual operation and human errors in the material list generation process are greatly reduced. There is no need for the server to frequently respond to the material list generation operation of the terminal, thereby saving the resources required for generating the material list. There is no need for the user to manually perform the material list generation operation for the fabric dyeing task through the terminal. The material list can be automatically generated through the obtained dyeing process information and color matching information, which improves the efficiency of material list generation, thereby improving the work efficiency when processing fabric dyeing tasks.
[0142] It should be understood that although Figure 2-14 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-14 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0143] In one embodiment, Fig.15 As shown, a bill of materials generating device 1500 is provided, comprising: a process information extraction module 1501, a proofing task generating module 1502 and a bill of materials generating module 1503, wherein:
[0144] The process information extraction module 1501 is used to extract information from the cylinder cloth information of the fabric dyeing task to obtain the dyeing process information of the fabric dyeing task; the dyeing process information includes dyeing process information.
[0145] The proofing task generating module 1502 is used to generate a proofing task corresponding to the dyeing process information and obtain color matching information corresponding to the proofing task.
[0146] The bill of materials generation module 1503 is used to generate a bill of materials for the fabric dyeing task according to the dyeing process information and the color matching information.
[0147] The process information extraction module 1501 is also used to obtain dyeing process rules; dyeing process rules are used to represent the information required for generating dyeing process information; query the cylinder cloth information of the fabric dyeing task to obtain the process information corresponding to the dyeing process rules; generate dyeing process information based on the process information.
[0148] In one embodiment, the BOM generating device 1500 further includes an information storage module for storing the dyeing process information in a database; obtaining the storage result of the dyeing process information in the database; and the storage result is used to indicate the storage status of the dyeing process information in the database.
[0149] The proofing task generating module 1502 is further used to generate a proofing task corresponding to the process information if the storage result is that the dyeing process information is successfully stored.
[0150] The proofing task generation module 1502 is also used to obtain each subtask of the proofing task and generate task allocation information corresponding to each subtask; according to the task allocation information, each subtask is sent to the corresponding terminal respectively; each terminal is used to execute the received subtask and obtain the corresponding color adjustment information; and receive the corresponding color adjustment information returned by each terminal.
[0151] The BOM generation module 1503 is also used to obtain a BOM template; the BOM template is used to indicate the generation format of the BOM; the dyeing process information and the color matching information are respectively imported into the corresponding positions in the BOM template to generate the BOM.
[0152] In one embodiment, the bill of materials generating device 1500 also includes a first detection module, which is used to perform integrity detection on the data in the bill of materials to obtain the integrity detection result of the bill of materials; if the integrity detection result is that there is an abnormality in the integrity of the data, the bill of materials is filled with data to obtain a filled bill of materials.
[0153] In one embodiment, the bill of materials generating device 1500 also includes a second detection module, which is used to perform error detection on the data in the filled bill of materials to obtain an error detection result of the filled bill of materials; if the error detection result is that there is an error in the data, the filled bill of materials is corrected to obtain a corrected bill of materials; and the bill of materials is updated to the corrected bill of materials.
[0154] For the specific definition of the bill of materials generation device, please refer to the definition of the bill of materials generation method above, which will not be repeated here. Each module in the above-mentioned bill of materials generation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0155] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.16 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store dyeing process information and color matching information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating a bill of materials is implemented.
[0156] Those skilled in the art will understand that Fig.16 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0157] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0158] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0159] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0160] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for generating a bill of materials, characterized in that: The method comprises: Performing information extraction processing on the cylinder cloth information of the fabric dyeing task to obtain dyeing process information of the fabric dyeing task; the dyeing process information includes process information; the process information is used to characterize basic data of each process step to be performed in the fabric dyeing task; Storing the dyeing process information in a database to obtain a storage result of the dyeing process information in the database; If the storage result indicates that the dyeing process information is successfully stored, a proofing task corresponding to the process information is generated, and color matching information corresponding to the proofing task is obtained; Generating a bill of materials for the fabric dyeing task according to the dyeing process information and the color matching information; The obtaining of color adjustment information corresponding to the proofing task includes: Divide the proofing task into a plurality of subtasks, and determine task allocation information of each subtask according to the type of each subtask; According to the task allocation information, each of the subtasks is sent to a corresponding terminal; The color adjustment information corresponding to the subtask returned by each of the terminals is obtained.
2. The method according to claim 1, characterized in that The information extraction process is performed on the cylinder cloth information of the fabric dyeing task to obtain the dyeing process information of the fabric dyeing task, including: Acquire dyeing process rules; the dyeing process rules are used to represent the information required when generating the dyeing process information; Query the cylinder cloth information of the fabric dyeing task to obtain the process information corresponding to the dyeing process rule; The dyeing process information is generated according to the process information.
3. The method according to claim 2, characterized in that After extracting information from the cylinder cloth information of the fabric dyeing task to obtain the dyeing process information of the fabric dyeing task, the method further includes: Storing the dyeing process information in a database; Acquire a storage result of the dyeing process information in the database; the storage result is used to indicate a storage state of the dyeing process information in the database; Generate a proofing task corresponding to the process information, including: If the storage result is that the dyeing process information is successfully stored, a proofing task corresponding to the process information is generated.
4. The method according to claim 1, characterized in that: The obtaining of color adjustment information corresponding to the proofing task includes: Acquire each subtask of the proofing task, and generate task allocation information corresponding to each subtask; According to the task allocation information, each of the subtasks is sent to a corresponding terminal; each of the terminals is used to execute the received subtask to obtain corresponding color adjustment information; Receive the corresponding color adjustment information returned by each of the terminals.
5. The method according to claim 1, characterized in that The step of generating a bill of materials for the fabric dyeing production task according to the dyeing process information and the color matching information comprises: Obtain a bill of materials template; the bill of materials template is used to represent the generation format of the bill of materials; The dyeing process information and the color matching information are respectively imported into corresponding positions in the bill of materials template to generate the bill of materials.
6. The method according to claim 1, characterized in that After generating a bill of materials for the fabric dyeing task according to the dyeing process information and the color matching information, the method further includes: Performing integrity check on the data in the bill of materials to obtain an integrity check result of the bill of materials; If the integrity check result shows that there is an abnormality in the integrity of the data, data filling processing is performed on the bill of materials to obtain a filled bill of materials.
7. The method according to claim 6, characterized in that After the bill of materials is filled with data to obtain a filled bill of materials, the method further includes: Performing error detection on data in the filled bill of materials to obtain an error detection result of the filled bill of materials; If the error detection result is that the data is erroneous, then performing data correction processing on the filled bill of materials to obtain a corrected bill of materials; The bill of materials is updated to the corrected bill of materials.
8. A bill of materials generating device, characterized in that: The device comprises: A process information extraction module is used to extract information from the cylinder cloth information of the fabric dyeing task to obtain dyeing process information of the fabric dyeing task; the dyeing process information includes dyeing process information; the process information is used to characterize the basic data of each process step to be performed in the fabric dyeing task; An information storage module, used for storing the dyeing process information in a database, and obtaining a storage result of the dyeing process information in the database; A proofing task generating module, configured to generate a proofing task corresponding to the dyeing process information and obtain color matching information corresponding to the proofing task if the storage result indicates that the dyeing process information is successfully stored; A bill of materials generation module, used to generate a bill of materials for the fabric dyeing task according to the dyeing process information and the color matching information; The proofing task generation module is also used to divide the proofing task into multiple subtasks, determine the task allocation information of each subtask according to the type of each subtask; send each subtask to the corresponding terminal according to the task allocation information; and obtain the color adjustment information corresponding to the subtask returned by each terminal.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Optimum intelligent billing method and system for dyeing technology
CN103310292A
Data error checking and correcting system of printing and dyeing industry information system
CN110489723A
