Project approval method, approval method, approval device and equipment
By dividing and coding power project documents into grids, and combining this with automatic matching and stamping from the power approval database, the problems of low efficiency and poor standardization in the feasibility study approval of power projects have been solved, and an efficient and accurate electronic signature process has been achieved.
Patent Information
- Application Number
- CN202511427523.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-30
- Publication Date
- 2025-12-30
AI Technical Summary
The existing feasibility study approval process for power industry projects suffers from problems such as low efficiency due to paper-based approvals, inability to link and share data, and difficulty in ensuring the authenticity of signatures, resulting in a cumbersome and error-prone approval process.
By dividing and encoding the documents to be processed into grids, and using the power approval database to match the target document template and preset electronic seal, the system automatically determines the stamping grid and performs the stamping process, thereby achieving unified document format and accurate stamping.
It has improved the automation and standardization of project approval, reduced manual intervention, ensured the accuracy of stamp placement, and enhanced approval efficiency and process transparency.
Smart Images

Figure CN121235637A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of project management, and in particular to a project approval method, an approval method, an approval device and equipment. BACKGROUND
[0002] In the power industry, project feasibility study is an important preceding link of project implementation. The review form of project feasibility study is not only the main basis for approval by the competent department, but also an important reference document for the subsequent design, construction, acceptance and other stages. The approval quality of the review form is directly related to the scientificity, safety and economic rationality of engineering construction.
[0003] In related technologies, in the feasibility study approval link, electronic documents are usually printed into paper forms, and then different departments and approval persons sign and affix seals in stages to realize the approval of the review form. At the same time, electronic documents are also transmitted and approved in the form of email, which has the technical problems of complicated process and low efficiency.
[0004] Therefore, a safe and efficient project approval scheme is proposed. SUMMARY
[0005] The present application provides a project approval method, an approval method, an approval device and equipment to achieve a safe and efficient project approval effect.
[0006] In a first aspect, the present application provides a project approval method, comprising:
[0007] The obtained to-be-processed document is grid divided to obtain a grid document corresponding to the to-be-processed document;
[0008] Each grid in the grid document is encoded respectively to obtain grid document information; the grid document information includes grid vector information corresponding to each grid;
[0009] Based on the grid document information, matching is performed in a power approval database to obtain a target document template corresponding to the to-be-processed document and a preset electronic seal;
[0010] Based on the grid vector information and the target document template, a seal grid is determined from the multiple grids of the grid document;
[0011] Based on the seal grid and the preset electronic seal, a seal processing is performed on the to-be-processed document to obtain a sealed document.
[0012] In a possible implementation, based on the grid document information, matching is performed in the power approval database to obtain a target document template corresponding to the to-be-processed document and a preset electronic seal, comprising:
[0013] Based on the grid document information, keyword information in each grid vector information is extracted respectively to obtain document keywords corresponding to the grid document information.
[0014] Based on the document keywords corresponding to the grid document information, a document template in the power approval database that is closest to the document keywords is taken as a target document template corresponding to the to-be-processed document.
[0015] The preset electronic seal corresponding to the target document template is found in the power approval database.
[0016] In a possible implementation, the target document template includes target seal grid information, and based on the grid vector information and the target document template, a seal grid is determined from the multiple grids of the grid document, including:
[0017] Semantic matching is performed on each grid vector information and the target seal grid information to obtain a first similarity between each grid vector information and the target seal grid information.
[0018] The grid corresponding to the grid vector information with the highest first similarity in the multiple grids of the grid document is taken as the seal grid.
[0019] In a possible implementation, the preset electronic seal corresponding to the target document template is found in the power approval database, including:
[0020] Based on the target document template, an initial electronic seal and a seal specification corresponding to the target document template are found in the power approval database.
[0021] Based on the seal specification, an element attribute of the initial electronic seal is adjusted to obtain the preset electronic seal corresponding to the to-be-processed document, where the element attribute includes color, font, and border.
[0022] In a possible implementation, based on the seal grid and the preset electronic seal, the to-be-processed document is subjected to seal processing to obtain a sealed document, and the method further includes:
[0023] Based on the idempotency guarantee mechanism, it is determined whether the to-be-processed document has been sealed.
[0024] If the to-be-processed document has been sealed, the to-be-processed document is directly taken as the sealed document to obtain the sealed document corresponding to the to-be-processed document.
[0025] If the to-be-processed document has not been sealed, a seal coordinate corresponding to the to-be-processed document is determined according to a position coordinate of the seal grid and a size parameter of the preset electronic seal within a range of the seal grid.
[0026] The preset electronic seal is superimposed on the seal coordinate to obtain the sealed document corresponding to the to-be-processed document.
[0027] In a second aspect, the application provides an approval method, comprising:
[0028] obtaining a plurality of to-be-processed documents;
[0029] based on the power approval database, obtaining a stamped document corresponding to each to-be-processed document through parallel processing, the stamped document being obtained through the project approval method of the first aspect and / or various possible embodiments of the first aspect;
[0030] based on the power approval database, obtaining a preset approval process corresponding to the stamped document;
[0031] delivering the stamped document to a next approval process pointed by the preset approval process.
[0032] In a possible implementation, the to-be-processed document is obtained through the following manner:
[0033] obtaining a document path of the to-be-processed document;
[0034] based on the document path of the to-be-processed document, searching for the to-be-processed document in the power approval database.
[0035] In a third aspect, the application provides a project approval device, comprising:
[0036] an obtaining module, configured to perform grid division on an obtained to-be-processed document to obtain a grid document corresponding to the to-be-processed document; encode each grid in the grid document to obtain grid document information; and the grid document information includes grid vector information corresponding to each grid;
[0037] a processing module, configured to perform matching in the power approval database based on the grid document information to obtain a target document template and a preset electronic seal corresponding to the to-be-processed document; determine a stamped grid from a plurality of grids of the grid document based on the grid vector information and the target document template; and perform stamping processing on the to-be-processed document based on the stamped grid and the preset electronic seal to obtain a stamped document.
[0038] In a possible implementation, the processing module is specifically configured to:
[0039] based on the grid document information, extract keyword information in each grid vector information to obtain a document keyword corresponding to the grid document information;
[0040] based on the document keyword corresponding to the grid document information, take a document template in the power approval database that is closest to the document keyword as the target document template corresponding to the to-be-processed document;
[0041] search for a preset electronic seal corresponding to the target document template in the power approval database.
[0042] In a possible implementation, the target document template includes target seal grid information, and the processing module is specifically configured to:
[0043] perform semantic matching on each grid vector information and the target seal grid information to obtain a first similarity between each grid vector information and the target seal grid information;
[0044] of the grid document, a grid corresponding to grid vector information with the highest first similarity is taken as a seal grid.
[0045] In a possible implementation, the processing module is further configured to:
[0046] based on the target document template, find an initial electronic seal and a seal specification corresponding to the target document template in the power approval database;
[0047] based on the seal specification, adjust element attributes of the initial electronic seal to obtain a preset electronic seal corresponding to the to-be-processed document, wherein the element attributes include color, font, and border.
[0048] In a possible implementation, the processing module is specifically configured to:
[0049] based on the idempotency guarantee mechanism, determine whether the to-be-processed document has been sealed;
[0050] if the to-be-processed document has been sealed, directly take the to-be-processed document as a sealed document to obtain a sealed document corresponding to the to-be-processed document;
[0051] if the to-be-processed document has not been sealed, within a range of the seal grid, determine a seal coordinate corresponding to the to-be-processed document according to a position coordinate of the seal grid and a size parameter of the preset electronic seal;
[0052] superimpose the preset electronic seal on the seal coordinate to obtain a sealed document corresponding to the to-be-processed document.
[0053] In a fourth aspect, the application provides an approval device, which comprises:
[0054] an acquisition module configured to acquire a plurality of to-be-processed documents; based on a power approval database, obtain a sealed document corresponding to each to-be-processed document through a parallel processing mode, wherein the sealed document is obtained through the project approval method of the first aspect and / or various possible implementations of the first aspect;
[0055] a processing module configured to obtain a preset approval process corresponding to the sealed document based on the power approval database; and pass the sealed document to a next approval process pointed to by the preset approval process.
[0056] In a possible implementation, the document to be processed is obtained by the obtaining module, and the obtaining module is further configured to:
[0057] obtain a document path of the document to be processed;
[0058] based on the document path of the document to be processed, search the power examination database to obtain the document to be processed.
[0059] In a fifth aspect, the present application provides an electronic device, comprising: a memory, a processor;
[0060] the memory stores computer execution instructions;
[0061] the processor executes the computer execution instructions stored in the memory, so that the processor executes the first aspect and / or various possible implementation manners of the first aspect, and / or the first aspect and / or various possible implementation manners of the first aspect.
[0062] In a sixth aspect, the present application provides a computer readable storage medium, the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to realize the first aspect and / or various possible implementation manners of the first aspect, and / or the first aspect and / or various possible implementation manners of the first aspect.
[0063] In a seventh aspect, the present application provides a computer program product, comprising a computer program, the computer program is executed by the processor to realize the first aspect and / or various possible implementation manners of the first aspect, and / or the first aspect and / or various possible implementation manners of the first aspect.
[0064] The project approval method, approval process, apparatus, and equipment provided in this application divide the acquired document to be processed into a grid, obtaining a grid document corresponding to the document to be processed. This transforms scattered heterogeneous data into a grid document with a unified format, eliminating data format differences in the document to be processed and avoiding deviations caused by missing information or inconsistent descriptions. Each grid in the grid document is encoded to obtain grid document information; this accurately and comprehensively extracts the features of each grid in the grid document, transforming the complex structure of the grid document into quantifiable and easily processed grid document information, improving the accuracy and efficiency of information processing. Based on the grid document information, matching is performed in the power approval database to obtain the target document template and preset electronic seal corresponding to the document to be processed. This allows for rapid location of document templates and electronic seals that meet power approval specifications and business requirements, avoiding the tediousness and errors of manual searching and effectively improving the automation and standardization of the approval process. Based on the vector information of each grid and the target document template, a stamping grid is determined from multiple grids in the grid document; based on the stamping grid and the preset electronic seal, stamping processing is performed on the document to be processed to obtain a stamped document. Using a grid-based stamping system can prevent stamping errors and improve the accuracy and reliability of stamping processes. Attached Figure Description
[0065] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0066] Figure 1 A schematic diagram illustrating a scenario for the project approval method provided in this application embodiment;
[0067] Figure 2 Flowchart of the project approval method provided in the embodiments of this application Figure 1 ;
[0068] Figure 3 Flowchart of the project approval method provided in the embodiments of this application Figure 2 ;
[0069] Figure 4 A flowchart illustrating the approval method provided in this application embodiment;
[0070] Figure 5 This is a schematic diagram of the structure of the project approval device provided in the embodiments of this application;
[0071] Figure 6 A schematic diagram of the structure of the approval device provided in the embodiments of this application;
[0072] Figure 7 This is a schematic diagram of the electronic device structure provided in an embodiment of this application.
[0073] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0074] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0075] In related technologies, the feasibility study approval process for power infrastructure mainly adopts a paper-based approval process. Approving personnel typically need to print electronic documents into paper forms, which are then signed and stamped by different departments and responsible persons at each level. In addition, some semi-electronic methods are used to transmit forms, including using scanned copies to replace part of the paper transmission, or sending electronic files via email. The following technical problems exist: 1) Since paper-based approval often requires the submission of hundreds to thousands of review forms, it consumes a lot of manpower and time, which can easily cause delays in the approval process. Once a certain stage is delayed, it will directly affect the overall progress of the project. At the same time, when post-event verification or auditing is required, a lot of effort is often spent on data retrieval and comparison. 2) Approval data cannot be linked and shared with the management platform, and the authenticity and tamper-proof nature of signatures cannot be guaranteed, resulting in low approval efficiency and poor standardization.
[0076] The project approval method provided in this application divides the acquired document to be processed into a grid, resulting in a grid document corresponding to the document. This transforms scattered heterogeneous data into a grid document with a unified format, eliminating data format differences and avoiding deviations caused by missing information or inconsistent descriptions. Each grid in the grid document is encoded to obtain grid document information. This accurately and comprehensively extracts the features of each grid, transforming the complex structure of the grid document into quantifiable and easily processed information, improving the accuracy and efficiency of information processing. Based on the grid document information, a matching process is performed in the power approval database to obtain the target document template and preset electronic seal corresponding to the document to be processed. This allows for quick location of document templates and electronic seals that meet power approval standards and business requirements, avoiding the tediousness and errors of manual searching and effectively improving the automation and standardization of the approval process. Based on the grid vector information and the target document template, a stamping grid is determined from multiple grids in the grid document. Based on the stamping grid and the preset electronic seal, the document to be processed is stamped to obtain a stamped document. Stamping based on the stamping grid avoids incorrect stamping positions and improves the accuracy and reliability of stamping processing.
[0077] Figure 1 This is a schematic diagram illustrating a scenario of the project approval method provided in an embodiment of this application. Figure 1 As shown, the specific application scenarios of this application include data center 11, approval center 12, and stamping center 13. Among them:
[0078] Data center 11 stores data for approval center 12 and stamped document center 13. Approval center 12 retrieves the document to be processed and its corresponding approval process from data center 11. Then, approval center 12 executes the corresponding approval task for the document according to the approval process. When the approval task for the document to be processed is a stamped document, approval center 12 transmits the document to stamped document center 13. Upon receiving the document, stamped document center 13 executes the corresponding stamping task to obtain the stamped document.
[0079] Data Center 11 is the core storage unit, responsible for storing data from Approval Center 12 and Stamping Center 13. Data Center 11 provides standardized interfaces for Approval Center 12 and Stamping Center 13 to access and manipulate data. Approval Center 12 retrieves documents to be processed and their corresponding approval processes from Data Center 11, and approves the documents level by level according to the approval processes. If a document requires a stamp, it is passed to Stamping Center 13. Upon receiving the document, Stamping Center 13 executes the stamping operation according to preset rules. After completion, it feeds back the stamped document and related information to Data Center 11. Approval Center 12 and Stamping Center 13 can also feed back their operation results to Data Center 11 and update the document status of documents to be processed, ensuring process transparency and data integrity. Through collaborative operations between Data Center 11, Approval Center 12, and Stamping Center 13, the efficiency of automated processing can be improved, and manual intervention can be reduced. Simultaneously, centralized data management through Data Center 11 ensures data security and integrity.
[0080] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0081] Figure 2 Flowchart of the project approval method provided in the embodiments of this application Figure 1 .like Figure 2 As shown, the method includes:
[0082] S201. Divide the acquired document to be processed into a grid to obtain the grid document corresponding to the document to be processed.
[0083] Grid partitioning allows a document to be divided into multiple small grid regions, forming a grid document. Optionally, a uniformly divided grid method can be used to segment the document into uniformly sized grids. Alternatively, a density-adaptive grid partitioning method can be employed, dividing the document into multiple small grid regions based on the distribution of its content. This density-adaptive grid partitioning method allows for smaller grids in densely populated areas and larger grids in sparsely populated areas, thus simplifying the complex structure of the document and facilitating independent processing and analysis of each local region.
[0084] Furthermore, the document to be processed can be a text file, an image file, a Portable Document Format (PDF) file, and / or a table file. When the document to be processed is a table file, it can be divided into grids based on the corresponding cells of the table. Optionally, the merged cells and / or nested tables can be divided into grids as a single unit.
[0085] S202. Encode each grid in the grid document to obtain grid document information; the grid document information includes the grid vector information corresponding to each grid.
[0086] Encoding each grid cell allows us to encode its row and column information within the grid document, thus defining its position. Grid vector information is derived from the characteristics of each grid cell, including text content, text quantity, font size, and text color. Integrating the positional information and grid vector information of each grid cell yields the grid document information.
[0087] Optionally, deep language models such as Transformer or BERT can be used to encode each grid in the grid document to obtain grid document information.
[0088] S203. Based on the grid document information, match it in the power approval database to obtain the target document template and preset electronic seal corresponding to the document to be processed.
[0089] Based on grid document information, matching is performed in the power approval database. The features in the grid document information can be used to compare with the document templates and electronic seals stored in the power approval database. The document template that meets the document matching requirements of the document to be processed is used as the target document template, and the electronic seal that meets the electronic seal matching requirements of the document to be processed is used as the preset electronic seal.
[0090] Optionally, the document matching requirement is that the similarity between the document template and the document to be processed is greater than or equal to a similarity threshold. Optionally, the electronic seal matching requirement is that the similarity between the electronic seal and the document to be processed is greater than or equal to a similarity threshold.
[0091] Optionally, if no target document template corresponding to the document to be processed is found in the power approval database, it is determined that there is an error and / or anomaly in the current document to be processed, and an error message is displayed. Further, upon receiving the error message, the document to be processed is returned to the previous node for revision.
[0092] S204. Based on the vector information of each grid and the target document template, determine the stamping grid from multiple grids in the grid document.
[0093] Based on the preset stamping position information in the target document template, and combined with the grid vector information, the grid corresponding to the preset stamping position information is found among multiple grids in the grid document, thus obtaining the stamping grid.
[0094] Optionally, a position mapping algorithm can be used to map the preset stamp position information in the target document template to the grid document to obtain a stamp grid.
[0095] Optionally, similarity matching is used to determine the similarity between each grid in the grid document and the preset stamping position information in the target document template, and the grid with the highest similarity is taken as the stamping grid.
[0096] Furthermore, based on the grid vector information of the stamping grid, the stamping position within the grid is determined to avoid stamping in areas with dense text and / or areas with important information, thus ensuring the standardization and readability of the document and improving the quality of power approval.
[0097] Optionally, a weighted score is applied to each grid vector information, and the score of each grid vector information is obtained according to the weighted score formula. Based on the score of each grid vector information, the stamped grid is obtained.
[0098] S205. Based on the stamping grid and preset electronic stamp, perform stamping processing on the document to be processed to obtain a stamped document.
[0099] By using image fusion and adjusting the transparency of the electronic stamp image, a preset electronic stamp is overlaid on the stamping grid of the document to be processed, so that the electronic stamp is naturally displayed on the document to be processed, resulting in a stamped document that ensures the content of the stamped document is clear and readable.
[0100] The project approval method provided in this application divides the acquired document to be processed into a grid, resulting in a grid document corresponding to the document. This transforms scattered heterogeneous data into a grid document with a unified format, eliminating data format differences and avoiding deviations caused by missing information or inconsistent descriptions. Each grid in the grid document is encoded to obtain grid document information. This accurately and comprehensively extracts the features of each grid, transforming the complex structure of the grid document into quantifiable and easily processed information, improving the accuracy and efficiency of information processing. Based on the grid document information, a matching process is performed in the power approval database to obtain the target document template and preset electronic seal corresponding to the document to be processed. This allows for quick location of document templates and electronic seals that meet power approval standards and business requirements, avoiding the tediousness and errors of manual searching and effectively improving the automation and standardization of the approval process. Based on the grid vector information and the target document template, a stamping grid is determined from multiple grids in the grid document. Based on the stamping grid and the preset electronic seal, the document to be processed is stamped to obtain a stamped document. Stamping based on the stamping grid avoids incorrect stamping positions and improves the accuracy and reliability of stamping processing.
[0101] Figure 3 Flowchart of the project approval method provided in the embodiments of this application Figure 2 .like Figure 3 As shown, in this embodiment... Figure 2 Based on the examples, the project approval method is described in detail, which includes:
[0102] In one possible implementation, step S203 may further include:
[0103] S2031. Based on the grid document information, extract the keyword information from each grid vector information to obtain the document keywords corresponding to the grid document information.
[0104] By using gridded document parsing technology, keyword information is extracted from the vector information of each grid. The keyword information of all grids in the network document is integrated to obtain the document keywords corresponding to the grid document information. This can obtain keywords from the grid document information, reduce noise in the grid document information, and make the obtained document keywords more reflective of the key content of the grid document, so as to quickly locate the problem in the future.
[0105] S2032. Based on the document keywords corresponding to the grid document information, the document template in the power approval database that is closest to the document keywords is used as the target document template corresponding to the document to be processed.
[0106] The cosine similarity of the document keywords corresponding to the grid document information with the keyword library corresponding to the document templates in the power approval database is calculated to obtain the similarity between the document keywords corresponding to the grid document information and each document template in the power approval database. Then, the document template with the highest similarity is selected as the target document template for the document to be processed. Through these steps, the bias of manual selection of target document templates can be avoided, improving the efficiency and accuracy of the approval process.
[0107] S2033. Find the preset electronic seal corresponding to the target document template in the power approval database.
[0108] In the power approval database, each document template is associated with a corresponding electronic seal information through a unique identifier. Based on the unique identifier corresponding to the target document template, the electronic seal corresponding to the unique identifier is searched in the power approval database to obtain the preset electronic seal.
[0109] In one possible implementation, the target document template includes target stamp grid information, and step S204 may further include:
[0110] S2041. Perform semantic matching on each grid vector information and the target stamp grid information to obtain the first similarity between each grid vector information and the target stamp grid information.
[0111] The cosine similarity algorithm is used to calculate the cosine value of the angle between each grid vector information and the target stamp grid information in the semantic space. The degree of matching is quantified by the cosine value of the angle, and the first similarity between each grid vector information and the target stamp grid information is obtained.
[0112] S2042. Among the multiple grids in the grid document, the grid corresponding to the grid vector information with the highest similarity is taken as the stamp grid.
[0113] Based on the first similarity between each grid vector information and the target stamp grid information, the grid with the highest first similarity in the grid document is selected as the stamp grid. This can reduce the stamp grid deviation caused by subjective judgment or visual error, and effectively ensure the accuracy and standardization of the stamp grid.
[0114] For example, if a grid document includes three grids: grid A, grid B, and grid C, and the first similarity between grid A and the target stamped grid information is 0.3; the first similarity between grid B and the target stamped grid information is 0.6; and the first similarity between grid C and the target stamped grid information is 0.9, then grid C will be used as the stamped grid.
[0115] In one possible implementation, step S2033 may further include:
[0116] Step A: Based on the target document template, find the initial electronic seal and signature specifications corresponding to the target document template in the power approval database.
[0117] Signature specifications refer to the standards governing the use, format, and placement of electronic seals in target document templates. These specifications ensure the legality and consistency of electronic seals within the documents being processed. Basic signature information can be obtained by searching the initial electronic seal and signature specifications corresponding to the target document template in the power approval database. Optionally, signature specifications may include requirements for elements such as the color, font, and border style of the electronic seal.
[0118] Step B: Based on the signature specifications, adjust the element attributes of the initial electronic seal to obtain the preset electronic seal corresponding to the document to be processed. The element attributes include color, font, and border.
[0119] The initial electronic seal is the original seal image, while the preset electronic seal is a seal that has been adjusted according to the signature specifications to be applied to the document to be processed. By adjusting the element attributes of the initial electronic seal, it can be made to better conform to the format requirements and approval specifications of the document to be processed.
[0120] For example, suppose the initial electronic seal obtained from the power approval database is a red circular seal image containing the black Song typeface text "Approval Seal". Meanwhile, the signature specifications require that the electronic seal be blue, the text be in bold, and the border be thick. Based on the signature specifications, adjusting the element attributes of the initial electronic seal includes: first, changing the color of the initial electronic seal from red to blue using an image processing algorithm; next, changing the text font from Song typeface to bold using a text editing tool; and finally, adjusting the thickness of the initial electronic seal's border to be thick. The electronic seal obtained after these adjustments is used as the preset electronic seal.
[0121] In one possible implementation, step S205 further includes:
[0122] S2051. Based on the idempotency guarantee mechanism, determine whether the document to be processed has been stamped.
[0123] An idempotency guarantee mechanism is used to ensure that the stamping status determination result will not change when the document to be processed is checked and / or processed multiple times. In the power approval database, the stamping status of the document to be processed is queried, and the stamping status is used to determine whether the document to be processed has been stamped.
[0124] For example, if the document number of the document to be processed is "DOC12345", the document number "DOC12345" is used as the key value to query the corresponding stamping status in the power approval database. If the stamping status is "stamped", it is determined that the document to be processed has been stamped; if the stamping status is empty or marked as "not stamped", it is determined that the document to be processed has not been stamped.
[0125] S2052. If the document to be processed has already been stamped, use the document to be processed directly as the stamped document to obtain the stamped document corresponding to the document to be processed.
[0126] If the document to be processed has already been stamped, it can be directly marked as a stamped document without repeating the stamping operation. This ensures that the final state of the document remains consistent even if the stamping operation is triggered multiple times, saving computer resources and improving processing efficiency.
[0127] S2053. If the document to be processed is not stamped, within the range of the stamping grid, determine the stamping coordinates corresponding to the document to be processed based on the position coordinates of the stamping grid and the size parameters of the preset electronic stamp.
[0128] If the document to be processed is not stamped, the electronic stamp is accurately placed in the specified position on the document based on the position coordinates of the stamp grid and the size parameters of the preset electronic stamp, thus obtaining the stamp coordinates corresponding to the document to be processed.
[0129] For example, if the stamp grid of the document to be processed is located on page 3, with a horizontal coordinate of 100 pixels and a vertical coordinate of 500 pixels; the preset size of the electronic stamp is 100 pixels wide and 50 pixels high. Based on the position coordinates of the stamp grid and the preset size parameters of the electronic stamp, the stamp coordinates are adjusted to ensure that the electronic stamp does not obscure other content and text in the document to be processed.
[0130] S2054. Overlay the preset electronic seal onto the seal coordinates to obtain the seal document corresponding to the document to be processed.
[0131] By using image processing technology, a preset electronic seal is superimposed onto the stamping coordinates of the document to be processed, thereby completing the stamping operation on the document to be processed and obtaining the stamped document corresponding to the document to be processed.
[0132] Figure 4 This is a flowchart illustrating the approval method provided in an embodiment of this application. Figure 4 As shown, the method includes:
[0133] S401. Obtain multiple documents to be processed.
[0134] In the power approval process, documents awaiting processing may come from different approval workflows. By centrally acquiring these documents, multiple documents can be processed in batches, improving approval efficiency.
[0135] S402. Based on the power approval database, the stamped document corresponding to each document to be processed is obtained through parallel processing. The stamped document is obtained through the project approval method as described in the above embodiments and any possible implementation of the above embodiments.
[0136] Parallel processing technology allows multiple documents to be processed simultaneously, significantly improving approval speed and reducing approval time.
[0137] For example, if there are 10 documents to be processed, multiple threads are started to process them simultaneously. When 5 threads are started, each thread processes 2 documents.
[0138] Optionally, based on the power approval database, the stamped documents corresponding to each document to be processed can be obtained through a multi-threaded and / or asynchronous task mechanism.
[0139] S403. Based on the power approval database, obtain the preset approval process corresponding to the stamped document.
[0140] A preset approval process refers to an approval path predefined based on the document type and / or business requirements of the document to be processed. The power approval database stores approval process information corresponding to multiple document types and / or business requirements. This information includes the approval order, approvers, and approval permissions. By querying the power approval database, the preset approval process corresponding to a stamped document can be quickly determined.
[0141] For example, if the document type of the stamped document is "project plan", the preset approval process corresponding to "project plan" can be found in the power approval database to obtain the preset approval process corresponding to the stamped document.
[0142] S404. Pass the stamped document to the next approval process indicated by the preset approval process.
[0143] According to the preset approval process, the stamped document is sent to the approver or approval department corresponding to the next approval process, ensuring that the stamped document flows according to the predefined approval process and reducing manual intervention and errors.
[0144] One possible implementation is that the document to be processed is obtained in the following way:
[0145] Step A: Obtain the document path of the document to be processed.
[0146] By using document path parsing technology, the storage path of the document to be processed can be extracted from the approval request submitted by the user.
[0147] Step B: Based on the document path of the document to be processed, locate the document to be processed in the power approval database.
[0148] By using database path indexing query technology, the document metadata corresponding to the document path can be quickly located in the power approval database to obtain the document to be processed.
[0149] Figure 5 This is a schematic diagram of the project approval device provided in an embodiment of this application. Figure 5 As shown, the project approval device 50 provided in this embodiment includes:
[0150] The acquisition module 501 is used to divide the acquired document to be processed into a grid to obtain the grid document corresponding to the document to be processed; to encode each grid in the grid document to obtain grid document information; the grid document information includes the grid vector information corresponding to each grid.
[0151] The processing module 502 is used to match the grid document information in the power approval database to obtain the target document template and preset electronic seal corresponding to the document to be processed; to determine the stamping grid from multiple grids of the grid document based on the grid vector information and the target document template; and to perform stamping processing on the document to be processed based on the stamping grid and the preset electronic seal to obtain the stamped document.
[0152] In one possible implementation, the processing module 502 is specifically used for:
[0153] Based on the grid document information, keyword information is extracted from each grid vector information to obtain the document keywords corresponding to the grid document information;
[0154] Based on the document keywords corresponding to the grid document information, the document template in the power approval database that is closest to the document keywords is used as the target document template for the document to be processed.
[0155] The preset electronic seal corresponding to the target document template can be found in the power approval database.
[0156] In one possible implementation, the target document template includes target stamp grid information, and the processing module 502 is specifically used for:
[0157] Semantic matching is performed on each grid vector information and the target stamp grid information to obtain the first similarity between each grid vector information and the target stamp grid information;
[0158] The grid corresponding to the grid vector information with the highest similarity among multiple grids in the grid document is used as the stamp grid.
[0159] In one possible implementation, the processing module 502 is further configured to:
[0160] Based on the target document template, the initial electronic seal and signature specifications corresponding to the target document template are retrieved from the power approval database;
[0161] Based on the signature specifications, the element attributes of the initial electronic seal are adjusted to obtain the preset electronic seal corresponding to the document to be processed. The element attributes include color, font, and border.
[0162] In one possible implementation, the processing module 502 is specifically used for:
[0163] Based on the idempotency guarantee mechanism, determine whether the document to be processed has been stamped;
[0164] If the document to be processed has already been stamped, the document to be processed will be directly used as the stamped document to obtain the stamped document corresponding to the document to be processed.
[0165] If the document to be processed is not stamped, within the stamping grid, the stamping coordinates of the document to be processed are determined according to the position coordinates of the stamping grid and the size parameters of the preset electronic stamp.
[0166] The preset electronic seal is superimposed onto the seal coordinates to obtain the stamped document corresponding to the document to be processed.
[0167] The project approval device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0168] Figure 6 This is a schematic diagram of the approval device provided in an embodiment of this application. Figure 6 As shown, the approval device 60 provided in this embodiment includes:
[0169] The acquisition module 601 is used to acquire multiple documents to be processed; based on the power approval database, the stamped document corresponding to each document to be processed is obtained through parallel processing. The stamped document is obtained through the project approval method as described in the above embodiments and any possible implementation of the above embodiments.
[0170] The processing module 602 is used to obtain the preset approval process corresponding to the stamped document based on the power approval database; and to pass the stamped document to the next approval process pointed to by the preset approval process.
[0171] In one possible implementation, the document to be processed is obtained by the acquisition module 601, which is further configured to:
[0172] Obtain the document path of the document to be processed;
[0173] Based on the document path of the document to be processed, the document to be processed can be found in the power approval database.
[0174] The approval device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0175] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 7 As shown, the electronic device 70 provided in this embodiment includes at least one processor 701 and a memory 702. Optionally, the device 70 further includes a communication component 703. The processor 701, memory 702, and communication component 703 are connected via a bus 704.
[0176] In a specific implementation, at least one processor 701 executes computer execution instructions stored in memory 702, causing at least one processor 701 to perform the above-described method.
[0177] The specific implementation process of processor 701 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0178] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0179] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0180] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings of this application's embodiments are not limited to only one bus or one type of bus.
[0181] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0182] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed, implement any of the methods described above.
[0183] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0184] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0185] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0186] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0187] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0188] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0189] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0190] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A project approval method characterized by, The method comprises the following steps: grid division is performed on the obtained to-be-processed document to obtain a grid document corresponding to the to-be-processed document; each grid in the grid document is encoded respectively to obtain grid document information; the grid document information comprises grid vector information corresponding to each grid; based on the grid document information, matching is performed in a power approval database to obtain a target document template and a preset electronic seal corresponding to the to-be-processed document; based on the grid vector information and the target document template, a seal grid is determined from a plurality of grids of the grid document; based on the seal grid and the preset electronic seal, seal processing is performed on the to-be-processed document to obtain a sealed document.
2. The method of claim 1, wherein, The matching in the power approval database based on the grid document information to obtain the target document template and the preset electronic seal corresponding to the to-be-processed document comprises: based on the grid document information, keyword information in each grid vector information is extracted respectively to obtain document keywords corresponding to the grid document information; based on the document keywords corresponding to the grid document information, a document template in the power approval database that is closest to the document keywords is taken as the target document template corresponding to the to-be-processed document; the preset electronic seal corresponding to the target document template is found in the power approval database.
3. The method of claim 1, wherein, The target document template comprises target seal grid information, and the seal grid is determined from the plurality of grids of the grid document based on the grid vector information and the target document template, which comprises: semantic matching is performed on each grid vector information and the target seal grid information to obtain a first similarity between each grid vector information and the target seal grid information; a grid corresponding to grid vector information with the highest first similarity in the plurality of grids of the grid document is taken as the seal grid.
4. The method of claim 2, wherein, The preset electronic seal corresponding to the target document template is found in the power approval database, which comprises: based on the target document template, an initial electronic seal and a seal specification corresponding to the target document template are found in the power approval database; based on the seal specification, an element attribute of the initial electronic seal is adjusted to obtain the preset electronic seal corresponding to the to-be-processed document, wherein the element attribute comprises color, font and border.
5. The method of claim 1, wherein, The seal processing is performed on the to-be-processed document based on the seal grid and the preset electronic seal to obtain the sealed document, which further comprises: based on an idempotency guarantee mechanism, it is judged whether the to-be-processed document has been sealed; if the to-be-processed document has been sealed, the to-be-processed document is directly taken as the sealed document to obtain the sealed document corresponding to the to-be-processed document; if the to-be-processed document has not been sealed, seal coordinates corresponding to the to-be-processed document are determined according to position coordinates of the seal grid and size parameters of the preset electronic seal within a range of the seal grid; the preset electronic seal is superimposed on the seal coordinates to obtain the sealed document corresponding to the to-be-processed document.
6. An approval method characterized by, The method comprises the following steps: a plurality of to-be-processed documents are obtained; Based on the power examination database, a seal file corresponding to each of the to-be-processed documents is obtained through parallel processing, the seal file being obtained through the project examination method according to any one of claims 1-5; Based on the power examination database, a preset examination procedure corresponding to the seal file is obtained; The seal file is transmitted to a next examination procedure pointed by the preset examination procedure.
7. The method of claim 6, wherein, The to-be-processed document is obtained through the following manner: A document path of the to-be-processed document is obtained; Based on the document path of the to-be-processed document, the to-be-processed document is found in the power examination database.
8. An item approval device characterized by comprising: Comprise: An acquisition module is configured to perform grid division on an acquired to-be-processed document to obtain a grid document corresponding to the to-be-processed document; Each grid in the grid document is encoded to obtain grid document information, wherein the grid document information comprises grid vector information corresponding to each grid; A processing module is configured to perform matching in a power examination database based on the grid document information to obtain a target document template and a preset electronic seal corresponding to the to-be-processed document; Based on the grid vector information and the target document template, a seal grid is determined from a plurality of grids of the grid document; Based on the seal grid and the preset electronic seal, seal processing is performed on the to-be-processed document to obtain a sealed document.
9. An approval device, characterized by Comprise: An acquisition module is configured to acquire a plurality of to-be-processed documents; Based on the power examination database, a seal file corresponding to each of the to-be-processed documents is obtained through parallel processing, the seal file being obtained through the project examination method according to any one of claims 1-5; A processing module is configured to obtain a preset examination procedure corresponding to the seal file based on the power examination database; and transmit the seal file to a next examination procedure pointed by the preset examination procedure.
10. An electronic device, comprising: Comprise: A memory and a processor; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the processor executes the method according to any one of claims 1-7.